USB [WebCAMs pwc+spca5xx+ov51x]

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Author Message
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Mon Oct 02, 2006 23:36    Post subject: USB [WebCAMs pwc+spca5xx+ov51x] Reply with quote
I made a _recent_ dd-wrt.v24-11762 SP2 build with webcam stuff and attached it here.













Year 2007 ends, features not!
As I mentioned in this post I managed to get some nice stuff running additionally to the webcams
_automount_ thttpd samba swat xinetd proftpd portmap unfsd e2fsprogs
all easy to use... check out that post/thread!
Download the image, flash it, extract the stuff to an usb-disc/stick and you have all the stuff!!!

Old stuff (works as well Very Happy )
pwc + spca5xx + ov511

Now v24-RC5 images available!

Look at
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=99564#99564
to get a v23 or v24 build including the webcam stuff... nothing more to do for you, just plug in cam, boot up the firmware and watch the image on a self-refreshing page. It can be so simple! Very Happy Now featuring more than one cam at a time!!!




Below the old post:

Hi folks,

after playing around with my beatiful new ASUS WL500gP I came across some problems, the webcam support included in the original firmware just su**s. 320x240 and just b/w...
As I am familiar with the history of the pwc kernel moduesl ( read http://www.smcc.demon.nl/webcam/ if you like ) I was happy that DD-WRT still runs the 2.4-series Smile
There is a modified Firmware from oleg ( http://oleg.wl500g.info/ ) which has support for full VGA (640x480) images in color and alls the other fancy USB stuff but it uses rcamd which always timestamps the image in the lower right corner and the ASUS-based firmwares are to difficult to customise and whatnot... Or: I just like DD-WRT better.
So I decided to put DD-WRT on my seccond WL500gP and compile the kernel modules myself, and so I did Smile
Enough spoken words, let the facts do the rest:
Here is what I accomplished so far...
Just grep the attachment, unpack it and have fun...

A sample, just logged in as root and downloaded the phil (philips was too complicated when I packed the ball *g*) tarball:
Quote:
~ # tar xvzf phil.tar.gz
drivers/usb/host/usb-uhci.o
drivers/usb/host/ehci-hcd.o
drivers/usb/hcd.o
drivers/usb/pwc.o
drivers/usb/pwcx.o
drivers/usb/usbcore.o
drivers/media/video/videodev.o
camsrv
~ # insmod drivers/media/video/videodev.o
~ # insmod drivers/usb/usbcore.o
~ # insmod drivers/usb/hcd.o
~ # insmod drivers/usb/host/ehci-hcd.o
~ # insmod drivers/usb/host/usb-uhci.o
~ # insmod drivers/usb/pwc.o
~ # insmod drivers/usb/pwcx.o
~ # lsmod
Module Size Used by
pwcx 102844 0 (unused)
pwc 34216 0 [pwcx]
usb-uhci 23692 0 (unused)
ehci-hcd 18712 0 (unused)
hcd 6700 0 [ehci-hcd]
usbcore 33408 0 [pwc usb-uhci ehci-hcd hcd]
wl 423640 0 (unused)
videodev 5776 1 [pwc]
ip_nat_pptp 2284 0 (unused)
ip_conntrack_pptp 2812 1
ip_nat_proto_gre 1552 0 (unused)
ip_conntrack_proto_gre 2440 0 [ip_nat_pptp ip_conntrack_pptp]
switch-robo 5004 0 (unused)
switch-core 6128 0 [switch-robo]
diag 2560 0 (unused)
~ # ls -al /dev/v4l/video0
crw------- 1 root root 81, 0 Jan 1 1970 /dev/v4l/video0
~ # ./camsrv -r VGA -d 1 -l -D /dev/v4l/video0 -F 4 -f /tmp/www/webcam.jpg


now point your browser to
http://YOUR.ROUTER.IP.HERE/user/webcam.jpg
and watch the cam :D

You can write a startup script, place the files onto your jffs partition, harddisk, mmc/sd-card or whatever you like....

It is not that perfect but it works...
There are some known issues like camsrv running three times but that is the same with oleg's firmware+camsrv and even oleg's and rcamd...
If anyone has a solution in mind: please post here or pm!


Oh, just to mention:
Router: ASUS WL500gP
Webcam: Phillips Toucam 740 K
Firmware: DD-WRT v23 SP2 (09/15/06) mini
(std and others should work as well, had mini on harddisk so i flashed it)


Need to pack my stuff, get into my car and drive round about 4 hours to start a !wonderful working day without beeing asleep...

_________________
DD-WRT F.A.Q.

Webcam Kiel


Last edited by CaScAdE on Fri Mar 20, 2009 10:52; edited 16 times in total
Sponsor
extazy33
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 31

PostPosted: Thu Oct 19, 2006 16:26    Post subject: Reply with quote
Hello,

First of all thanks for your contribution.
Didn't tested your modules yet but I have 3 questions:

1. Do you think will this work with Asus WL-500g Deluxe.

2. Will this work with other usb cameras logitech/unknown brand and so on. If no will this require minor/major modification. Also what about the motorized webcams -> possibility to move them.

3. Is it possible to use an USB hub (supplied by the router/externally supplied), and connect more than one webcam.

Thank you
extazy33
rmcrys
DD-WRT Novice


Joined: 20 Oct 2006
Posts: 19

PostPosted: Fri Oct 20, 2006 20:31    Post subject: Reply with quote
Hi, I also have a ASUS WL500GP and have the standard (and latest) DD-WRT SP2 but I don´t have the USB support (HDD/Printer/Webcam share on Windows).

My english is not very good and I know 0 (zero) about scripts, packs, compilation, etc. Is it possible to you to make a .trx file for ASUS of DD-WRT SP2 but with all that USB support as yours have, and post a link?

Thanks!
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Tue Oct 24, 2006 19:55    Post subject: Reply with quote
Hi folks,

sorry for the late answers but had been busy and not been home since I got the cam stuff working... and still have to wait two weeks to get back home.

But now get back to the topic:

extazy33 1)
Could be, the modules should load up the usb1 driver as well. But not tested, have no device.

extazy33 2)
There is some more info about supported cams over at http://www.saillard.org/linux/pwc/
As long as there are kernel drivers available you could make them work.

extazy33 3)
As far as I know it is, you will get some more /dev/videoX nodes and have to run the daemons more often, thats all.

rmcrys
I have only the basic webcam stuff working, nothing to get along with the standard web interface. NO HDD and NO PRINTING so far. You will have to wait till brainslayer gets closer to the USB-support... sorry again.

My experiences here were predominantly for experienced users and developers, I am not that good at giving support and make stuff userfriendly...

_________________
DD-WRT F.A.Q.

Webcam Kiel
algha
DD-WRT Novice


Joined: 26 Oct 2006
Posts: 1

PostPosted: Tue Oct 31, 2006 1:05    Post subject: Reply with quote
I've added your mod to the DD-WRT. But I cannot make some "refreshable" image. Simple -S (or --stream) does not work. Any idea ?
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Tue Oct 31, 2006 6:03    Post subject: Reply with quote
Did you specify a port with the -P option as well?
And which Java-Client did you use? The one provided with the original camsrv package?

check out http://freshmeat.net/projects/camsrv/ for stuff...

Quote:
Options passed to the Java client are embedded in the html file. A sample html
file is included in this distribution.

Option:
angle Rotation angle for image stream - this is useful if one wishes to place
the cam sideways. Angle must be multiple of 90 degrees.

port Change default port to listen to server on.

quality Amount of compression of image stream. Value may range from 0 to 100
(100 = least compression and best image quality)

offlineImage Image to display when a connection to the server cannot be established.
Image may either be in GIF or JPEG format.


Edit:
I just tried it out, I ran camserv using
Code:
/tmp/camsrv -D /dev/video
tunneled the 4940 port to my localhost (I am 300km away from the cam so I thought ssh-tunnel might be cool) and ran the CamClient.html from the camsrv package, works perfect. Maybe you need to specify correct host ip or something else inside CamClient.html because it just checks 127.0.0.1 by default...
_________________
DD-WRT F.A.Q.

Webcam Kiel
Pixel du Rezo
DD-WRT Novice


Joined: 11 Nov 2006
Posts: 24

PostPosted: Mon Nov 13, 2006 14:57    Post subject: Reply with quote
I've put the file on my asus wl500gP,
untar the pack (phil.tar.gz)

then I insmod all modules, in the same order...
unfortunatly, I'm stopped at ls -al /dev/v4l/video0 since I don't have it...
I don't have any /dev/v4l at all...
no v4l nor video or videoX in /dev

Any suggestion ?
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Mon Nov 13, 2006 18:29    Post subject: Reply with quote
post the output of dmesg, lsmod and all error messages that maybe occured...
and tell us what camera you are using, which version of DD-WRT (build date and type)

_________________
DD-WRT F.A.Q.

Webcam Kiel
Pixel du Rezo
DD-WRT Novice


Joined: 11 Nov 2006
Posts: 24

PostPosted: Mon Nov 13, 2006 19:13    Post subject: Reply with quote
Sorry...
It works.... My little sister just unplugs the webcam, and plugs her HD on the router... without knowing what she does Confused
Just a message 'No Philips webcam detected.', but the image is OK..
Thx for the modules !
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Mon Nov 13, 2006 21:26    Post subject: Reply with quote
Hehe, just slap your little sister with a large trout *g* (Hope you know what I mean...)

So I made something that helped other people? Coolness parker...

Have a good time with the cam and post any improvements if you like!

_________________
DD-WRT F.A.Q.

Webcam Kiel
Pixel du Rezo
DD-WRT Novice


Joined: 11 Nov 2006
Posts: 24

PostPosted: Tue Nov 14, 2006 14:28    Post subject: Reply with quote
Yes, it's great to have the webcam back on the router. Thx
Another thing.. a little off-topic, but not entirely...

As I have some Linux knowledges... I know how to compile kernel, and some others things... I also have some (little) C/C++ knwoledge...

I want to 'play' a little with my router... and make some little things (2 things in a first time: had USB storage working, and be able to connect a 56k USB modem, and share the poor, but existing, connection... usefull for places where cable or other high-bandwith connections aren't present)

So my question is:
how do you compile kernel for the router (cross-compilation ? ) ? is there a tutorial somewhere ?
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Tue Nov 14, 2006 17:57    Post subject: Reply with quote
Pixel du Rezo wrote:

how do you compile kernel for the router (cross-compilation ? ) ? is there a tutorial somewhere ?


http://www.dd-wrt.com/wiki/index.php/Development#Building_DD-WRT_from_Source

when compiling dd-wrt it of course compiles the kernel and stuff...

_________________
DD-WRT F.A.Q.

Webcam Kiel
Pixel du Rezo
DD-WRT Novice


Joined: 11 Nov 2006
Posts: 24

PostPosted: Sun Nov 19, 2006 18:05    Post subject: Reply with quote
I've successfully compiled 'setpwc' for DD-WRT.
For those who don't know what is it.. it's a little software that allows to change settings of 'philips' webcams, such as sharpness, and tilt/pan for webcam that are motorised.

The only drawback is the same that is already present when using on a normal computer : the device must be idle. So it's impossible to use setpwc, and camsrv at the same time.

But it works Razz
I successfully rotate my logitech Sphere using this soft !
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Sun Jul 29, 2007 23:22    Post subject: Reply with quote
check out Custom v24 30.07 + v23 21.07 builds including usb and webcam support
for easy setup Very Happy

_________________
DD-WRT F.A.Q.

Webcam Kiel
Dr.Ed
DD-WRT User


Joined: 09 Sep 2007
Posts: 58
Location: Fryslân, The Netherlands.

PostPosted: Fri Nov 23, 2007 14:45    Post subject: Reply with quote
Sh*t,

Not working on my 500gP & Logitech Quickcam Sphere MP. Get an error "driver not claimed (vend.0x46d/prod.0x8cc). Any idea's how to solve this one?


Ed

_________________
"Some days you're the pigeon, some days you're the statue"
Goto page 1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 1 of 7
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum