GSM module A6 RESPONSE doesn't print on serial Monitor

Hi I First tested GSM a6 Module with USB to TTL converter(AT COMMAND TESTER)....its works great...
But when i connected it with arduino ...via software serial but it wont showing GSM MODULE RESPONSE as i am sending AT COMMANDS..other serial print works Normal ....

#include <SoftwareSerial.h>
SoftwareSerial myGsm(10,11);
float temp;
int tempPin = 0;
void setup()
{
 myGsm.begin(115200);  
 Serial.begin(115200);  
 delay(500);

myGsm.println("AT+CIPSHUT");
 delay(1000);
 printSerialData();

 myGsm.println("AT+CIPMUX=0");
 delay(2000);
 printSerialData();
 
 myGsm.println("AT+CGATT=1");
 delay(1000);
 printSerialData();
 

 myGsm.println("AT+CGDCONT=1,\"IP\",\"ISAFE\"");
 delay(1000);
 printSerialData();

 
 myGsm.println();
 myGsm.println("AT+CGACT=1,1");
 delay(7000);
 printSerialData();
 
 myGsm.println("AT+CIFSR"); //init the HTTP request
 delay(2000); 
 printSerialData();
 
 myGsm.println("AT+CIPSTART=\"TCP\",\"122.169.113.165\",\"1883\"");
 delay(5000);
 printSerialData();
 delay(5000);
 
 myGsm.println("AT+CIPSEND");
 delay(2000);
 printSerialData();
 
sendtemp();
delay(3000);
myGsm.println("AT+CIPCLOSE");
printSerialData();

myGsm.println("AT+CIPSHUT");
delay(1000);
printSerialData();
}

void loop()
{
}


void printSerialData()
{
 while(myGsm.available()!=0)
 Serial.write(myGsm.read());
}

void sendtemp()
{
  temp = analogRead(tempPin);
  temp = temp * 0.48828125;
  Serial.print("TEMPERATURE = ");
  Serial.print(temp);
  Serial.print("*C");
  Serial.println();
  delay(5000);
 myGsm.println(temp);
 delay(3000);
 printSerialData();
 myGsm.write(0x1A);
 delay(3000);
   printSerialData();
   
   
}

This code only prints "TEMPERATURE =","temp" and "*C"...no response of gsm module ..like "OK"
why is it so?i need it for troubleshooting..

myGsm.begin(115200);

What type of Arduino's are you using? 115200 is too fast for software serial on most Arduino like Uno. What is the default baud rate of the GSM module? Have you changed its baud rate using the usb-serial adaptor? If so, change it again, perhaps to 9600.

yes i also...checked it with 9600 ...but it wont show anything... :confused:

What baud rate were you using with the usb serial adaptor?

115200

So, as I already told you, that is too fast for software serial on most Arduino. Did you try my suggestion from reply #1?

hi i will try with arduino nano hope it will work.. :slight_smile:

Another option is to get an Arduino Pro Micro which has a second hardware serial port, so that software serial is not needed.

ok thanks alot sir :slight_smile: