Click here to Skip to main content
15,867,939 members
Please Sign up or sign in to vote.
1.60/5 (2 votes)
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.

Thanks
Posted

1 solution

Have a look at #USBLib. It's built over libusb, it has device detection based on VID & PID. download: http://sourceforge.net/projects/sharpdevelop/files/SharpUSBLib/1.0.0.1/[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900