[libhid-discuss] retrieving large HID descriptor bytes
stone mike
vrspace1987 at yahoo.com.tw
Tue Jun 15 17:34:10 UTC 2010
Hello all,
I developed a hid device. It was tested on Windows and worked fine.
But on ubuntu 9.04 the libhid test got a very large descriptor bytes.
Can anyone help me? I appreciate the help.
lsusb and hid test information as following:
lsusb ****************************************
Bus 008 Device 003: ID 09d9:64df KRF Tech, Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x09d9 KRF Tech, Ltd
idProduct 0x64df
bcdDevice 0.01
iManufacturer 3
iProduct 2
iSerial 4
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 1
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 28
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0018 1x 24 bytes
bInterval 2
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
run test********************************************************
NOTICE: hid_init(): libhid 0.2.15+20060325.0.0 is being initialized.
TRACE: hid_init(): initialising USB subsystem...
TRACE: hid_init(): scanning for USB busses...
TRACE: hid_init(): scanning for USB devices...
NOTICE: hid_init(): successfully initialised HID library.
TRACE: hid_new_HIDInterface(): creating a new HIDInterface instance...
TRACE: hid_force_open(): forcefully opening a device interface according to matching criteria...
TRACE: hid_get_usb_handle(): acquiring handle for a USB device...
TRACE: hid_find_usb_device(): enumerating USB busses...
TRACE: hid_find_usb_device(): enumerating USB devices on bus 002...
TRACE: hid_find_usb_device(): inspecting USB device 002/001[0]...
TRACE: hid_compare_usb_device(): comparing match specifications to USB device...
TRACE: hid_compare_usb_device(): inspecting vendor ID...
TRACE: hid_compare_usb_device(): no match on vendor ID.
TRACE: hid_compare_usb_device(): inspecting product ID...
TRACE: hid_compare_usb_device(): no match on product ID.
TRACE: hid_compare_usb_device(): no custom matching function supplied.
NOTICE: hid_find_usb_device(): vendor 0x1d6b of USB device 002/001[0] does not match 0x09d9.
TRACE: hid_find_usb_device(): enumerating USB devices on bus 008...
TRACE: hid_find_usb_device(): inspecting USB device 008/003[0]...
TRACE: hid_compare_usb_device(): comparing match specifications to USB device...
TRACE: hid_compare_usb_device(): inspecting vendor ID...
TRACE: hid_compare_usb_device(): match on vendor ID: 0x09d9.
TRACE: hid_compare_usb_device(): inspecting product ID...
TRACE: hid_compare_usb_device(): match on product ID: 0x64df.
TRACE: hid_compare_usb_device(): no custom matching function supplied.
NOTICE: hid_find_usb_device(): found a matching USB device 008/003[0].
TRACE: hid_force_open(): claiming USB device 008/003[0].
TRACE: hid_os_force_claim(): failed to claim USB device 008/003[0], trying 2 more time(s)...
TRACE: hid_os_force_claim(): detaching kernel driver from USB device 008/003[0]...
TRACE: hid_os_force_claim(): trying again to claim USB device 008/003[0]...
NOTICE: hid_force_open(): successfully claimed USB device 008/003[0].
TRACE: hid_init_parser(): initialising the HID parser for USB Device 008/003[0]...
TRACE: hid_init_parser(): allocating space for HIDData structure...
TRACE: hid_init_parser(): successfully allocated memory for HIDData strcture.
TRACE: hid_init_parser(): allocating space for HIDParser structure...
TRACE: hid_init_parser(): successfully allocated memory for HIDParser strcture.
NOTICE: hid_init_parser(): successfully initialised the HID parser for USB Device 008/003[0].
TRACE: hid_prepare_hid_descriptor(): initialising the HID descriptor for USB device 008/003[0]...
TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB device 008/003[0]...
NOTICE: hid_prepare_hid_descriptor(): successfully initialised HID descriptor for USB device 008/003[0] (41984 bytes).
TRACE: hid_prepare_report_descriptor(): initialising the report descriptor for USB device 008/003[0]...
ERROR: hid_prepare_report_descriptor(): report descriptor size for USB device 008/003[0] exceeds maximum size: 41984 > 6144.
TRACE: hid_close(): closing USB device 008/003[0]...
TRACE: hid_close(): closing handle of USB device 008/003[0]...
NOTICE: hid_close(): successfully closed USB device 008/003[0].
TRACE: hid_reset_parser(): resetting the HID parser for USB device 008/003[0]...
TRACE: hid_close(): freeing memory allocated for HID parser...
TRACE: hid_close(): resetting HIDInterface...
hid_force_open failed with return code 16
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20100616/d5083f78/attachment.htm>
More information about the libhid-discuss
mailing list