Remove All Ads from XDA

Raspberry Pi - SMS Gateway

148 posts
Thanks Meter: 1
By shemeri, Senior Member on 7th March 2014, 01:04 PM
Post Reply Email Thread
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?
28th March 2014, 09:50 AM |#2  
Junior Member
Thanks Meter: 2
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:

I remembered a basic tutorial I wrote some time ago about getting gammu to run:

1. Requirements for the Gateway

- Linux host (actual distribution, Kernel 3.0 or greater recommended)
- a compatible GSM phone/USB modem (compatibility chart: 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'
- rename /etc/gammurc to /etc/
- 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, 416 views)
File Type: txt create_smsd_config.txt - [Click for QR Code] (36.5 KB, 319 views)
The Following User Says Thank You to Basti756 For This Useful Post: [ View ] Gift Basti756 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes