HE863 family AT commands reference guide
80377ST10083a Rev.6 – 2012-11-12
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved.
Page 124 of
229
3.5.4.4.
Message Sending And Writing
3.5.4.4.1.
Send Message - +CMGS
+CMGS - Send Message
(PDU Mode)
AT+CMGS=
<length>
(PDU Mode)
Execution command sends to the network a message.
Parameter:
<length>
- length of the actual TP data unit in octets (i.e. the RP layer SMSC
address octets are not counted in the length).
7..164
After command line is terminated with
<CR>
, the device responds sending a four
character sequence prompt:
<CR><LF><greater_than><space> (IRA 13, 10, 62, 32)
and waits for the specified number of bytes.
Note: the
PDU
shall be hexadecimal format (each octet of the
PDU
is given as two
IRA character long hexadecimal number) and given in one line.
Note: when the length octet of the SMSC address (given in the PDU) equals zero,
the SMSC address set with command Service Centre ACSCA is used; in
this case the SMSC Type-of-Address octet shall not be present in the PDU, i.e.
TPDU starts right after SMSC length octet.
To send the message issue
Ctrl-Z
char (
0x1A
hex).
To exit without sending the message issue
ESC
char (
0x1B
hex).
If message is successfully sent to the network, then the result is sent in the format:
Note : Optionally (when +CSMS
<service>
value is 1 and network supports)
<ackpdu> is returned:
+CMGS: <mr>[,<ackpdu>]
where
<mr>
- message reference number.
<ackpdu>
- GSM 03.40 RP-User-Data element of RP-ACK PDU; format is same
as for
<pdu>
in case of SMS, but without GSM 04.11 SC address field and
parameter shall be enclosed in double quote characters like a normal string type
parameter.
Note: if message sending fails for some reason, an error code is reported.
Note: concatenated SMS is not supported