Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
41
PDU command syntax
AT+CMGS=<length><CR>PDU is given<ctrl-Z/ESC>
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<Ctrl-Z>
+CMGS: 171
OK
Send messge in text
mode.
AT+CMGS=33<CR>
>0891683108705505F001000B815118784271F20008146DF157
335E025B9D5B89533A59276D6A80545EFA<Ctrl-Z>
+CMGS: 119
OK
Send message in PDU
mode.
Remarks
If you use UART debugging tool to sent a PDU SMS message, enter
\r
after the
AT+CMGS
command manually or send
<CR>
in hexadecimal system.
For details about PDU, see the A.1 Content of PDU SMS Messages.
5.9 Writing SMS Messages: +CMGW
Description
To write an SMS message into the memory
The location information
<index>
will be returned after the message is saved correctly.
Format
Command syntax (text mode):
AT+CMGW=<oa/da>[,<tooa/toda>[,<stat>]]<CR>text is entered<Ctrl-Z /ESC>
Command syntax (PDU mode):
AT+CMGW=<length>[,<stat>]<CR>PDU is given<Ctrl-Z /ESC>
Parameter
<da>: The destination number to which the SMS message is sent in text mode
<text>: SMS message content in text mode