Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
42
<length>: The byte length of the SMS message content in PDU mode
<index>: Location information
<CR>: End character
<Ctrl-Z>: Indicates the end of the input message
<ESC>: Indicates giving up the input message
Return
Value
+CMGW:<index>
OK
or
+CMS ERROR:<err>
Example
AT+CMGW="091137880"<CR>
>"This is the text"<Ctrl-Z>
+CMGW: 15
OK
Write messge in text mode
(+CMGF=1)
AT+CMGW=31<CR>
>0891683108705505F001000B813124248536F3000812004
00026002A535A53D153A653C1532052C7<Ctrl- Z>
+CMGW: 1
OK
Write message in PDU
mode (+CMGF=0)
Remarks
The message status is set to "stored unsent" by default.
<stat>
also supports other values
such as "stored unsent" and "stored sent".
5.10 Sending Stored SMS Messages: +CMSS
Description
To send an SMS message specified by
<index>
in the memory (SMS-SUBMIT)
The network returns reference value
<mr>
to the end device after the SMS message is sent
successfully.
Format
AT+CMSS=<index>[,<da>[,<toda>]]<CR>
Parameter
<index>: Message location
<da>: the destination number of the SMS messages
Return
Value
if text mode (+CMGF=1) and sending successful:
+CMSS: <mr>[,<scts>]
if PDU mode (+CMGF=0) and sending successful:
+CMSS: <mr>[,<ackpdu>]
Example
AT+CMSS=2
+CMSS: <mr>
OK
Send the SMS messages stored in
memory 2.