Zeile 16: |
Zeile 16: |
| danach Neustart. USB-module werden selbsttätig geladen. | | danach Neustart. USB-module werden selbsttätig geladen. |
| | | |
− | == Driver == | + | == Webcam-Driver == |
− | es gibt mittlerweile 4 Webcam-Driver von openwrt
| |
− | | |
| === spca5xx/spca5xx_LE === | | === spca5xx/spca5xx_LE === |
| * Installation: | | * Installation: |
Zeile 59: |
Zeile 57: |
| | | |
| <pre> | | <pre> |
− | root@dave_yakumo:~# dmesg
| + | .... |
− | Creating 5 MTD partitions on "Physically mapped flash":
| |
− | 0x00000000-0x00040000 : "cfe"
| |
− | 0x00040000-0x003f0000 : "linux"
| |
− | 0x000b5fec-0x00180000 : "rootfs"
| |
− | mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
| |
− | 0x003f0000-0x00400000 : "nvram"
| |
− | 0x00180000-0x003f0000 : "OpenWrt"
| |
− | diag boardtype: 0000041a
| |
− | Probing device eth0: No Robo switch in managed mode found
| |
− | Probing device eth1: No Robo switch in managed mode found
| |
− | Probing device eth2: No such device
| |
− | Probing device eth3: No such device
| |
− | BFL_ENETADM not set in boardflags. Use force=1 to ignore.
| |
− | eth2: Broadcom BCM4320 802.11 Wireless Controller 3.90.37.0
| |
− | usb.c: registered new driver usbdevfs
| |
− | usb.c: registered new driver hub
| |
− | usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
| |
− | usb-ohci.c: usb-00:04.0, PCI device 14e4:4715
| |
− | usb.c: new USB bus registered, assigned bus number 1
| |
− | hub.c: USB hub found
| |
− | hub.c: 2 ports detected
| |
− | SCSI subsystem driver Revision: 1.00
| |
− | Initializing USB Mass Storage driver...
| |
− | usb.c: registered new driver usb-storage
| |
− | USB Mass Storage support registered.
| |
− | uhci.c: USB Universal Host Controller Interface driver v1.1
| |
− | Linux video capture interface: v1.00
| |
− | usb.c: registered new driver spca5xx
| |
− | drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered
| |
− | hub.c: new USB device 00:04.0-1, assigned address 2
| |
− | drivers/usb/spca5xx.c: USB SPCA5XX camera found. Qtec Webcam 100 Pac207-BCA
| |
− | drivers/usb/spca5xx.c: [spca5xx_probe:8380] Camera type GBRG
| |
− | drivers/usb/pac207.h: [pac207_config:148] Find Sensor PAC207
| |
− | drivers/usb/spca5xx.c: [spca5xx_getcapability:2207] maxw 352 maxh 288 minw 160 minh 120
| |
− | </pre>
| |
− | | |
− | interessant ist für uns eigentlich nur "Gerät erkannt"
| |
− | | |
− | <pre>
| |
| usb.c: registered new driver spca5xx | | usb.c: registered new driver spca5xx |
| drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered | | drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered |
Zeile 278: |
Zeile 237: |
| # Link legen fuer Vidiodevice | | # Link legen fuer Vidiodevice |
| ln -s /dev/v4l/video0 /dev/video0 | | ln -s /dev/v4l/video0 /dev/video0 |
| + | |
| + | # Link legen fuer Bild |
| + | ln -s /tmp/SpcaPict.jpg /www/bild.jpg |
| | | |
| # SpcaCat starten | | # SpcaCat starten |
| + | cd /tmp |
| spcacat -d /dev/video0 -g -f jpg -s 320x240 -p 10000 -o > /dev/null & | | spcacat -d /dev/video0 -g -f jpg -s 320x240 -p 10000 -o > /dev/null & |
| </pre> | | </pre> |
| | | |
− | berechtigungen noch setzen mit
| + | sinnvoll ist hierbei, das Bild in den /tmp(Ram-Speicher) zu schreiben und es auf das /www Verzeichnis zu linken.<br> |
| + | dann noch Berechtigungen setzen mit: |
| | | |
| <pre> | | <pre> |
Zeile 318: |
Zeile 282: |
| </pre> | | </pre> |
| | | |
− | * Beispiel: Streamserver auf Port 7070 starten mit Auflösung: 320 x 240 | + | * Beispiel: Streamserver auf Port 8000 starten mit Auflösung: 320x240 |
| | | |
| <pre> | | <pre> |
− | servfox -g -s 320x240 -w 7070 | + | servfox -g -s 320x240 -w 8000 |
| </pre> | | </pre> |
| | | |
Zeile 332: |
Zeile 296: |
| ** einfach Befehl in der Konsole eintippen | | ** einfach Befehl in der Konsole eintippen |
| <pre> | | <pre> |
− | spcaview -w IP-Adresse wo servfox läuft:7070 | + | spcaview -w IP-Adresse wo servfox läuft:8000 |
| </pre> | | </pre> |
| | | |
Zeile 363: |
Zeile 327: |
| quality 70 | | quality 70 |
| framerate 2 | | framerate 2 |
− | auto_brightness on | + | auto_brightness off |
| | | |
| # Initial brightness, contrast, hue (NTSC), and saturation | | # Initial brightness, contrast, hue (NTSC), and saturation |
Zeile 378: |
Zeile 342: |
| # You should probably change this (create dir beforehand) | | # You should probably change this (create dir beforehand) |
| target_dir /tmp | | target_dir /tmp |
− | jpeg_filename bild | + | jpeg_filename SpcaPict |
| | | |
| # Speicherpause um das Geraet zu schonen | | # Speicherpause um das Geraet zu schonen |
| minimum_gap 30 | | minimum_gap 30 |
| | | |
− | # min. Bewegungen bis motion ausloest
| + | low_cpu 1 |
− | minimum_motion_frames 10
| |
| | | |
| # Define a port number (e.g. 8000) to enable the mini-http server | | # Define a port number (e.g. 8000) to enable the mini-http server |
Zeile 417: |
Zeile 380: |
| #!/bin/sh | | #!/bin/sh |
| | | |
− | # Module laden | + | # unload drivers in case the were loaded |
− | insmod videodev | + | rmmod spca5xx; rmmod videodev |
− | insmod spca5xx | + | |
− | sleep 15 | + | # load webcam driver modules (it can be assumed that the USB drivers are compiled into the kernel or were installed & autoloaded) |
− |
| + | insmod videodev || exit 1 |
| + | insmod spca5xx || exit 2 |
| + | |
| + | sleep 1 |
| + | |
| + | # check if video device was allocated |
| + | if [ ! -e /dev/v4l/video0 ]; then exit 3; fi |
| + | |
| # Link legen fuer Vidiodevice | | # Link legen fuer Vidiodevice |
− | ln -s /tmp/bild.jpg /www/bild.jpg | + | ln -s /dev/v4l/video0 /dev/video0 |
− |
| + | |
| + | # Link legen fuer Bild |
| + | ln -s /tmp/SpcaPict.jpg /www/bild.jpg |
| + | |
| # motion starten | | # motion starten |
− | motion | + | motion |
| </pre> | | </pre> |
| | | |
Zeile 452: |
Zeile 425: |
| | | |
| === Camsrv === | | === Camsrv === |
− | LiveStream ähnlich motion | + | LiveStream ähnlich motion - im pwc-Paket enthalten |
| | | |
| <pre> | | <pre> |
Zeile 821: |
Zeile 794: |
| | | | | |
| |------ | | |------ |
− | !bgcolor="red"|Logitech Quickcam Messenger | + | !bgcolor="green"|Logitech Quickcam Messenger |
| |0x046d/0x08f6 | | |0x046d/0x08f6 |
| |quickcam | | |quickcam |