From: Satpal C. <sa...@pi...> - 2011-07-21 12:43:41
|
Hi, Thanks for that I implement the patch from ticket 56 (had to do it manually, got errors when importing using mercurial) All is working now. Thanks Satpal -----Original Message----- From: Xiaofan Chen [mailto:xia...@gm...] Sent: 20 July 2011 04:14 To: Satpal Chander Cc: lib...@li... Subject: Re: [Libusb-devel] Problems with sync bulk transfer linux On Tue, Jul 19, 2011 at 8:43 PM, Satpal Chander <sa...@pi...> wrote: > Hi All, > > I'm currently developing the linux driver for our usb product, using > libusb > 1.0.8 and the usb hardware is a cypress fx2 chip. > > I have been developing mostly using a virtual machine(Virtual Box with > usb 2 extension pack) and Ubuntu 10.10 32bit on window 7 64 bit host (core 2 duo). > > Whilst developing the code I have been able to get libusb to send the > data via a Sync bulk transfer, this works absolutely fine on the VM. > > However I recently started testing the software on a 'real' linux > hardware (core 2 duo) running the same Ubuntu 10.10 32bit OS the sync > bulk transfer fails, e.g. libusb never returns from the sync bulk transfer call. > > I couldn't understand why this would be the case on the real hardware. I am guessing here but you have not provide enough details like the debug log. You may be hitting some bugs related to libusb-1.0.8 which may have already been fixed in libusb-stuge. You may want to give it a try. http://git.libusb.org/?p=libusb-stuge.git;a=summary;js=1 The following ticket may also apply your case. You might want to try the patch as well on top of 1.0.8 to see it that helps. http://www.libusb.org/ticket/56 -- Xiaofan |