
NAL Research Corporation (TN2012-02-V1.0)
30
Test command gives a list of all status values supported by the A3LA-RS. Response is in the
form:
+CMGL: (list of supported <stat>s)
A.8.38 +CMGR – Read SMS Message
Exec Command:
+CMGR=<index>
Execution command returns the SMS message with location value <index> from message
storage <mem1> (<mem1> is the selected message storage from the +CPMS command). If
status of the message is ’received unread’, status in the storage changes to ’received read’. If
reading fails, final result code +CMS ERROR: <cms_err> is returned.
Response is in the following format for PDU mode:
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
where:
<stat>:
0 - MT message unread
1 - MT message read
2 - MO message unsent
3 - MO message sent
(When reading an MT message the first time, the status is reported as 0 (unread). The
status is then changed to 1 (read), and that is reported on subsequent reads of that
message.)
<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.
A.8.39 +CMGS – Send SMS Message
Exec Command:
+CMGS=<length><CR><pdu><ctrl-Z/ESC> (PDU mode)
Execution command sends message from the DTE to the network (SMS-SUBMIT). In PDU mode,
<length> is the length of the actual TP data unit in octets; <pdu> is the GSM 04.11 [8] SC
address followed by GSM 03.40 [9] TPDU in hexadecimal format.
PDU entry must be terminated by <ctrl-Z>. Sending can be cancelled by the <ESC> character.
Response is in the following format for PDU mode:
+CMGS: <mr>
where <mr> is the message reference value of the message.
If sending fails, final result code +CMS ERROR: <cms_err> is returned.
A.8.40 +CMGW – Write SMS Message To Memory
Exec Command:
+CMGW=<length>[,<stat>]<CR><pdu><ctrl-Z/ESC> (PDU mode)