Hi Jose,

On Thursday 02 October 2008, Jose Ant. wrote:
> I'll post the logs. First, loading module (modprobe uvcvideo trace=15):
>
> ---
[snip]
> ---
>
> -> Now i connect the webcam (really is a phone):
>
> ---
> usb 2-2: new full speed USB device using ohci_hcd and address 2
> usb 2-2: configuration #1 chosen from 1 choice
> uvcvideo: Probing known UVC device 2 (0e8d:0004)
> uvcvideo: Found format MJPEG.
> uvcvideo: - 160x120 (20.0 fps)
> uvcvideo: - 320x240 (20.0 fps)
> uvcvideo: - 640x480 (20.0 fps)
> uvcvideo: Found a Status endpoint (addr 83).
> uvcvideo: Found UVC 1.00 device OT-C701/ (0e8d:0004)
[snip]
> uvcvideo: Scanning UVC chain: OT 2 <- PU 3 <- IT 1
> uvcvideo: Found a valid video chain (1 -> 2).
> uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -62 (exp. 26).
> uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -62 (exp. 26).
> uvcvideo: Failed to initialize the device (-5).
> usb 2-2: USB disconnect, address 2
> usb 2-2: new full speed USB device using ohci_hcd and address 3

Did you disconnect and reconnect the camera ? Error -62 is -ETIME and can mean 
that the device has been disconnected but the USB hub (which can be the root 
hub inside your computer) hasn't notified the operating system yet. The 
disconnect message hints that this is probably the case.

If you didn't disconnect the device this doesn't seem too serious as the 
device reconnects and is then properly detected. It can caused by some kind 
of transient electrical/cable issue.

> usb 2-2: configuration #1 chosen from 1 choice
> uvcvideo: Probing known UVC device 2 (0e8d:0004)
> uvcvideo: Found format MJPEG.
> uvcvideo: - 160x120 (20.0 fps)
> uvcvideo: - 320x240 (20.0 fps)
> uvcvideo: - 640x480 (20.0 fps)
> uvcvideo: Found a Status endpoint (addr 83).
> uvcvideo: Found UVC 1.00 device OT-C701/ (0e8d:0004)
[snip]
> uvcvideo: Scanning UVC chain: OT 2 <- PU 3 <- IT 1
> uvcvideo: Found a valid video chain (1 -> 2).
> uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -32 (exp. 26).

Don't worry about this error. This is not fatal.

> input: OT-C701/ as /class/input/input5
> ---
>
> -> Now I launch luvcview (luvcview -w, because i'm using compiz)
>
> ---
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 320x240.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Setting frame interval to 1/15 (666666).
> ---
>
> -> All's ok. Let's try ekiga (ekiga-2.0.12)
>
> --
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x32315559 (YU12): 320x240.
> uvcvideo: Unsupported format 0x32315559.
> uvcvideo: Trying format 0x34424752 (RGB4): 320x240.
> uvcvideo: Unsupported format 0x34424752.
> uvcvideo: Trying format 0x34524742 (BGR4): 320x240.
> uvcvideo: Unsupported format 0x34524742.
> uvcvideo: Trying format 0x33424752 (RGB3): 320x240.
> uvcvideo: Unsupported format 0x33424752.
> uvcvideo: Trying format 0x33524742 (BGR3): 320x240.
> uvcvideo: Unsupported format 0x33524742.
> uvcvideo: Trying format 0x47504a4d (MJPG): 320x240.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Setting frame interval to 1/20 (500000).
> uvcvideo: Setting frame interval to 1/30 (333333).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 176x144.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 352x288.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 352x240.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Trying format 0x47504a4d (MJPG): 320x240.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: Setting frame interval to 1/20 (500000).
> uvcvideo: Failed to query (132) UVC control 2 (unit 3) : -110 (exp. 2).
> uvcvideo: Failed to query (135) UVC control 7 (unit 3) : -110 (exp. 2).
> uvcvideo: Failed to query (135) UVC control 3 (unit 3) : -110 (exp. 2).

Here the camera starts timing out every request.

> uvcvideo: Non-zero status (-62) in video completion handler.
> uvcvideo: Failed to query (135) UVC control 6 (unit 3) : -62 (exp. 2).
> uvcvideo: Non-zero status (-62) in video completion handler.
> uvcvideo: Non-zero status (-62) in video completion handler.
> uvcvideo: Non-zero status (-62) in video completion handler.
> uvcvideo: Non-zero status (-62) in status completion handler.
> uvcvideo: Non-zero status (-62) in video completion handler.
> usb 2-2: USB disconnect, address 3

And it then gets disconnected.

> usb 2-2: new full speed USB device using ohci_hcd and address 4

And reconnected.

> usb 2-2: device descriptor read/64, error -62
> usb 2-2: device descriptor read/64, error -62
> usb 2-2: new full speed USB device using ohci_hcd and address 5
> usb 2-2: device descriptor read/64, error -62
> usb 2-2: device descriptor read/64, error -62
> usb 2-2: new full speed USB device using ohci_hcd and address 6
> usb 2-2: device not accepting address 6, error -62
> usb 2-2: new full speed USB device using ohci_hcd and address 7
> usb 2-2: device not accepting address 7, error -62
> usb 2-2: new full speed USB device using ohci_hcd and address 8

A few times.

> usb 2-2: configuration #1 chosen from 1 choice
> uvcvideo: Probing known UVC device 2 (0e8d:0004)
> uvcvideo: Found format MJPEG.
> uvcvideo: - 160x120 (20.0 fps)
> uvcvideo: - 320x240 (20.0 fps)
> uvcvideo: - 640x480 (20.0 fps)
> uvcvideo: Found a Status endpoint (addr 83).
> uvcvideo: Found UVC 1.00 device OT-C701/ (0e8d:0004)
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/2 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/3 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/6 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/7 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/8 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/9 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/10 to
> device 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/1 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/5 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/16 to
> device 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/11 to
> device 2 entity 3
> uvcvideo: Scanning UVC chain: OT 2 <- PU 3 <- IT 1
> uvcvideo: Found a valid video chain (1 -> 2).
> uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -62 (exp. 26).
> uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -62 (exp. 26).
> uvcvideo: Failed to initialize the device (-5).
> usb 2-2: USB disconnect, address 8
> usb 2-2: new full speed USB device using ohci_hcd and address 9
> usb 2-2: configuration #1 chosen from 1 choice
> uvcvideo: Probing known UVC device 2 (0e8d:0004)
> uvcvideo: Found format MJPEG.
> uvcvideo: - 160x120 (20.0 fps)
> uvcvideo: - 320x240 (20.0 fps)
> uvcvideo: - 640x480 (20.0 fps)
> uvcvideo: Found a Status endpoint (addr 83).
> uvcvideo: Found UVC 1.00 device OT-C701/ (0e8d:0004)
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/2 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/3 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/6 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/7 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/8 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/9 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/10 to
> device 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/1 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/5 to device
> 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/16 to
> device 2 entity 3
> uvcvideo: Added control 00000000-0000-0000-0000-000000000101/11 to
> device 2 entity 3
> uvcvideo: Scanning UVC chain: OT 2 <- PU 3 <- IT 1
> uvcvideo: Found a valid video chain (1 -> 2).
> uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -32 (exp. 26).
> input: OT-C701/ as /class/input/input6
> uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
> uvcvideo: Using default frame interval 50000.0 us (20.0 fps).
> uvcvideo: UVC device initialized.
> ---
>
> -> As you see, webcam gets reset. Any help, please? Thanks!

There's an issue either with the hardware or with the USB host controller / 
root hub driver. Device connection/disconnection issues are well beneath the 
UVC driver.

Your device can be buggy (many webcam firmwares seem to have been badly 
engineered), your USB controller can be buggy, or the Linux USB core/host 
controller driver can be buggy. You should contact the linux-usb mailing 
list, they should be able to give you some more information about the 
disconnection issue and its possible causes. Please CC me if you do, as I'm 
interested in the answer.

Best regards,

Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to