HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Data Services

9.1.2 Reading the Activation State of the PDP Context

Read

AT+CGACT?

command

 

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

AT+CGACT=[<state>[,<cid>[,<cid>]]]

command

 

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:

zTo 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.

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

9.1.4Examples

Example 1:

Define the PDP context.

AT+CGDCONT=1,“IP”,“1234”

OK

Read the activation state of the PDP context.

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

111

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 128
Image 128
Huawei MG323 Reading the Activation State of the PDP Context, Setting the Activation State of the PDP Context, At+Cgact?