w3camd + v4l2

Peter Pregler Peter.Pregler@risc.uni-linz.ac.at
Mon, 06 Dec 1999 19:29:56 +0100 (CET)


On 06-Dec-1999 Lance Ware wrote:
> Sorry about posting to the list, 

The list as target is okay. The info was not. Since it is the USB-camera I
have no idea what the problem is. I do write the parport-driver. Another
rather important information missing in your post. :(

BTW, I did some testing and the parport driver does work with w3camd. But
w3camd dies after serving some images with a 'Broken pipe' error. But
that's most probably a w3camd problem and not a driver problem.

Good luck, Peter

> 
> I've tried changing the permissions. Now I get "Error: Can't get image".
> 
> Any help is greatly appreciated.
> 
> Thanks,
> 
> Lance
> 
> dmesg:
> 
> usb: usb-bandwidth-alloc: was: 75, new: 150, bustime = 75 us, Pipe
> allowed: yes
> usb: bw_alloc bumped to 150 for 2 requesters
> Failed control msg - r:C2 rt:40 v:0000 i:0000 s:0000 - ret: -203
>   40 C2 00 00 00 00 00 00
> cpia_upload_frame error
> usb: bw_alloc reduced to 75 for 1 requesters
> usb: bw_alloc reduced to 0 for 0 requesters   
> 
> [root@mailhost lware]# more /proc/interrupts
>            CPU0
>   0:    7543170          XT-PIC  timer
>   1:          8          XT-PIC  keyboard
>   2:          0          XT-PIC  cascade
>   9:          0          XT-PIC  acpi
>  10:     393277          XT-PIC  uhci, Mylex DAC960PTL1, eth0
>  12:          0          XT-PIC  PS/2 Mouse
>  13:          1          XT-PIC  fpu
>  14:          4          XT-PIC  ide0
> NMI:          0
> ERR:         11 
> 
> [root@mailhost lware]# more /proc/dma
>  4: cascade    
> 
> I don't seem to have /proc/cpia/*
>                           
> Dec  6 06:07:58 localhost kernel: New USB bus registered, assigned bus
> number 1
> Dec  6 06:07:58 localhost kernel: usbcore: Registered new driver cpia
> Dec  6 06:07:58 localhost kernel: Detected PS/2 Mouse Port.
> Dec  6 06:07:58 localhost kernel: Serial driver version 4.91
> (1999-11-17) with M
> ANY_PORTS SHARE_IRQ SERIAL_PCI PCI_IOMEM enabled
> Dec  6 06:07:58 localhost kernel: pty: 256 Unix98 ptys configured
> Dec  6 06:07:58 localhost kernel: Linux video capture interface: v1.00
> Dec  6 06:07:58 localhost kernel: Uniform Multi-Platform E-IDE driver
> Revision:
> 6.21
> Dec  6 06:07:58 localhost kernel: PIIX4: IDE controller on PCI bus 00
> dev 91
> Dec  6 06:07:58 localhost kernel: PIIX4: not 100% native mode: will
> probe irqs l
> ater
> Dec  6 06:07:58 localhost kernel: hda: TOSHIBA CD-ROM XM-6602B, ATAPI
> CDROM driv
> e
> Dec  6 06:07:58 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> Dec  6 06:07:58 localhost kernel: uhci_connect_change: called for 0
> 
> Dec  6 06:07:59 localhost kernel: USB new device connect, assigned
> device number
>  1
> Dec  6 06:07:59 localhost kernel: USB CPiA camera found         
> 
> Dec  7 02:58:11 localhost kernel: cpia_upload_frame error
> Dec  7 03:00:08 localhost kernel: cpia_upload_frame error
> Dec  7 03:01:20 localhost kernel: cpia_upload_frame error
> Dec  7 03:02:47 localhost kernel: cpia_upload_frame error   
> 
> -----Original Message-----
> From: Peter Pregler [mailto:Peter.Pregler@risc.uni-linz.ac.at]
> Sent: Monday, December 06, 1999 12:56 AM
> To: Linux Webcam
> Cc: vision-webcam@errors.no; thron@gmx.de
> Subject: RE: w3camd + v4l2
> 
> 
> 
> 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

-------------------------------
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".