[libhid-discuss] Unable to connect to USB device at the second run.

Johan Uiterwijk Winkel juw at dds.nl
Fri Jan 22 09:19:02 UTC 2010


Hello All.

currently we are trying to use an HD usb device. The problem is the following:

- The first time the (attached) slightly changed version of  
test_libhid.c is run, there is no problem, the device is connecting  
and the communication is possible. When the test programm is run for  
the second time most of the time we are unable to connect to the  
device. The only solution is unplugging / plugging the device.

Resetting the USB device using libusb also does not solve the problem.

Debug output of libhid and libusb does not give me any clue what is wrong.

When pressing control-c during the execution of the program we are  
able to restart the programm without any problem multiple times.


Does anyone have a clue why the program is behaving this way ?  
Currently I am clueless.

Kind regards,

Johan Uiterwijk Winkel.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_libhid.c
Type: text/x-csrc
Size: 11019 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20100122/abf887c9/attachment.c>


More information about the libhid-discuss mailing list