macsat.com OpenWrt and ASUS WL Forum

OpenWrt (White Russian) => Tutorials => Topic started by: Zawadzki on February 26, 2007, 12:43:33 PM



Title: SPCA5xx, OpenWrt WhiteRussian 0.9, problems with Vimicro Zc301P 0x303b webcam.
Post by: Zawadzki on February 26, 2007, 12:43:33 PM
Hi,
I'm new to OpenWrt so forgive some naive questions. I've installed latest WhiteRussian stable release on Asus WL-500gp. Unfortunately I've problems to follow a tutorial on webcam service. I've downloaded modules spca5xx, spca5xx_lite and the application spcacat. Module (full version) recognises camera correctly:

kernel: usb.c: registered new driver spca5xx
kernel: drivers/usb/spca5xx.c: USB SPCA5XX camera found. Type Vimicro Zc301P 0x303b
kernel: drivers/usb/spca5xx.c: [spca5xx_probe:8380] Camera type JPEG
kernel: drivers/usb/zc3xx.h: [zc3xx_config:415] Find Sensor HV7131R(c)
kernel: drivers/usb/spca5xx.c: [spca5xx_getcapability:2207] maxw 640 maxh 480 minw 176 minh 144
kernel: drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered

and device file /dev/v4l/video0 is created. I've linked this file to /dev/v0. Then command

root@OpenWrt:/mnt/disc0_1# spcacat -d /dev/v0 -s 640x480 -p 100 -N -o -f jpg

returns

 size width: 640 height: 480
 Spcaview version: 1.1.5 date: 12:12:2005 (C) mxhaard@magic.fr
video /dev/v0
Camera found: Generic Vimicro 303b
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=24 palette=4
Bridge found: ZC301-2
is_spca SPCA505
is_spca SPCA506
is_spca SPCA501
is_spca SPCA508
is_spca SPCA504
is_spca SPCA500
is_spca SPCA504B
is_spca SPCA533

and router reboots. Please help me to pinpoint a problem.
Using spca5xx_lite does not change anything ;( 


Title: Re: SPCA5xx, OpenWrt WhiteRussian 0.9, problems with Vimicro Zc301P 0x303b webcam.
Post by: macsat on February 26, 2007, 12:54:13 PM

Hmm

I think that spcacat is for LE version only.

Try to see if servfox works for you.

You can download a static build here:
http://macsat.dyndns.org/tmp/servfox




Title: Re: SPCA5xx, OpenWrt WhiteRussian 0.9, problems with Vimicro Zc301P 0x303b webcam.
Post by: Zawadzki on February 26, 2007, 17:16:40 PM
Thanks a lot for the suggestion. That combination works
OpenWrt:
insmod spca5xx_lite
servfox -d /dev/v0 -g -s 320x240 -w 7070
Laptop:
spcaview -w 192.168.1.1:7070
so the problem is with spcacat!
Are there any chances to force servfox to periodically dump frames to a specified file?
What can I do to debug spcacat? Maybe you have statically linked version of spcacat, too ;)


Title: Re: SPCA5xx, OpenWrt WhiteRussian 0.9, problems with Vimicro Zc301P 0x303b webcam.
Post by: macsat on February 26, 2007, 17:48:16 PM

I'm sorry to say that I havent got any other versions right now.

I will work on making some new builds.