HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Short Messages

11.6.2 Storing Short Messages

This command stores short messages in PDU mode (+CMGF=0).

Write

AT+CMGW=<length>[,<stat>]<CR>PDU is given <ctrl-Z/ESC>

command

 

Function

Stores short messages in PDU mode.

Response

z In case of successful execution:

 

<CR><LF>+CMGW: <index><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

<stat>: storage status of short messages.

<length>: number of characters of the actually sent TPDU / 2.

<index>: location number in the memory; a decimal number consisting of digits 0–9;

value range: 0–(maximum capacity of the memory - 1).

<ctrl-Z>: indicates the end of an entry of PDU data. The character is '0x1A'.

<ESC>: cancels the sending of the current short message. The character is '0x1B'.

11.6.3 Examples

Example:

Store a short message in PDU mode.

AT+CMGF=0

AT+CMGW=56

>07813108608805F911000B813109732008F70000FF30547419347EBBE965371DF

13683DAE5F93C7C2E83EE693A1A0427D741ED37B90C3ABFCB7310BA2C2F834 2<Ctrl-Z>

+CMGW: 10

OK

11.7AT+CMSS - Command for Selecting a Short Message from the Memory and Sending It

The AT+CMSS command sends a short message at the specified index location.

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

166

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 183
Image 183
Huawei MG323 manual Storing Short Messages, This command stores short messages in PDU mode +CMGF=0, AT+CMGF=0 AT+CMGW=56