Westermo GD-01 User Manual

Page 65

Advertising
background image

65

6196-2220

Defined values:

<stat>

possible values (status of messages in memory):

Text mode

PDU mode

Status of messages

possible values

possible values

in memory

“REC UNREAD”

0

received unread messages

“REC READ”

1

received read messages

“STO UNSENT”

2

stored unsent messages

“STO SENT”

3

stored sent messages

“ALL”

4 all

messages

NOTE: For SMS Status Reports, only “ALL” / 4 and “READ” / 1 values of the <stat>

parameter will list messages ; other values will only return OK.

+CMGS – Send message

Description:

The <address> field is the address of the terminal to which 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 can be aborted using
the <ESC> character when entering text. In PDU mode, only hexadecimal characters are
used (‘0’...’9’,’A’...’F’).

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 >

Command example

Possible responses

Note

AT+CMGS=”

Send a message in text

+33146290800”<CR> +CMGS: <mr>

mode

,result:

<ctrl-Z>

OK

Please call me soon, Fred.
successful transmission

AT+CMGS=

Send a message in PDU

<length><CR><pdu>

+CMGS: <mr>

mode, result:

<ctrl-Z>

OK

successful transmission

The message reference, <mr>, which is returned to the application is allocated by the
product.This number begins with 0 and is incremented by one for each outgoing mes-
sage (successful and failure cases); it is cyclic on one byte (0 follows 255).

NOTE: this number is not a storage number – outgoing messages are not stored.

B A C K

Advertising