![GOSUNCN ME3630 Series Скачать руководство пользователя страница 50](http://html.mh-extra.com/html/gosuncn/me3630-series/me3630-series_command-reference-manual_2247368050.webp)
All Rights reserved, No Spreading without GOSUNCN Permission
49
AT Command Reference Guide of Module Product
ME3630
<da>: Target address string of SMS
<scts>: Time string of SMS service center
<length>:<data> length or TPDU bytes
<mn>:[0]~255 , integer type, 3GPP TS 24.040 TP-Message-Number
<ct>:integer type, 3GPP TS 03.40 TP-Command-Type
Example
AT+CMGF=1
OK
AT+CMGR=1
+CMGR: "REC UNREAD","133********",,
"04/02/25,12 :58 :04
+
04"
ABCD
OK
6.11.
AT+CMGS Send Message
Execution command sends message from a TE to the network (SMS-SUBMIT). Message reference value <mr> is returned to the
TE on successful message delivery. Value can be used to identify message upon unsolicited delivery status report result code. If
sending fails in a network or an ME error, final result code +CMS ERROR: <err> is returned. See chapter Message Service Failure
Result Code for a list of <err> values. This command should be abortable.
For details about these parameters, please refer to 8.1 SMS parameter.
Command
Response
if text mode (+CMGF=1):
+CMGS=<da>[,<toda>]<CR>
text is entered<ctrl-Z/ESC>
if PDU mode (+CMGF=0):
+CMGS=<length><CR>
PDU is given<ctrl-Z/ESC>
if text mode (+CMGF=1) and sending successful:
<CR><LF>+CMGS: <mr>[,<scts>]<CR><LF>
<CR><LF>OK<CR><LF>
if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMGS: <mr>[,<ackpdu>]<CR><LF>
<CR><LF>OK<CR><LF>
if sending fails:
<CR><LF>+CMS ERROR: <err><CR><LF>
+CMGS=?
OK
Note:Sending can be cancelled by giving <ESC> character (IRA 27).
<ctrl-Z> (IRA 26) must be used to indicate the ending of PDU.
Parameter
<da>: Destination-Address
<toda>,<tooa>,<tosca>: 8 bytes Type of address for TP-Destination-Address, TP-Originating-Address, TP-Service-
Centre-Address ( when the initial character of <da> is +(IRA43), default value is 145, otherwise, its value is 129)
<data>: SMS information (less than 160 characters)
<mr>: message parameter
<scts>: Service Centre Time Stamp in time-string format. Can set (+CSMS<service>as 1, network supported) return <scts>
<length> must indicate the number of octets coded in the TP layer data unit to be given (i.e. SMSC address octets are