[cpia] Problems with CPiA USB webcam

Vladimir Grebinskiy grebinsk@cgen.com
Fri, 14 Jul 2000 21:41:21 -0400


Peter Pregler wrote:

> On Tue, Jul 11, 2000 at 11:30:48PM -0400, Vladimir Grebinskiy wrote:
> >
> > Error-log:
> >
> > V4L-Driver for Vision CPiA based cameras v0.7.4
> > usb.c: registered new driver cpia
> > USB CPiA camera found
> >   CPiA Version: 1.30 (2.10)
> >   CPiA PnP-ID: 0553:0002:0100
> >   VP-Version: 1.0 0141
> > cpia data error: [1] len=217, status=FFFFFFAC
> > cpia.c:parse_picture(1964):line length was not 1 but 0 after
> > 24216/25734 bytes
>
> Looks like some problem in the USB layer. Can you try out version 1.0
> on webcam.sourceforge.net.
>
> -Peter
>
> --
> I will not waste chalk. --Bart Simpson at the blackboard
> --------------------------------------------------------
> Email: Peter_Pregler@email.com
> WWW:   http://www.risc.uni-linz.ac.at/people/ppregler
> ICQ:   61011460

Hi!
Thank you for suggestions.
I tried several things and here are my observations:

1. With driver 1.0:
The Gqcam was working stable when I set "Contrast" to a small value like
0-10. When I increased this number I got I/O errors pretty soon. One
thing I noticed is that frame rate with still image (that is when I am
not moving in the camera) was getting from 7-8 fps to 10-11 even 15. The
errors are the same as in previous letter. When contrast is set to 0,
gqcam  works just fine, though I was able to provoke I/O errors by
quick change of lighting (or maybe it was a coincidence)

2. With driver 1.1
Overall it works better. With default parameters new gqcam does not
hangs. However: 1. with contrast=0 new image is much less contrast (as
expected?) vs. version 1.0; and 2. It still hangs with
contrast/brightness both set to a high number. Error I got is: (from
/var/log/kernel.log)

Jul 14 21:28:15 vag kernel: cpia.c(224305):cpia_ioctl(3541):VIDIOCSPICT:
24 / 4 // 65024 / 32768 / 32000 / 65024
Jul 14 21:28:15 vag kernel: cpia.c(224321):dispatch_commands(2363):0 0 0
0 0 1 0 0
Jul 14 21:28:15 vag kernel: cpia.c(224321):dispatch_commands(2364):0 0 0
0 0 0 0 0
Jul 14 21:28:28 vag kernel: cpia.c:monitor_exposure(2810):Automatically
decreasing sensor_fps
Jul 14 21:28:28 vag kernel: cpia.c(225695):dispatch_commands(2363):0 0 0
0 0 0 0 0
Jul 14 21:28:28 vag kernel: cpia.c(225695):dispatch_commands(2364):0 0 0
0 1 0 1 0
Jul 14 21:28:30 vag kernel: cpia data error: [7] len=230,
status=FFFFFFAC
Jul 14 21:28:30 vag kernel: cpia.c:parse_picture(2288):line length was
not 1 but -1 after 731/130470 bytes
Jul 14 21:28:30 vag kernel:
cpia.c(225859):fetch_frame(2996):parse_picture failed -1
Jul 14 21:28:30 vag kernel: cpia.c(225866):fetch_frame(2903):retry=1
Jul 14 21:28:35 vag kernel:
cpia_usb.c(226351):cpia_usb_streamRead(391):Something went wrong!
Jul 14 21:28:35 vag kernel: cpia.c(226351):fetch_frame(2963):streamRead
failed: -1
Jul 14 21:28:35 vag kernel: cpia.c(226351):fetch_frame(2903):retry=2
Jul 14 21:28:35 vag kernel:
cpia_usb.c(226351):cpia_usb_streamRead(391):Something went wrong!
Jul 14 21:28:35 vag kernel: cpia.c(226351):fetch_frame(2963):streamRead
failed: -1
Jul 14 21:28:35 vag kernel: cpia.c(226351):cpia_read(3384):upload failed
304128/0
Jul 14 21:28:35 vag kernel:
cpia.c(226352):save_camera_state(3101):3/1/193/0/220/214/214/230
Jul 14 21:28:35 vag kernel:
cpia.c(226352):save_camera_state(3105):26/73/86
Jul 14 21:28:35 vag kernel: cpia.c(226355):goto_low_power(3079):camera
now in LOW power state


Write me if you need more information,

Vladimir