Huawei MG323 Recording Equipment User Manual


 
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for Data Services
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
113
0: detachment state
1: attachment state
9.2.2 Querying the Current GPRS Service State
Read
command
AT+CGATT?
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>
z
In case of failed command execution: <CR><LF>+CME
ERROR: <err><CR><LF>
9.2.3 Setting the GPRS Service State
Write
command
AT+CGATT=[<state>]
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