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.


Previous Page Page 61 of 65 Next Page

Contents at a Glance (Click Here for Full Table of Contents)

Feedback Form (ExpandCollapse)

What do you think about this web page?






(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.