At+Cmgw Write Short Messages To Memory - Multi-Tech MultiModem EDGE Reference Manual

Wireless edge modems
Table of Contents

Advertisement

12.8 AT+CMGW Write Short Messages to Memory

Description:
Test Command Syntax:
Response:
Exec Command Syntax:
Response:
Write Command Syntax:
Response:
Write Command Syntax:
Response:
Notes:
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 baud rates lower than 19200 it is recommended to use the line termination character only (refer to ATS3=
<n>, default <CR>) before entering the text or PDU. Use of the line termination character followed by the
response formatting character (see ATS4= <n>, default <LF>) may cause problems.
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, "Backspace"
(ASCII character 8) does not delete a character, but will be inserted into the short message as an additional
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.
Message Length in Text Mode
The maximum length of a short message 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.
In case UCS2 character set selected it is highly recommended to set Data Coding Scheme (<dcs> of AT+CSMP)
to 16-bit data, otherwise the length of sms user data is restricted to 88 octets. Even better for messages with
UCS2 character set is the PDU Mode.
The length of 8-bit data coded short messages has to be greater than 0.
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371G)
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.
AT+CMGW=?
OK
If text mode (see AT+CMGF=1):
AT+CMGW
<CR> Text can be entered. <CTRL-Z>/<ESC>
+CMGW: <index>
OK
If writing fails
ERROR
+CMS ERROR
If text mode (see AT+CMGF=1):
AT+CMGW=<oa>/<da>[, [<tooa>/<toda>][, <stat>]]
Z>/<ESC>
+CMGW: <index>
OK
If writing fails see notes below.
If PDU mode (see AT+CMGF=0):
AT+CMGW=<length>[, <stat>]<CR> PDU can be entered. <CTRL-Z>/<ESC>
+CMGW: <index>
OK
If writing fails see notes below.
Chapter 12 – Short Message Service (SMS) Commands
Text can be entered.
<CR>
<CTRL-
203

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MultiModem EDGE and is the answer not in the manual?

Table of Contents