AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 140
AT Commands Interface Guide
SMS Commands
HL7518 and HL7548
Write command
Syntax
AT+CMGR=
<index>
Response
If text mode (+CMGF=1), command is successful, and SMS-DELIVER:
+CMGR: <stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,
<length>]<CR><LF><data>
if text mode (+CMGF=1), command is successful, and SMS-SUBMIT:
+CMGR: <stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>],<sca>,<tosca>,
<length>]<CR><LF><data>
if text mode (+CMGF=1), command is successful, and SMS-STATUS-REPORT:
+CMGR: <stat>,<fo>,<mr>,[<ra>], [<tora>],<scts>,<d_t>,<st>
if text mode (+CMGF=1), command is successful, and SMS-COMMAND:
+CMGR: <stat>, <fo>,<ct>[, <pid>,[<mn>],[<da>],[<toda>],<length><CR><LF><cdata>]
if text mode (+CMGF=1), command is successful, and CBM storage:
+CMGR: <stat>,<sn>, <mid>,<dcs>,<page>,<pages><CR><LF><data>
if PDU mode (+CMGF=0) and command is successful:
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
or
+CMS ERROR: <err>
Parameters
For parameter information and values, refer to section 8.1 Parameters Definition.
8.6. +CMGS Command: Send Message
HL7518 and HL7548
Test command
Syntax
AT+CMGS=?
Response
OK
Write command
Syntax
If text mode
(+CMGF=1):
AT+CMGS=<da>
[,<toda>]<CR>
text is entered
<ctrl-Z/ESC>
If PDU mode
(+CMGF=0):
AT+CMGS=
<length><CR>
PDU is given
<ctrl-Z/ESC>
Response
If text mode (+CMGF=1) and sending is successful:
[+CMGS: <mr>[,<scts>]]
OK
if PDU mode (+CMGF=0) and sending is successful:
[+CMGS: <mr>]
OK
or
+CMS ERROR: <err>