13.5AT+CMGF Message Format

Common for both PDU and Text Modes

Description

Command

Possible Responses

 

 

 

Set message format

AT+CMGF=<mode>

•_ OK

 

 

 

 

•_ ERROR

Read the current setting AT+CMGF?

•_ +CMGF: <mode>

 

 

•_ OK

 

 

•_ ERROR

Show if the command is AT+CMGF=? supported

•_ +CMGF: (list of supported <mode>s)

•_ OK

•_ ERROR

This command tells the TA, which input and output format to use for messages. The <mode> parameter indicates the format of messages used with send, list, read and write commands, and unsolicited result codes resulting from received messages. Mode can be either PDU mode (entire TP data units used) or text mode (headers and body of the messages given as separate parameters).

Test command returns supported modes as a compound value.

<mode> Description

0PDU mode

1Text mode

13.6AT+CMGWWrite Message to Memory

PDU Mode

 

Description

Command

Possible Responses

 

 

 

 

 

 

Write message to

 

AT+CMGW=<length>

•_ +CMGW: <index>

 

memory

 

[,<stat>]<CR>

•_ +CMS ERROR: <err>

 

 

 

PDU is given<ctrl-

 

 

 

•_ OK

 

 

 

Z/ESC>

 

 

 

 

•_ ERROR

Owner’s Manual

Rev 1.0

Page 192 of 192