Hi everyone,
I am currently experimenting with Jan Axelsons very nice VB.NET USB Examples. The HID-Code runs very smoothly and I had little trouble understanding it.
However, I have some issues with the WinUSB-Example (v22).
As far as I understand the code, a user communication with the USB Device happens after the device is found and the handle is initialized, but the FindDeviceFromGUID() keeps failing way before (returning false). In the function itself, the SetupDiGetClassDevs() returns a non-zero number and later on, the SetupDiEnumDeviceInterfaces()-function returns false as well.
What I figured/tried up until now is:
- changing the device driver to actual WinUSB.sys because it previously was the microchip-own device driver
- messing around with VID, PID and GUID, also simply reading them from the ManagementObjectSearcher (which works and gives me the exact same values I am trying with before and the same negative result)
- rebooting, replugging, reinstalling the drivers several times (as well as messing around with other drivers)
I'm currently pretty much out of ideas on this; the only thing I am still unsure about is how my C-Code on the device itself maybe causes the issue but on the other hand, the device is accepted by Windows without any errors and values like PID/VID are transferred correctly.
Just for information:
OS is Win7 Pro 64Bit SP1;
USB Device is a PIC18F4550, successfully tested as HID with other descriptors;
Host SourceCode is both jan Axelsons Code and a self-written variant of it;
Device Code is an example of my IDE which I (partly heavily) changed, but again, successfully tested with HID (apart from the descriptor file);
Any suggestions/help would be much appreciated! Thx in advance
Regards
Stefan
ps:
I also stumbled upon some older entries (approx. 1-2 years ago) here concerning similar (and unsolved) problems but decided to open a new thread nevertheless because of their old age.