beautypg.com

Multi-Tech Systems CDMA Wireless Modem User Manual

Page 182

background image

Chapter 22 - Verizon® Specific AT Commands

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

182

Write Message to Memory +CMGW (Chapter 8)

Description: This command stores a message in memory (SMS-SUBMIT). The memory location

is returned (no choice possible as with phonebooks +CPBW). A text or Unicode message is
entered as described for the Send Message +CMGS command.

The parameter is optional, it is used to set the length of the text string. When
is specified, the CMGW command will only process the number of bytes specified
by regardless of whether it contains , , or characters.

The , , , and parameters are optional. When not
specified, they default as follows:

Priority: 0 (Normal)
Privacy: 0 (Normal)

Reply Option: 0 (No Acknowledge)

Call back number: Not included in the message.


Values:

: Origination/destination address value in string format.
: Length of the text message (in bytes).
: Message priority:

0 – Normal
1 – Interactive
2 – Urgent
3 – Emergency

: Message privacy:

0 – Normal
1 – Restricted
2 – Confidential
3 – Secret

: Message reply option:

0 – No Acknowledge
1 – Delivery Acknowledge

: Call Back Number


Syntax:

Command syntax: AT+CMGS= [,] [,] [,] [,]
[,] entered text

Response syntax: +CMGW: or +CMS ERROR: if writing fails

Command

Possible Responses

AT+CMGW=”8585551212”
Hello how are you ?
Note: Write a message

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

AT+CMGW=”8587777777”,6
¥IÅàø?
Note: Write a message with specified length of 6 bytes

+CMGW:
OK
Note: Message stored in

AT+CMGW=”8585551212”,,2,1,1,”5550000”
Please call ASAP
Note: Write message with the specified priority, privacy, reply
option and call back number. Notice length field is omitted.

+CMGW: 5
OK
Note: Message stored in
index 5