Read Message +Cmgr - Multitech CDMA Wireless Modem Reference Manual

Multi-tech systems cdma wireless modem reference guide
Hide thumbs Also See for CDMA Wireless Modem:
Table of Contents

Advertisement

Syntax:
Command syntax: AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>
Command
AT+CNMI=2,1,0,0,0
Note: <mt>=1
AT+CNMI=2,2,0,0,0
Note: <mt>=2
AT+CNMI=2,0,0,1,0
Note: <ds>=1
AT+CMGS="8585551212"<CR>
Message to send <ctrl-Z>
Note: Send a message in text mode

Read Message +CMGR

Description:
This command allows the application to read stored messages. The messages are read
from the memory selected by +CPMS command. A message read with status "REC
UNREAD" will be updated in memory with the status "REC READ".
Note: The <stat> parameter for SMS Status Reports is always "READ".
Values:
<stat> Status of message in memory. Possible values are as follows:
Text Mode Possible Values
"UREAD"
"READ"
"USENT"
"SENT"
"ALL"
Note: For SMS Status Reports, only "ALL" and "READ" values of the <stat> parameter will
list messages ; other values will only return OK.
<oa/da>:
<mr>:
<scts>:
<dt>:
<st>:
<lang>:
<encod>:
<priority>:
0 – Normal
1 – Interactive
2 – Urgent
3 – Emergency
<cbn>:
<length>:
<data>:
Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C
Status of Messages in Memory
received unread messages
received read messages
stored unsent messages
stored sent messages
all messages
Origination/destination address value in string format.
Message Reference
Service Center Time Stamp in string format : "yy/MM/dd,hh :mm :ss±zz"
(Year/Month/Day,Hour:Min:Seconds±TimeZone)
Discharge Time in string format: "yy/MM/dd,hh :mm :ss±zz" (Year [00-99],
Month [01-12], Day [01-31], Hour, Minute, Second and Time Zone [quarters
of an hour] )
Status of a SMS-STATUS-REPORT (See Chapter 20)
Language
Encoding
Message priority:
Call Back Number
Length of the text message (in bytes).
Message text
Chapter 8 – Short Messages Commands
Possible Responses
OK
AT+CMTI : "MT",1
Note: message received
OK
+CMT : "8585551212","98/10/01,12 :30
00",129,1,2,0,5<CR><LF>
Hello
Note: message received
OK
+CMGS : 7
OK
Note: Successful transmission
+CDS : 2, 116, "8585551212", 129, "98/10/01,12 :30
:07", "98/10/01 12 :30 :08", 32768
Note: message was correctly delivered
59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mtsmc-c seriesMtmmc-c seriesMtcba-c series

Table of Contents