与USB设备使用.NET的 [英] Working with USB devices in .NET

查看:122
本文介绍了与USB设备使用.NET的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用.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 存在所提到的<一个原因href="http://stackoverflow.com/questions/68749/working-with-usb-devices-in-net#68777">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.

这篇关于与USB设备使用.NET的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆