简体   繁体   中英

Read USB using .NET

I have read many codes and none match each other.. I did little bit of programming but one thing i' confused about is: how many ways you can read a USB (how many classes or libraries i have to call to do such a thing)? when you use .serial port( does that mean you are reading a serial port or even the USB uses the same class or library)? it is my first time trying to read from USB and totally clueless on how to start. if i can figure out the first step I can then proceed...ANy hints will be greatly appreciated,

There is no means to directly "read USB" in .NET. Interacting with the bus itself is done by device drivers.

As to how you'll interact with a particular device, this depends entirely on the device. If you can provide some information about what you're wishing to connect to, I or others may be of more assistance.

Use LibUSBDotNet . It is said to be good.

There are more or less three different ways that you might communicate with a USB device: Hid, USB, or Serial Port (COM port). It really depends on the device driver that the manufacture has distributed with the device. Device.Net is a .NET framework that supports all of those in a uniform way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM