AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page92of233
+CMGS - Send Message
(PDU Mode)
AT+CMGS=
<length>
(PDU Mode)
Execution command sends to the network a message.
Parameter:
<length> - length of the PDU to be sent in bytes (excluding the SMSC address
octets) 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 DCD signal shall be in ON state while PDU is given.
Note: the echoing of given characters back from the TA is controlled by echo
command
E
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 octet length of the SMSC address (given in the PDU) equals zero,
the SMSC address set with command +CSCA is used. In this case, the SMSC Type-
of-Address octet shall not be present in the
PDU.
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) <scts>
is returned:
+CMGS: <mr>[, <scts>]
Where:
<mr>
- message Reference number.
<scts> - TP-Service Centre Time Stamp in Time String Format.
Note: if message sending fails for some reason, an error code reported.
Note: to ensure that during the command execution, which may take several
seconds, no other SIM interacting commands issued, care must taken.
(Text Mode)
AT+CMGS=
<da>
[,<toda>]
(Text Mode)
Execution command sends to the network a message.
Parameters:
<da> - destination address, string type represented in the currently selected
character set (see +CSCS).
<toda> - type of destination address
129 - number in national format
145 - number in international format(contains the "
+")