OpenWRT extRoot & openVPN

Install extRoot
https://wiki.openwrt.org/doc/howto/extroot
OpenWRT – Rootfs & Swap on USB Storage

Install openVPN
https://forum.openwrt.org/viewtopic.php?id=42990

Setup OpenVPN using OpenWRT

Config firewall
http://serverfault.com/questions/240651/openwrt-openvpn-client-forwarding-from-lan-to-vpn-not-working

* OpenVPN on the OpenWRT

Low power foto-webcam

I’m working on a new project, a low power foto-webcam. The idea come from http://www.foto-webcam.eu website, they are installing this systems in remote area from many years. However, they use to leave the system always turned on, instead I want to turn the system ON only when the camera have to take the picture.

I’m doing this with a STM32L0 evaluation board and a Mosfet to turn the system ON/OFF.

Here is the picture of the first prototype (the camera power supply is not yet implemented)
IMG_1263

I will write further details and post my script.

OpenWRT check wireless link status

You can check if your interface is connected to an AP with

iw wlan0 link

and the output is something like this

SSID: blabla
freq: 2432
RX: 196892 bytes (1278 packets)
TX: 19107 bytes (125 packets)
signal: -35 dBm
tx bitrate: 57.8 MBit/s MCS 5 short GI

bss flags: short-preamble short-slot-time
dtim period: 0
beacon int: 100