SetNFix
Published © LGPL

A6 GSM GPRS Module AT Commands

How to connect A6 GSM GPRS module with Arduino and also work with “AT” commands.

BeginnerFull instructions provided26,543
A6 GSM GPRS Module AT Commands

Things used in this project

Story

Read more

Schematics

Wiring

Code

Code

Arduino
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)

Credits

SetNFix

SetNFix

15 projects • 26 followers
I am an accountant in profession but, I would more prefer to work with electronics based innovations.

Comments

Add projectSign up / Login