Igor Furlan
2014-06-22 04:01:14 UTC
I am trying to run I2C interface board
(http://nanorivertech.com/viperboard.html) on CentOS 6.5 installed on
virtual machine (VirtualBox) which runs on MS WINDOWS 7.
When I run my small CLI program, I get back
libusb: error [op_set_configuration] failed, error -1 errno 110
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2
The very same CLI program runs flawlessly on CentOS 6.5 on real
hardware. It runs on 32-bit and 64-bit machine.
The offending code snippet is:
ret = usb_set_configuration(usb_handle, 1);
usb_claim_interface(usb_handle, 0);
/* Flush any remaining bulk transfers pendings */
ret = usb_bulk_read(usb_handle, 0x86, buf, 512, 10);
ret = usb_bulk_read(usb_handle, 0x86, buf, 512, 10);
SOFTWARE:
libusb-1.0.19
libusb-compat-0.1.5
No, I can __not__ convert the source code for my CLI program to use
ONLY the libusb and not libusb-compat.
Igor
(http://nanorivertech.com/viperboard.html) on CentOS 6.5 installed on
virtual machine (VirtualBox) which runs on MS WINDOWS 7.
When I run my small CLI program, I get back
libusb: error [op_set_configuration] failed, error -1 errno 110
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2
The very same CLI program runs flawlessly on CentOS 6.5 on real
hardware. It runs on 32-bit and 64-bit machine.
The offending code snippet is:
ret = usb_set_configuration(usb_handle, 1);
usb_claim_interface(usb_handle, 0);
/* Flush any remaining bulk transfers pendings */
ret = usb_bulk_read(usb_handle, 0x86, buf, 512, 10);
ret = usb_bulk_read(usb_handle, 0x86, buf, 512, 10);
SOFTWARE:
libusb-1.0.19
libusb-compat-0.1.5
No, I can __not__ convert the source code for my CLI program to use
ONLY the libusb and not libusb-compat.
Igor