Specifications

TC35i AT Command Set
Confidential / Released
TC35i_ATC_V01.05 Page 163 of 278 04.08.2003
5.6 AT+CMGS Send SMS message
Test command
AT+CMGS=?
Response
OK
Parameter
Write command
1) If text mode (+CMGF=1):
+CMGS=<da>
[,<toda>]<CR>
text is entered
<ctrl-Z/ESC>
2) If PDU mode
(+CMGF=0):
+CMGS=<length><CR>
PDU is given <ctrl-Z/ESC>
ESC aborts message
Response
The write command serves to transmit short messages from TE to
network (SMS-SUBMIT). Message reference value <mr> is returned
to TE on successful message delivery. Value can be used to identify
message upon unsolicited delivery status report result code.
1) If text mode (+CMGF=1) and sending successful:
+CMGS: <mr>[,scts>] OK
2) If PDU mode (+CMGF=0) and sending successful:
+CMGS: <mr>[,ackpdu>] OK
If sending fails, the error code depends on the current setting of the
parameter <CmgwMode> specified with AT^SM20 (see Chapter
7.17):
· If AT^SM20=x,1 (factory default):
When sending fails due to timeout: +CMS ERROR: Unknown er-
ror.
Otherwise (for example, if a message is too long or contains an in-
valid character): OK
Users should be aware that, despite the OK response, the mes-
sage will not be sent.
· If AT^SM20=x,0:
Failure to send a message is always followed by
+CMS ERROR: <err>
For example, if a message was too long <err> code 305 (“Invalid
text mode parameter”) is returned.
Parameter
<da> GSM 03.40 TP-Destination-Address Address-Value field in
string format; BCD numbers (or GSM default alphabet
characters) are converted into characters; type of address
given by <toda>
<toda> GSM 04.11 TP-Destination-Address Type-of-Address octet
in integer format (when first character of <da> is + (IRA 43)
default is 145, otherwise default is 129)
<length> integer type value indicating in PDU mode (+CMGF=0), the
length of the actual TP data unit in octets (i.e. the RP layer
SMSC address octets are not counted in the length).
<mr> GSM 03.40 TP-Message-Reference in integer format
<scts> GSM 03.40 TP-Service-Centre-Time-Stamp in time-string
format (refer <dt>)
<dt> GSM 03.40 TP-Discharge-Time in time-string format:
“yy/MM/ dd,hh:mm:ss±zz”, where characters indicate year
(two last digits), month, day, hour, minutes, seconds and
time zone. For example, 6th of May 1994, 22:10:00 GMT+2
hours equals “94/05/06,22:10:00+08”
<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
p
arameter shall be enclosed in