Webcam

Kush Singh kushs at kward.org
Sun Nov 6 20:55:53 UTC 2005


Hi Thomas,
Thanks very much for helping me out. I tried your suggestions as below 
but you can see where i am making mistakes.

Regards,
Kussh

Thomas Kaiser (ubuntu) wrote:

> Hello Kush
> Kush Singh wrote:
>
>> http://mxhaard.free.fr/spca5xx.html
>
> The spca5xx driver supports a lot of webcam, also zc0301p based cams. 
> If you run Breezy, spca5xx is already included in the kernel :-)
>
> Find the Vendor and Product ID of your cam. Issue the command "lsusb" 
> with the cam connected. 

lsusb gives me the following information
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. Sansun 
SN-510 Web Cam [hv713d]
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 049f:0004 Compaq Computer Corp.
Bus 001 Device 001: ID 0000:0000

The webcam is listed with sensor type as hv713d whereas when i checked 
in windows in the documentation steps there for the zc*.sourceforge.net 
project (thru regmon) the sensor type listed in the registry was hv7131b

> Check http://mxhaard.free.fr/spca5xx.html to see if your Vendor and 
> Product ID is supported. If yes, your cam should work. Follow these 
> steps to get spca5xx loaded:
>
hv7131b is listed in the page but not hv713d, so i shall try loading 
spca5xx.

> - Remove the zc030x module "sudo modprobe -r zc030x" or "sudo rmmod 
> zc030x"
>
i gave the following commands
corporal at hellocpu:~$ sudo modprobe -r zc030x
Password:
FATAL: Module zc030x not found.
corporal at hellocpu:~$ sudo modprobe -r zc0301
FATAL: Module zc0301 not found.
corporal at hellocpu:~$ sudo rmmod zc0301p
ERROR: Module zc0301p does not exist in /proc/modules

Infact /proc/modules itself does not exist when i checked in Nautilus.

> - Load spca5xx module "sudo modprobe spca5xx"
>   (if it does not load you have to load videodev, too "sudo modprobe 
> videodev")
>
I gave the first sudo modprobe command but there was no reaction/output 
from the system

> - Check /var/log/kern.log to see if your cam is detected
>
The last few lines of kern.log are as follows. i can't seem to find 
anything.

Nov  6 15:26:39 localhost kernel: [4298584.533000] Inbound IN=eth0 OUT= 
MAC=00:0b:6a:d5:f0:b1:00:05:00:e3:e1:32:08:00 SRC=70.29.243.122 
DST=70.29.157.41 LEN=64 TOS=0x00 PREC=0x00 TTL=40 ID=12666 DF PROTO=TCP 
SPT=4317 DPT=80 WINDOW=53760 RES=0x00 SYN URGP=0
Nov  6 15:35:41 localhost kernel: [4299126.523000] Inbound IN=eth0 OUT= 
MAC=00:0b:6a:d5:f0:b1:00:05:00:e3:e1:32:08:00 SRC=70.29.243.122 
DST=70.29.157.41 LEN=64 TOS=0x00 PREC=0x00 TTL=40 ID=50772 DF PROTO=TCP 
SPT=3435 DPT=80 WINDOW=53760 RES=0x00 SYN URGP=0
Nov  6 15:35:44 localhost kernel: [4299129.485000] Inbound IN=eth0 OUT= 
MAC=00:0b:6a:d5:f0:b1:00:05:00:e3:e1:32:08:00 SRC=70.29.243.122 
DST=70.29.157.41 LEN=64 TOS=0x00 PREC=0x00 TTL=40 ID=50997 DF PROTO=TCP 
SPT=3435 DPT=80 WINDOW=53760 RES=0x00 SYN URGP=0

Then i gave the 2nd sudo modprobe command (sudo modprobe videodev) and 
still no change in kern.log

Nov  6 15:39:27 localhost kernel: [4299352.303000] Inbound IN=eth0 OUT= 
MAC=00:0b:6a:d5:f0:b1:00:05:00:e3:e1:32:08:00 SRC=213.253.35.26 
DST=70.29.157.41 LEN=48 TOS=0x00 PREC=0x00 TTL=107 ID=56860 DF PROTO=TCP 
SPT=1671 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0
Nov  6 15:39:30 localhost kernel: [4299355.253000] Inbound IN=eth0 OUT= 
MAC=00:0b:6a:d5:f0:b1:00:05:00:e3:e1:32:08:00 SRC=213.253.35.26 
DST=70.29.157.41 LEN=48 TOS=0x00 PREC=0x00 TTL=107 ID=57381 DF PROTO=TCP 
SPT=1671 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0

> - If detected, use it :-)
>
I don't think its detected :(

> If it is your only video device, the v4l app should connect to 
> /dev/video0. If it is your second /dev/video1 and so on.
>
Haven't reached this step

> If you find the Vendor and Product ID on 
> http://mxhaard.free.fr/spca5xx.html, but it refers to an other Model, 
> just mail me or spca50x-devs at lists.sourceforge.net to get your cam 
> added to the list.
>
You will have to help me. I don't know what is the model, vendor or 
product id -- is it z-star microelectronics corp, and product id as 
0ac8: 301b?

> If the Vendor and Product ID is NOT listed, you should find out the 
> correct chip (bridge) and sensor of your cam. Maybe an other cam has 
> the same bridge(chip combination already. Then, we just have to add 
> the Vendor and Product ID to the probing routine and the cam should work.
>
I have 2 reports on sensors (windows regmon detects it as hv7131b 
whereas lsusb in ubuntu detects it as hv713d) Bridge information I don't 
know how to find.

> Here is a howto for finding the sensor on a windows machine 
> http://zc0302.sourceforge.net/docs/HOWTO-Finding_the_sensor_type.html#detecting_sensor. 
> "B) Detecting the sensor type with RegMon"
>
I used this technique.

> Hope this info helps :-)
>
Thanks a lot. Am still trying to get this to work. The snoopypro 
software in windows ME was buggy. I could not get it to work after 
following the instructions  -so can't say what the bridge is.

> Regards, Thomas
>
>





More information about the ubuntu-users mailing list