HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for Short Messages
Issue 02 (2010-11-23) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd. 159
11.2.2 Reading the Format of Short Messages
Read
command
AT+CMGF?
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>
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>
11.2.3 Setting the Format of Short Messages
Write
command
AT+CMGF=<mode>
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+C MGF =0
OK
Example 2:
Query the format of short messages.
AT+C MGF ?
+CMGF: 0
OK