Search code examples
.netusbcommunication

Working with USB devices in .NET


Using .Net (C#), how can you work with USB devices?

How can you detect USB events (connections/disconnections) and how do you communicate with devices (read/write).

Is there a native .Net solution to do this?


Solution

  • There is no native (e.g., System libraries) solution for this. That's the reason why SharpUSBLib exists as mentioned by moobaa.

    If you wish to roll your own handler for USB devices, you can check out the SerialPort class of System.IO.Ports.