libhid::error sending control message: Protocol error !!
2011-02-25 20:01:58 GMT
Hi everybody,
Im knew to libhid. I try to write a user-space driver to control a usb device. I started whit the example code, but i get the following error:
NOTICE: hid_init(): libhid 0.2.17 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 008...
TRACE: hid_find_usb_device(): inspecting USB device 008/002[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: 0x046d.
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(): product 0xc045 of USB device 008/002[0] does not match 0x0050.
TRACE: hid_find_usb_device(): inspecting USB device 008/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(): match on vendor ID: 0x1d6b.
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(): product 0x0001 of USB device 008/001[0] does not match 0x0050.
TRACE: hid_find_usb_device(): enumerating USB devices on bus 007...
TRACE: hid_find_usb_device(): inspecting USB device 007/004[0]...
TRACE: hid_find_usb_device(): Could not claim interface 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: 0x0461.
TRACE: hid_compare_usb_device(): inspecting product ID...
TRACE: hid_compare_usb_device(): match on product ID: 0x0050.
TRACE: hid_compare_usb_device(): no custom matching function supplied.
NOTICE: hid_find_usb_device(): found a matching USB device 007/004[0].
TRACE: hid_force_open(): claiming USB device 007/004[0].
NOTICE: hid_force_open(): successfully claimed USB device 007/004[0].
TRACE: hid_init_parser(): initialising the HID parser for USB Device 007/004[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 007/004[0].
TRACE: hid_prepare_hid_descriptor(): initialising the HID descriptor for USB device 007/004[0]...
TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB device 007/004[0]...
WARNING: hid_prepare_hid_descriptor(): failed to get HID descriptor for USB device 007/004[0]:error sending control message: Protocol error
TRACE: hid_close(): closing USB device 007/004[0]...
TRACE: hid_close(): closing handle of USB device 007/004[0]...
NOTICE: hid_close(): successfully closed USB device 007/004[0].
TRACE: hid_close(): remove hidif from open list...
TRACE: hid_reset_parser(): resetting the HID parser for USB device 007/004[0]...
TRACE: hid_close(): freeing memory allocated for HID parser...
TRACE: hid_close(): resetting HIDInterface...
hid_force_open failed with return code 13
Note: Im running this program as a sudoer.
Can you please give some elements to resolve this problem??
Cheers,
Wa3ziz
_______________________________________________ libhid-discuss mailing list libhid-discuss <at> lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss http://libhid.alioth.debian.org/
RSS Feed