Hi,
I try to get a HID report descriptor using lsusb from usbutils-0.8 package
for 3 devices:
1/ Microsoft Optical IntelliMouse
2/ a Sun mouse
3/ a Sun keyboard
and all is ok except on the HID report descriptor.
Here is what lsusb said to me for device 1/:
===============
Bus 001 Device 002: ID 045e:0039 Microsoft Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x045e Microsoft Corp.
idProduct 0x0039
bcdDevice 1.21
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 72
cannot get report descriptor
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 4
bInterval 10
Language IDs: (length=24)
0409 English(US)
0809 English(UK)
0c09 English(Australian)
1009 English(Canadian)
1409 English(New Zealand)
1809 English(Ireland)
1c09 English(South Africa)
2009 English(Jamaica)
2409 English(Carribean)
2809 English(Belize)
2c09 English(Trinidad)
===============
I have analysed the code given in lsusb.c accordingly with the HID spec
document, and I find that the line 1004 seems not to be bugged:
if ((n = usb_control_msg(
fd, 0x81 , 0x06, 0x22<<8,
interface_number, len, dbuf)) < 0)
(I understand that USB_REQ_GET_DESCRIPTOR == 0x06
and that USB_DT_REPORT == 0x22...)
So what's going wrong ?
I have run this experience under 2.2.18 and 2.4 kernel (SuSE 7.1) on Intel
based computer.
Thanks,
Bod
--
Olivier Beaudoux
ESEO
4 rue Merlet de la Boulaye, BP 926
49009 Angers cedex 01
Tel: +33 (2) 41-86-67-67
+33 (2) 41-86-67-05 (ligne directe)
Fax: +33 (2) 41-87-99-27
Email: [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel