w3camd + v4l2

Peter Pregler Peter.Pregler@risc.uni-linz.ac.at
Mon, 06 Dec 1999 09:55:35 +0100 (CET)


On 03-Dec-1999 Linux Webcam wrote:
> Hi,
> 
> I've be playing with your w3camd and w3cam and I've had some success
> with w3camd, but none with w3cam.cgi. Specifically I'm getting "Can't
> open device /dev/video". I think this is a permission issue because the
> webserver runs as nobody. But I'm not quite sure how to fix it.

Do a chmod 666 /dev/video0 or chown nobody /dev/video0, and keep in mind
that you might open your box to DOS-attacks from local users. Actually
running a beta-driver will also open the box for DOS-attacks from remote
users. :)

> The w3camd seems to work ok, but I can't repeatedly get images that are
> of quality. 
> They end up having black streaks or noise. Perhaps this is a sync issue?
> Or maybe an interrupt issue?

The driver is most certainly the problem. I try it out here.

> Any help is appreciated, Thanks. 

Please for whatever sake do not post messages like this to the list. I am
glad to help anyone but I do need a bit more information than 'things
don't work'. I will not spend much time on such requests. In short attach
at least the following information:

- /proc/interrupts, /proc/dma, /proc/parport/0/hardware,autoprobe
- /proc/cpia/video0
- _all_ the relevant syslog output (see below)

Jarl, can you add this list to the web-page?

-Peter


====================================================================
:Oct 12 09:58:55 lugburz kernel: parport0: PC-style at 0x378, dma 3
[SPP,ECP,ECPEPP,ECPPS2] 
Oct 12 09:58:55 lugburz kernel: parport0: detected irq 7; use procfs to
enable interrupt-driven operation. 
Oct 12 09:59:52 lugburz kernel: parport0: read2 timeout.
Oct 12 09:59:52 lugburz kernel: parport0: Multimedia device, VLSI Vision
Ltd PPC2 Camera 

Dec  6 09:34:38 lugburz kernel: Parallel port driver for Vision CPiA based
cameras v0.4.3
Dec  6 09:34:38 lugburz kernel:   using DMA mode (irq 7, DMA 3)
Dec  6 09:34:38 lugburz kernel:   1 cameras found
...
Dec  6 09:31:32 lugburz kernel: cpia.c(93578091):cpia_open(2453):cpia_open
Dec  6 09:31:32 lugburz kernel:
cpia_pp.c(93578091):cpia_pp_open(1200):Found camera[0]
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578092):goto_low_power(2283):camera now in LOW power state
Dec  6 09:31:32 lugburz kernel:   CPIA Version: 1.20 (2.0)
Dec  6 09:31:32 lugburz kernel:   CPIA PnP-ID: 0553:0002:0100
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578100):goto_high_power(2271):camera now in HIGH power state
Dec  6 09:31:32 lugburz kernel:   VP-Version: 1.0 0100
Dec  6 09:31:32 lugburz kernel: cpia.c(93578100):dispatch_commands(2058):1
1 0 0 1 1 1 1 
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578117):save_camera_state(2296):3/38/212
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578117):save_camera_state(2307):1/1/196/0/220/214/214/230
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578117):cpia_ioctl(2644):VIDIOCGCAP
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578117):cpia_ioctl(2664):VIDIOCGCHAN
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578117):cpia_ioctl(2690):VIDIOCSCHAN
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578120):cpia_ioctl(2927):VIDIOCGMBUF
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578120):cpia_mmap(3094):cpia_mmap: 811008
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578120):cpia_mmap(3120):cpia_mmap: 0
Dec  6 09:31:32 lugburz kernel: cpia.c(93578120):fetch_frame(2174):
Dec  6 09:31:32 lugburz kernel: cpia.c:cpia_close(2511):cpia_close
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578160):save_camera_state(2296):3/38/212
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578160):save_camera_state(2307):1/1/196/0/220/214/214/230
Dec  6 09:31:32 lugburz kernel:
cpia.c(93578162):goto_low_power(2283):camera now in LOW power state


-------------------------------
Email: Peter.Pregler@risc.uni-linz.ac.at
WWW:   http://www.risc.uni-linz.ac.at/people/ppregler
-----------------------------------------------------------------------------
To unsubscribe from this mailinglist, send the line "unsubscribe vision-webcam" in the
body of a message to "majordomo@errors.no".