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.
167
11.7.1 Checking Whether the Command for Sending Short
Messages Is Available
Test
command
AT+CMSS=?
Function
Checks whether the AT+CMSS command is available.
Response
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.7.2 Sending a Short Message at the Specified Location
Write
command
AT+CMSS=<index>[,<da>[,<toda>]]
Function
Sends a short message at the specified index location.
Response
z
When the short message is in PDU mode (+CMGF=0) and the
short message is successfully sent:
<CR><LF>+CMSS:
<mr>[,<ackpdu>]<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
<index>: location of short messages on the SIM card.
<da>: number of the short message receiver. Value range: 0–9, +, *, and #. This
parameter consists of not more than 20 characters. “+” must be the first character.
<toda>: a 1-byte number, which indicates the address coding mode. This parameter
takes effect only when the address code has eight bits. The default value is 0.
The four most significant bits indicate the number type:
z
0: UNKNOWN
z
1: INTERNATIONAL
The four least significant bits indicate the number plan:
z
0: UNKNOWN
z
1: TELEPHONY
<mr>: identifier of short messages, which is a decimal number consisting of digits 0–
9. Value range: 0–255.