Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,386 Members 38,662 Now Online
XDA Developers Android and Mobile Development Forum

Raspberry Pi - SMS Gateway

Tip us?
 
shemeri
Old
#1  
Senior Member - OP
Thanks Meter 1
Posts: 147
Join Date: Aug 2008
Question Raspberry Pi - SMS Gateway

I have a Raspberry Pi and Huawei E303 and I tried a lot to make this work but I simply didnt success

I found many on the net who successed but I simply couldn't, might do something wrong.

Anybody can help with this setup, using the above to run own sms gateway which I send from the internet to my raspberry pi which is connected to both internet and E303, and which takes care of the sending of sms?
 
Basti756
Old
(Last edited by Basti756; 28th March 2014 at 10:01 AM.) Reason: tutorial added, txt file added
#2  
Junior Member
Thanks Meter 2
Posts: 29
Join Date: Sep 2007
First you should make sure that your 3G stick is working. Boot your Pi without the stick and connect it afterwards. Then run dmesg and watch the last couple of lines for any hints on that.
The actual SMS gateway might be realized using gammu: http://wammu.eu/gammu/

I remembered a basic tutorial I wrote some time ago about getting gammu to run:
Quote:
1. Requirements for the Gateway

- Linux host (actual distribution, Kernel 3.0 or greater recommended)
- a compatible GSM phone/USB modem (compatibility chart: http://wammu.eu/phones/) directly connected to the Linux host
- gammu (set of commandline utilities to send SMS)
- gammu-smsd (daemon for sending SMS)
- MySQL Server (for gammu-smsd)


2. Installation/Configuration GAMMU

- install gammu (ie: 'sudo apt-get install gammu')
- run 'sudo gammu-config'
- configure the device (ie. /dev/ttyHS0) and connection (ie. at192000), optional logging
- copy the resulting file ($HOME/.gammurc) to /etc/gammurc
- testdrive gammu: 'echo "Test SMS" | sudo gammu --sendsms TEXT [target mobile number, ie: 123456789] -validity 6HOURS'


3. Installation/Configuration MySQL-Database

- install mysql-server (ie: 'sudo apt-get install mysql-server')
- optional: install phpmyadmin (requires Apache2/LightHTTPd with PHP5; ie: 'sudo apt-get install phpmyadmin')
- create a database for gammu-smsd (ie: named smsd)
- create a user for the database with the following rights on the created database: select, insert, update, delete
- create tables within the database according to/using the file 'create_smsd_db.txt'


4. Installation/Configuration GAMMU-SMSD

- install gammu-smsd (ie: 'sudo apt-get install gammu-smsd')
- modify the gammu-smsd configuration file in /etc/gammu-smsdrc according to 'create_smsd_config.txt'
- MODIFY TO FIT WITH YOUR ENVIRONMENT!
- rename /etc/gammurc to /etc/gammurc.org
- start gammu-smsd (ie: 'sudo service gammu-smsd start')
- testdrive gammu-smsd: 'echo "Greetings from gammu-smsd" | sudo gammu-smsd-inject TEXT [target mobile number, ie: 123456789]'
- if sending fails check the logfile/syslog
Attached Files
File Type: txt create_smsd_db.txt - [Click for QR Code] (64.6 KB, 106 views)
File Type: txt create_smsd_config.txt - [Click for QR Code] (36.5 KB, 84 views)
The Following User Says Thank You to Basti756 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes