Rev 3.2 Oct.05
79
+CMGL (continued)
List SMS messages (continued)
Supported values
The format of
<status>
depends on whether the modem is in PDU or text mode.
In PDU mode, it is an integer; in text mode, a string:
PDU Mode Text Mode
Meaning
0
REC UNREAD
Received unread (i.e. new message)
1
REC READ
Received read
2
STO UNSENT
Stored unsent
3
STO SENT
Stored sent
4
ALL
All messages (default if
<status>
omitted)
Returned values
<index>
An integer uniquely identifying a message in the message store. The value
lies in the range of location numbers supported by the message memory.
<status>
The message status, as listed on page 78.
<alpha>
An alphanumeric phone number representing the destination address
<da>
or originating address
<oa>
in the modem phonebook.
<length>
The length of the message body in characters.
<pdu>
In PDU mode, the SMS message, in the form of the GSM 04.11 SC
address followed by the GSM 03.40 TPDU in hexadecimal format. The
modem converts each octet of TP data unit into two IRA character long
hexadecimal numbers (e.g. an octet with integer value 42 is presented to
the computer as two characters 2A—IRA 50 and 65.)
<oa/da>
The Originating-Address-Value
<oa>
field in string format; type of address
given by
<tooa>
, or the Destination-Address field
<da>
in string format;
type of address given by
<toda>
.
<scts>
Service-Centre-Time-Stamp in time-string format: “yy/MM/
dd,hh:mm:ss±zz”.
<tooa/toda>
The Type-of-Originating Address octet
<tooa>
in integer format, or the
Type-of-Destination Address octet
<toda>
in integer format. In both cases,
when the first character of the phone number is “+” (IRA 43), the default is
145; otherwise the default is 129.
<data>
Message body data for text mode messages.
+CMGR=<index>
Read SMS message
Returns the message with the location value
<index>
from the message store. If
the
<status>
of the message is “received unread” (
<status>=0
in PDU mode, or
<status>=REC UNREAD
in text mode), then its status changes to “received
read” (
1
or
REC READ
).
The format of the returned message depends on whether the modem is in PDU
or text mode (see
+CMGF
•
In PDU mode, the returned message appears in the form:
+CMGR: <status>,<alpha>,<length>
<pdu>
•
In text mode, the returned message appears in the form:
+CMGR:<status>,<oa>,<alpha>,<scts>,<tooa>,<fo>,
<pid>,<dcs>, <sca>,<tosca>,<length>
<data>
Continued on next page.
Table 3-9: Command Reference Table (ASCII Alphabetic)
Command
Description
Summary of Contents for MP 700 Series
Page 1: ...MP 700 Series GPS Rugged Wireless Modem AT Command Reference 2130309 Rev 3 2...
Page 2: ......
Page 6: ...MP 700 Series GPS AT Command Reference 4 2130309...
Page 24: ...MP 700 Series GPS AT Command Reference 22 2130309...
Page 116: ...Index Rev 3 2 Oct 05 114...
Page 117: ......
Page 118: ......