AL3A-RM User Guide Version B
Document Number: 451-93156-002B
54 of 172
B.37
+CMGL
–
L
IST
SMS
M
ESSAGES
Exec Command:
+CMGL[=<stat>]
Execution command returns messages with status value <stat> from message storage
<mem1> (<mem1> is the selected message storage from the +CPMS command) to the
DTE. If listing fails, final result code +CMS ERROR: <cms_err> is returned.
Valid values for <stat> are:
PDU Text
"REC UNREAD" received unread message (i.e. new message) (default)
"REC READ" received read message
"STO UNSENT" stored unsent message (only applicable to SMs)
"STO SENT" stored sent message (only applicable to SMs)
"ALL" all messages (only applicable to +CMGL command)
Response is in the following format for PDU mode:
+CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>[<CR><LF>+CMGL:<ind
ex>,<stat>,[<alpha>],<length><CR><LF><pdu> [...]]
where:
<alpha>: string type alphanumeric representation of TP-destination address or TP-
originating address corresponding to the entry found in the phonebook (optional
field);
<length>: in PDU mode, this is the length of the actual TP data unit in octets (i.e.
the RP layer SMSC address octets are not counted in the length)
<pdu>: GSM 04.11 [8] SC address followed by GSM 03.40 [9] TPDU in hexadecimal
format.
Test Command:
+CMGL=?
Test command gives a list of all status values supported by the A3LA-RM. Response is
in the form:
+CMGL: (list of supported <stat>s)