@keyframes fade-in{0%{opacity:0}100%{opacity:1}}@keyframes fade{10%{transform:scale(1, 1)}35%{transform:scale(1, 1.7)}40%{transform:scale(1, 1.7)}50%{opacity:1}60%{transform:scale(1, 1)}100%{transform:scale(1, 1);opacity:0}}[data-language] code,[class^="lang"] code,pre [data-language],pre [class^="lang"]{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";animation:fade-in 50ms ease-in-out 2s forwards}[data-language] code.rainbow,[class^="lang"] code.rainbow,pre [data-language].rainbow,pre [class^="lang"].rainbow{animation:none;transition:opacity 50ms ease-in-out}[data-language] code.loading,[class^="lang"] code.loading,pre [data-language].loading,pre [class^="lang"].loading{animation:none}[data-language] code.rainbow-show,[class^="lang"] code.rainbow-show,pre [data-language].rainbow-show,pre [class^="lang"].rainbow-show{opacity:1}pre{position:relative}pre.loading .preloader div{animation-play-state:running}pre.loading .preloader div:nth-of-type(1){background:#0081f5;animation:fade 1.5s 300ms linear infinite}pre.loading .preloader div:nth-of-type(2){background:#5000f5;animation:fade 1.5s 438ms linear infinite}pre.loading .preloader div:nth-of-type(3){background:#9000f5;animation:fade 1.5s 577ms linear infinite}pre.loading .preloader div:nth-of-type(4){background:#f50419;animation:fade 1.5s 715ms linear infinite}pre.loading .preloader div:nth-of-type(5){background:#f57900;animation:fade 1.5s 853ms linear infinite}pre.loading .preloader div:nth-of-type(6){background:#f5e600;animation:fade 1.5s 992ms linear infinite}pre.loading .preloader div:nth-of-type(7){background:#00f50c;animation:fade 1.5s 1130ms linear infinite}pre .preloader{position:absolute;top:12px;left:10px}pre .preloader div{width:12px;height:12px;border-radius:4px;display:inline-block;margin-right:4px;opacity:0;animation-play-state:paused;animation-fill-mode:forwards}pre{background-color:#000;word-wrap:break-word;margin:0px;padding:10px;color:#fff;font-size:14px;margin-bottom:20px}pre,code{font-family:'Monaco', 'Menlo', courier, monospace}code span{transition:color 0.6s ease-in}code .red{color:#f50419}code .orange{color:#f57900}code .yellow{color:#f5e600}code .green{color:#00f50c}code .blue{color:#0081f5}code .indigo{color:#5000f5}code .violet{color:#9000f5}code .animate{color:#fff !important}pre{background:#010104}pre .comment{color:#747474}pre .keyword,pre .selector,pre .operator{color:#bc5cff}pre .storage,pre .support{color:#fb2639}pre .string{color:#fff55c}pre .constant{color:#ffad5c}pre .entity{color:#43a6ff}pre .inherited-class,pre .storage{font-style:italic}[data-language="custom"] .comment,.lang-custom .comment,.language-custom .comment{color:#314CAD}[data-language="custom"] .integer,.lang-custom .integer,.language-custom .integer{color:#f5e600}[data-language="custom"] .keyword,.lang-custom .keyword,.language-custom .keyword{color:#f57900}[data-language="html"] .attribute,.lang-html .attribute,.language-html .attribute{color:#fc4959} Easy Mades: A6 GSM GPRS Module AT Commands

A6 GSM GPRS Module AT Commands



This is A6 GSM/GPRS module. In this tutorial shall we learn how to connect the module with arduino uno and also work with “AT” Commands. This A6 module has the following features.





Features:

- Working frequency: quad-band network, 850 / 900 / 1800 / 1900MHz
- Working voltage: 4.8-9VDC(On-board voltage regulator circuit supply power for A6 module)
- Working Current: maximum of 2A
- Sleep Current: 5mA
- Onboard Micro SIM card holder, you can install Micro SIM card
- Onboard Micro USB interface for external power supply
- Communication Interface: TTL serial port / RS232 serial port
- Baud rate: 115200bps and it can also be set by AT command.
- Interface logic voltage: 3.3V
- Make and answer phone calls using a headset and electret microphone.
- Send and receive SMS messages.
- Send and receive GPRS data (TCP/IP, HTTP, etc.) .
- Be used to test the Ai-Thinker GPRS A6 module
- Pin pitch: 2.54mm
- Onboard antenna interface: SMA and IPX

If you connect this with arduino uno for AT commands, you need only 4 wires. I decided to use four difference colored wires for easy understandings.

1st insert a micro - sim card to A6 module



You have to connect A6 module with Arduino uno as per the following wiring.



Wire
A6 Module
Arduino Uno
RED
VCC
+5V
BLACK
GND
GND
ORANGE
U_RXD
PIN 2
YELLOW
U_TXD
PIN 3
               
Once the wiring is completed, you can start programming.


How to work with AT commands.?


#include <SoftwareSerial.h> 

SoftwareSerial A6MODULE(2,3);

void setup() {
  // put your setup code here, to run once:
 Serial.begin(9600);
delay(1000);
  A6MODULE.begin(9600);
delay(1000);
}

void loop() {
 
 while(A6MODULE.available()){
  Serial.write(A6MODULE.read());
 }

  
 while(Serial.available()){
  A6MODULE.write(Serial.read());
 }

}

After Uploading codes, run the serial monitor.

Now type AT and press enter. If all the things are in order, Serial monitor will say “OK”

HOW TO CALL?
ATD command is used for dial a phone call.

Eg: Type ATD+123456789 then enter (your phone number)

 HOW TO SEND SMS?
Type AT+CMGF = 1  then enter “ Answer should be OK”

Then Type AT+CMGS = “+123456786” then enter (your phone number)

    > Type your massege and press CTRL+Z

There are thousands of AT commands, you can find those from the following link. 



If you have any doubt, please put it in the comments below.

Stay with Easy Mades.

2 comments:

  1. hello, maybe do you can help me for give source code to connected the a6 gsm gprs module with arduino ?

    ReplyDelete
  2. Hi
    Is it possible to detect DTMF with A6 ..
    just curious
    Thanks

    ReplyDelete

-->
Copyright © 2013 Easy Mades
var rainbow = require('rainbow-code'); var highlighted = rainbow.colorSync('var foo = true;', 'javascript');