5 at+cmgf message format – Sony Ericsson TT4031 (SE-GM29) User Manual
Page 192
Owner’s Manual
Rev 1.0
Page 192 of 192
13.5 AT+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
supported
AT+CMGF=?
•_ +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
0
PDU mode
1 Text
mode
13.6 AT+CMGW Write Message to Memory
PDU Mode
Description Command
Possible
Responses
Write message to
memory
AT+CMGW=<length>
[,<stat>]<CR>
PDU is given<ctrl-
Z/ESC>
•_ +CMGW: <index>
•_ +CMS ERROR: <err>
•_ OK
•_ ERROR