Accessing a USB port with C # and sending and receiving data

How to access a USB port in C #, send a data stream and get other data?

+6
c # usb
source share
5 answers

there is a .net library for this: SharpUSBLib

http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx

+3
source share

The term "USB port" means nothing. B on USB means "bus", this is a common way for any device to talk to the machine. A driver is required to use the device. Just as you have drivers for your video card and your network card.

The usual way to force a USB device to use user mode code is to use a driver to emulate an old-fashioned serial port. You would use the SerialPort class in .NET. Check your device’s specifications to see what its driver does.

+3
source share

There is information and a library here: USB and C #

0
source share

This site will definitely help you ... http://libusbdotnet.sourceforge.net
it contains a class library and some code examples in 2010

0
source share

If you are using a HID class USB device, you can also try this C # driver.

0
source share

All Articles