On 27 Jun 2012 15:12:39  Pete Batard wrote:
>
> According to the error returned (LIBUSB_ERROR_NOT_FOUND) that seems to
> be the case. This is the error the Windows backend returns if it was
> unable to cache a config descriptor durin enum.
>
> Jach, if you're running a console application, can you please type the
> following in the command window where you run it:
>
> set LIBUSB_DEBUG=4
>
> This will enable debug logging, which will indicate how many
> configurations were detected or whether there was an error during the
> caching of the descriptors.

I run xusb.exe(compiled by BC++ Builder 5.0) under console, the first
run without set DEBUG. The result is:

----------------------------------
C:\Program Files\Borland\CBuilder5\Projects\LibUSBxTest>xusb 10c4:0001
Using libusbx v1.0.12.10532

Opening device...
libusbx: error [cache_config_descriptors] could not access configuration 
descriptor (actu
l) for '\\.\USB#VID_10C4&PID_0001#10807001': [995] 秪俴髯磐旰麼蚚最宒 
猁ㄛ垀眕眒笢
砦 I/O 紱釬﹝
bus: 3, port path from HCD: 2
speed: 12 Mbit/s (USB FullSpeed)

Reading device descriptor:
             length: 18
       device class: 0
                S/N: 3
            VID:PID: 10C4:0001
          bcdDevice: 55AA
    iMan:iProd:iSer: 1:2:3
           nb confs: 1

Reading configuration descriptors:
    LIBUSB_ERROR_NOT_FOUND
libusbx: warning [libusb_exit] application left some devices open
----------------------------------

The message of those strange characters roughly means "either
the thread ends or the application requests it, the I/O operation
was stopped"

The second run with LIBUSB_DEBUG=4. The result is a long list, so
I just list some around where that error happens:

---------------------------------
[ 0.578125] [0000069c] libusbx: debug [init_device] found 1 
configurations (active conf: 1
)
[ 0.578125] [0000069c] libusbx: debug [cache_config_descriptors] cached 
config descriptor
0 (bConfigurationValue=1, 34 bytes)
[ 0.578125] [0000069c] libusbx: debug [init_device] (bus: 1, addr: 2, 
depth: 1, port: 2):
'\\.\USB#VID_046D&PID_C045#5&2E32EC62&0&2'
[ 0.578125] [0000069c] libusbx: debug [windows_get_device_list] 
allocating new device for
session [361]
[ 0.593750] [0000069c] libusbx: debug [init_device] found 1 
configurations (active conf: 1
)
[ 5.593750] [0000069c] libusbx: error [cache_config_descriptors] could 
not access configur
ation descriptor (actual) for '\\.\USB#VID_10C4&PID_0001#10807001': 
[995] 秪俴髯磐旰麼
蚚最宒猁ㄛ垀眕眒笢砦 I/O 紱釬﹝
[ 5.593750] [0000069c] libusbx: debug [init_device] (bus: 3, addr: 1, 
depth: 1, port: 2):
'\\.\USB#VID_10C4&PID_0001#10807001'
[ 5.593750] [0000069c] libusbx: debug [windows_get_device_list] 
allocating new device for
session [2E2]
[ 5.593750] [0000069c] libusbx: debug [init_device] found 1 
configurations (active conf: 1
)
[ 5.609375] [0000069c] libusbx: debug [cache_config_descriptors] cached 
config descriptor
0 (bConfigurationValue=1, 34 bytes)
----------------------------------------

Best Regards,
Jach


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to