[libhid-discuss] libhid can not open HID device on Ubuntu
Ali Asad
Asad.Ali at gemalto.com
Sat Mar 7 05:11:18 UTC 2009
Hi ,
I am using libhid on Ubuntu to connect to a composit USB device that enumerates as a mass storage as well as HID device. When using the sample code of libhid, the call hid_force_open() fails with the following printout, and return code of 12. Any ideas what could cause this.
Much appreciate your help.
regards,
--- asad
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 004...
TRACE: hid_find_usb_device(): inspecting USB device 004/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 004/001[0] does not match 0x05dc.
TRACE: hid_find_usb_device(): enumerating USB devices on bus 003...
TRACE: hid_find_usb_device(): inspecting USB device 003/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 003/001[0] does not match 0x05dc.
TRACE: hid_find_usb_device(): enumerating USB devices on bus 002...
TRACE: hid_find_usb_device(): inspecting USB device 002/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(): 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 0x046d of USB device 002/003[0] does not match 0x05dc.
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 0x05dc.
TRACE: hid_find_usb_device(): enumerating USB devices on bus 001...
TRACE: hid_find_usb_device(): inspecting USB device 001/004[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: 0x05dc.
TRACE: hid_compare_usb_device(): inspecting product ID...
TRACE: hid_compare_usb_device(): match on product ID: 0x0802.
TRACE: hid_compare_usb_device(): no custom matching function supplied.
NOTICE: hid_find_usb_device(): found a matching USB device 001/004[0].
TRACE: hid_force_open(): claiming USB device 001/004[0].
TRACE: hid_os_force_claim(): failed to claim USB device 001/004[0], trying 2 more time(s)...
TRACE: hid_os_force_claim(): detaching kernel driver from USB device 001/004[0]...
WARNING: hid_os_force_claim(): failed to detach kernel driver from USB device 001/004[0]...
WARNING: hid_force_open(): failed to claim USB device 001/004[0].
TRACE: hid_close(): closing USB device 001/004[0]...
TRACE: hid_close(): closing handle of USB device 001/004[0]...
NOTICE: hid_close(): successfully closed USB device 001/004[0].
TRACE: hid_close(): freeing memory allocated for HID parser...
TRACE: hid_close(): resetting HIDInterface...
hid_force_open failed with return code 12
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20090307/9a6d22f2/attachment.htm
More information about the libhid-discuss
mailing list