Thanks for your reply!
I have at work windows only. I have attached the descriptor which I get by
usbview.
I could test my code at home under Linux when I get home today...
Best Regards
Stefano
-------- Original-Nachricht --------
> Datum: Mon, 29 Oct 2012 21:32:20 +0800
> Von: Xiaofan Chen <xiaof...@gmail.com>
> An: libusbx-devel@lists.sourceforge.net
> Betreff: Re: [Libusbx-devel] Bug in get_string_descriptor?
> 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
>
>
> --
> Xiaofan
>
> ------------------------------------------------------------------------------
> 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
Device Descriptor:
bcdUSB: 0x0200
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x046D (Logitech Inc.)
idProduct: 0x0A0B
bcdDevice: 0x1013
iManufacturer: 0x01
0x0409: "Logitech"
iProduct: 0x02
0x0409: "Logitech USB Headset"
iSerialNumber: 0x00
bNumConfigurations: 0x01
ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Full
Device Address: 0x02
Open Pipes: 1
Endpoint Descriptor:
bEndpointAddress: 0x83
Transfer Type: Interrupt
wMaxPacketSize: 0x0002 (2)
bInterval: 0x08
Configuration Descriptor:
wTotalLength: 0x012B
bNumInterfaces: 0x04
bConfigurationValue: 0x01
iConfiguration: 0x03
0x0409: "G8 v3.0.0.0"
bmAttributes: 0x80 (Bus Powered )
MaxPower: 0x32 (100 Ma)
Interface Descriptor:
bInterfaceNumber: 0x00
bAlternateSetting: 0x00
bNumEndpoints: 0x00
bInterfaceClass: 0x01 (Audio)
bInterfaceSubClass: 0x01 (Audio Control)
bInterfaceProtocol: 0x00
iInterface: 0x00
Audio Control Interface Header Descriptor:
bLength: 0x0A
bDescriptorType: 0x24
bDescriptorSubtype: 0x01
bcdADC: 0x0100
wTotalLength: 0x0064
bInCollection: 0x02
baInterfaceNr[1]: 0x01
baInterfaceNr[2]: 0x02
Audio Control Input Terminal Descriptor:
bLength: 0x0C
bDescriptorType: 0x24
bDescriptorSubtype: 0x02
bTerminalID: 0x0D
wTerminalType: 0x0201 (Microphone)
bAssocTerminal: 0x00
bNrChannels: 0x01
wChannelConfig: 0x0000
iChannelNames: 0x00
iTerminal: 0x00
Audio Control Feature Unit Descriptor:
bLength: 0x09
bDescriptorType: 0x24
bDescriptorSubtype: 0x06
bUnitID: 0x06
bSourceID: 0x0D
bControlSize: 0x01
bmaControls[0]:
03
bmaControls[1]:
00
iFeature: 0x00
Audio Control Input Terminal Descriptor:
bLength: 0x0C
bDescriptorType: 0x24
bDescriptorSubtype: 0x02
bTerminalID: 0x0C
wTerminalType: 0x0101 (USB streaming)
bAssocTerminal: 0x00
bNrChannels: 0x02
wChannelConfig: 0x0003
iChannelNames: 0x00
iTerminal: 0x00
Audio Control Mixer Unit Descriptor:
bLength: 0x0D
bDescriptorType: 0x24
bDescriptorSubtype: 0x04
bUnitID: 0x09
bNrInPins: 0x02
baSourceID[1]: 0x0C
baSourceID[2]: 0x06
bNrChannels: 0x02
wChannelConfig: 0x0003
iChannelNames: 0x00
bmControls:
00
iMixer: 0x00
Audio Control Feature Unit Descriptor:
bLength: 0x0A
bDescriptorType: 0x24
bDescriptorSubtype: 0x06
bUnitID: 0x01
bSourceID: 0x09
bControlSize: 0x01
bmaControls[0]:
01
bmaControls[1]:
02
bmaControls[2]:
02
iFeature: 0x00
Audio Control Output Terminal Descriptor:
bLength: 0x09
bDescriptorType: 0x24
bDescriptorSubtype: 0x03
bTerminalID: 0x0E
wTerminalType: 0x0301 (Speaker)
bAssocTerminal: 0x00
bSoruceID: 0x01
iTerminal: 0x00
Audio Control Feature Unit Descriptor:
bLength: 0x09
bDescriptorType: 0x24
bDescriptorSubtype: 0x06
bUnitID: 0x02
bSourceID: 0x0D
bControlSize: 0x01
bmaControls[0]:
03
bmaControls[1]:
00
iFeature: 0x00
Audio Control Selector Unit Descriptor:
bLength: 0x07
bDescriptorType: 0x24
bDescriptorSubtype: 0x05
bUnitID: 0x08
bNrInPins: 0x01
baSourceID[1]: 0x02
iSelector: 0x00
Audio Control Output Terminal Descriptor:
bLength: 0x09
bDescriptorType: 0x24
bDescriptorSubtype: 0x03
bTerminalID: 0x0A
wTerminalType: 0x0101 (USB streaming)
bAssocTerminal: 0x00
bSoruceID: 0x08
iTerminal: 0x00
Interface Descriptor:
bInterfaceNumber: 0x01
bAlternateSetting: 0x00
bNumEndpoints: 0x00
bInterfaceClass: 0x01 (Audio)
bInterfaceSubClass: 0x02 (Audio Streaming)
bInterfaceProtocol: 0x00
iInterface: 0x00
Interface Descriptor:
bInterfaceNumber: 0x01
bAlternateSetting: 0x01
bNumEndpoints: 0x01
bInterfaceClass: 0x01 (Audio)
bInterfaceSubClass: 0x02 (Audio Streaming)
bInterfaceProtocol: 0x00
iInterface: 0x00
Audio Streaming Class Specific Interface Descriptor:
bLength: 0x07
bDescriptorType: 0x24
bDescriptorSubtype: 0x01
bTerminalLink: 0x0C
bDelay: 0x01
wFormatTag: 0x0001 (PCM)
Audio Streaming Format Type Descriptor:
bLength: 0x0E
bDescriptorType: 0x24
bDescriptorSubtype: 0x02
bFormatType: 0x01
bNrChannels: 0x02
bSubframeSize: 0x02
bBitResolution: 0x10
bSamFreqType: 0x00
tLowerSamFreq: 0x001F40 (8000 Hz)
tUpperSamFreq: 0x00BB80 (48000 Hz)
Endpoint Descriptor:
bEndpointAddress: 0x01
Transfer Type: Isochronous
wMaxPacketSize: 0x00C0 (192)
wInterval: 0x0001
bSyncAddress: 0x00
Audio Streaming Class Specific Audio Data Endpoint Descriptor:
bLength: 0x07
bDescriptorType: 0x25
bDescriptorSubtype: 0x01
bmAttributes: 0x01
bLockDelayUnits: 0x00
wLockDelay: 0x0000
Interface Descriptor:
bInterfaceNumber: 0x01
bAlternateSetting: 0x02
bNumEndpoints: 0x01
bInterfaceClass: 0x01 (Audio)
bInterfaceSubClass: 0x02 (Audio Streaming)
bInterfaceProtocol: 0x00
iInterface: 0x00
Audio Streaming Class Specific Interface Descriptor:
bLength: 0x07
bDescriptorType: 0x24
bDescriptorSubtype: 0x01
bTerminalLink: 0x0C
bDelay: 0x01
wFormatTag: 0x0001 (PCM)
Audio Streaming Format Type Descriptor:
bLength: 0x0E
bDescriptorType: 0x24
bDescriptorSubtype: 0x02
bFormatType: 0x01
bNrChannels: 0x01
bSubframeSize: 0x02
bBitResolution: 0x10
bSamFreqType: 0x00
tLowerSamFreq: 0x001F40 (8000 Hz)
tUpperSamFreq: 0x00BB80 (48000 Hz)
Endpoint Descriptor:
bEndpointAddress: 0x01
Transfer Type: Isochronous
wMaxPacketSize: 0x0060 (96)
wInterval: 0x0001
bSyncAddress: 0x00
Audio Streaming Class Specific Audio Data Endpoint Descriptor:
bLength: 0x07
bDescriptorType: 0x25
bDescriptorSubtype: 0x01
bmAttributes: 0x01
bLockDelayUnits: 0x00
wLockDelay: 0x0000
Interface Descriptor:
bInterfaceNumber: 0x02
bAlternateSetting: 0x00
bNumEndpoints: 0x00
bInterfaceClass: 0x01 (Audio)
bInterfaceSubClass: 0x02 (Audio Streaming)
bInterfaceProtocol: 0x00
iInterface: 0x00
Interface Descriptor:
bInterfaceNumber: 0x02
bAlternateSetting: 0x01
bNumEndpoints: 0x01
bInterfaceClass: 0x01 (Audio)
bInterfaceSubClass: 0x02 (Audio Streaming)
bInterfaceProtocol: 0x00
iInterface: 0x00
Audio Streaming Class Specific Interface Descriptor:
bLength: 0x07
bDescriptorType: 0x24
bDescriptorSubtype: 0x01
bTerminalLink: 0x0A
bDelay: 0x00
wFormatTag: 0x0001 (PCM)
Audio Streaming Format Type Descriptor:
bLength: 0x0E
bDescriptorType: 0x24
bDescriptorSubtype: 0x02
bFormatType: 0x01
bNrChannels: 0x01
bSubframeSize: 0x02
bBitResolution: 0x10
bSamFreqType: 0x00
tLowerSamFreq: 0x001F40 (8000 Hz)
tUpperSamFreq: 0x00BB80 (48000 Hz)
Endpoint Descriptor:
bEndpointAddress: 0x84
Transfer Type: Isochronous
wMaxPacketSize: 0x0060 (96)
wInterval: 0x0001
bSyncAddress: 0x00
Audio Streaming Class Specific Audio Data Endpoint Descriptor:
bLength: 0x07
bDescriptorType: 0x25
bDescriptorSubtype: 0x01
bmAttributes: 0x01
bLockDelayUnits: 0x02
wLockDelay: 0x0001
Interface Descriptor:
bInterfaceNumber: 0x03
bAlternateSetting: 0x00
bNumEndpoints: 0x01
bInterfaceClass: 0x03 (HID)
bInterfaceSubClass: 0x00
bInterfaceProtocol: 0x00
iInterface: 0x00
HID Descriptor:
bcdHID: 0x0100
bCountryCode: 0x00
bNumDescriptors: 0x01
bDescriptorType: 0x22
wDescriptorLength: 0x0039
Endpoint Descriptor:
bEndpointAddress: 0x83
Transfer Type: Interrupt
wMaxPacketSize: 0x0002 (2)
bInterval: 0x08
------------------------------------------------------------------------------
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