Data Sheet

Smart Machine Smart Decision
SIM800 Series_AT Command Manual_V1.09 114 2015-08-03
TA sets parameter to denote which input and output format of messages to
use.
OK
AT+CMGF=[<m
ode>]
Parameter
<mode> 0 PDU mode
1 Text mode
Parameter Saving
Mode
AT&W_SAV E
Max Response
Time
-
Reference
3GPP TS 27.005
Note
4.2.3 AT+CMGL List SMS Messages from Preferred Store
AT+CMGL List SMS Messages from Preferred Store
Response
+CMGL: (list of supported <stat>s)
OK
Test Command
AT+CMGL=?
Parameter
See Write Command
Parameters
1) If text mode:
<stat> "REC UNREAD" Received unread messages
"REC READ" Received read messages
"STO UNSENT" Stored unsent messages
"STO SENT" Stored sent messages
"ALL" All messages
<mode> 0 Normal
1 Not change status of the specified SMS record
2) If PDU mode:
<stat> 0 Received unread messages
1 Received read messages
2 Stored unsent messages
3 Stored sent messages
4 All messages
<mode> 0 Normal
1 Not change status of the specified SMS record
Write Command
AT+CMGL=<sta
t>[,<mode>]
Response
TA returns messages with status value <stat> from message storage
<mem1> to the TE. If status of the message is 'received unread', status in the
storage changes to 'received read'.