![SimCom SIM5350 Скачать руководство пользователя страница 107](http://html1.mh-extra.com/html/simcom/sim5350/sim5350_command-set_1274792107.webp)
SIM5350 AT Command Set
Write Command
Responses
+CMGW:
<index>
OK
ERROR
If text mode(
AT+CMGF
=1):
AT+CMGW=
<oa>
/
<da>
[,
<t
ooa>
/
<toda>
[,
<stat>
]]<CR>
Text is entered.
<CTRL-Z/ESC>
If PDU mode(
AT+CMGF
=
0):
AT+CMGW=
<length>
[,
<sta
t>
]<CR>
PDU is entered.
<CTRL-Z/ESC>
+CMS ERROR:
<err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<oa>
Originating-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by
<tooa>
.
<tooa>
TP-Originating-Address, Type-of-Address octet in integer format. (default refer
<toda>
).
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by
<toda>
.
<toda>
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). The range of value is from 128 to 255.
<length>
Integer type value indicating in the text mode (
AT+CMGF
=1) the length of the message body
<data>
> (or <cdata>) in characters; or in PDU mode (
AT+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).
<stat>
Integer type in PDU mode (default 0), or string type in text mode (default "REC UNREAD");
indicates the status of message in memory; defined values:
0 "REC UNREAD" received unread message (i.e. new message)
1 "REC READ" received read message
2 "STO UNSENT" stored unsent message (only applicable to SMs)
3 "STO SENT" stored sent message (only applicable to SMs)
4 "ALL" all messages (only applicable to +CMGL command)
7 "DRAFT"
SIM5350_ATC_V1.02
6/9/2014
106
Содержание SIM5350
Страница 1: ...AT Command Set SIM5350 _ATC_V1 02...