Westermo GS-01 User Manual

Page 43

Advertising
background image

43

6195-2201

+CMGS – Send message

Command syntax in text mode:

AT+CMGS= <da> [ ,<toda> ] <CR>

text is entered

<ctrl-Z / ESC >

Command syntax in PDU mode:

AT+CMGS= <length> <CR>

PDU is entered

<ctrl-Z / ESC >

The <address> field is the address of the terminal network to whom the message is sent.
To send the message, simply type <ctrl-Z> character (ASCII 26). The text can contain all
existing characters except <ctrl-Z> and <ESC> (ASCII 27).
This command is abortable using the <ESC> character when entering text.
In PDU mode, only hexadecimal characters are used (‘0’...’9’,’A’...’F’).

Example of use:

Application to GSM

AT+CMGS=”+33146290800”<CR>

Send a message in text

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

mode

GSM to application

+CMGS: <mr>

Successful transmission

OK

Application to GSM

AT+CMGS=<length><CR>

Send a message in PDU

<pdu><ctrl-Z>

mode

GSM to application

+CMGS: <mr>

Successful transmission

OK

The message reference <mr> which is returned back to the application is allocated by the
GSM module. This number begins with 0 and is incremented by one for each outgoing
message (successful and failure case) ; it is cyclic on one byte (0 follows 255).

Note: this number is not a storage number - outgoing messages are not stored.

Advertising