beautypg.com

Multi-Tech Systems MMCModem GPRS (MTMMC-G) User Manual

Page 71

background image

Chapter 9 – Short Messages Commands

Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I)

71

Write Message to Memory +CMGW

Description:

This command stores a message in memory (either SMS-SUBMIT or SMS-DELIVERs).

The memory location is returned (no choice possible as with phonebooks +CPBW).

Text or PDU is entered as described for the Send Message +CMGS command.

Values:

Originating or Destination Address Value in string format

Type of Originating / Destination Address

Integer type in PDU mode (default 2 for +CMGW) or string type in text mode (default
STO UNSENT for +CMGW). Indicates the status of message in memory. If is
omitted, the stored message is considered as a message to send

0

“REC UNREAD”

1

“REC READ”

2

“STO UNSENT”

3

“STO SENT”

: Length of the actual data unit in bytes

Syntax:

Command syntax in text mode: ( is returned in both cases)

AT+CMGW= [, [, ] ]
Enter text:

Command syntax in PDU mode:

AT+CMGW= [,]
Give PDU:

Response

syntax:

+CMGW:

or +CMS ERROR: if writing fails

Command Syntax: +CMGW

Command

Possible responses

AT+CMGW=”+33146290800”
------------------------------------------------
Hello how are you ?

Note: Write a message in text mode
---------------------------------------------------

>
------------------------------------------


-------------------------------------------
+CMGW: 4
OK
Note: Message stored in index 4

AT+CMGW=
Note: Write a message in PDU mode (1/3)
-----------------------------------------------------------

Note: Enter message in PDU mode (2/3)
------------------------------------------------------------

Note: End the message (3/3)

>

-----------------------------------------------


-----------------------------------------------
+CMGW:
OK
Note: Message stored in

This manual is related to the following products: