beautypg.com

Rainbow Electronics GM862-QUAD-PY User Manual

Page 228

background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 228 of 434

+CMGW - Write Message To Memory

SELINT 2

or +CMS ERROR: response before issuing further commands.

(#SMSMODE=1)

(PDU Mode)
AT+CMGW=

[,]

(PDU Mode)

Execution command writes in the memory storage a new
message.

Parameter:
- length in bytes of the PDU to be written.
7..164
- message status.
0 - new message
1 - read message
2 - stored message not yet sent (default)
3 - stored message already sent

The device responds to the command with the prompt '>' and waits
for the specified number of bytes.

To write the message issue Ctrl-Z char (0x1A hex).
To exit without writing the message issue ESC char (0x1B hex).

If message is successfully written in the memory, then the result is
sent in the format:

+CMGW:

where:
- message location index in the memory .

If message storing fails for some reason, an error code is reported.

Note: care must be taken to ensure that during the command
execution, no other SIM interacting commands are issued.

#

S

M

S

M

O

D

E

=
1



#

S

M

S

M

O

D

E

=
1



#

S

M

S

M

O

D

E

=
1



#

S

M

S

M

(Text Mode)
AT+CMGW[=
[,
[,]]]

(Text Mode)

Execution command writes in the memory storage a new
message.

Parameters:
- destination address, string type represented in the currently

selected character set (see +CSCS).

- type of destination address.
129 - number in national format
145 - number in international format (contains the "+")
- message status.
"REC UNREAD" - new received message unread