26.3.3. Finding the
Message Status Values Supported by the +CMGL AT Command in SMS Text
Mode
As
mentioned earlier, the +CMGL AT command takes one parameter,
message_status. Performing a test operation with the +CMGL AT
command allows you to find all message status values that are
supported by the message_status
parameter. Here is the syntax of the information response returned
after the execution of the test command "+CMGL=?":
+CMGL:
(message_status1,message_status2,...)
In
SMS text mode, the values inside the above parentheses
(message_status1,
message_status2, etc)
are of the string type. The SMS specification has defined five
message status values: "REC UNREAD", "REC READ",
"STO UNSENT", "STO SENT" and "ALL".
They are supported by most GSM/GPRS modems and mobile phones.
A description of these five message status values can be found in the
earlier section "Syntax of the
+CMGL AT Command in SMS Text Mode".
As
an example, here is the response returned from my Nokia 6021 mobile
phone to the HyperTerminal program in Windows after the execution of
the test command "+CMGL=?":
AT+CMGL=? +CMGL:
("REC UNREAD","REC READ","STO UNSENT","STO
SENT","ALL")
OK
From
above, we know that the Nokia 6021 mobile phone supports all of the
five message status values defined
in the SMS specification.
|
Feedback Form (ExpandCollapse)
|
|