Click here to Skip to main content
14,355,324 members
Rate this:
Please Sign up or sign in to vote.
See more: , +
Hello Everyone,

I have to write a small tool to test a LED device which will be connected to PC via USB.
I did my research and found that there are 2 widely used libraries for USB communication: LibUSBDotNet & WinUSBDotNet

Unfortunately, i cant use these 2 libraries in my case, because:
a) WinUSB needs device GUID[in Inf file] to connect / detect the devices, which i dont have now. I just want to connect/detect the device using VID and PID.

b) So, i tried LibUSB which can detect using VID & PID but in my case its not able to find the connected devices until i dont use Inf-Filter wizard to install the filter for the specific device's driver. Also, even after i install the filter, my code detects the device but the PC goes into BSOD and restarts. So, LibUSB is also out now.

Can you guys help me with any code snippet/ link so that i can write a small application just to detect a USB device and send some simple byte[] commands to it and wait for SUCCESS/FAILURE acknowledgements.

Any help/suggestion will be appreciated.


1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Have a look at #USBLib. It's built over libusb, it has device detection based on VID & PID. download:[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100