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

Page 71

Advertising
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 <index> is returned (no choice possible as with phonebooks +CPBW).

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

Values:

<oa/da>

Originating or Destination Address Value in string format

<tooa/toda> Type of Originating / Destination Address
<stat>

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 <stat> 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>: Length of the actual data unit in bytes

Syntax:

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

AT+CMGW= <oa/da> [,<tooa/toda> [,<stat> ] ] <CR>
Enter text:

<ctrl-Z / ESC>

Command syntax in PDU mode:

AT+CMGW= <length> [,<stat>] <CR>
Give PDU:

<ctrl-Z / ESC>

Response

syntax:

+CMGW:

<index> or +CMS ERROR: <err> if writing fails

Command Syntax: +CMGW

Command

Possible responses

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

<ctrl-Z>

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

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


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

AT+CMGW=<length><CR><pdu><ctrl-Z>
Note: Write a message in PDU mode (1/3)
-----------------------------------------------------------
<pdu>
Note: Enter message in PDU mode (2/3)
------------------------------------------------------------
<ctrl-Z>
Note: End the message (3/3)

>

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


-----------------------------------------------
+CMGW: <index>
OK
Note: Message stored in <index>

Advertising
This manual is related to the following products: