C#和USB HID设备 [英] C# and USB HID Devices
问题描述
我在找任2件事情之一
1 - 弗洛里安使用的图书馆从code的工作例如:<一href=\"http://www.florian-leitner.de/index.php/2007/08/03/hid-usb-driver-library/\">http://www.florian-leitner.de/index.php/2007/08/03/hid-usb-driver-library/
1 - A working example of code using Florian's library from: http://www.florian-leitner.de/index.php/2007/08/03/hid-usb-driver-library/
这似乎是更好的(唯一的?)C#/ HID的图书馆之一,但笔者已经MIA,我似乎无法得到code示例工作。在code我是:
This seems to be one of the better (only???) C#/HID libraries but the author has gone MIA and I can't seem to get a code example to work. The code I have is:
{
USBHIDDRIVER.USBInterface usb = new USBInterface(myvid,mypid);
if (usb.Connect())
MessageBox.Show("connection!");
else
MessageBox.Show("FAIL");
usb.enableUsbBufferEvent(new System.EventHandler(myEventCacher));
usb.startRead();
}
private void myEventCacher(object sender, EventArgs e)
{
string content = e.ToString();
MessageBox.Show(content);
}
连接部分作品,但该事件PROC永远不会被解雇。所以我想知道如果任何人有这个库code与事件处理程序烧制工作的例子。
The connection part works but the event proc is never fired. So I'd like to know if anyone has a working example of this library code with the event handler firing.
2 - 如果处理C#更好库/ HID互动,我想听到它
2 - If there is a better library for handling C#/HID interaction I'd like to hear about it.
推荐答案
你所提到的库现在托管在谷歌看到的 HTTP://$c$c.google.com/p/csharp-usb-hid-driver/
The library you mention is now hosted on google see http://code.google.com/p/csharp-usb-hid-driver/
也许这些是也有帮助:
Perhaps these are helpful too:
- https://github.com/mikeobrien/HidLibrary
- http://www.usbhidnetclass.org/ (商业)
- HTTP://www.$c$cproject.com/KB/ CS / USB_HID.aspx
- http://janaxelson.com/hidpage.htm
- HTTP :?//www.$c$cproject.com/KB/system/HIDAche.aspx q = C%+ 23 +和USB + HID +设备
- HTTP://www.$c$cproject。 COM /提示/ 530836 / Csharp的-USB-HID接口
- https://github.com/mikeobrien/HidLibrary
- http://www.usbhidnetclass.org/ (commercial)
- http://www.codeproject.com/KB/cs/USB_HID.aspx
- http://janaxelson.com/hidpage.htm
- http://www.codeproject.com/KB/system/HIDAche.aspx?q=C%23+and+USB+HID+Devices
- http://www.codeproject.com/Tips/530836/Csharp-USB-HID-Interface
这篇关于C#和USB HID设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!