Command Meaning
AT+CMGF=0 Set the mode (PDU).
AT+CPMS? See the memory status.
+CPMS: 31,70,0,15,31,70
Set the storage to Mobile Equipment.
+CMGR: 0,, 23
Read the message at index 3 (larger numbers indicate newer messages). 0 is unread; length is 23.
AT+CMGS=<message_length> Send message.

Table 1 Use AT commands for SMS.
Use this selection of AT commands to send and receive SMS messages. Anyone who remembers controlling modems programmatically will remember these commands.