Automatic Camera by Using OpenWrt (用 OpenWrt 制作自动相机)
I setup the TP-Link MR11U with Logitech C270 as a automatic camera. it take picture every one second, TP-LINK_MR11U_C270_OpenWrt_mjpeg-streamer.tar.bz2 is the origin pictures in 30 minutes. brower online at here: http://downloads.openmobilefree.net/OpenWrt/TP-LINK_MR11U_C270_OpenWrt_mjpeg-streamer/
There are three different version of MR11U, Ver1.0/Ver1.1/Ver2.0, Ver1.0/Ver1.1 have power switch and two more buttons QSS and RESET, Ver2.0 have only one power switch. we can flash OpenWrt image from the web interface under Ver1.0/Ver1.1, but for Ver2.0 we have to flash OpenWrt under U-Boot command. which means you have to open the case connect the serial console to your computer. I have updated the OpenWrt MR11U wiki page for reflash detail.
Here is steps how to setup TP-Link MR11U as a automatic camera:
- Flash this OpenWrt image to the MR11U 3G Router. this image included uvc driver for Logitech C270. here is more information about this image.
- By default. it will stream the video. we needs change the /etc/init.d/mjpg-streamer line: –output “output_http.so –port $port” to “-o “output_file.so -f /tmp/ -d 1000″
- Reboot the MR11U or restart mjpg-streamer service, then it will automatic take picture every second.
- 将 MR11U 刷上 OpenWrt 镜像,这个镜像内置了 UVC 的驱动。直接支持 罗技C270, 这里有关于这个镜像的更多信息
- 默认我将 mjpg-streamer 配置成视频了。我们需要把安改成一秒存储一个图片。修改 /etc/init.d/mjpg-streamer 将这行 –output “output_http.so –port $port” 改成 “-o “output_file.so -f /tmp/ -d 1000″
- 重启路由器或者重启 mjpg-streamer 这个服务。就可以自动拍照了
这两张图片是 MR11U 和 C210 的图片,不是我用的设备。明天我会把我用的设备拍照发到这里。(阳光下拍照,效果会好一点)

