Auro
Auro

Reputation: 1638

Getting Error on AT+CSTT and AT+CIFSR

I'm completely new to Arduino, so please forgive me if something I ask here sounds stupid. So I have this Arduino UNO & Arduino compatible GSM-GPRS-GPS Simcomm SIM808 module that I'm working with. I want it to communicate with a Web server, but I can't even get it to start.

Following is my Arduino code:

#include<SoftwareSerial.h>

SoftwareSerial mySerial(2,3);




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

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Starting GSM...");
  mySerial.println("AT");
  Serial.println(getResponse());
  mySerial.println("AT+CSTT=\"TATA.DOCOMO.INTERNET\",\"\",\"\"");
  Serial.println(getResponse());
  mySerial.println("AT+CIFSR");
  Serial.println(getResponse());
}

String getResponse(){
  while(!mySerial.available()>0);
  return mySerial.readString();
}

And this is what I'm getting:

Starting GSM...
AT

OK

AT+CSTT="TATA.DGCOMO.INTERNET","",""

ERROR
ÿ
AT+CIFSR

ERROR

Starting GSM...
AT

OK

AT+CSTT="TATA.DOCOMO.INTERNET","",""

ERROR

AT+CIFSR

ERROR

Starting GSM...
AT

OK

AT+CSTT="TATA.DOCOMO.INTERNET","",""

ERROR

AT+CIFSR

ERROR
ÿÿÿÿ
Starting GSM...
AT

OK
ÿ
AT+CSTT="TATA.DOCOMO.INTERNET","",""

ERROR

AT+CIFSR

ERROR

I have no clue why it's happening & why I'm getting those ÿÿ in the result.

Upvotes: 0

Views: 5997

Answers (2)

ee04395
ee04395

Reputation: 57

I had the same problem where I received ERROR after executing AT+CSTT="APN" . The APN cannot be changed when AT+CIPSTATUS is in "IP START" state. Deactivate the PDP Context with AT+CIPSHUT so that the AT+CIPSTATUS is in "IP INITIAL" state. Then run the AT+CSTT="APN" again.

Upvotes: 4

Abhishek Kumar
Abhishek Kumar

Reputation: 1

ÿÿÿÿ This string appears when you restarts the SIM modem since you are getting it in the middle of your program, it is probably caused by insufficient power supply.

Upvotes: 0

Related Questions