15. SHORT MESSAGE SERVICES - POINT TO POINT
257
LZT 123 7263 R1C
15.7 AT+CMGS Send Message
PDU Mode
Sends a message from a TE to the network (SMS-SUBMIT). Message
reference value <mr> is returned to the TE on successful message
delivery. Optionally, when AT+CSMS <service> value is 1 and there is
network support, <ackpdu> is returned. Values 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. This command is abortable.
• <length> must indicate the number of octets coded in the TP layer
data unit to be given (i.e. SMSC address octets are excluded).
• The TA shall send a four character sequence
<CR><LF><greater_than><space> (IRA 13, 10, 62, 32) after
command line is terminated with <CR>; after that PDU can be given
from TE to ME/TA.
• The DCD signal is in the ON state as PDU is given.
• The echoing of given characters back from the TA is controlled by
V.25ter echo command E.
• The PDU shall be hexadecimal format (similarly as specified for
<pdu>) and given in one line; ME/TA converts this coding into the
actual octets of PDU.
• When the length octet of the SMSC address (given in the <pdu>)
equals zero, the SMSC address set with command Service Centre
Address +CSCA is used.
• Sending can be cancelled by giving <ESC> character (IRA 27).
• <ctrl-Z> (IRA 26) must be used to indicate the ending of PDU.
<index> Description
Integer type Value in the range of location numbers supported by the
associated memory
Description Command Possible Responses
Send message AT+CMGS=<length>
<CR>
PDU is given<ctrl-Z/
ESC>
•+CMGS:
<mr>[,<ackpdu>]
•+CMS ERROR: <err>
•OK
•ERROR
Show if the command
is supported
AT+CMGS=? •OK
•ERROR
<mr> Description
Integer type GSM 03.40 TP-Message-Reference in integer format