Categories
TUTORIALS

RECEIVE AND AUTO-REPLY A SMS ON GPS(FONA 808)

CONTENT

  • What is FONA
  • What is this tutorial for
    • Receive a SMS message and auto-reply it
    • The output
  • The parts list
    • The parts list
    • Recommendation of accessories
  • The circuitry
  • The code
    • FONA-response (full commented)

WHAT IS FONA

In this tutorial, you will use GPS (FONA 808) to receive a short message service(known as SMS) message and auto-reply anything you want! The Adafruit FONA 808 MiniGSM + GPS is an all-in-one cellular phone module. It lets you add location-tracking, voice, text, SMS and data to your project in an adorable little package. It looks like this:

(The front)

(The back)

To receive and auto-reply a SMS message, you will make use of the following features of GPS (FONA 808).  Related parameters are shown for reference:

Feature Related parameter
·       It can connect onto any global GSM network with any 2G SIM in the USA Quad-band 850/900/1800/1900MHz
·       Send and receive SMS messages
·       AT command interface with “auto baud” detection

WHAT IS THIS TUTORIAL FOR

The following tutorial will be useful when you want to set an auto-reply message to any SMS text you receive. If you want to know more about the GPS working part, please refer to Deon Provost’s post.

The result is shown below:

(267)244-5600 is the number coming from the SIM card. You can only use SMS commands on FONA with a SIM card.

“hi” is sent by a mobile phone user, it can be anything. “Hey, I got your text!” is the automatically reply message you can set under codes.

THE PARTS LIST

The parts list goes like this:

PARTS How it works
An Arduino Uno ·       act as a microcontroller
A GPS(FONA 808) ·       receive, transmit and reset data under codes in Arduino
A LiPoly/Lilon battery ·       power the FONA
A MicroUSB connector ·       charge the Lipoly/Lilon battery
An external uFL GSM Antenna ·       receive and send SMS
A passive GPS Antenna uFL ·       is required to use the SMS commands
A 2G Mini SIM card ·       record data from the cellular network

Here are recommendations of accessories on Adafruit other than Arduino and GPS(FONA 808):

A LiPoly/Lilon battery 

An external uFL GSM Antenna

A passive GPS Antenna uFL 

A 2G Mini SIM card 

It fits in FONA like this:

The final set looks like these:

(The front)

(The back)

THE CIRCUITRY

To use the code controlling the FONA, you need to follow the pins’ list:

RX (Receiving) 2
TX (Transmitting) 3
Rst (Resetting) 4

 

In this tutorial, you are going to power the FONA with wires to Arduino. You should link pins of 5V and GND of both FONA and Arduino on the breadboard. In addition, on FONA and the breadboard,  you should link Vio to the positive, and Key to the negative. The final circuit goes like this:

(Correction: It should be 1200mAh on the battery, and the antennas should be different from each other. Due to software limitation, the parts are for reference only.)

Here is what you should have finally:

THE CODE

3 replies on “RECEIVE AND AUTO-REPLY A SMS ON GPS(FONA 808)”

Hi, thanks for the post. I am working on a project that requires an auto reply feature. However, I have FONA 3G instead of 800 or 808. Do I just comment out line 23 and uncomment line 25? Unfortunately this method does not really work.

I live in Australia and I’m pretty sure my FONA works as I am able to send SMS’s and make phone calls. However, I cannot read any incoming messages.

Good post!

I am using FONA to receive SMS and send the message to another microcontroller through serial interface, but there is a lot of text associated with the original message, How do I clean the message such that only the desired text get sent? I don’t want all those AT commands.

Leave a Reply

Your email address will not be published. Required fields are marked *