Hi and happy new year,<br><br>I tested with different version of libusb 1.0.8->1.0.12<br>This worked for me : libusb 0.1.12 + libhid from svn<br>But to work, i'm need to tune timeout parameter of function hid_interrupt_read to 0
<br>It doesn't work with a timeout > 0<br><br>I just asked you a problem about closing hid connection : with timeout=0 (hid_interrupt_read), how closing hid connection ?<br>I tried to close hid connection during hid_interrupt_read wait
<br>and after restarting program written in C, it's not possible to receive data from barcode scanner.<br><br>Debug trace with libusb 0.1.12 + libhid from svn :<br><br>usb_set_debug: Setting debugging level to 9 (on)<br>
NOTICE: hid_init(): libhid 0.2.14.0.0 is being initialized.<br> TRACE: hid_init(): initialising USB subsystem...<br>usb_os_init: Found USB VFS at /proc/bus/usb<br> TRACE: hid_init(): scanning for USB busses...<br>usb_os_find_busses: Skipping non bus directory devices
<br>usb_os_find_busses: Skipping non bus directory drivers<br>usb_os_find_busses: Found 001<br> TRACE: hid_init(): scanning for USB devices...<br>usb_os_find_devices: Found 001 on 001<br>usb_os_find_devices: Found 002 on 001
<br>skipped 1 class/vendor specific interface descriptors<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 001...<br> TRACE: hid_find_usb_device(): inspecting USB device 001/001[0]...
<br>Check that you have permissions to write to 001/001 and, if you don't, that you set up hotplug (<a href="http://linux-hotplug.sourceforge.net/">http://linux-hotplug.sourceforge.net/</a>) correctly.<br>USB error: could not claim interface 0: Device or resource busy
<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(): no match on vendor ID.<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(): vendor 0x0000 of USB device 001/001[0] does not match 0x0c2e.
<br> TRACE: hid_find_usb_device(): inspecting USB device 001/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: 0x0c2e.<br> TRACE: hid_compare_usb_device(): inspecting product ID...<br> TRACE: hid_compare_usb_device(): match on product ID: 0x0200.<br> TRACE: hid_compare_usb_device(): no custom matching function supplied.
<br> NOTICE: hid_find_usb_device(): found a matching USB device 001/002[0].<br> TRACE: hid_force_open(): claiming USB device 001/002[0].<br> NOTICE: hid_force_open(): successfully claimed USB device 001/002[0].<br> TRACE: hid_init_parser(): initialising the HID parser for USB Device 001/002[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 001/002[0].<br> TRACE: hid_prepare_hid_descriptor(): initialising the HID descriptor for USB device 001/002[0]...
<br> TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB device 001/002[0]...<br> NOTICE: hid_prepare_hid_descriptor(): successfully initialised HID descriptor for USB device 001/002[0] (63 bytes).<br>
TRACE: hid_prepare_report_descriptor(): initialising the report descriptor for USB device 001/002[0]...<br> TRACE: hid_prepare_report_descriptor(): retrieving report descriptor for USB device 001/002[0]...<br> NOTICE: hid_prepare_report_descriptor(): successfully initialised report descriptor for USB device 001/002[0].
<br> TRACE: hid_prepare_parser(): setting up the HID parser for USB device 001/002[0]...<br> TRACE: hid_reset_parser(): resetting the HID parser for USB device 001/002[0]...<br> TRACE: hid_prepare_parser(): dumping the raw report descriptor
<br> TRACE: hid_prepare_parser(): 0x000: 0x05 0x01 0x09 0x06 0xa1 0x01 0x05 0x07 <br> TRACE: hid_prepare_parser(): 0x008: 0x19 0xe0 0x29 0xe7 0x15 0x00 0x25 0x01 <br> TRACE: hid_prepare_parser(): 0x010: 0x75 0x01 0x95 0x08 0x81 0x02 0x95 0x01
<br> TRACE: hid_prepare_parser(): 0x018: 0x75 0x08 0x81 0x01 0x95 0x05 0x75 0x01 <br> TRACE: hid_prepare_parser(): 0x020: 0x05 0x08 0x19 0x01 0x29 0x05 0x91 0x02 <br> TRACE: hid_prepare_parser(): 0x028: 0x95 0x01 0x75 0x03 0x91 0x01 0x95 0x06
<br> TRACE: hid_prepare_parser(): 0x030: 0x75 0x08 0x15 0x00 0x25 0x65 0x05 0x07 <br> TRACE: hid_prepare_parser(): 0x038: 0x19 0x00 0x29 0x65 0x81 0x00 0xc0 <br> TRACE: hid_prepare_parser(): parsing the HID tree of USB device 001/002[0]...
<br> NOTICE: hid_prepare_parser(): successfully set up the HID parser for USB device 001/002[0].<br> NOTICE: hid_force_open(): successfully opened USB device 001/002[0].<br>Begin Run() ...<br>USB_ENDPOINT_IN = 128<br> TRACE: hid_interrupt_read(): retrieving interrupt report from device 001/002[0] ...
<br><br>