Huawei MG323 Recording Equipment User Manual


 
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.
170
11.8.2 Reading the Status of Short Message Notification
Read
command
AT+CNMI?
Function
Reads the status of CNMI.
Response
z
In case of successful execution:
<CR><LF>+CNMI:
<mode>,<mt>,<bm>,<ds>,<bfr><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.8.3 Setting the Status of Short Message Notification
Write
command
AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]
Function
Sets the status of short message notification.
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:
z
After the MT restarts, the setting values of this command are cleared. In this case, no new
short message is reported. It is not recommended that the setting mode of
AT+CNMI=0,0,0,0,0 be used.
z
The <mode> and <bfr> parameters set the mode of reporting the new short message
notification to the TE.
z
The <mt> parameter sets whether to report a new short message directly to the TE or stores
it on the MT and reports the storage location to the TE when receiving the new short
message.
z
The <bm> parameter sets whether to report a new CBM directly to the TE or stores it on the
MT and reports the storage location to the TE when receiving the new CBM. The <ds>
parameter sets whether to report the short message status report (+CDS).
11.8.4 Examples
Example 1:
Set the short message notification mode as follows: store the short message and
send the storage location to the TE; do not send the short message status report.
AT+CNMI=1,1,0,0,0