SMS Gateway using Sierra Wireless USB Modem on Debian Wheezy

I have been planning to set up a SMS Gateway for sending and receiving SMS messages via a headless utility unit (Raspberry Pi) for a while. Since I had a leftover Sierra Wireless AirCard 880U from Telstra in Australia I wanted to re-purpose this unit with a spare SIM card. Unfortunately it was very hard to find any good setup manual for this particular combination and took some time to fiddle & debug. This is the working setup for future reference and hopefully it helps somebody. Install dependencies Note: install usb-modeswitch BEFORE connecting USB Modem sudo apt-get install usb-modeswitch gsm-utils smstools gammu Connect the USB Modem Check if modem is recognised lsub Bus 003 Device 002: ID 1199:6855 Sierra Wireless, Inc. Edit smstools config file vim /etc/smsd.conf Change the GSM1 entry [GSM1] init = ATE0;+CPMS="SM","SM" device = /dev/ttyUSB2 incoming = yes mode = new baudrate = 115200 smsc = 61418706700 pin = ignore #rtscts = yes #cs_convert = yes report = yes sending_disabled = no memory_start = 1 pre_init = yes primary_memory = SM secondary_memory = SM secondary_memory_max = 40 Troubleshooting the modem I installed gammu purely to have an easier way to test if the modem actually worked. You can use gammu-config to do a GUI config or create a config file manually vim /etc/gammurc [gammu] port = /dev/ttyUSB2 connection = at115200 Testing gammu-detect ; Configuration file generated by gammu-detect. ; Please check The Gammu Manual for more information. [gammu] device = /dev/ttyUSB0 name = Phone on USB serial…

Continue ReadingSMS Gateway using Sierra Wireless USB Modem on Debian Wheezy

Raspberry Pi – Raspbian post install tasks

The Raspbian Install process is fairly well documented using the Raspbian Installer. This is just to document common tasks after the stock install. Install base utils apt-get install sudo vim ntpdate git-core binutils make gcc ca-certificates rpi-update Allow non-root user account access to 'sudo' adduser USERNAME sudo For those Ubuntu users there is no 'admin' group in Raspbian (Debian Wheezy). NTP time update sudo rm /etc/localtime sudo ln -s /usr/share/zoneinfo/Australia/Adelaide /etc/localtime sudo ntpdate -u au.pool.ntp.org Probably best to choose an NTP Server closest to your location or provided by your ISP Firmware upgrade EDIT (2014-03-31): rpi-update is now part of the Raspbian repositories and can be installed via apt-get install rpi-update (I have added this to the above line). Note: unless you want the latest firmware this is not a necessary step as apt-get will update the firmware to the latest stable release. Using Hexxeh updater. Install dependencies wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update sudo rpi-update Install WiringPi Thanks to the excellent work of Gordon Henderson (https://projects.drogon.net/raspberry-pi/wiringpi/) this is a C-based program to read/write to the Raspberry Pi GPIO pins. cd /usr/share git clone git://git.drogon.net/wiringPi cd wiringPi git pull origin ./build Output: wiringPi Build script ===================== The wiringPi I2C helper libraries will not be built. WiringPi library [UnInstall] [Compile] wiringPi.c [Compile] wiringPiFace.c [Compile] wiringSerial.c [Compile] wiringShift.c [Compile] gertboard.c [Compile] piNes.c [Compile] lcd.c [Compile] piHiPri.c [Compile] piThread.c [Compile] wiringPiSPI.c [Compile] softPwm.c [Compile] softServo.c [Compile] softTone.c [Link (Dynamic)] [Install] GPIO Utility [Compile] gpio.c [Link] [Install] All Done. Testing the…

Continue ReadingRaspberry Pi – Raspbian post install tasks