Westermo GS-01 User Manual
Page 42
42
6195-2201
+CMGL – List message
This command allows the application to read stored messages, by indicating the type of
the message to read.
Command syntax: AT+CMGL=
Response syntax for text mode:
+CMGL:
may be followed by other
Response syntax for PDU mode:
+CMGL:
(for SMS-DELIVER and SMS-SUBMIT, may be followed by other
PDU mode
Text mode
0
”REC UNREAD” (received unread message)
1
”REC READ” (received read message)
2
”STO UNSENT” (stored unsent message)
3
”STO SENT” (stored sent message)
4
”ALL” (all messages)
Application to GSM
AT+CMGL=”REC UNREAD”
List unread messages
in text mode
GSM to application
+CMGL: 1, ”REC UNREAD”,
2 messages are
”0146290800”,
unread, these
Unread Message!
messages will then
+CMGL: 3, ”REC UNREAD”,
have their status
”46290800”,
changed to
Another Unread Message!
”REC READ”.
OK
(+CSDH: 0)
Application to GSM
AT+CMGL=”REC READ”
List read messages
in text mode
GSM to application
+CMGL: 2, ”REC READ”,
”0146290800”,
Keep cool
OK
Application to GSM
AT+CMGL=”STO SENT”
Read stored and sent
messages
GSM to application
+CMS ERROR: 322
No message found