Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hello.
i want in c# application write data on usb port and read from it data.
usb port connected to printer.
i see source code write and read on serial port but not usb.i want source code or library for this.please help me.
Thanks a lot.
Posted
Comments
Ali Reza Mortazavi 11-Sep-18 8:09am    
Where is CODE ?

You don't do this. You're trying to treat the USB port the same as a serial or parallel port. You can't do that.

USB is a BUS, not a port. You talk to the devices that are attached to USB, no to the port itself.

How you do that depends on the device you want to talk to and the interfaces it exposes, normally through some device driver.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Aug-11 23:26pm    
Agree, a 5. I provided some links in my answer.
--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