Chapter 22 - Verizon® Specific AT Commands

Write Message to Memory +CMGW (Chapter 8)

Description: This command stores a message in memory (SMS-SUBMIT). The memory location <index> 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 <length> parameter is optional, it is used to set the length of the text string. When

 

<length> is specified, the CMGW command will only process the number of bytes specified

 

by <length> regardless of whether it contains <ctrl-Z>, <ESC>, or <backspace> characters.

 

The <priority>, <privacy>, <reply option>, and <cbn> 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:

<oa/da> : Origination/destination address value in string format.

 

<length> : Length of the text message (in bytes).

 

<priority>: Message priority:

 

0

– Normal

 

1

– Interactive

 

2

– Urgent

 

3

– Emergency

 

<privacy>: Message privacy:

 

0

– Normal

 

1

– Restricted

 

2

– Confidential

 

3

– Secret

 

<reply>: Message reply option:

 

0

– No Acknowledge

 

1

– Delivery Acknowledge

 

<cbn>: Call Back Number

Syntax:

Command syntax: AT+CMGS= <oa/da> [,<length>] [,<priority>] [,<privacy>] [,<reply>]

 

[,<cbn>] <CR> entered text <ctrl-Z / ESC>

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

Command

Possible Responses

AT+CMGW=”8585551212”<CR>

+CMGW: 4

Hello how are you ?<ctrl-Z>

OK

Note: Write a message

Note: Message stored in

 

index 4

AT+CMGW=”8587777777”,6<CR>

+CMGW: <index>

¥IÅàø?<ctrl-Z>

OK

Note: Write a message with specified length of 6 bytes

Note: Message stored in

 

<index>

AT+CMGW=”8585551212”,,2,1,1,”5550000”

+CMGW: 5

Please call ASAP<ctrl-Z>

OK

Note: Write message with the specified priority, privacy, reply

Note: Message stored in

option and call back number. Notice length field is omitted.

index 5

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

182

Page 182
Image 182
Multi-Tech Systems CDMA Wireless Modem manual Write Message to Memory +CMGW Chapter, Cbn CR entered text ctrl-Z / ESC