HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Short Messages

11.8.2 Reading the Status of Short Message Notification

Read

AT+CNMI?

command

 

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

>

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.8.3Setting the Status of Short Message Notification

Write

AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]

command

 

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:

zAfter 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.

zThe <mode> and <bfr> parameters set the mode of reporting the new short message notification to the TE.

zThe <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.

zThe <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.4Examples

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

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

170

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 187
Image 187
Huawei MG323 Reading the Status of Short Message Notification, Setting the Status of Short Message Notification, Crlf+Cnmi