Multi-Tech Systems MMCModem GPRS (MTMMC-G) User Manual
Page 71
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
Text or PDU is entered as described for the Send Message +CMGS command.
Values:
Originating or Destination Address Value in string format
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
omitted, the stored message is considered as a message to send
0
“REC UNREAD”
1
“REC READ”
2
“STO UNSENT”
3
“STO SENT”
Syntax:
Command syntax in text mode: (
AT+CMGW=
Enter text:
Command syntax in PDU mode:
AT+CMGW=
Give PDU:
Response
syntax:
+CMGW:
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