HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
11.2.2 Reading the Format of Short Messages
Read
command
Function
Response
11.2.3 Setting the Format of Short Messages
Write
command
Function
Response
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)
AT+CMGF?
Reads the current format of short messages.
In case of successful execution:
<CR><LF>+CMGF: <mode><CR><LF>
<CR><LF>OK<CR><LF>
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
AT+CMGF=<mode>
Sets the format of short messages.
In case of successful execution: <CR><LF>OK<CR><LF>
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Commands for Short Messages
159