Post Reply

Question Raspberry Pi - SMS Gateway

OP shemeri

7th March 2014, 01:04 PM   |  #1  
OP Senior Member
Thanks Meter: 1
 
147 posts
Join Date:Joined: Aug 2008
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
 
29 posts
Join Date:Joined: Sep 2007
More
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, 120 views)
File Type: txt create_smsd_config.txt - [Click for QR Code] (36.5 KB, 92 views)
Last edited by Basti756; 28th March 2014 at 10:01 AM. Reason: tutorial added, txt file added
The Following User Says Thank You to Basti756 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes