HOWTO 3g-sensd-WSN-GW Revision -------- 0.3 2015-01-02 Hardware -------- RPi Model B+ microSDCARD 8G HUAWEI 220 USB dongle Telia "Kontant kort". Valid for 6 month (5 GB 299:- SEK) S2 Sensor node. radio-sesnors.com FTDI USB-TTL cable 6-pin header Software -------- 2014-12-24-wheezy-raspbian sakis3g umtskeeper devtag http://jelaas.eu/src/devtag-1.0.7.tar.gz sensd Overview -------- This HOWTO summarizes some experiences to setup a 3g/4G gateway. The purpose for this project is to a have a Wireless Sensor Gateway running at locations where only 3g/4g is available. The new version of RPi is recommended, better power design and more USB ports, and microSDCARD. Rasperian seems to be mature and well-documented. Which is what we suggested here. sakis3 is for the 3g connection and umtskeeper is to monitor and reconnect the 3g connection. Boot script Configuration /etc/rc.local --------------------------------------- Major task is to bring up 3g connection. Fill in 3g credentials. APN. USB ID etc. See sakris3g docs. /usr/local/src/umtskeeper/umtskeeper --sakisoperators "USBINTERFACE='0' OTHER='USBMODEM' USBMODEM='12d1:1003' APN='CUSTOM_APN' CUSTOM_APN='online.telia.se' APN_USER='0' APN_PASS='0'" --sakisswitches "--sudo --console" --devicename 'Huawei' --log --silent --nat 'no' & /usr/local/scripts/start_sensors_logging.sh ------------------------------------------- The major job is to start sensd gatway # No local logging and no local TCP server. Connect to RS proxy. #DEV=/dev/ttyUSB0 # Or safer to use devtag name. See http://jelaas.eu/src/devtag-1.0.7.tar.gz DEV=/dev/3gmodem stty -F $DEV sane 38400 /usr/bin/sensd -report -f /dev/null -domain TESTSINK.SE -send radio-sensors.com -send_port 1236 -D $DEV Sensor node can be connected via USB-TTL cable or TTL pins: http://www.radio-sensors.com/pictures/RPi-UART.jpg http://www.radio-sensors.com/pictures/RPi-sensor-s6pin-header.jpg Mobile 3g subscriptions ------------------------ There is quite a lot of things to consider. One things thats it easy to forget is if your provider allocates a public or privte IP address for you. A public IP address gives you more options and makes it easier to reach the WSN gateway this is important for debugging, upgrading local services without the need for proxy servers etc. TODO ---- Setup for ssh or tunnel so system can be configured even if behind a NAT SNAPSHOT -------- A summary of mentioned software iss available via: http://www.radio-sensors.com/projects/WSN-GW/2015-01-01-wheezy-raspbian-3g-sensd-WSN-GW.img.zip Documentation ------------- All used software is open-source. There are lot's of documentation how to setup, configure and troubleshoot RPi and 3g GW's. Reefer to this info. Author ------ Robert Olsson