On 9/16/2013 3:36 AM, Xiaofan Chen wrote:
On Sun, Sep 15, 2013 at 8:08 PM, Ramon Zambelli
<ramon.zambe...@bluewin.ch> wrote:
I have a device which used WCID to install WinUSB drivers. The driver
installs automatically as expected, but when I try to open the device
using libusbx 1.17 I get error -12 (ERROR_NOT_SUPPORTED). I'm using
windows 8.
Using zadig I see that the driver installed is WINUSB (v6.2.9200.16384)
which is newer than the version proposed by zadig. Is this version
supported by libusbx? Is there any other reason why I can't open the
device correctly?
I think WinUSB version should not be the problem.
Please post the debug log (eg: xusb -d yourvid:yourpid).
There was a report on Windows Server 2012 that libusbx has
problem with device using WinUSB driver.
https://github.com/libusbx/libusbx/issues/119
One way to check is to use Zadig to install WinUSB driver to
see if then libusbx work or not. I bet it should work.
If I install the WinUSB drivers using zadig I'm able to open the device
correctly as you forecast.
When I run: "xusb -d 0483:1330" using the WCID installed drivers I get:
/Using libusbx v1.0.17.10830//
//
//Opening device 0483:1330...//
//[timestamp] [threadID] facility level [function call] <message>//
//--------------------------------------------------------------------------------//
//[ 0.004001] [00001590] libusbx: debug [libusb_get_device_list]//
//[ 0.005563] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [139]//
//[ 0.005563] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [341]//
//[ 0.005563] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [2F4]//
//[ 0.006567] [00001590] libusbx: debug [get_api_type] driver(s): usbhub//
//[ 0.007566] [00001590] libusbx: debug [get_api_type] matched driver
name against HUB API API//
//[ 0.007706] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [371]//
//[ 0.007838] [00001590] libusbx: debug [get_api_type] driver(s): usbhub//
//[ 0.008202] [00001590] libusbx: debug [get_api_type] matched driver
name against HUB API API//
//[ 0.008202] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [1DE]//
//[ 0.008202] [00001590] libusbx: debug [get_api_type] driver(s): usbhub//
//[ 0.008202] [00001590] libusbx: debug [get_api_type] matched driver
name against HUB API API//
//[ 0.008202] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [A4]//
//[ 0.018121] [00001590] libusbx: warning [windows_get_device_list]
could not retrieve port number for device '\\.\ROOT#SYSTEM#0001',
skipping: [13] The data is invalid.//
//[ 0.018824] [00001590] libusbx: debug [get_api_type] driver(s): USBHUB3//
//[ 0.034980] [00001590] libusbx: debug [get_api_type] matched driver
name against HUB API API//
//[ 0.035366] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [194]//
//[ 0.035655] [00001590] libusbx: debug [get_api_type] driver(s): usbhub//
//[ 0.049292] [00001590] libusbx: debug [get_api_type] matched driver
name against HUB API API//
//[ 0.049674] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [23E]//
//[ 0.049939] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [A3]//
//[ 0.055211] [00001590] libusbx: debug [init_device] got bus number
from ancestor #3//
//[ 0.055581] [00001590] libusbx: debug [init_device] found 1
configurations (active conf: 1)//
//[ 0.154789] [00001590] libusbx: debug [cache_config_descriptors]
cached config descriptor 0 (bConfigurationValue=1, 1129 bytes)//
//[ 0.155267] [00001590] libusbx: debug [init_device] (bus: 1, addr: 4,
depth: 1, port: 3): '\\.\USB#VID_04F2&PID_B307#0X0001'//
//[ 0.155491] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [23E] (0.0)//
//[ 0.156495] [00001590] libusbx: debug [init_device] (bus: 1, addr: 1,
depth: 0, port: 0): '\\.\USB#ROOT_HUB20#4&37BC2EAB&0'//
//[ 0.157501] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [378]//
//[ 0.157501] [00001590] libusbx: debug [init_device] got bus number
from ancestor #3//
//[ 0.158498] [00001590] libusbx: debug [init_device] found 1
configurations (active conf: 1)//
//[ 0.159779] [00001590] libusbx: debug [cache_config_descriptors]
cached config descriptor 0 (bConfigurationValue=1, 177 bytes)//
//[ 0.159779] [00001590] libusbx: debug [init_device] (bus: 3, addr: 4,
depth: 1, port: 3): '\\.\USB#VID_0930&PID_0219#ALASKA_DAY_2006'//
//[ 0.160774] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [38E]//
//[ 0.161552] [00001590] libusbx: debug [init_device] found 1
configurations (active conf: 1)//
//[ 0.162699] [00001590] libusbx: debug [cache_config_descriptors]
cached config descriptor 0 (bConfigurationValue=1, 55 bytes)//
//[ 0.163088] [00001590] libusbx: debug [init_device] (bus: 1, addr: 5,
depth: 1, port: 2): '\\.\USB#VID_0483&PID_1330#00'//
//[ 0.163375] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [1DE] (0.0)//
//[ 0.163375] [00001590] libusbx: debug [init_device] (bus: 3, addr: 1,
depth: 0, port: 0): '\\.\USB#ROOT_HUB20#4&12DE1EA&0'//
//[ 0.164383] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [A4] (1.0)//
//[ 0.165624] [00001590] libusbx: debug [init_device] found 1
configurations (active conf: 1)//
//[ 0.166587] [00001590] libusbx: debug [cache_config_descriptors]
cached config descriptor 0 (bConfigurationValue=1, 25 bytes)//
//[ 0.166587] [00001590] libusbx: debug [init_device] (bus: 1, addr: 2,
depth: 1, port: 1): '\\.\USB#VID_8087&PID_0024#5&244F7126&0&1'//
//[ 0.167445] [00001590] libusbx: debug [windows_get_device_list]
allocating new device for session [36A]//
//[ 0.168393] [00001590] libusbx: debug [init_device] found 1
configurations (active conf: 1)//
//[ 0.174505] [00001590] libusbx: debug [cache_config_descriptors]
cached config descriptor 0 (bConfigurationValue=1, 32 bytes)//
//[ 0.174505] [00001590] libusbx: debug [init_device] (bus: 1, addr: 3,
depth: 2, port: 1): '\\.\USB#VID_0BDA&PID_0138#20090516388200000'//
//[ 0.175522] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [371] (3.0)//
//[ 0.176523] [00001590] libusbx: debug [init_device] found 1
configurations (active conf: 1)//
//[ 0.178453] [00001590] libusbx: debug [cache_config_descriptors]
cached config descriptor 0 (bConfigurationValue=1, 25 bytes)//
//[ 0.178922] [00001590] libusbx: debug [init_device] (bus: 3, addr: 2,
depth: 1, port: 1): '\\.\USB#VID_8087&PID_0024#5&2267377&0&1'//
//[ 0.179142] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [194] (0.0)//
//[ 0.180146] [00001590] libusbx: debug [init_device] (bus: 2, addr: 1,
depth: 0, port: 0): '\\.\USB#ROOT_HUB30#4&1E68B45D&0&0'//
//[ 0.180146] [00001590] libusbx: debug [discovered_devs_append] need to
increase capacity//
//[ 0.183152] [00001590] libusbx: debug [get_api_type] driver(s): usbccgp//
//[ 0.184152] [00001590] libusbx: debug [get_api_type] matched driver
name against Composite API API//
//[ 0.184152] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [A3] (1.4)//
//[ 0.185151] [00001590] libusbx: debug [get_api_type] driver(s): usbccgp//
//[ 0.190514] [00001590] libusbx: debug [get_api_type] matched driver
name against Composite API API//
//[ 0.191037] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [38E] (1.5)//
//[ 0.191456] [00001590] libusbx: debug [get_api_type] driver(s):
RSUSBSTOR//
//[ 0.195309] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [36A] (1.3)//
//[ 0.195910] [00001590] libusbx: debug [get_api_type] driver(s): BTHUSB//
//[ 0.195910] [00001590] libusbx: debug [windows_get_device_list] found
existing device for session [378] (3.4)//
//[ 0.200097] [00001590] libusbx: debug [windows_get_device_list]
unlisted ancestor for '\\.\HID#TOSSYSHID&COL01#4&52589F6&0&0000' (non
USB HID, newly connected,etc.) - ignoring//
//[ 0.201107] [00001590] libusbx: debug [windows_get_device_list]
unlisted ancestor for '\\.\HID#TOSSYSHID&COL02#4&52589F6&0&0001' (non
USB HID, newly connected,etc.) - ignoring//
//[ 0.206523] [00001590] libusbx: debug [windows_get_device_list]
unlisted ancestor for '\\.\HID#TOSSYSHID&COL03#4&52589F6&0&0002' (non
USB HID, newly connected,etc.) - ignoring//
//[ 0.211178] [00001590] libusbx: debug [libusb_get_device_descriptor]//
//[ 0.211694] [00001590] libusbx: debug [libusb_get_device_descriptor]//
//[ 0.212075] [00001590] libusbx: debug [libusb_get_device_descriptor]//
//[ 0.216001] [00001590] libusbx: debug [libusb_get_device_descriptor]//
//[ 0.216417] [00001590] libusbx: debug [libusb_open] open 1.5//
//[ 0.216491] [00001590] libusbx: debug [libusb_open] open 1.5 returns -5//
//[ 0.220445] [00001590] libusbx: debug [libusb_unref_device] destroy
device 1.4//
//[ 0.220445] [00001590] libusbx: debug [libusb_unref_device] destroy
device 3.4//
//[ 0.221386] [00001590] libusbx: debug [libusb_unref_device] destroy
device 1.5//
//[ 0.226839] [00001590] libusbx: debug [libusb_unref_device] destroy
device 1.3//
//[ 0.227287] [00001590] libusbx: debug [libusb_unref_device] destroy
device 1.2//
//[ 0.227675] [00001590] libusbx: debug [libusb_unref_device] destroy
device 1.1//
//[ 0.230788] [00001590] libusbx: debug [libusb_unref_device] destroy
device 1.0//
//[ 0.232177] [00001590] libusbx: debug [libusb_unref_device] destroy
device 3.2//
//[ 0.232615] [00001590] libusbx: debug [libusb_unref_device] destroy
device 3.1//
//[ 0.236313] [00001590] libusbx: debug [libusb_unref_device] destroy
device 3.0//
//[ 0.237144] [00001590] libusbx: debug [libusb_unref_device] destroy
device 2.1//
//[ 0.237599] [00001590] libusbx: debug [libusb_unref_device] destroy
device 2.0//
// Failed.//
//[ 0.242408] [00001590] libusbx: debug [libusb_exit]//
//[ 0.243419] [00001590] libusbx: debug [libusb_exit] destroying default
context/
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel