![GOSUNCN ME3630 Series Скачать руководство пользователя страница 52](http://html.mh-extra.com/html/gosuncn/me3630-series/me3630-series_command-reference-manual_2247368052.webp)
All Rights reserved, No Spreading without GOSUNCN Permission
51
AT Command Reference Guide of Module Product
ME3630
NOTE: SMS-COMMANDs and SMS-STATUS-REPORTs cannot be stored in text mode.
Command
Response
if text mode (+CMGF=1):
+CMGW[=<oa/da>[,<tooa/toda>[,<stat>]]]<CR>
text is entered<ctrl-Z/ESC>
if PDU mode (+CMGF=0):
+CMGW=<length>[,<stat>]<CR>PDU is given<ctrl-Z/ESC>
<CR><LF>+CMGW: <index>
<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
+CMGW=?
<CR><LF>
OK
<CR><LF>
Parameter
For details about these parameters, please refer to 8.1 SMS parameter.
Example
at+cmgf=1
OK
at+cmgw="10086"
> sdsd
+CMGW: 280
OK
6.14.
AT+CMGD Delete Message
Execution command deletes message from preferred message storage <mem1> location <index>. If <delflag> is present and
not set to 0 then the ME shall ignore <index> and follow the rules for <delflag> shown below. If deleting fails, final result code
+CMS ERROR: <err> is returned. See chapter Message Service Failure Result Code for <err> values.
Test command shows the valid memory locations and optionally the supported values of <delflag>.
Command
Response
+CMGD=<index>[,<delflag>]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
+CMGD=?
<CR><LF>+CMGD: (list of supported <index>s)[,(list of
supported <delflag>s)]<CR><LF>
Parameter
<delflag>: an integer indicating multiple message deletion request as follows:
0 (or omitted)
Delete the message specified in <index>
1
Delete all read messages from preferred message storage, leaving unread messages and stored mobile originated
messages (whether sent or not) untouched
2
Delete all read messages from preferred message storage and sent mobile originated messages, leaving unread messages
and unsent mobile originated messages untouched
3
Delete all read messages from preferred message storage, sent and unsent mobile originated messages leaving unread
messages untouched.
4
Delete all messages from preferred message storage including unread messages.
Example