At+Cmgw Write Sms Message To Memory - Siemens TC37 Module At Command Reference

At command set cellular engines
Table of Contents

Advertisement

AT Command Set

5.7 AT+CMGW Write SMS message to memory

Test command
AT+CMGW=?
Execute command
1) If text mode
(+CMGF=1):
+CMGW[=<oa/da>
[,tooa/toda>[,stat>]]]
<CR> text is entered
ctrl-Z/ESC><ESC>
quits without sending
2) If PDU mode
(+CMGF=0):
+CMGW=<length>
[,stat]<CR>
PDU is given <ctrl-
Z/ESC>
TC3X_ATC_01_V04.00
Response
OK
Response
TA transmits SMS (either SMS-DELIVER or SMS-SUBMIT) from TE to
memory storage <mem2>. Memory location <index> of the stored message
is returned. Message status will be set to 'stored unsent' unless otherwise
given in parameter <stat>.
SMS-COMMANDs and SMS-STATUS-REPORTs cannot be stored in
Note:
text mode.
If writing is successful:
+CMGW: <index> OK
If writing is not successful:
OK
If writing fails, for example if a message was too long or writing was aborted,
ME simply returns OK instead of an ERROR code. Users should be aware
that, in this case, the message will not be written to the SIM card. This
behaviour has been implemented for compatibility to M20 (Siemens GSM
Terminal). To verify whether or not a message was stored check for
+CMGW: <index> OK as described above.
If error is related to ME functionality:
+CMS ERROR: <err>
Parameter
<oa>
GSM 03.40 TP-Originating-Address Address value field in string
format; BCD numbers (or GSM default alphabet characters) are
converted into characters; type of address given by <tooa>
GSM 03.40 TP-Destination-Address Address-Value field in string
<da>
format; BCD numbers (or GSM default alphabet characters) are
converted into characters; 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 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).
<stat>
integer type in PDU mode (default 0), or string type in text mode
(defauld "REC UNREAD"); indicates the status of message in
memory; defined values:
0 "REC UNREAD"
1 "REC READ"
2 "STO UNSENT"
3 "STO SENT"
Page 130 of 204
Received unread messages (default)
Received read messages
Stored unsent messages
Stored sent messages
29.05.2002

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tc35 moduleTc35 terminal

Table of Contents