Querying The Current Gprs Service State; Setting The Gprs Service State; Examples - Huawei MG323 At Command Interface Specification

Gsm m2m module
Hide thumbs Also See for MG323:
Table of Contents

Advertisement

HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
0: detachment state
1: attachment state

9.2.2 Querying the Current GPRS Service State

Read
command
Function
Response

9.2.3 Setting the GPRS Service State

Write
command
Function
Response
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)
AT+CGATT?
Queries the current GPRS service state.
In case of successful execution:
<CR><LF>+CGATT: <state><CR><LF>
<CR><LF>OK<CR><LF>
In case of failed command execution: <CR><LF>+CME
ERROR: <err><CR><LF>
AT+CGATT=[<state>]
Sets the GPRS service state.
In case of successful execution: <CR><LF>OK<CR><LF>
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Commands for Data Services
113

Advertisement

Table of Contents
loading

Table of Contents