Specifications

Table Of Contents
Chapter 14 Short Message Service Control Commands
Multi-Tech Systems, Inc. CDMA C1 AT Commands Reference Guide 75
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.
We recommend 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: +CMGS=<da> [,<length>] [,<priority>] [,<privacy>] [,<reply>] [,<cbn>] <cr><message text>ctrl-Z
/ESC>
Command
Possible responses
AT+WSCL=1,2
Note: Set language to English, encoding to
ASCII
AT+CMGS=”8585551212”<cr>
Please call me soon, Fred. <ctrl-Z>
Note: Send a message
OK
+CMGS:<mr>
OK
+CDS: <fo>, <mr>, [<ra>] , [<tora>], <scts>,
<dt>, <st>
AT+CMGS=”8585551212”,12<cr>
Please call.
Note: Automatically send message after
receiving 12 bytes.
+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