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

MichaelT
8873 gold badges8 silver badges22 bronze badges
asked Nov 19, 2018 at 16:16

2 Answers 2

1

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

This setting is resolve your issue.

sa_leinad
3,2182 gold badges23 silver badges51 bronze badges
answered Oct 3, 2019 at 11:23
1
  • 1
    Could you edit your answer and add an explanation as to why this solution works? Commented Oct 3, 2019 at 12:40
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");
gre_gor
1,6824 gold badges18 silver badges28 bronze badges
answered Nov 19, 2018 at 19:12
1
  • 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. Commented Nov 21, 2018 at 3:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.