beautypg.com

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

Page 62

background image

Chapter 8 – Short Messages Commands

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

62

Send Message +CMGS

Description: The field is the address of the terminal to which the message is sent. To send the text

message, type (0x1A) as the final character of the message. This command can be
aborted using the (0x1B) character while entering the message text.

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

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

Priority: 0 (Normal)
Call back number: Not included in the message.

Values:

: Destination address value in string format.

: Length of the text message (in bytes).

: Message priority:

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

: Call Back Number
Note: If the “FD” facility is enabled, only the entries in the FDN phonebook can be
sent.

Syntax:

Command syntax: AT+CMGS= [,] [,] [,] entered textZ / ESC>

Command

Possible Responses

AT+CMGS=”8585551212”
Please call me soon, Fred.
Note: Send a message

+CMGS:
OK
Note: Message reference
output.

AT+CMGS=”8585551212”,12
Please call.
Note: Send 12 byte message

+CMGS:
OK
Note: Message reference
output.

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

+CMGS:
OK
Note: Message reference
output.

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

+CMGS:
OK
Note: Message reference
output.

AT+CMGS="1234",4

Note: Unicode message with length. Final byte> (any value) required for message transmission.

+CMGS:
OK
Note: Message reference
output.