Hi everybody, <br>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:<br><br>NOTICE: hid_init(): libhid 0.2.17 is being initialized.<br>
  TRACE: hid_init(): initialising USB subsystem...<br>  TRACE: hid_init(): scanning for USB busses...<br>  TRACE: hid_init(): scanning for USB devices...<br> NOTICE: hid_init(): successfully initialised HID library.<br>  TRACE: hid_new_HIDInterface(): creating a new HIDInterface instance...<br>
  TRACE: hid_force_open(): forcefully opening a device interface according to matching criteria...<br>  TRACE: hid_get_usb_handle(): acquiring handle for a USB device...<br>  TRACE: hid_find_usb_device(): enumerating USB busses...<br>
  TRACE: hid_find_usb_device(): enumerating USB devices on bus 008...<br>  TRACE: hid_find_usb_device(): inspecting USB device 008/002[0]...<br>  TRACE: hid_compare_usb_device(): comparing match specifications to USB device...<br>
  TRACE: hid_compare_usb_device(): inspecting vendor ID...<br>  TRACE: hid_compare_usb_device(): match on vendor ID: 0x046d.<br>  TRACE: hid_compare_usb_device(): inspecting product ID...<br>  TRACE: hid_compare_usb_device(): no match on product ID.<br>
  TRACE: hid_compare_usb_device(): no custom matching function supplied.<br> NOTICE: hid_find_usb_device(): product 0xc045 of USB device 008/002[0] does not match 0x0050.<br>  TRACE: hid_find_usb_device(): inspecting USB device 008/001[0]...<br>
  TRACE: hid_compare_usb_device(): comparing match specifications to USB device...<br>  TRACE: hid_compare_usb_device(): inspecting vendor ID...<br>  TRACE: hid_compare_usb_device(): match on vendor ID: 0x1d6b.<br>  TRACE: hid_compare_usb_device(): inspecting product ID...<br>
  TRACE: hid_compare_usb_device(): no match on product ID.<br>  TRACE: hid_compare_usb_device(): no custom matching function supplied.<br> NOTICE: hid_find_usb_device(): product 0x0001 of USB device 008/001[0] does not match 0x0050.<br>
  TRACE: hid_find_usb_device(): enumerating USB devices on bus 007...<br>  TRACE: hid_find_usb_device(): inspecting USB device 007/004[0]...<br>  TRACE: hid_find_usb_device(): Could not claim interface 0...<br><br>  TRACE: hid_compare_usb_device(): comparing match specifications to USB device...<br>
  TRACE: hid_compare_usb_device(): inspecting vendor ID...<br>  TRACE: hid_compare_usb_device(): match on vendor ID: 0x0461.<br>  TRACE: hid_compare_usb_device(): inspecting product ID...<br>  TRACE: hid_compare_usb_device(): match on product ID: 0x0050.<br>
  TRACE: hid_compare_usb_device(): no custom matching function supplied.<br> NOTICE: hid_find_usb_device(): found a matching USB device 007/004[0].<br>  TRACE: hid_force_open(): claiming USB device 007/004[0].<br> NOTICE: hid_force_open(): successfully claimed USB device 007/004[0].<br>
  TRACE: hid_init_parser(): initialising the HID parser for USB Device 007/004[0]...<br>  TRACE: hid_init_parser(): allocating space for HIDData structure...<br>  TRACE: hid_init_parser(): successfully allocated memory for HIDData strcture.<br>
  TRACE: hid_init_parser(): allocating space for HIDParser structure...<br>  TRACE: hid_init_parser(): successfully allocated memory for HIDParser strcture.<br> NOTICE: hid_init_parser(): successfully initialised the HID parser for USB Device 007/004[0].<br>
  TRACE: hid_prepare_hid_descriptor(): initialising the HID descriptor for USB device 007/004[0]...<br>  TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB device 007/004[0]...<br>WARNING: hid_prepare_hid_descriptor(): failed to get HID descriptor for USB device 007/004[0]:error sending control message: Protocol error<br>
  TRACE: hid_close(): closing USB device 007/004[0]...<br>  TRACE: hid_close(): closing handle of USB device 007/004[0]...<br> NOTICE: hid_close(): successfully closed USB device 007/004[0].<br>  TRACE: hid_close(): remove hidif from open list...<br>
  TRACE: hid_reset_parser(): resetting the HID parser for USB device 007/004[0]...<br>  TRACE: hid_close(): freeing memory allocated for HID parser...<br>  TRACE: hid_close(): resetting HIDInterface...<br>hid_force_open failed with return code 13<br>
<br>Note: Im running this program as a sudoer.<br><br>Can you please give some elements to resolve this problem??<br><br>Cheers,<br>Wa3ziz<br>