Specifications
AT Command Set
TC35-ATC-01-V02.10 Page 89/145 02.10 / 23.05.2001
5 AT commands originating from GSM 07.05 for SMS
These AT Commands are according to ETSI (European Telecommunications Standards Institute)
GSM 07.05 document.
5.1 AT+CMGC Send an SMS command
Test command
AT+CMGC=?
Response
OK
Write command
if text mode
(AT+CMGF=1):
AT+CMGC=<fo
>,<ct>[,<pid>[,<
mn>[,<da>[,<to
da>]]]]<CR>
text is entered
<ctrl-Z/ESC>
Response
if text mode (+CMGF=1) and sending successful:
+CMGC: <mr>[,<scts>]
if sending fails:
+CMS ERROR: <err>
if PDU mode
(AT+CMGF=0):
AT+CMGC=<len
gth><CR>
PDU is given
<ctrl-Z/ESC>
+CMGC=?
Response
if PDU mode (+CMGF=0) and sending successful:
+CMGC: <mr>[,<ackpdu>]
if sending fails:
+CMS ERROR: <err>
Parameter
<length> Length of PDU
<pdu> See ”AT+CMGL”
<mr> Message reference
<fo> depending on the command or result code: first octet of GSM 03.40
SMS-DELIVER, SMS-SUBMIT (default 17), SMS- STATUS-REPORT,
or SMS -COMMAND (default 2) in integer format
<ct> GSM 03.40 TP-Command-Type in integer format (default 0)
<pid> GSM 03.40 TP-Protocol-Identifier in integer format (default 0)
<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, oth-
erwise default is 129)
<da> GSM 03.40 TP-Destination-Address Address-Value field in string
format; BCD numbers (or GSM default alphabet characters) are con-
verted into characters; type of address given by <toda>
<scts> GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format (refer
<dt> )
Reference
GSM 07.05
Note
1. After invoking of the command CMGW, CMGS, CMGC it is necessary to
wait for the ">" symbol and only afterwards the text can be sent to the mo-
dule
2. With baudrates lower than 19200 it is recommended to use the line termina-
tion character only (refer to +ATS3, default <CR>, pg. 21) before entering
the text/pdu. Use of the line termination character followed by the response
formating character (refer to +ATS4, default <LF>, pg. 21) can cause pro-
blems.