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. 179
11.12.2 Reading the Current Message Service Type
Read
command
AT+CSMS?
Function Reads the current message service type.
Response z In case of successful execution:
<CR><LF>+CSMS: <service>,<mt>,<mo><bm><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>
Parameter description
<mt>,<mo>,<bm>: integer values, which indicate whether the MT supports receiving
short messages, sending short messages, and broadcasting message services
respectively.
z 0: does not support the preceding functions.
z 1 (default value): supports the preceding functions.
11.12.3 Setting the Message Service Type
Write
command
AT+CSMS=<service>
Function Sets the message service type.
Response z In case of successful execution:
<CR><LF>+CSMS:
<mt>,<mo>,<bm><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.12.4 Examples
Example 1:
AT+CSMS=?
+CSMS: (0)
OK