Using the Commands
+CMTI: "MT",4
AT+CMGR=4
+CMGR: "REC UNREAD","+97254565132"
msg text
OK
AT+CMGD=4
OK
5.2.3
Another Possible Option for Setting the CNMI Notification Indication
AT+CNMI=,2
OK
+CMT: "+97254565132","2003/3/24,15:38:55" msg text //When a new MT message is received, the unsolicited response
AT+CNMA
OK
The acknowledged message is not saved in the database. If the +CMT unsolicited response was not acknowledged within
60 seconds, the new message is saved in database.
5.2.4
Writing and Saving Messages (Using AT+CMGW and AT+CMSS)
Writing messages into the database, with or without destination address:
AT+CMGW
> message text
+CMGW: 142
OK
AT+CMGW="054565132"
> message text
+CMGW: 143
OK
:
268
//When a new MT message is received, the unsolicited response
+CMTI will be displayed, denoting the message index
//Use the new message index to read it
//Delete the message after reading it
//To have new incoming MT messages displayed on the terminal, the
second parameter of +CNMI should be set to 2
+CMT is displayed along with the message
//To acknowledge receipt of a message, use the AT+CNMA
command within 60 seconds of the +CMT unsolicited response
//Writing a message without destination address
//Writing a message with destination address
98-08901C68-O