Some tips for me and other

Tp-link MR3020 + OpenWRT + Webcam + 220V relay switch

I downloaded this firmware

Flashing (links from then on):

cd /tmp


mtd -r write /tmp/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin firmware

done – router will reboot.

Connect to via telnet: telnet

Run: passwd and change the password for root. Now you can connect to the router via ssh.

Configure the network: /etc/config/network

I prefer to get an address via DHCP, so

config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'dhcp' # I changed only this

Check the file /etc/opkg.conf – there must be the link

Now install USB-module for a keyboard, I made it  from this article

opkg update

opkg install kmod-usb-hid

next – install webcam support:

opkg install kmodinputcore kmodvideocore kmodvideouvc

configure mjpg-streamer:

opkg install mjpgstreamer

vi /etc/config/mjpg-streamer

config mjpg-streamer core
option enabled          “1”
option device           “/dev/video0”
option resolution       “640×480”
option fps              “5” # if you set it to 1 – it will be very long delay in transferring images
#       option www              “/www/webcam” # this is just info page for mjpg-streamer
option port             “8080”

/etc/init.d/mjpgstreamer start

http://ip-address:8080/?action=stream – this is the stream from camera, didn’t work in IE, but fine in Firefox

http://ip-address:8080/?action=snapshot – just a snapshot




Leave a Reply