[libhid-discuss] hid_force_open() error

Mark S. Townsley mstownsley at gmail.com
Wed Sep 27 17:48:14 UTC 2006


Skipped content of type multipart/alternative-------------- next part --------------
Script started on Wed Sep 27 02:24:06 2006
linux-fqoe:/home/src/test/usb # ./hid
Found Omron BP
current Kernel driver name: 
 NOTICE: hid_init(): libhid libhid (0.2.15+20060325-2.1) unstable; urgency=low.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.
new hidinterface ..
  TRACE: hid_new_HIDInterface(): creating a new HIDInterface instance...
Force open ..
  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 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 0x0000 of USB device 003/001[0] does not match 0x0590.
  TRACE: hid_find_usb_device(): enumerating USB devices on bus 002...
  TRACE: hid_find_usb_device(): inspecting USB device 002/008[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: 0x0590.
  TRACE: hid_compare_usb_device(): inspecting product ID...
  TRACE: hid_compare_usb_device(): match on product ID: 0x0028.
  TRACE: hid_compare_usb_device(): no custom matching function supplied.
 NOTICE: hid_find_usb_device(): found a matching USB device 002/008[0].
  TRACE: hid_force_open(): claiming USB device 002/008[0].
 NOTICE: hid_force_open(): successfully claimed USB device 002/008[0].
  TRACE: hid_init_parser(): initialising the HID parser for USB Device 002/008[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 002/008[0].
  TRACE: hid_prepare_hid_descriptor(): initialising the HID descriptor for USB device 002/008[0]...
  TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB device 002/008[0]...
 NOTICE: hid_prepare_hid_descriptor(): successfully initialised HID descriptor for USB device 002/008[0] (31 bytes).
  TRACE: hid_prepare_report_descriptor(): initialising the report descriptor for USB device 002/008[0]...
  TRACE: hid_prepare_report_descriptor(): retrieving report descriptor for USB device 002/008[0]...
 NOTICE: hid_prepare_report_descriptor(): successfully initialised report descriptor for USB device 002/008[0].
  TRACE: hid_prepare_parser(): setting up the HID parser for USB device 002/008[0]...
  TRACE: hid_reset_parser(): resetting the HID parser for USB device 002/008[0]...
  TRACE: hid_prepare_parser(): dumping the raw report descriptor
  TRACE: hid_prepare_parser(): 0x000: 0x06 0x00 0xff 0x09 0x01 0xa1 0x01 0x09 
  TRACE: hid_prepare_parser(): 0x008: 0x02 0x15 0x00 0x26 0xff 0x00 0x75 0x08 
  TRACE: hid_prepare_parser(): 0x010: 0x95 0x08 0x81 0x82 0x09 0x03 0x91 0x82 
  TRACE: hid_prepare_parser(): 0x018: 0x09 0x04 0x95 0x02 0xb1 0x82 0xc0 
  TRACE: hid_prepare_parser(): parsing the HID tree of USB device 002/008[0]...
 NOTICE: hid_prepare_parser(): successfully set up the HID parser for USB device 002/008[0].
 NOTICE: hid_force_open(): successfully opened USB device 002/008[0].
Writing ID...
device identification of HIDInterface 002/008[0]:
  dev_handle:    0x0804b120
  device:        0x08051168
  location:      002/008
  manufacturer:  OMRON Corporation
  product:       HHX-CABLE-USB1
  TRACE: hid_reset_parser(): resetting the HID parser for USB device 002/008[0]...
  TRACE: hid_dump_tree(): iterating the parse tree for USB device 002/008[0]...
parse tree of HIDInterface 002/008[0]:
  path: 0xff000001.0xff000002; type: 0x80
  path: 0xff000001.0x00000000; type: 0x80
  path: 0xff000001.0x00000000; type: 0x80
  path: 0xff000001.0x00000000; type: 0x80
  path: 0xff000001.0x00000000; type: 0x80
  path: 0xff000001.0x00000000; type: 0x80
  path: 0xff000001.0x00000000; type: 0x80
  path: 0xff000001.0x00000000; type: 0x80
  path: 0xff000001.0xff000003; type: 0x90
  path: 0xff000001.0x00000000; type: 0x90
  path: 0xff000001.0x00000000; type: 0x90
  path: 0xff000001.0x00000000; type: 0x90
  path: 0xff000001.0x00000000; type: 0x90
  path: 0xff000001.0x00000000; type: 0x90
  path: 0xff000001.0x00000000; type: 0x90
  path: 0xff000001.0x00000000; type: 0x90
  path: 0xff000001.0xff000004; type: 0xb0
  path: 0xff000001.0x00000000; type: 0xb0
  TRACE: hid_reset_parser(): resetting the HID parser for USB device 002/008[0]...
Trying to write bytes...
  TRACE: hid_set_output_report(): looking up report ID...
  TRACE: hid_prepare_parse_path(): preparing search path of depth 3 for parse tree of USB device 002/008[0]...
  TRACE: hid_prepare_parse_path(): search path prepared for parse tree of USB device 002/008[0].
 NOTICE: hid_find_object(): found requested item.
  TRACE: hid_set_output_report(): sending report ID 0x00 (length: 6) to USB device 002/008[0]...
WARNING: hid_set_output_report(): failed to send report to USB device 002/008[0]:error sending control message: Connection timed out.
hid_set_output_report failed with return code 19
  TRACE: hid_set_output_report(): looking up report ID...
  TRACE: hid_prepare_parse_path(): preparing search path of depth 3 for parse tree of USB device 002/008[0]...
  TRACE: hid_prepare_parse_path(): search path prepared for parse tree of USB device 002/008[0].
 NOTICE: hid_find_object(): found requested item.
  TRACE: hid_set_output_report(): sending report ID 0x00 (length: 6) to USB device 002/008[0]...
WARNING: hid_set_output_report(): failed to send report to USB device 002/008[0]:error sending control message: Connection timed out.
hid_set_output_report failed with return code 19
  TRACE: hid_close(): closing USB device 002/008[0]...
  TRACE: hid_close(): closing handle of USB device 002/008[0]...
 NOTICE: hid_close(): successfully closed USB device 002/008[0].
  TRACE: hid_reset_parser(): resetting the HID parser for USB device 002/008[0]...
  TRACE: hid_close(): freeing memory allocated for HID parser...
  TRACE: hid_close(): resetting HIDInterface...
 NOTICE: hid_cleanup(): successfully deinitialised HID library.
linux-fqoe:/home/src/test/usb # exit

Script done on Wed Sep 27 02:28:48 2006
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myprog.c.c
Type: application/octet-stream
Size: 4182 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20060927/ead304b2/myprog.c-0001.obj


More information about the libhid-discuss mailing list