Chapter 8 – Short Messages Commands
Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C 59
Syntax: Command syntax: AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>
Command Possible Responses
AT+CNMI=2,1,0,0,0
Note: <mt>=1
OK
AT+CMTI : “MT”,1
Note: message received
AT+CNMI=2,2,0,0,0
Note: <mt>=2
OK
+CMT : “8585551212”,”98/10/01,12 :30
00”,129,1,2,0,5<CR><LF>
Hello
Note: message received
AT+CNMI=2,0,0,1,0
Note: <ds>=1
OK
AT+CMGS=”8585551212”<CR>
Message to send <ctrl-Z>
Note: Send a message in text mode
+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
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 Status of Messages in Memory
“UREAD” received unread messages
“READ” received read messages
“USENT” stored unsent messages
“SENT” stored sent messages
“ALL” all messages
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>: Origination/destination address value in string format.
<mr>: Message Reference
<scts>: Service Center Time Stamp in string format : “yy/MM/dd,hh :mm :ss±zz”
(Year/Month/Day,Hour:Min:Seconds±TimeZone)
<dt>: 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] )
<st>: Status of a SMS-STATUS-REPORT (See Chapter 20)
<lang>: Language
<encod>: Encoding
<priority>: Message priority:
0 – Normal
1 – Interactive
2 – Urgent
3 – Emergency
<cbn>: Call Back Number
<length>: Length of the text message (in bytes).
<data>: Message text