1

I am a beginer on USB. I found libusbdotnet on http://sourceforge.net/projects/libusbdotnet/ i am using the library. But i can't find my device by command

MyUsbDevice = UsbDevice.OpenUsbDevice(MyUsbFinder); 
//public UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(0xc251, 0x2722);

The vendor and product ID are the vender, product ID of Keil ULINK2.

MyUsbDevice always null although The USB is attached.

Thank for help!

4

1 回答 1

1

您需要下载 LibUsbDotNet_Setup.2.2.8.exe 并运行安装程序。在设置过程中,您应该启用过滤器并根据您的供应商 ID 选择您的输入设备。然后您的代码将在之后找到该设备

于 2018-10-18T17:55:13.607 回答