AT+CMGS SMS Sent in SIM Memory but not able to see mesasge text (using 800L)


#1

Dear Sir,
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=“9827927886”\r”);
delay(1000);
serialSIM800.write(“Emergency at IIST\r”); // message
delay(1000);
serialSIM800.write(0x1A);
delay(1000);
Serial.println(“SMS sent successfully”);

Please help.

Mayank Dewangan
9424764006


#2

There is no guarantee that message sent successfully. The code is just printing it after delay.
You should wait for > prompt before you send the text.
Wait for +CMGS : 55 or some number string in code to confirm SMS sent successfully.


#3

Dear Sir, sms sent successfully. But when receive my mobile it will save in sim memory with corrupt formt (not able to see text contents).
Kindly advise.


#4

Share a image of what you are saying corrupt format


#5

@mayankasdf Try reducing delay between instructions.


#6

HI both guru,

i please see screen shot.

thanks


#7


#8

I have one clue for that same.
when i am use below command for any received(in SIM800L) message i working fine(Mean message revived in proper sms).
AT+CMSS=4,“09827927886”.