简体   繁体   中英

Can't find device on libusbdotnet

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!

You need to download LibUsbDotNet_Setup.2.2.8.exe and run setup. During setup you should enable filter and choose your input device per your vendor id. Then your code will find the device afterwards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM