2004-01-06 18:33:18

by Robin Rosenberg

[permalink] [raw]
Subject: USB timeout Canon Powsrshot S30


I'm having problem with retrieving av big avi from my camera. I get a timeout. The avi is just above 10MB which
is about as large as it can be. Retrieving the thumbinail works fine. This is what comes in the log with USB_DEBUG set.

The camera uses PTP for picture transfer, not USB Mass Storage. I have not had any problems with this camera before,
but I have not had larger files that ~5MB either. The same problem occurs with any kernel (2.4 mandrake, 2.6 vanilla
or 2.6 mandrake).

Can I change the timeout somehow? There are lots of modules and I'm not sure which one is responsible for what.

Jan 6 12:28:28 h6n2fls33o811 kernel: drivers/usb/core/usb.c: registered new driver usbfs
Jan 6 12:28:28 h6n2fls33o811 kernel: drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
Jan 6 12:28:28 h6n2fls33o811 kernel: uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
Jan 6 12:28:28 h6n2fls33o811 kernel: hub 1-0:1.0: USB hub found
Jan 6 12:28:02 h6n2fls33o811 usb: Initierar USB-kontroller (usb-uhci): succeeded
Jan 6 12:28:03 h6n2fls33o811 usb: Monterar USB-filsystem succeeded
Jan 6 12:33:45 h6n2fls33o811 kernel: hub 1-0:1.0: new USB device on port 2, assigned address 2
Jan 6 12:33:57 h6n2fls33o811 kernel: usb 1-2: bulk timeout on ep3in

(The occasional swedish i18in is I believe close enough to the english original to be understood, but I don't like editing logs).

-- robin




2004-01-13 17:52:11

by Patrick Mansfield

[permalink] [raw]
Subject: Re: USB timeout Canon Powsrshot S30

On Tue, Jan 06, 2004 at 07:27:00PM +0100, Robin Rosenberg wrote:
>
> I'm having problem with retrieving av big avi from my camera. I get a timeout. The avi is just above 10MB which
> is about as large as it can be. Retrieving the thumbinail works fine. This is what comes in the log with USB_DEBUG set.
>
> The camera uses PTP for picture transfer, not USB Mass Storage. I have not had any problems with this camera before,
> but I have not had larger files that ~5MB either. The same problem occurs with any kernel (2.4 mandrake, 2.6 vanilla
> or 2.6 mandrake).
>
> Can I change the timeout somehow? There are lots of modules and I'm not sure which one is responsible for what.
>
> Jan 6 12:28:28 h6n2fls33o811 kernel: drivers/usb/core/usb.c: registered new driver usbfs
> Jan 6 12:28:28 h6n2fls33o811 kernel: drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
> Jan 6 12:28:28 h6n2fls33o811 kernel: uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
> Jan 6 12:28:28 h6n2fls33o811 kernel: hub 1-0:1.0: USB hub found
> Jan 6 12:28:02 h6n2fls33o811 usb: Initierar USB-kontroller (usb-uhci): succeeded
> Jan 6 12:28:03 h6n2fls33o811 usb: Monterar USB-filsystem succeeded
> Jan 6 12:33:45 h6n2fls33o811 kernel: hub 1-0:1.0: new USB device on port 2, assigned address 2
> Jan 6 12:33:57 h6n2fls33o811 kernel: usb 1-2: bulk timeout on ep3in
>
> (The occasional swedish i18in is I believe close enough to the english original to be understood, but I don't like editing logs).

Are you using gphoto2? It passes down the timeout value to the kernel, try
changing the timeout there.

-- Patrick Mansfield

2004-01-14 09:03:00

by Robin Rosenberg

[permalink] [raw]
Subject: Re: USB timeout Canon Powsrshot S30

tisdagen den 13 januari 2004 18.51 skrev Patrick Mansfield:
> Are you using gphoto2? It passes down the timeout value to the kernel, try
> changing the timeout there.

Couldn't find a timeout setting, but I tried the --debug option which gives this

4.327410 canon/usb.c(2): canon_usb_long_dialogue: ERROR: Packet of size 10714682 is too big (max reasonable size specified is 10485760)
4.327876 canon/usb.c(2): canon_usb_get_file: canon_usb_long_dialogue() returned error (-102).
4.328175 canon/library.c(2): get_file_func: getting image data failed, returned -102
4.328444 libgphoto2/gphoto2-filesys.c(2): Download of 'MVI_1601.AVI' from '/DCIM/116CANON' (type 1) failed. Reason: 'Corrupted data'
4.328757 gphoto2-camera(2): Operation failed!
*** Fel (-102: 'Corrupted data') ***

Which probably sends me off to another list.

The timeout message in the usb log is quite disinformative (if the message above is correct).

But you did help me get further. Thanks.

-- robin