HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Short Messages

11.2.2 Reading the Format of Short Messages

Read

AT+CMGF?

command

 

Function

Reads the current format of short messages.

Response

z In case of successful execution:

 

<CR><LF>+CMGF: <mode><CR><LF>

 

<CR><LF>OK<CR><LF>

zIn case of an error during command execution: <CR><LF>ERROR<CR><LF>

zIn case of an error related to the MS: <CR><LF>+CMS ERROR: <err><CR><LF>

11.2.3Setting the Format of Short Messages

Write

AT+CMGF=<mode>

command

 

Function

Sets the format of short messages.

Response

z In case of successful execution: <CR><LF>OK<CR><LF>

 

z In case of an error during command execution:

 

<CR><LF>ERROR<CR><LF>

 

z In case of an error related to the MS: <CR><LF>+CMS ERROR:

 

<err><CR><LF>

Note:

If no parameters of this command are set, AT+CMGF= considers the previously set values valid for various parameters.

11.2.4 Examples

Example 1:

Set the format of short messages.

AT+CMGF=0

OK

Example 2:

Query the format of short messages.

AT+CMGF?

+CMGF: 0

OK

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

159

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 176
Image 176
Huawei MG323 manual Reading the Format of Short Messages, Setting the Format of Short Messages, AT+CMGF=0, At+Cmgf?