Re: [Libusbx-devel] USB3 Error

2013-03-13 Thread Sarah Sharp
On Wed, Mar 13, 2013 at 01:37:35PM +0800, Xiaofan Chen wrote: > On Tue, Mar 12, 2013 at 2:10 PM, Marcus Meissner wrote: > > On Mon, Mar 11, 2013 at 03:30:19PM -0700, Sarah Sharp wrote: > >> On Sat, Mar 09, 2013 at 09:16:53PM +0100, Marcus Meissner wrote: > >> > On Thu, Feb 28, 2013 at 09:32:05AM -

Re: [Libusbx-devel] USB3 Error

2013-03-12 Thread Xiaofan Chen
On Tue, Mar 12, 2013 at 2:10 PM, Marcus Meissner wrote: > On Mon, Mar 11, 2013 at 03:30:19PM -0700, Sarah Sharp wrote: >> On Sat, Mar 09, 2013 at 09:16:53PM +0100, Marcus Meissner wrote: >> > On Thu, Feb 28, 2013 at 09:32:05AM -0800, Sarah Sharp wrote: >> > > On Thu, Feb 28, 2013 at 04:59:36PM +01

Re: [Libusbx-devel] USB3 Error

2013-03-11 Thread Marcus Meissner
On Mon, Mar 11, 2013 at 03:30:19PM -0700, Sarah Sharp wrote: > On Sat, Mar 09, 2013 at 09:16:53PM +0100, Marcus Meissner wrote: > > On Thu, Feb 28, 2013 at 09:32:05AM -0800, Sarah Sharp wrote: > > > On Thu, Feb 28, 2013 at 04:59:36PM +0100, Marcus Meissner wrote: > > > > Hi, > > > > > > > > Someth

Re: [Libusbx-devel] USB3 Error

2013-03-11 Thread Sarah Sharp
On Sat, Mar 09, 2013 at 09:16:53PM +0100, Marcus Meissner wrote: > On Thu, Feb 28, 2013 at 09:32:05AM -0800, Sarah Sharp wrote: > > On Thu, Feb 28, 2013 at 04:59:36PM +0100, Marcus Meissner wrote: > > > Hi, > > > > > > Something must happen after the first PTP session of libgphoto2 has > > > finis

Re: [Libusbx-devel] USB3 Error

2013-03-09 Thread Marcus Meissner
On Thu, Feb 28, 2013 at 09:32:05AM -0800, Sarah Sharp wrote: > On Thu, Feb 28, 2013 at 04:59:36PM +0100, Marcus Meissner wrote: > > Hi, > > > > Something must happen after the first PTP session of libgphoto2 has > > finished. > > > > On closing the connection we try to clear stalls by calling > >

Re: [Libusbx-devel] USB3 Error

2013-03-09 Thread Sipter Bálint
I just tested it. This resolved the issue for me too. Thank you for fixing this! Regards, Bálint 2013/3/9 Marcus Meissner > On Thu, Feb 28, 2013 at 09:32:05AM -0800, Sarah Sharp wrote: > > On Thu, Feb 28, 2013 at 04:59:36PM +0100, Marcus Meissner wrote: > > > Hi, > > > > > > Something must ha

Re: [Libusbx-devel] USB3 Error

2013-02-28 Thread Marcus Meissner
Hi, Something must happen after the first PTP session of libgphoto2 has finished. On closing the connection we try to clear stalls by calling libusb_clear_halt on IN/OUT/INT eps. The second call then fails to send the bulk transfers at all, just like a stalled endpoint. We call PTP specific con

Re: [Libusbx-devel] USB3 Error

2013-02-28 Thread Sarah Sharp
On Thu, Feb 28, 2013 at 04:59:36PM +0100, Marcus Meissner wrote: > Hi, > > Something must happen after the first PTP session of libgphoto2 has > finished. > > On closing the connection we try to clear stalls by calling > libusb_clear_halt on IN/OUT/INT eps. Ah, ok, that's the problem then. Some

Re: [Libusbx-devel] USB3 Error

2013-02-27 Thread Sipter Bálint
Hi, I added Marcus Meissner to the conversation he is the developer of gphoto2, I hope it's not a problem and he can help us. Does the camera > rely on the reset endpoint control transfer as a sort of soft reset? Any hints on how can I verify this? 2013/2/25 Sarah Sharp > On Sat, Feb 23, 2

Re: [Libusbx-devel] USB3 Error

2013-02-25 Thread Sarah Sharp
On Sat, Feb 23, 2013 at 09:18:29PM +0800, Xiaofan Chen wrote: > On Sat, Feb 23, 2013 at 9:06 PM, Sipter Bálint wrote: > > > > 2013/2/22 Xiaofan Chen > >> > >> On Fri, Feb 22, 2013 at 5:31 PM, Sipter Bálint wrote: > >> > Hi, > >> > we would like to use gphoto2 with multiple cameras at the same ti

Re: [Libusbx-devel] USB3 Error

2013-02-23 Thread Xiaofan Chen
On Sat, Feb 23, 2013 at 9:18 PM, Xiaofan Chen wrote: > I can not help further myself. Let's see if Hans and Sarah have more > suggestions. Ticket created here. https://github.com/libusbx/libusbx/issues/92 To OP: This may or may not be a libusbx issue. So you may want to try linux-usb list as wel

Re: [Libusbx-devel] USB3 Error

2013-02-23 Thread Xiaofan Chen
On Sat, Feb 23, 2013 at 9:06 PM, Sipter Bálint wrote: > > 2013/2/22 Xiaofan Chen >> >> On Fri, Feb 22, 2013 at 5:31 PM, Sipter Bálint wrote: >> > Hi, >> > we would like to use gphoto2 with multiple cameras at the same time. The >> > gphoto2 uses libusb(x) when it is communicating with the camera

Re: [Libusbx-devel] USB3 Error

2013-02-23 Thread Sipter Bálint
We tried but it didnt help. https://github.com/libusbx/libusbx/blob/master/libusb/os/linux_usbfs.c#L1707 Here the dpriv->caps is 13 and because of the USBFS_CAP_BULK_SCATTER_GATHER 0x08 the (dpriv->caps & USBFS_CAP_BULK_SCATTER_GATHER) will be true. So the MAX_BULK_BUFFER_LENGTH is not used... An

Re: [Libusbx-devel] USB3 Error

2013-02-22 Thread Xiaofan Chen
On Fri, Feb 22, 2013 at 5:31 PM, Sipter Bálint wrote: > Hi, > we would like to use gphoto2 with multiple cameras at the same time. The > gphoto2 uses libusb(x) when it is communicating with the cameras. > Last time tried to use our bash script with a notebook that only had usb3 > ports(the cameras

Re: [Libusbx-devel] USB3 Error

2013-02-22 Thread Sipter Bálint
oh sorry, try it now. 2013/2/22 Xiaofan Chen > On Fri, Feb 22, 2013 at 5:31 PM, Sipter Bálint wrote: > > Here are the log files: > > Correct run: http://pastebin.com/Nh487CXn > > Second run(error): http://pastebin.com/RrcS3f70 > > Kernel log from the whole time: http://pastebin.com/gL002CrS >

Re: [Libusbx-devel] USB3 Error

2013-02-22 Thread Xiaofan Chen
On Fri, Feb 22, 2013 at 5:31 PM, Sipter Bálint wrote: > Here are the log files: > Correct run: http://pastebin.com/Nh487CXn > Second run(error): http://pastebin.com/RrcS3f70 > Kernel log from the whole time: http://pastebin.com/gL002CrS Your logs are not available to the public. "Private Paste ID

[Libusbx-devel] USB3 Error

2013-02-22 Thread Sipter Bálint
Hi, we would like to use gphoto2 with multiple cameras at the same time. The gphoto2 uses libusb(x) when it is communicating with the cameras. Last time tried to use our bash script with a notebook that only had usb3 ports(the cameras are usb2). Unfortunately we ran into some trouble. When we first