Send message +cmgs – Multi-Tech Systems CDMA Wireless Modem User Manual

Page 62

Advertising
background image

Chapter 8 – Short Messages Commands

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

62

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>
Please call me soon, Fred. <ctrl-Z>
Note: Send a message

+CMGS:<mr>
OK
Note: Message reference
output.

AT+CMGS=”8585551212”,12<CR>
Please call.<ctrl-Z>
Note: Send 12 byte message

+CMGS:<mr>
OK
Note: Message reference
output.

AT+CMGS=”8585551212”,2,1,1”5550000” <CR>
Please call ASAP<ctrl-Z>
Note: Send a message with the specified priority,
privacy, reply option and call back number. Notice
length field is omitted.

+CMGS:<mr>
OK
Note: Message reference
output.

AT+CMGS="12345"<CR>
<Unicode message><0x00><0x1A>
Note: Unicode message without length field. Two byte
Unicode message <ctrl-Z> terminator.

+CMGS:<mr>
OK
Note: Message reference
output.

AT+CMGS="1234",4
<Unicode message><dummy byte>
Note: Unicode message with length. Final <dummy
byte> (any value) required for message transmission.

+CMGS:<mr>
OK
Note: Message reference
output.

Advertising