Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hello,guys.

I need to hear your suggestion regarding my problem.

I need to connect two computers using USB cable to display the result of a simple simulation I created. The first computer is going to be the input source while the other only display the output.

I have created the application in visual basic. when I slide the trackbar in computer X, the value will be shown in computer Y. that's all.
I have no experience with this kind of thing. I have been searching all over the web but I have not find a suitable one, most of the answers are confusing (or is it me that do not understand?).

any idea ?

Thank you
Posted
Comments
Aydin Homay 22-Jul-13 22:35pm    
HiCould you tell me why you want used USB.? Why you don't want used soocket ?
imunksky 22-Jul-13 22:56pm    
no specific reason, but I will also be glad if you can provide guidance since I have no experience at all with both methods.
it does not matter as long as the simulation works like what I described above.
Sergey Alexandrovich Kryukov 22-Jul-13 23:55pm    
Well, my 5 for the question.
—SA

Hi
I suggest using Ethernet network to do this, for getting more information about socket programming in vb.net with TCP/IP you can follow of links:

TCP/IP with VB.NET[^]
TCP/IP With VB.Net - version 2(more power-more ease)[^]
A simple chat program with TCP/IP it can be usefully:
A TCP/IP Chat Program[^]

Best Regards.
 
Share this answer
 
Quote:
need to connect two computers using USB cable


You're going to need a very special cable to do that if you're going to connect USB directly to USB. You cannot connect two USB hosts together using a normal USB cable.

I would HIGHLY suggest using a Ethernet network to do this. You can then use standard TCP/IP sockets to communicate.

Or, you could use 2 USB-to-Serial cables and a null modem serial cable between them and then use the SerialPort class to communicate.
 
Share this answer
 
Comments
Ron Beyer 22-Jul-13 22:47pm    
+5, USB to USB requires a lot of low level work, although using the adapter cable and something like #USBLib it may be possible but will be very painful.
Sergey Alexandrovich Kryukov 22-Jul-13 23:55pm    
5 for the alternatives. ;-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900