与USB设备使用.NET的设备、USB、NET

2023-09-02 10:21:48 作者:很污但也善良

使用.net(C#),如何与USB设备,你的工作?

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

您如何检测USB事件(连接/断开),你如何与设备(读/写)。

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

时有原生的.NET解决方案做到这一点?

Is there a native .Net solution to do this?

推荐答案

目前对此没有的本机的(例如,系统库)解决方案。这就是为什么 SharpUSBLib 存在所提到的moobaa.

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

如果你想推出自己的处理程序的USB设备,可以检查出的 SerialPort类System.IO.Ports 的。

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