MC55 AT Command Set
12.8 AT+CMGW
Command Description
The execute and write commands transmit SMS (either SMS-DELIVER or SMS-SUBMIT) from TE to memory
storage
. Memory location
<mem2>
'stored unsent' unless otherwise given in parameter
After invoking the execute or write command wait for the prompt ">" and then start to write the message. To save
the message simply enter
To abort writing use
<ESC>
Notes
•
If writing fails, for example, if a message is too long, the result code depends on the current setting of the
command:
AT^SM20
If the
AT^SM20 <CmgwMode>
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>
•
If writing fails due to timeout, then
AT^SM20 <CmgwMode>
AT^SM20 <CmgwMode>
•
Note that some providers do not recognize an @ symbol used in a short message. A widely used alternative
is typing "*" as defined in GSM 03.40 (GPP TS 23.40).
•
For baudrates lower than 19200 it is recommended to use the line termination character only (refer to
, default
) before entering the text or PDU. Use of the line termination character followed by the
<n>
<CR>
response formating character (see
•
SMS-COMMANDs and SMS-STATUS-REPORTs cannot be stored in text mode.
•
All characters entered behind the ">" prompt will be recognized as GSM characters. For example, "Back-
space" (ASCII character 8) does not delete a character, but will be inserted into the short message as an addi-
tional physical character. As a result, the character you wanted to delete still appears in the text, plus the GSM
code equivalent of the Backspace key.
•
In text mode, the maximum length of an SMS depends on the used coding scheme: It is 160 characters if the
7 bit GSM coding scheme is used, and 140 characters according to the 8 bit GSM coding scheme.
•
The length of 8-bit data coded short messages has to be greater than 0.
MC55_ATC_V01.05
Confidential / Released
of the stored message is returned. Message status will be set to
<index>
. After the prompt a timer will be started to observe the input.
<CTRL-Z>
. Abortion is acknowledged with "OK", though the message will not be saved.
=1 (factory default) any failure to send a message is responded with "OK". Users
equals 0 any failure to write a message is responded with "ERROR".
=1 causes "+CMS ERROR: Unknown error" to be returned;
=0 causes "+CMS ERROR: timer expired" to be returned.
=
, default
ATS4
<n>
Page 326 of 469
.
<stat>
) may cause problems.
<LF>
s
m
obile
=
ATS3
2/10/04