I have two libusb devices which, for one of them individually, I have been
able to open and communicate with using LibUsbDotNet (LUDN). However, when
both devices are attached, LUDN isn't able to locate either device. Tracing
the program flow, it looks like part of the problem is in creation of a
LibUsbRegistry object: when GetPropertiesSPDRP is called, it iterates
through all of the available properties but never successfully retrieves
any (LibUsbDriverIO.UsbIOSync always returns false because
Kernel32.DeviceIoControlAsObject returns false).
The LibUsbRegistry.DeviceList correctly shows that there are two devices
attached and, under LibUsbRegistry.Device.Info, shows the correct VIDs and
PIDs for each device. When the LibUsbRegistry object is passed into the Add
method as a UsbRegistry object, however, none of the device properties
(PID, VID, Name, etc) appear to be populated.
I'll keep testing until I can isolate a bit better.
Note: the problem seems to persist even when one of the devices is removed.
Re-attaching to the same or a different port doesn't fix it. Uninstalling
and re-installing the libusb driver seems to fix it, as long as only one
libusb device is installed.
Travis Robinson
USB Library
v2.0.3
Public
|
Date: 2009-11-02 15:30 Thanks for clarifying. Good luck. If you need supporters to lobby the |
|
Date: 2009-10-31 16:55 The disadvantage of the stock libusb-win32 kernel driver is that there is |
|
Date: 2009-10-31 16:53 I think you have to do more than that. There are some other things to |
|
Date: 2009-10-30 16:59 I just changed the INF file for one device to name the libusb driver files |
|
Date: 2009-10-30 16:08 I am using 32-bit Windows 7 Ultimate. |
|
Date: 2009-10-29 22:48 I Tested using two identical USB devices on Windows 7 32bit and was unable |
|
Date: 2009-10-29 17:56 Uninstalling the libusb driver, removing and re-attaching the device, and |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2009-10-29 22:49 | 2009-10-30 16:08 | pckujawa |
| resolution_id | Works For Me | 2009-10-30 16:08 | pckujawa |
| status_id | Pending | 2009-10-30 16:08 | pckujawa |
| close_date | - | 2009-10-29 22:49 | trobinso |
| resolution_id | None | 2009-10-29 22:49 | trobinso |
| status_id | Open | 2009-10-29 22:49 | trobinso |
| priority | 5 | 2009-10-29 20:06 | pckujawa |