Chapter 3: AT Commands Reference
June 30, 2008 AT Commands Reference Manual 3-117
Example
AT+CM GL= ?
+CMGL: ("REC UNREAD","REC READ","STO UNSENT","STO SENT","ALL")
OK
AT+MM GL= ?
+MMGL: ("REC UNREAD","REC READ","STO UNSENT","STO SENT","ALL","HEADER ONLY")
OK
AT+CPMS="SM" // read messages from SIM.
+CPMS: 2,20,11,61,2,20
OK
AT+MMGL // read "rec-unread" messages without changing message stat
+MMGL: 1,"REC UNREAD","+972544565034",,"05/01/01,09:21:22+08"
message text
OK
AT+CMGL // read "rec-unread" messages with changing message stat
+CMGL: 1,"REC UNREAD","+972544565034",,"05/01/01,09:21:22+08"
message text
OK
AT+CM GL
OK // the message stat was changed. No "rec-unread" messages.
AT+CP MS= "ME"
+CPMS: 11,61,11,61,2,20
OK
AT+CM GL= "sto sent "
+CMGL: 142,"STO SENT","054565034",,
message text
OK
AT+CS DH= 1
OK
AT+CM GL= "STO SENT "
+CMGL: 142,"STO SENT","054565034",,,81,<message length>
message text
OK
AT+CMGS=18 //send to myself
> 079179521201009511000c917952446505430004AA0441424344
+CMGS: 68
OK
AT+CPMS="sm" // change to SIM to read the incoming messages
+CPMS: 2,20,11,61,2,20
OK
AT+MM GL
+MMGL: 2,0,,23
0791795212010095040C917952446505430004502032114340800441424344
OK