![Siemens M20 Terminal Technical Description Download Page 94](http://html.mh-extra.com/html/siemens/m20-terminal/m20-terminal_technical-description_378988094.webp)
AT command interface
Version 8 dated 15.03.00
94
Siemens Information and Communication Products
AT+CMGF
Select SMS message format
Test command
AT+CMGF=?
Response
+CMGF: (list of supported <mode>s) OK
Parameter
see set command
Read command
AT+CMGF?
Response
+CMGF: <mode> OK
Parameter
see set command
Set command
AT+CMGF =
[<mode>]
Response
TA sets parameter which specifies the input and output format of messages to be used.
OK
Parameter
<mode>
0
PDU mode
1
text mode
Reference
GSM 07.05
Note
AT+CMGL
List SMS messages from preferred store
Test command
AT+CMGL=?
Response
+CMGL: list of supported <stat>s OK
Parameter
see execute command
Execute command
AT+CMGL
[=<stat>]
Parameter
1) If text mode:
<stat>
"REC UNREAD"
Received unread messages (default)
"REC READ"
Received read messages
"STO UNSENT"
Stored unsent messages
"STO SENT"
Stored sent messages
"ALL"
All messages
2) If PDU mode:
<stat>
0
Received unread messages (default)
1
Received read messages
2
Stored unsent messages
3
Stored sent messages
4
All messages
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’.
Note:
if the selected <mem1> can contain different types of SMs (e.g. SMS-DELIVERs, SMS-SUB-
MITs, SMS-STATUS-REPORTs and SMS-COMMANDs), the response may be a mix of the respon-
ses of different SM types. TE application can recognize the response format by examining the third
response parameter.
(continued next page)