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.
111
9.1.2 Reading the Activation State of the PDP Context
Read
command
AT+CGACT?
Function
Reads the activation state of the specified PDP context.
Response
z
In case of successful execution:
[<CR><LF>+CGACT:<cid><state><CR><LF>
[<CR><LF>+CGACT:<cid><state><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 MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<cid>: numeric parameter; value range: 1–3; this parameter indicates the PDP
context identification. For a TE-MT interface, this parameter is local and can be used
for other commands related to the PDP context.
9.1.3 Setting the Activation State of the PDP Context
Write
command
AT+CGACT=[<state>[,<cid>[,<cid>]]]
Function
Sets the status of the PDP context.
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:
z
To hang up the dialing of a data service through AT commands, first send AT+CGACT to
deactivate the PDP context, and then send ATH to hang up the data service.
z
In this section, AT+CGACT= is equivalent to AT+CGACT=1 (<state>=1).
9.1.4 Examples
Example 1:
Define the PDP context.
AT+CGDCONT=1,“IP”,“1234”
OK
Read the activation state of the PDP context.