HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Data Services

0:detachment state

1:attachment state

9.2.2Querying the Current GPRS Service State

Read

AT+CGATT?

command

 

Function

Queries the current GPRS service state.

Response

z In case of successful execution:

 

<CR><LF>+CGATT: <state><CR><LF>

 

<CR><LF>OK<CR><LF>

zIn case of failed command execution: <CR><LF>+CME

ERROR: <err><CR><LF>

9.2.3Setting the GPRS Service State

Write

AT+CGATT=[<state>]

command

 

Function

Sets the GPRS service state.

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 MT: <CR><LF>+CME ERROR:

 

<err><CR><LF>

Note:

In this section, AT+CGATT= is equivalent to AT+CGATT=1 (<state>=1).

9.2.4 Examples

Example 1:

Read the GPRS attachment state.

AT+CGATT?

+CGATT: 1

OK

Example 2:

Set the GPRS detachment state.

AT+CGATT=0

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

113

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 130
Image 130
Huawei MG323 manual Querying the Current Gprs Service State, Setting the Gprs Service State, At+Cgatt?, AT+CGATT=0