A6 automatically answer calling problem


#1

I want to make auto answering using A6 GSM module with Arduino but it does not respond. my code is

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3);
boolean stringComplete = false;
String inputString = “”;
String fromGSM="";
void setup()
{
Serial.begin(9600);
Serial.println(“Serial Connected”);
mySerial.begin(9600);

//reserve some buffer space
inputString.reserve(200);
fromGSM.reserve(200);

//Turn off echo from GSM
mySerial.print(“ATE0”);
mySerial.print("\r");
delay(300);

//set to auto answer after 1 ring, [1-255]
mySerial.print(“ATS0=1”);
mySerial.print("\r");
delay(300);

}
void loop() // run over and over
{
}
Please help me


#2

Observe module response using USB to UART converter. May be you are sending commands too early after power up. Wait for atleast 20 seconds to send commands after power up.


#3

Sir I wait for at least 3 minutes and I use Arduino serial monitor and I want it for project making


#5

@RaviPujar Says at least wait for 20 seconds after power-up GSM and then send initialization commands. Use 20Sec delay immediately after power up and send commands. If possible post here a screenshot of your serial terminal.