|
本帖最后由 haisong43 于 2012-4-16 11:09 编辑
freefall12 发表于 2012-4-15 22:48 
如果摄像头支持mjpg的话,不需要再进入路由来启动程序的.直接接上摄像头,然后在浏览器输入192.168.1.1:808 ...
root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0c45:62f1 Microdia
root@OpenWrt:~# dmesg lgrep usb
[ 0.410000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.410000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.420000] msgmni has been set to 57
[ 0.430000] io scheduler noop registered
[ 0.430000] io scheduler deadline registered (default)
[ 0.440000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.440000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[ 0.450000] console [ttyATH0] enabled, bootconsole disabled
[ 0.460000] m25p80 spi0.0: found s25sl032a, expected m25p80
[ 0.470000] m25p80 spi0.0: s25sl032a (4096 Kbytes)
[ 0.470000] 5 tp-link partitions found on MTD device spi0.0
[ 0.480000] Creating 5 MTD partitions on "spi0.0":
[ 0.480000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.490000] 0x000000020000-0x0000000fe2fc : "kernel"
[ 0.490000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.510000] 0x0000000fe2fc-0x0000003f0000 : "rootfs"
[ 0.510000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.520000] mtd: partition "rootfs" set to be root filesystem
[ 0.530000] mtd: partition "rootfs_data" created automatically, ofs=370000, len=80000
[ 0.530000] 0x000000370000-0x0000003f0000 : "rootfs_data"
[ 0.540000] 0x0000003f0000-0x000000400000 : "art"
[ 0.550000] 0x000000020000-0x0000003f0000 : "firmware"
[ 0.800000] ag71xx_mdio: probed
[ 0.800000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[ 1.410000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[ 1.410000] TCP westwood registered
[ 1.420000] NET: Registered protocol family 17
[ 1.420000] 8021q: 802.1Q VLAN Support v1.8
[ 1.430000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.440000] Freeing unused kernel memory: 192k freed
[ 6.770000] eth0: link up (100Mbps/Full duplex)
[ 6.820000] JFFS2 notice: (405) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 13 of xref (0 dead, 3 orphan) found.
[ 7.520000] SCSI subsystem initialized
[ 7.780000] usbcore: registered new interface driver usbfs
[ 7.780000] usbcore: registered new interface driver hub
[ 7.790000] usbcore: registered new device driver usb
[ 8.270000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 8.280000] ath79-ehci ar933x-ehci: Atheros built-in EHCI controller
[ 8.280000] ath79-ehci ar933x-ehci: new USB bus registered, assigned bus number 1
[ 8.320000] ath79-ehci ar933x-ehci: irq 3, io mem 0x1b000000
[ 8.340000] ath79-ehci ar933x-ehci: USB 2.0 started, EHCI 1.00
[ 8.340000] hub 1-0:1.0: USB hub found
[ 8.340000] hub 1-0:1.0: 1 port detected
[ 8.450000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 8.550000] uhci_hcd: USB Universal Host Controller Interface driver
[ 8.570000] Initializing USB Mass Storage driver...
[ 8.580000] usbcore: registered new interface driver usb-storage
[ 8.580000] USB Mass Storage support registered.
[ 8.730000] usb 1-1: new high-speed USB device number 2 using ath79-ehci
[ 34.000000] usbcore: registered new interface driver ums-alauda
[ 34.020000] usbcore: registered new interface driver ums-cypress
[ 34.040000] usbcore: registered new interface driver ums-datafab
[ 34.060000] usbcore: registered new interface driver ums-freecom
[ 34.080000] usbcore: registered new interface driver ums-isd200
[ 34.100000] usbcore: registered new interface driver ums-jumpshot
[ 34.490000] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62f1)
[ 34.500000] input: USB 2.0 Camera as /devices/platform/ar933x-ehci/usb1/1-1/1-1:1.0/input/input0
[ 34.510000] usbcore: registered new interface driver uvcvideo
[ 34.510000] USB Video Class driver (1.1.1)
[ [ 652.950000] usb 1-1: USB disconnect, device number 2
[ 1495.910000] usb 1-1: new high-speed USB device number 3 using ath79-ehci
[ 1496.110000] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62f1)
[ 1496.120000] input: USB 2.0 Camera as /devices/platform/ar933x-ehci/usb1/1-1/1-1:1.0/input/input1
root@OpenWrt:~# cat /dev/video0 > /tmp/1.jpg
cat: read error: Invalid argument
我查了一下,我的摄像头是松瀚公司【VID_0C45】出品的SNP2UVC免驱摄像头方案USB\VID_0C45&PID_62F1 ;SN9C253 ,看这个信息,驱动已经加载成功了,但是用火狐浏览器输入http://192.168.2.1:8080/?action=stream,显示
无法连接
Firefox 无法建立到 192.168.2.1:8080 服务器的连接。
此站点暂时不可用或者太忙。请稍后重试。
如果您无法载入任何页面,请检查您计算机的网络连接。
如果您的计算机受到防火墙或代理服务器的保护,请确认 Firefox 被授权访问网页。
我的mr11u设置的是192.168.2.1,什么原因还请兄台赐教,谢谢
|
|