Cmgf – preferred message format – Westermo GDW-11 User Manual

Page 88

Advertising
background image

88 Short Messages commands

6615-2220

+CMGF – Preferred Message Format

Description:

The message formats supported are text mode and PDU mode.

In PDU mode, a complete SMS Message including all header information is given as a
binary string (in hexadecimal format). Therefore, only the following set of characters is
allowed: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F}. Each pair or character is converted to a
byte (e.g.: ‘41’ is converted to the ASCII character ‘A’, whose ASCII code is 0x41 or 65).

In Text mode, all commands and responses are in ASCII characters.

The selected format is stored in EEPROM by the +CSAS command.

Syntax:

AT+CMGF=<mode>

Command example

Possible responses

Note

AT+CMGF?

+CMGF:1

Current message format

OK Text

mode

AT+CMGF=?

+CMGF: (0,1)

Text or PDU modes are

OK availabe

Sending an SMS Message in PDU mode

Command example

Possible responses

Note

AT+CMGF=0

OK

Set PDU mode

AT+CMGS=14<CR>

+CMGS: 4

Send complete MSG in

0001030691214365000

OK

PDU mode, no SC address

004C9E9340B

MSG correctly sent, <mr>

is

returned

Advertising
This manual is related to the following products: