HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Short Messages

11.7.1Checking Whether the Command for Sending Short Messages Is Available

Test AT+CMSS=? command

Function Checks whether the AT+CMSS command is available.

Response

z In case of available command: <CR><LF>OK<CR><LF>

zIn case of unavailable command: <CR><LF>ERROR<CR><LF>

zIn case of an error related to the MS: <CR><LF>+CMS ERROR: <err><CR><LF>

11.7.2Sending a Short Message at the Specified Location

Write

AT+CMSS=<index>[,<da>[,<toda>]]

command

 

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:

z0: UNKNOWN

z1: INTERNATIONAL

The four least significant bits indicate the number plan:

z0: UNKNOWN

z1: TELEPHONY

<mr>: identifier of short messages, which is a decimal number consisting of digits 0–

9. Value range: 0–255.

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

167

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 184
Image 184
Huawei MG323 Sending a Short Message at the Specified Location, Test AT+CMSS=? command, Short message is successfully sent