Joined: 18 Jun 2006 Posts: 1110 Location: Kiel (54.4247,10.1721)
Posted: Mon Oct 02, 2006 23:36 Post subject: USB [WebCAMs pwc+spca5xx+ov51x]
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 )
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! 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
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
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:
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
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.
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?
Joined: 18 Jun 2006 Posts: 1110 Location: Kiel (54.4247,10.1721)
Posted: Tue Oct 24, 2006 19:55 Post subject:
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
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
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
Joined: 18 Jun 2006 Posts: 1110 Location: Kiel (54.4247,10.1721)
Posted: Mon Nov 13, 2006 18:29 Post subject:
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
Sorry...
It works.... My little sister just unplugs the webcam, and plugs her HD on the router... without knowing what she does
Just a message 'No Philips webcam detected.', but the image is OK..
Thx for the modules !
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 ?
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
I successfully rotate my logitech Sphere using this soft !