User guide
Chapter 14 – Short Message Service Control Commands
Multi-Tech Systems, Inc. CDMA C1 AT Commands Reference Guide (PN S000478C) 70
Chapter 14 – Short Message
Service Control Commands
Send Message +CMGS
Description: This command is used to send an SMS message.
The <da> field is the address of the terminal to which the message is sent. To send the text
message, type <ctrl-Z> (0x1A) as the final character of the message. This command can be
aborted using the <ESC> (0x1B) character while entering the message text.
The <length> parameter is optional, it is used to set the length of the text string. When <length> is
specified, the CMGS command will only process the number of bytes specified by <length>
regardless of whether it contains <ctrl-Z>, <ESC>, or <backspace> characters.
The <priority>, <privacy>, <reply option>, and <cbn> parameters are optional. Defaults are used
when not specified.
The +CMGS: <mr> unsolicited message and OK response indicate that the +CMGS command
has been accepted without errors and an attempt to deliver the SMS to the network is being
made.
It is recommended that +CDS: unsolicited messages are enabled using the AT+CNMI command.
+CDS: indicates that the message has been received by the network and the network is
delivering the SMS or there is an error in attempting to send the SMS. Attempting to send a
second SMS prior to the +CDS: unsolicited message will result in an error.
Syntax: Command syntax: AT+CMGS=<da> [,<length>] [,<priority>] [,<privacy>] [,<reply>] [,<cbn>]
<cr><message text>ctrl-Z /ESC>
Command Possible responses
AT+CMGS=”8585551212”<cr>
Please call me soon, Fred. <ctrl-Z>
Note: Send a message
+CMGS:<mr>
OK
+CDS: <fo>, <mr>, [<ra>] , [<tora>],
<scts>, <dt>, <st>
AT+CMGS=”8585551212”,12<cr>
Please call.
Note: Send 12 byte message
+CMGS:<mr>
OK
AT+CMGS=”8585551212”,,2,1,1,"5550000"<cr>
Please call ASAP<ctrl-Z>
Note: Send a message with the specified
priority, privacy, reply option and call back
number. Note omitted length field.
+CMGS:<mr>
OK
Values: <da> Destination address value in string format.
<length> Length of the text message (in bytes).
<priority> The priority level of the message.
0 Normal (default)
1 Interactive ) Not currently supported
2 Urgent
3 Emergency Not currently supported
<privacy> The privacy level of the message.
0 Normal (default)
1 Restricted
2 Confidential
3 Secret