Chapter 8 – Short Messages Commands

Send Message +CMGS

Description: The <da> field is the address of the terminal to which the message is sent. To send the text message, type <ctrl-Z> (0x1A) as the final character of the message. This command can be aborted using the <ESC> (0x1B) character while entering the message text.

 

The <length> parameter is optional, it is used to set the length of the text string. When

 

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

 

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

 

The parameters <priority> and <cbn> are optional. When not specified, they default as

 

follows:

 

Priority: 0 (Normal)

 

Call back number: Not included in the message.

Values:

<da> : 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

 

<cbn>: Call Back Number

Note: If the “FD” facility is enabled, only the <da> entries in the FDN phonebook can be sent.

Syntax: Command syntax: AT+CMGS=<da> [,<length>] [,<priority>] [,<cbn>] <CR>entered text<ctrl- Z / ESC>

Command

Possible Responses

AT+CMGS=”8585551212”<CR>

+CMGS:<mr>

Please call me soon, Fred. <ctrl-Z>

OK

Note: Send a message

Note: Message reference

 

output.

AT+CMGS=”8585551212”,12<CR>

+CMGS:<mr>

Please call.<ctrl-Z>

OK

Note: Send 12 byte message

Note: Message reference

 

output.

AT+CMGS=”8585551212”,2,1,1”5550000” <CR>

+CMGS:<mr>

Please call ASAP<ctrl-Z>

OK

Note: Send a message with the specified priority,

Note: Message reference

privacy, reply option and call back number. Notice

output.

length field is omitted.

 

AT+CMGS="12345"<CR>

+CMGS:<mr>

<Unicode message><0x00><0x1A>

OK

Note: Unicode message without length field. Two byte

Note: Message reference

Unicode message <ctrl-Z> terminator.

output.

AT+CMGS="1234",4

+CMGS:<mr>

<Unicode message><dummy byte>

OK

Note: Unicode message with length. Final <dummy

Note: Message reference

byte> (any value) required for message transmission.

output.

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

62

Page 62
Image 62
Multi-Tech Systems CDMA Wireless Modem manual Send Message +CMGS, Da Destination address value in string format