Re: [Libusbx-devel] bulk transfer error centos 6.5 (32-bit) on VirtualBox running on Windows 7 (64-bit)

2014-06-24 Thread Igor Furlan
wow this was a hammer thanks for explaining it in clear profound words I will keep it in mind before write another sentence to the libusb-devel list. Thanks and have a nice day Igor On Tue, Jun 24, 2014 at 9:42 AM, Tim Roberts wrote: > Igor Furlan wrote: >> On Mon, Jun 23

Re: [Libusbx-devel] bulk transfer error centos 6.5 (32-bit) on VirtualBox running on Windows 7 (64-bit)

2014-06-24 Thread Igor Furlan
On Mon, Jun 23, 2014 at 10:50 AM, Tim Roberts wrote: > > Did you check the API documentation? The last parameter to usb_control_msg > is the timeout in milliseconds. TNX for the hint. I've tried to increase the timeout, It did not help. > To a certain extent, however, I am just blowing smoke.

Re: [Libusbx-devel] bulk transfer error centos 6.5 (32-bit) on VirtualBox running on Windows 7 (64-bit)

2014-06-23 Thread Igor Furlan
On Sun, Jun 22, 2014 at 11:41 PM, Tim Roberts wrote: > On Jun 22, 2014, at 1:00 PM, Igor Furlan wrote: > . > > It returns -110 (aka it fails). > > You know that -110 tells you more than just “it fails”, right? Errno 110 > is ETIMEDOUT. Do you have a very short timeou

Re: [Libusbx-devel] bulk transfer error centos 6.5 (32-bit) on VirtualBox running on Windows 7 (64-bit)

2014-06-22 Thread Igor Furlan
Tim, thanks for the reply. I've removed the call to usb_set_configuration. The Error message went away. Now I am facing another problem. A call to usb_claim_interface returns 0 (meaning call was OK). The next call, after the usb_claim_interface, is a call to usb_control_msg. It returns -110

[Libusbx-devel] bulk transfer error centos 6.5 (32-bit) on VirtualBox running on Windows 7 (64-bit)

2014-06-21 Thread Igor Furlan
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_b

Re: [Libusbx-devel] Reverting atexit call of libusb_exit from libusb-compat ?

2013-09-22 Thread Igor Furlan
On Sun, Sep 22, 2013 at 2:37 AM, Hans de Goede wrote: > Not really a trick or a workaround, you just need to make sure > that your application properly closes any devices it has opened > before exiting. Since I am not professional (or even semi professional) programmer, can you, please, point me

Re: [Libusbx-devel] Reverting atexit call of libusb_exit from libusb-compat ?

2013-09-22 Thread Igor Furlan
On Sun, Sep 22, 2013 at 2:43 AM, Ludovic Rousseau wrote: > Are you using libusb-compat? > > if yes, can't you switch to libusbx directly? Yes, I am using libusb-compat. No, I can not switch to libusbx directly because: A) the example code from NANO River uses API based on libusb 0.1 B) my progr

[Libusbx-devel] Reverting atexit call of libusb_exit from libusb-compat ?

2013-09-22 Thread Igor Furlan
Hi Recently I've ordered (and received) two USB based I2C/SPI interfaces from NANO River Technology http://nanorivertech.com/viperboard.html. This board is very useful for the LAB work during the evaluation and debugging of the, so called, 'first silicon'. Based on the sample code for Linux from