Nokia 9356900 issue 1 Telephone User Manual


 
73
List of AT Commands for Nokia 22
Copyright © Nokia Mobile Phones 2001. All rights reserved.
OK
10.17 +CMGW Write message to memory
Command Response Default +cms
error
Execute
Text mode (+CMGF=1):
+CMGW=<oa/da>,<tooa/toda>,<stat>
<CR>text is entered<ctrl-Z/ESC>
PDU mode (+CMGF=0):
+CMGW=<length>,<stat><CR>
PDU is given<ctrl-Z/ESC>
storing successful:
+CMGW: <index>
text mode:
[,129/145,
"STO UNSENT"]
PDU mode:
[,2]
x
Test
+CMGW=?
Text mode:
The +CMGW command stores a message (either SMS-DELIVER or SMS-SUBMIT) to the memory
storage <mem2>. A memory location <index> of the stored message is returned. By default, the
message status will be set to 'stored unsent', but the parameter <stat> also allows other status
values to be given. The entering of text is done similarly as specified in the command Send
Message +CMGS.
NOTE: SMS-COMMANDs and SMS-STATUS-REPORTs can not be stored in the text mode.
PDU mode:
The +CMGW command stores a message to the memory storage <mem2>. A memory location
<index> of the stored message is returned. By default, the message status will be set to 'stored
unsent', but the <stat> parameter also allows other status values to be given.
Text/PDU entering is as specified in ETSI GSM 07.05 /3/. If the SMSC address is not set/restored
during the current session (i.e. +CSCA? returns +CSCA: "",129) and the stored message is SMS-
SUBMIT or SMS-COMMAND, the SMSC address must automatically be read from the SIM/ME
(location 1).
Defined values
<oa>/<da> GSM 03.40 TP-Originating/Destination-Address Address-Value field in
string format; the type of address is given by <tooda>/<toda>
<scts> GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format
<tooa>/<toda>/<tora> GSM 04.11 TP-Originating/Destination-Address Type-of-
Address octet in integer format
129 unknown/telephony
145 internal/telephony
<stat> integer type in the PDU mode (default 0), or string type in the text mode;
indicates the status of a message in the memory:
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)