0

I am using below code for send sms but SMS Sent sucessfully but save in SIM memory & not able to see message text :

serialSIM800.write(“AT+CMGF=1\r”); //sending SMS in text mode
delay(1000);
serialSIM800.write(“AT+CMGS=“9827927887”\r”);
delay(1000);
serialSIM800.write(“Emergency at IIST\r”); // message
delay(1000);
serialSIM800.write(0x1A);
delay(1000);
Serial.println(“SMS sent successfully”);

Please help.enter image description hereenter image description here

1

After few minutes of using Google, I found a library that contains everything you need to send/receive SMS and phone call. Here's the code I made in two minutes.

Currently I don't have SIM800L module, so I can't test it. Be sure you type a valid number format. For Croatia it's +385 XX XXX XXXX. +385 is an "international dialling code" for Croatia. Don't forget to put + before IDC.

serialSIM800.write("AT+CMGF=1\r"); 
serialSIM800.write("AT+CMGS=\"");
serialSIM800.write("PHONE_NUMBER");           
serialSIM800.write("\"\r");       
serialSIM800.write("Emergency at IIST");
serialSIM800.write("\r0x1A");
  • Thank you for the reply but my actual problem is i am from india and in my sim800l module the same network operator different sim card some are able to send proper message and i am able to receive it but some of them are not able to send the message and are sending the blank message to sim memory. – Joher Nawab Nov 21 '18 at 3:26
1

Set SMS Text Mode Parameters AT+CSMP to AT+CSMP=17,167,0,0

This setting is resolve your issue.

  • 1
    Could you edit your answer and add an explanation as to why this solution works? – Greenonline Oct 3 at 12:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.