Raspberry Pi Based SMS Server

Somnath Bera

5
14141

Until recently, for sending an SMS we had to use third-party services from the Internet. Weefy tested had to log on to a third-party server, copy and paste the message in the text box, pull up the mobile phone numbers, or copy and paste the group of mobile phone numbers separated by commas and then press Send.

In some rare cases, the SMS would not reach the destinations. So the guys at our company decided to buy an SMS server to create own facility for sending mass SMSes.

fig 172
Fig. 1: GPRS shield pin details

The proposal was moved and eventually the SMS server was bought and put into operation. But when I heard how much the entire system cost, I was spellbound. That is when I decided to make a cheap and efficient SMS server on Raspberry Pi (or Raspi) at a fraction of the cost.

In this article, we will design an SMS server on Raspi using a GPRS shield, pin details of which include +5V, Tx and Rx, as shown in Fig. 1.

You can buy a GPRS shield for US$ 4.7 from  however the video instructions provided by the vendor would most likely be in Mandarin. So, in all probability, you would not be able to understand the audio instructions and face problem while soldering the surface-mount diodes LED1 and LED2.

To solve that problem, I have marked the polarity of the diodes as shown in Fig. 2. The positive rail comes from the edge of the PCB, where D1, R1, D4 and R3 have been marked.

fig 272
Fig. 2: Polarity of the LEDs on PCB

All surface-mount resistors (R1, R2 and R3) are 4.7-kilo-ohm each. The diode and capacitor shown in Fig. 2 should be mounted on the other side of the PCB.Fortunately, you can avoid soldering this kit by ordering the assembled kit from  (We recommend users to see the video instructions from as it really helps to understand how to use this GPRS shield.) Do clip the antenna on the module.

How to get started

Hardware. Following hardware items are required to get started:

1. GPRS shield 900MHz – 1800MHZ
2. USB-to-serial dongle (required as these shields do not work on direct UART connections)
3. Raspi computer (preferable model B2 with 512MB RAM)
4. SIM card ready for sending SMSes

Software. To start with, after logging on, update Raspi using the following commands. This ensures that you have the latest software and drivers installed.

$ sudo apt-get update
$ sudo apt-get upgrade

Now, to send and receive SMSes using a GSM modem on Raspi, install Linux application Gammu and its GTK front-end Wammu.

$ sudo apt-get install gammu wammu

Circuit and working

Connect the GPRS shield to Raspi using USB-to-serial dongle/adaptor as shown below and also in Fig. 3.

fig 372
Fig. 3: GPRS shield and dongle connections

GPRS shield Dongle pins
Pin-2 : +5V : connect to VCC of
USB-serial dongle
Pin-3 : Ground : connect to GND of
USB-serial dongle
Pin-14 : Tx : connect to Rx of dongle
Pin-16 : Rx : connect to Tx of dongle

Insert the SIM card into the SIM card jacket and connect the GPRS shield. You will find one LED (power LED) is glowing steady while the other LED (signal LED) is blinking steadily. In case there is a signal problem, the signal LED will blink fast.

5 COMMENTS

  1. Sir, i loved this project and trying to makebit my final yr project can i have guidlines through email with active conversarion..??

    • Here’s the reply from author Somnath Bera “It was a GSM GPRS kit. I tested it on BSNL 2G & Idea 3G SIM Cards.
      Its a 900 – 1800 MHz band. Not tested on 2100 MHz SIM Cards.”

LEAVE A REPLY

Please enter your comment!
Please enter your name here