You mean under Windows? I just did this today, but I'll attach it again.

Regards
Stefano

On 29.10.2012 18:57, Pete Batard wrote:
Can you please run 'xusb -d vid:pid' where vid:pid are the ones of your
device and send the log you get?

Regards,

/Pete


On 2012.10.29 17:51, Stefano Di Martino wrote:
Okay, I tested it now at home with Linux and the same usb device. It
seems, that fetching the string descriptor is a Windows problem.
First, I get the error "LIBUSB_ERROR_ACCESS", but then I run the example
with root privilege and everything run fine. Just, for the record: On
Windows I get an LIBUSB_ERROR_NO_MEM error.
What now? My program has to run under windows.
I attach again the descriptor of the usb device, but this time formated
by lsusb.

Best regards
Stefano

On 29.10.2012 14:32, Xiaofan Chen wrote:
On Mon, Oct 29, 2012 at 3:27 PM, Stefano Di Martino
<stefan...@gmx.net> wrote:
Sorry, this was the wrong attachment.
Here you find the right attachment...

Thanks. So this is a Logitech USB Headset, a USB composite
device with Interface 3 to be the HID interface. Maybe there is
a problem with libusbx HID backend to parse the HID descriptors.
Pete may tell you more about how to debug the issue.

Can you test under Linux to see if xusb works with this device?
If you can please post "lsusb -vvv -d 046D:0A0B" output of the
device under Linux. That should help.

If you can not use Linux, try usbview under Windows first
and post the descriptors.
http://www.ftdichip.com/Support/Utilities.htm
http://www.ftdichip.com/Support/Utilities/usbview.zip




------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/



_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


C:\Documents and Settings\stdi3650\My 
Documents\Downloads\libsubx-1.0.14\examples\source>t
est -di
Using libusbx v1.0.14.10576

Opening device 046D:0A0B...
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.015500] [00000338] libusbx: debug [libusb_get_device_list]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [3C7]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [14B]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [2D3]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [24]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [211]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [392]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [AB]
[ 0.015500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [37B]
[ 0.015500] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.015500] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.031000] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [1EF]
[ 0.031000] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.031000] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.031000] [00000338] libusbx: debug [htab_hash] hash collision 
('\\.\USB#ROOT_HUB#4&2BE1
97AD&0' vs '\\.\PCI#VEN_8086&DEV_3A65&SUBSYS_3048103C&REV_02#3&B1BFB68&0&E9')
[ 0.031000] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [3FC]
[ 0.232500] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.232500] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.232500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [30B]
[ 0.434000] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.434000] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.434000] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [A2]
[ 0.635500] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.635500] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.635500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [84]
[ 0.837000] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.837000] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.837000] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [1E1]
[ 0.961000] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.961000] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.961000] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [188]
[ 0.961000] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.961000] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.961000] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [339]
[ 0.961000] [00000338] libusbx: debug [get_api_type] driver(s): usbhub
[ 0.961000] [00000338] libusbx: debug [get_api_type] matched driver name 
against HUB API A
PI
[ 0.961000] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [17A]
[ 0.961000] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [1EF] (0.0)
[ 0.961000] [00000338] libusbx: debug [init_device] (bus: 2, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB#4&12DD0E9A&0'
[ 0.961000] [00000338] libusbx: debug [htab_hash] hash collision 
('\\.\USB#ROOT_HUB#4&2BE1
97AD&0' vs '\\.\PCI#VEN_8086&DEV_3A65&SUBSYS_3048103C&REV_02#3&B1BFB68&0&E9')
[ 0.961000] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [3FC] (0.0)
[ 0.961000] [00000338] libusbx: debug [init_device] (bus: 1, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB#4&2BE197AD&0'
[ 1.162500] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [30B] (0.0)
[ 1.162500] [00000338] libusbx: debug [init_device] (bus: 4, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB#4&3A0427D3&0'
[ 1.364000] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [A2] (0.0)
[ 1.364000] [00000338] libusbx: debug [init_device] (bus: 5, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB#4&4BA7E74&0'
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [84] (0.0)
[ 1.565500] [00000338] libusbx: debug [init_device] (bus: 6, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB#4&9B67D30&0'
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [1E1] (0.0)
[ 1.565500] [00000338] libusbx: debug [init_device] (bus: 3, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB#4&A22AA65&0'
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [188] (0.0)
[ 1.565500] [00000338] libusbx: debug [init_device] (bus: 8, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB20#4&203270F2&0'
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [339] (0.0)
[ 1.565500] [00000338] libusbx: debug [init_device] (bus: 7, addr: 1, depth: 0, 
port: 0):
'\\.\USB#ROOT_HUB20#4&810945C&0'
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] allocating new 
device for
session [20B]
[ 1.565500] [00000338] libusbx: debug [init_device] got bus number from 
ancestor #2
[ 1.565500] [00000338] libusbx: debug [init_device] found 1 configurations 
(active conf: 1
)
[ 1.565500] [00000338] libusbx: debug [cache_config_descriptors] cached config 
descriptor
0 (bConfigurationValue=1, 299 bytes)
[ 1.565500] [00000338] libusbx: debug [init_device] (bus: 7, addr: 3, depth: 1, 
port: 1):
'\\.\USB#VID_046D&PID_0A0B#6&17EE090C&0&1'
[ 1.565500] [00000338] libusbx: debug [discovered_devs_append] need to increase 
capacity
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [17A] (7.0)
[ 1.565500] [00000338] libusbx: debug [init_device] found 1 configurations 
(active conf: 1
)
[ 1.565500] [00000338] libusbx: debug [cache_config_descriptors] cached config 
descriptor
0 (bConfigurationValue=1, 25 bytes)
[ 1.565500] [00000338] libusbx: debug [init_device] (bus: 7, addr: 2, depth: 1, 
port: 6):
'\\.\USB#VID_05E3&PID_0608#5&31C61380&0&6'
[ 1.565500] [00000338] libusbx: debug [get_api_type] driver(s): usbccgp
[ 1.565500] [00000338] libusbx: debug [get_api_type] matched driver name 
against Composite
 API API
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] found existing 
device for
session [20B] (7.3)
[ 1.565500] [00000338] libusbx: debug [windows_get_device_list] setting 
composite interfac
e for [20B]:
[ 1.565500] [00000338] libusbx: debug [set_composite_interface] interface[3] = 
\\.\HID#VID
_046D&PID_0A0B&MI_03#8&3592C203&2&0000#{4D1E55B2-F16F-11CF-88CB-001111000030}
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 1.0
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 2.0
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 3.0
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 4.0
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 5.0
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 6.0
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 7.0
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 8.0
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
[ 1.565500] [00000338] libusbx: debug [libusb_open] open 7.3
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 2.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 1.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 4.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 5.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 6.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 3.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 8.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 7.1
[ 1.565500] [00000338] libusbx: debug [libusb_unref_device] destroy device 7.2

Reading device descriptor:
[ 1.565500] [00000338] libusbx: debug [libusb_get_device_descriptor]
            length: 18
      device class: 0
               S/N: 0
           VID:PID: 046D:0A0B
         bcdDevice: 1013
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

Reading configuration descriptors:
[ 1.565500] [00000338] libusbx: debug [libusb_get_config_descriptor] index 0
[ 1.565500] [00000338] libusbx: debug [parse_endpoint] skipping descriptor 25
[ 1.565500] [00000338] libusbx: debug [parse_endpoint] skipping descriptor 25
[ 1.565500] [00000338] libusbx: debug [parse_endpoint] skipping descriptor 25
             nb interfaces: 4
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 0
   Class.SubClass.Protocol: 01.01.00
              interface[1]: id = 1
interface[1].altsetting[0]: num endpoints = 0
   Class.SubClass.Protocol: 01.02.00
interface[1].altsetting[1]: num endpoints = 1
   Class.SubClass.Protocol: 01.02.00
       endpoint[0].address: 01
           max packet size: 00C0
          polling interval: 01
interface[1].altsetting[2]: num endpoints = 1
   Class.SubClass.Protocol: 01.02.00
       endpoint[0].address: 01
           max packet size: 0060
          polling interval: 01
              interface[2]: id = 2
interface[2].altsetting[0]: num endpoints = 0
   Class.SubClass.Protocol: 01.02.00
interface[2].altsetting[1]: num endpoints = 1
   Class.SubClass.Protocol: 01.02.00
       endpoint[0].address: 84
           max packet size: 0060
          polling interval: 01
              interface[3]: id = 3
interface[3].altsetting[0]: num endpoints = 1
   Class.SubClass.Protocol: 03.00.00
       endpoint[0].address: 83
           max packet size: 0002
          polling interval: 08

Claiming interface 0...
[ 1.565500] [00000338] libusbx: debug [libusb_claim_interface] interface 0
[ 1.565500] [00000338] libusbx: debug [unsupported_claim_interface] unsupported 
API call f
or 'claim_interface' (unrecognized device driver)
   Failed.

Claiming interface 1...
[ 1.565500] [00000338] libusbx: debug [libusb_claim_interface] interface 1
[ 1.565500] [00000338] libusbx: debug [unsupported_claim_interface] unsupported 
API call f
or 'claim_interface' (unrecognized device driver)
   Failed.

Claiming interface 2...
[ 1.565500] [00000338] libusbx: debug [libusb_claim_interface] interface 2
[ 1.565500] [00000338] libusbx: debug [unsupported_claim_interface] unsupported 
API call f
or 'claim_interface' (unrecognized device driver)
   Failed.

Claiming interface 3...
[ 1.565500] [00000338] libusbx: debug [libusb_claim_interface] interface 3
[ 1.565500] [00000338] libusbx: debug [hid_claim_interface] claimed interface 3
[ 1.565500] [00000338] libusbx: debug [libusb_get_config_descriptor] index 0
[ 1.565500] [00000338] libusbx: debug [parse_endpoint] skipping descriptor 25
[ 1.565500] [00000338] libusbx: debug [parse_endpoint] skipping descriptor 25
[ 1.565500] [00000338] libusbx: debug [parse_endpoint] skipping descriptor 25
[ 1.565500] [00000338] libusbx: debug [windows_assign_endpoints] (re)assigned 
endpoint 83
to interface 3

Reading string descriptors:
[ 1.565500] [00000338] libusbx: debug [composite_submit_control_transfer] using 
interface
3
[ 1.565500] [00000338] libusbx: debug [libusb_claim_interface] interface 3
[ 1.565500] [00000338] libusbx: debug [auto_claim] auto-claimed interface 3 for 
control re
quest
[ 1.565500] [00000338] libusbx: debug [hid_submit_control_transfer] will use 
interface 3
[ 1.565500] [00000338] libusbx: debug [composite_submit_control_transfer] using 
interface
3
[ 1.565500] [00000338] libusbx: debug [libusb_claim_interface] interface 3
[ 1.565500] [00000338] libusbx: debug [auto_claim] auto-claimed interface 3 for 
control re
quest
[ 1.565500] [00000338] libusbx: warning [auto_claim] program assertion failed - 
autoclaim_
count was nonzero
[ 1.565500] [00000338] libusbx: debug [hid_submit_control_transfer] will use 
interface 3
[ 1.565500] [00000338] libusbx: debug [composite_submit_control_transfer] using 
interface
3
[ 1.565500] [00000338] libusbx: debug [libusb_claim_interface] interface 3
[ 1.581000] [00000338] libusbx: debug [auto_claim] auto-claimed interface 3 for 
control re
quest
[ 1.581000] [00000338] libusbx: warning [auto_claim] program assertion failed - 
autoclaim_
count was nonzero
[ 1.581000] [00000338] libusbx: debug [hid_submit_control_transfer] will use 
interface 3

Releasing interface 0...
[ 1.581000] [00000338] libusbx: debug [libusb_release_interface] interface 0
Releasing interface 1...
[ 1.581000] [00000338] libusbx: debug [libusb_release_interface] interface 1
Releasing interface 2...
[ 1.581000] [00000338] libusbx: debug [libusb_release_interface] interface 2
Releasing interface 3...
[ 1.581000] [00000338] libusbx: debug [libusb_release_interface] interface 3
Closing device...
[ 1.581000] [00000338] libusbx: debug [libusb_close]
[ 1.596500] [00000338] libusbx: debug [libusb_unref_device] destroy device 7.3
[ 1.596500] [00000338] libusbx: debug [libusb_exit]
[ 1.596500] [00000338] libusbx: debug [libusb_exit] destroying default context
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to