Go Down

Topic: SMS don´t store in SIM card (module gsm/gprs shield A6) (Read 133 times) previous topic - next topic

joseguatume

i have this problem for a few days, rigth now a dont know what the problem is.

This the code:

Code: [Select]

void configuracion_gsm(){
  Serial3.println("AT"); //Once the handshake test is successful, it will back to OK
  delay(100);
  updateSerial();
  Serial3.println("AT+CPIN?");
  delay(200);
  updateSerial();
  Serial3.println("AT+CSQ");
  delay(100);
  updateSerial();
  Serial3.println("AT+CREG?");
  delay(200);
  updateSerial();
  Serial3.println("AT+CSMP=17,167,0,0");
  delay(200);
  updateSerial();
  Serial3.println("AT+CPMS=\"SM\"");
  delay(100);
  updateSerial();
  Serial3.println("AT+CMGF=1");
  delay(100);
  updateSerial();
  Serial3.println("AT+CSDH=1");
  delay(100);
  updateSerial();
  Serial3.println("AT+CNMI=1,1,0,0,0");
  delay(200);
  updateSerial();
}


Ouyput Serial monitor:

Code: [Select]

12:27:31.659 -> AT
12:27:31.659 ->
12:27:31.659 -> OK
12:27:31.863 -> AT+CPIN?
12:27:31.863 ->
12:27:31.863 -> +CPIN:READY
12:27:31.863 ->
12:27:31.863 -> OK
12:27:31.965 -> AT+CSQ
12:27:31.965 ->
12:27:31.965 -> +CSQ: 20,99
12:27:31.965 ->
12:27:31.965 -> OK
12:27:32.168 -> AT+CREG?
12:27:32.168 ->
12:27:32.168 -> +CREG: 1,10
12:27:32.168 ->
12:27:32.168 -> OK
12:27:32.372 -> AT+CSMP=17,167,0,0
12:27:32.372 ->
12:27:32.372 -> OK
12:27:32.474 -> AT+CPMS="SM"
12:27:32.474 ->
12:27:32.474 -> +CPMS: 0,35,0,35,0,35
12:27:32.474 ->
12:27:32.474 -> OK
12:27:32.576 -> AT+CMGF=1
12:27:32.576 ->
12:27:32.576 -> OK
12:27:32.678 -> AT+CSDH=1
12:27:32.678 ->
12:27:32.678 -> OK
12:27:32.882 -> AT+CNMI=1,1,0,0,0
12:27:32.882 ->
12:27:32.882 -> OK
12:27:33.086 ->
12:27:33.086 -> +CIEV: service,  1
12:27:33.086 -> +CIEV: roam, 0
12:27:33.086 ->
12:27:33.086 -> +CREG: 1
12:27:33.086 -> AT+CMGL="REC UNREAD"
12:27:33.086 ->
12:27:33.086 -> OK
12:27:33.120 -> menu
12:28:08.929 ->
12:28:08.929 -> +CIEV: "MESSAGE",1
12:28:08.929 ->
12:28:08.929 -> +CMTI: "SM",0

Go Up