Have tried the camera in windows on another computer and this computer
and there it works just fine... :-(
Have also discovered that I can use vidcat to get single images, but
when using xawtv or gnomemeeting the image freezes after a few seconds.
I also tried using vidcat in a loop and got the same result, it hung
after a few seconds as well. I get the same messages all the time, I'm
no expert on usb or the OV511 but it seems to me that the
"[ov51x_isoc_irq:3669] Zero-length packet" messages is what's going
wrong.

Here is the script which loops vidcat:

#!/bin/sh
while true; do
        vidcat -d /dev/video0 -f jpeg -o testar.jpg -p y -s 640x480
done

If I'm posting this to the wrong place, please tell me and I will not
post this issue here anymore.


On Fri, 2005-03-18 at 12:31 +0100, Jonatan Åkerlind wrote:
> I have some trouble with getting this thing to work. I had it working
> about a year ago on another machine, but don't remember how I did that.
> 
> Here's what happens:
> 
> I plug the camera in and load the ov511 module (or in opposite order,
> makes no difference). With the debug=4 I get a lot of messages, but what
> I see a lot of are these lines:
> 
> <snip>
> Mar 18 12:11:12 [kernel] drivers/usb/media/ov511.c: [ov51x_stop:1071]
> stopping
> Mar 18 12:11:12 [kernel] drivers/usb/media/ov511.c:
> [ov51x_isoc_irq:3669] Zero-length packet
> Mar 18 12:11:12 [kernel] drivers/usb/media/ov511.c: [ov51x_restart:1085]
> restarting
> Mar 18 12:11:12 [kernel] drivers/usb/media/ov511.c:
> [ov51x_isoc_irq:3669] Zero-length packet
> Mar 18 12:11:12 [kernel] drivers/usb/media/ov511.c:
> [sensor_set_brightness:1489] 29440
> Mar 18 12:11:12 [kernel] drivers/usb/media/ov511.c: [ov51x_stop:1071]
> stopping
> Mar 18 12:11:12 [kernel] drivers/usb/media/ov511.c:
> [ov51x_isoc_irq:3669] Zero-length packet
> </snip>
> 
> They seem to appear like this together or among other messages.
> Then I try to get a picture with xawtv, which works for a few seconds
> and then the image freezes and xawtv gives me theese lines:
> 
> ioctl: VIDIOCMCAPTURE(frame=0;height=48;width=64;format=7): Invalid
> argument
> v4l: timeout (got SIGALRM), hardware/driver problems?
> ioctl: VIDIOCSYNC(int=0): Interrupted system call
> v4l: timeout (got SIGALRM), hardware/driver problems?
> ioctl: VIDIOCSYNC(int=1): Interrupted system call
> game over
> 
> In the log I again see _a lot_ of zero-length packets:
> 
> <snip>
> Mar 18 12:11:19 [kernel] drivers/usb/media/ov511.c:
> [ov511_move_data:3384] Frame start, framenum = 1
> Mar 18 12:11:20 [kernel] drivers/usb/media/ov511.c:
> [ov511_move_data:3343] Frame end, frame=1, pnum=168, w=384, h=288,
> recvd=166647
> Mar 18 12:11:20 [kernel] drivers/usb/media/ov511.c:
> [ov51x_v4l1_ioctl_internal:4381] VIDIOCMCAPTURE: frame: 1, 384x288,
> YUV420P
> Mar 18 12:11:20 [kernel] drivers/usb/media/ov511.c:
> [ov51x_v4l1_ioctl_internal:4441] VIDIOCMCAPTURE: renewing frame 1
> Mar 18 12:11:20 [kernel] drivers/usb/media/ov511.c:
> [ov51x_new_frame:3849] ov->curframe = 0, framenum = 1
> Mar 18 12:11:20 [kernel] drivers/usb/media/ov511.c:
> [ov51x_v4l1_ioctl_internal:4459] syncing to frame 0, grabstate = 1
> Mar 18 12:11:20 [kernel] drivers/usb/media/ov511.c:
> [ov51x_isoc_irq:3669] Zero-length packet
>                 - Last output repeated 499 times -
> Mar 18 12:11:25 [kernel] drivers/usb/media/ov511.c:
> [ov51x_v4l1_ioctl_internal:4459] syncing to frame 1, grabstate = 1
> Mar 18 12:11:25 [kernel] drivers/usb/media/ov511.c:
> [ov51x_isoc_irq:3669] Zero-length packet
>                 - Last output repeated 1238 times -
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c:
> [ov51x_v4l1_close:4085] ov511_close
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c:
> [ov51x_stop_isoc:3831] *** Stopping capture ***
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c: [ov51x_stop:1071]
> stopping
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c:
> [ov511_set_packet_size:1236] 0, mult=0, alt=7
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c:
> [ov51x_isoc_irq:3633] no device, or not open
>                 - Last output repeated twice -
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c: [ov51x_reset:565]
> Reset: type=0x3F
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c: [ov51x_restart:1085]
> restarting
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c: [ov51x_dealloc:4009]
> entered
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c:
> [ov51x_do_dealloc:3903] entered
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c:
> [ov51x_do_dealloc:3934] buffer memory deallocated
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c:
> [ov51x_do_dealloc:3936] leaving
> Mar 18 12:11:37 [kernel] drivers/usb/media/ov511.c: [ov51x_dealloc:4013]
> leaving
> </snip>
> 
> I'm running kernel 2.6.11-gentoo-r4 with ov511 v1.64.
> Have tried the newer 2.28 but all I got was:
> 
> ov511: Unknown symbol remap_page_range
> 
> also tried it using 2.6.11.2 with the same results. My USB hardware as
> reported by lspci -v:
> 
> 0000:00:13.0 USB Controller: NEC Corporation USB (rev 41) (prog-if 10
> [OHCI])
>         Subsystem: Compaq Computer Corporation: Unknown device 0056
>         Flags: bus master, medium devsel, latency 64, IRQ 11
>         Memory at f0017000 (32-bit, non-prefetchable)
>         Capabilities: [40] Power Management version 2
> 
> 0000:00:13.1 USB Controller: NEC Corporation USB (rev 41) (prog-if 10
> [OHCI])
>         Subsystem: Compaq Computer Corporation: Unknown device 0056
>         Flags: bus master, medium devsel, latency 64, IRQ 11
>         Memory at f0018000 (32-bit, non-prefetchable)
>         Capabilities: [40] Power Management version 2
> 
> 0000:00:13.2 USB Controller: NEC Corporation USB 2.0 (rev 02) (prog-if
> 20 [EHCI])
>         Subsystem: Compaq Computer Corporation: Unknown device 0056
>         Flags: bus master, medium devsel, latency 132, IRQ 11
>         Memory at f0019c00 (32-bit, non-prefetchable)
>         Capabilities: [40] Power Management version 2
> 
> Any help appreciated!
-- 
Jonatan Åkerlind <[EMAIL PROTECTED]>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to