At+Cmgw Write Sms Message To Memory - Siemens MC35 Command Set

Module/terminal
Hide thumbs Also See for MC35:
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 send-
ing
2) If PDU mode
(+CMGF=0):
+CMGW=<length>
[,stat]<CR>
PDU is given <ctrl-Z/ESC>
MC35_ATC_01_V05.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
Note:
stored in text mode.
If writing is successful:
+CMGW: <index> OK
If writing fails, for example, if a message is too long, the result code
depends on the current setting of the AT^SM20 command (see Chap-
ter 8.18): If the AT^SM20 parameter <m> equals 1 (factory default)
then failure to write a message is followed by:
OK
Users should be aware that, in this case, the message will not be writ-
ten to the selected SMS storage.
If the AT^SM20 parameter <m> equals 0, then failure to write a mes-
sage is followed by:
+CMS ERROR: <err>
For example, if a message was too long <err> code 305 ("Invalid text
mode parameter") is returned.
Parameter
<oa>
GSM 03.40 TP-Originating-Address Address value field in
string format; BCD numbers (or GSM default alphabet char-
acters) are converted into characters; 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 char-
acters) are converted into characters; type of address given
by <toda>
GSM 04.11 TP-Originating-Address Type-of-Address octet
<tooa>
in integer format (default refer <toda> )
GSM 04.11 TP-Destination-Address Type-of-Address octet
<toda>
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:
Page 145 of 256
15.07.2002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents