Click here to Skip to main content
15,663,225 members
Please Sign up or sign in to vote.
2.41/5 (8 votes)
See more:

Can any one help me in writing an application in C# to communicate with an external USB device?I am developing an application to communicate with an external device through PC USB port.I will be very thankful if any one can give me a primary source code or hint to reach this.Thank you!
Updated 15-Jan-19 19:37pm

Share this answer
Sergey Alexandrovich Kryukov 27-Apr-11 1:54am    
One needs to be an idiot to vote 3 for this answer. What's wrong? Could be 4 as a minimum, I voted 5.
walterhevedeich 27-Apr-11 2:07am    
An idiot indeed. Voting 3 without giving a comment. Thanks SA.
Olivier Levrey 27-Apr-11 4:28am    
My 5 too. Good links.
walterhevedeich 27-Apr-11 4:44am    
Viktor Signaievskyi 27-Apr-11 16:01pm    
Sure 5:)
Just use the built in classes if you can


Or you can use Socket.IOControl and the DeviceEndPoint which must be found via another manner.
Share this answer
First, USB is not a "port" it is a bus, not unlike the expansion slots inside your computer. You cannot treat the USB ports like you do serial ports.

Second, how you communicate with the device depends on the interfaces it and its driver exposes. Without knowing that, you're going to get nowhere pretty fast.
Share this answer

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