Introduction: Tutorial EFCom - GRPS/GSM Shield Arduino

About: ElecFreaks is an open design house founded in March 2011. Our goal is to create rapid prototypes and give small-batch manufacture solution for makers and startups. With over 50% staff as engineers and expanded…

Hello, every electronics hobbyist, recently we have finished one tutorial about EFCom, which can promptly assist Arduino learners to send a message, calling a phone, meanwhile, realize GPRS communication, including both quick starter guide and product data sheet, aiming to help  starters quickly master the operation steps of EFCom and elaboratively understand its specifications. We sincerely expect to share and communicate with every member in this community, and if you have any suggestions or find out any mistakes, please feel free to contact us.

GPRS Shield-EFCom is a serial GSM/GPRS wireless module, compatible with all of Freaduino and standard Arduino boards. Only connecting EFCom with these boards ,enables you to easily control EFCom via AT commands, dialing a phone, sending a message ……Besides, EFCom supports LCD5110 display and serial Keypad input。It has been extensively used in a variety of fields, helping Arduino hobbyists promptly to acquire GSM/GPRS mobile phone research,suitable for wireless development projects,also applying to remote control development.

Step 1: Hardware Preparation

1.Power adapter ×1 (supply current>800mA)
2.EFCom ×1
3.Arduino UNO ×1
4.SIM card ×1(make sure SIM card is unlocked)
5.Antenna ×1
6.USB cable ×1

Step 2: Software Preparation

1. Arduino IDE 1.0.x

2. Serial Tool-sscom32

Step 3: Hardware Operation

1.Install the SIM card into your GPRS Shield.
2.Take an Arduino board and install the GPRS Shield over it.
3.Connect the antenna to the GPRS Shield.
4.Connect the Arduino to your computer using a USB cable.
5.Plug the power adapter to Arduino.
6.Press and hold the power button a short while(Over 3 seconds) on the GPRS Shield to turn it on. Wait half a minute for the GPRS Shield to connect to the network (NET LED will start blinking every 3 seconds or so). If it continues blinking every 800mS, which means EFCom can’t connect to the Internet, please pull the SIM card and re-plug it., or try another card.

Step 4: Software Operation

1.Copy and paste our identifying code “Demo1.txt” from GPRS Shield-EFCom\Wireless\Wiki (If you use Arduino1.0,please copy and paste Demo2.txt),and then compile it until the software displays“done compiling”, which means this operation succeeded.

2.Upload the identifying code until the software displays“ done uploading”, which means uploading succeeded.

3.Type and send "AT" (without the quotes) followed by carriage return (enter key) to the Arduino board. The GPRS Shield should respond by sending back an "OK". This would mean that you have been able to successfully control your GPRS Shield with various AT Commands.
Please note the circled places and choose Baud Rate as 19200 8-1-N-0 ,in addition, select the corresponding COM.

4.Send a message. Through your serial terminal software, send AT+CMGF=1 and press the Enter key.The GPRS Shield will respond with an OK. Send AT+CMGS="+86158×× ×× ×× " and press the Enter key (include the quotes) and The GPRS Shield will send a >signaling you to start typing the message. Start typing your message and when you are done, press Ctrl + Z keys on your keyboard.The modem will accept the message and respond with an OK. A few moments later, the message should be received on the handset whose number you had specified.

5.Call a phone .Through your serial terminal software, input “ATD158 ××××××;” and the GPRS Shield will respond with an OK. Congratulations on your success of dialing a phone.

Step 5: Q & A

Q : EFcom Shield IO is not sufficient,and can you supply other spare IO ?
A : EFcom itselef does’t spare IO, but users can apply LCD5110 data port from D8 to D13. Besides, imitated IO A5 is for serial keypad,so users can also directly put it into use.
Q : Can EFcom Shield be worked over Mega2560?
A :Yes, but jumper wires are needed to connected to D18/D19 .Or you can use hardware serial port D10/D11, because Mega2560 can’t use D2/D3 as software serial port. Mega2560 has special requirements for software serial port, and detailed description is demonstrated as below.

// Specifically for the Arduino Mega 2560 (or 1280 on the original Arduino Mega)
// A majority of the pins are NOT PCINTs, SO BE WARNED (i.e. you cannot use
    them as receive pins)
// Only pins available for RECEIVE (TRANSMIT can be on any pin):
// (I've deliberately left out pin mapping to the Hardware USARTs - seems
    senseless to me)
// Pins: 10, 11, 12, 13,  50, 51, 52, 53,  62, 63, 64, 65, 66, 67, 68, 69
   #define  rxPin  19
   #define  txPin  18