AC75 AT Command Set

13.8 AT+CMGW

s

13.8AT+CMGW Write Short Messages to Memory

The execute and write commands transmit a short message (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>.

After invoking the execute or write command wait for the prompt ">" and then start to write the message. To save the message simply enter <CTRL-Z>. After the prompt a timer will be started to observe the input.

To abort writing use <ESC>. Abortion is acknowledged with "OK", though the message will not be saved.

Syntax

Test Command

AT+CMGW=?

Response(s)

OK

Exec Command

If text mode (see AT+CMGF=1):

AT+CMGW

Response(s)

<CR> Text can be entered. <CTRL-Z>/<ESC>

+CMGW: <index>

OK

If writing fails

ERROR

+CMS ERROR

Write Command

If text mode (see AT+CMGF=1):

AT+CMGW=<oa>/<da>[, [<tooa>/<toda>][, <stat>]]<CR> Text can be entered. <CTRL-Z>/<ESC>

Response(s)

+CMGW: <index>

OK

If writing fails see notes below.

Write Command

If PDU mode (see AT+CMGF=0):

AT+CMGW=<length>[, <stat>]<CR> PDU can be entered. <CTRL-Z>/<ESC>

Response(s)

+CMGW: <index>

OK

If writing fails see notes below.

Reference(s)

GSM 07.05

PIN ASC0 ASC1 USB MUX1 MUX2 MUX3 Charge 4 Last

+

+

+

+

+

+

+

-

+

-

Notes

If writing fails, for example, if a message is too long, the result code depends on the current setting of the AT^SM20 command:

If the AT^SM20 <CmgwMode>=1 (factory default) any failure to send a message is responded with "OK". Users should be aware, that despite the "OK" response, the message will not be written to the selected SMS stor- age.

If the AT^SM20 <CmgwMode> equals 0 any failure to write a message is responded with "ERROR".

AC75_ATC_V01.002

Page 374 of 569

10/30/06

Confidential / Released

 

 

Page 374
Image 374
Siemens AC75 manual 13.8 AT+CMGW Write Short Messages to Memory, At+Cmgw=?, +CMGW index