Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
33
+CMGL: ("REC UNREAD", "REC READ", "STO UNSENT", "STO SENT", "ALL")
OK
Remarks
N/A
5.8 Sending SMS Messages: +CMGS
Description
To send an SMS message from the module to the network
The network will return reference value
<mr>
to the module after the SMS message is sent
successfully.
Format
AT+CMGS=<da>[,<toda>]<CR>text is entered<ctrl-Z/ESC> (Text command syntax)
AT+CMGS=<length><CR>PDU is given<ctrl-Z/ESC> (PDU command syntax)
Parameter
<da>: The destination number to which the SMS message is sent in text mode
<text>: SMS message content in text mode
<length>: The byte length of the SMS message content in PDU mode
<mr>: The storage location
<CR>: End character
<Ctrl-Z>: Indicates the end of the input message
<ESC>: Indicates giving up the input message
Return
Value
if text mode (+CMGF=1) and sending successful:
+CMGS: <mr>[,<scts>]
if PDU mode (+CMGF=0) and sending successful:
+CMGS: <mr>[,<ackpdu>]
Example
AT+CMGS="66358"<CR>
> This is the text
+CMGS: 171
OK
Text
mode(+CMGF=1)
AT+CMGS=33<CR>
>0891683108705505F001000B815118784271F20008146DF157
335E025B9D5B89533A59276D6A80545EFA
+CMGS: 119
OK
PDU mode
(+CMGF=0)
Remarks
If you use UART debugging tool to sent PDU SMS message, enter
\r
behind the
AT+CMGS
command manually or send
<CR>
in hexadecimal system.
For details about PDU, see the A.1 Content of PDU SMS Messages.