Siemens AT Command Set Cellular Engines Wireless Modules MC35 ユーザーズマニュアル

ページ / 238
AT Command Set
MC35_ATC_01_V04.00
Page 126 of 238
02.04.2002
5  AT commands originating from GSM 07.05 for SMS
The SMS related AT Commands are according to the GSM 07.05 specification issued by ETSI (Euro-
pean Telecommunications Standards Institute).
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>[,<toda>]]]]<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>
Write command
if PDU mode (AT+CMGF=0):
AT+CMGC=<length><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, otherwise default is 129)
<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>
<scts>
GSM 03.40 TP-Service-Centre-Time-Stamp in time-string
format (refer to <dt> )
Reference
GSM 07.05
Note
•  After invoking the commands CMGW, CMGS or CMGC it is nec-
essary to wait for the ">" symbol before entering text or PDU.
•  At baudrates below 19200 it is recommended to use the line
termination character only (refer to +ATS3, default <CR>, pg. 26)
before entering the text/pdu. Use of the line termination charac-
ter followed by the response formating character (refer to +ATS4,
default <LF>, pg. 26) can cause problems.