M10 AT Commands Set
M10_ATC_V1.01
- 94 -
OK
2) If PDU mode(+CMGF=0) and sending successful:
+CMGS:
<mr>
OK
3)If error is related to ME functionality:
+CMS ERROR: <err>
Parameter
<mr>
GSM 03.40 TP-Message-Reference in integer format
Reference
GSM 07.05
Note
4.2.6 AT+CMGW Write SMS Message To Memory
AT+CMGW Write SMS Message To Memory
Test Command
AT+CMGW=?
Response
OK
Response
TA transmits SMS message (either SMS-DELIVER or SMS-SUBMIT)
from TE to memory storage <mem2>. Memory location <index> of the
stored message is returned. By default message status will be set to 'stored
unsent', but parameter <stat> allows also other status values to be given.
If writing is successful:
+CMGW:
<index>
OK
If error is related to ME functionality:
+CMS ERROR: <err>
Write Command
1) If text mode
(+CMGF=1):
AT+CMGW=
[<o
a/da>[,<tooa/toda
>[,<stat>]]]
<CR>
text is
entered
<
ctrl-Z/ESC>
<ESC> quits
without sending
2) If PDU mode
(+CMGF=0):
AT+CMGW=
<le
ngth>[,<stat>]<C
R>
PDU is given
<ctrl-Z/ESC>
Parameters
<oa>
GSM 03.40 TP-Originating-Address Address-Value field in
string format; BCD numbers (or GSM default alphabet
characters) are converted to characters of the currently
selected TE character set (specified by +CSCS in TS
07.07);type of address given by <tooa>
<da>
GSM 03.40 TP-Destination-Address Address-Value field in
string format; BCD numbers (or GSM default alphabet
characters) are converted to characters of the currently
selected TE character set (specified by +CSCS in TS
07.07); type of address given by <toda>
<tooa>
GSM 04.11 TP-Originating-Address Type-of-Address octet
in integer format (default refer <toda>)
<toda>
GSM 04.11 TP-Destination-Address Type-of-Address octet
Quectel