HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Data Services

9.5.2 Reading the Status of the PDP Context

Read

AT+CGDCONT?

command

 

Function

Reads the status of the PDP context.

Response

z In case of successful execution:

[<CR><LF>+CGDCONT:<cid>,<PDP_type>,<APN>,<PDP_addr>,<d _comp>,<h_comp>

[<CR><LF>+CGDCONT: …<CR><LF>]]<CR><LF> <CR><LF>OK<CR><LF>

zIn case of an error during command execution: <CR><LF>ERROR<CR><LF>

zIn case of an error related to the MT: <CR><LF>+CME ERROR: <err><CR><LF>

9.5.3Setting the Status of the PDP Context

Write AT+CGDCONT=[<cid>[,<PDP_type>[,<APN>[,<PDP_addr>]]]] command

Function Sets the status of the PDP context.

Response z In case of successful execution: <CR><LF>OK<CR><LF>

zIn case of an error during command execution: <CR><LF>ERROR<CR><LF>

zIn case of an error related to the MT during command execution: <CR><LF>+CME ERROR: <err><CR><LF>

9.5.4 Examples

Example:

Define the PDP context.

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

OK

Query the defined PDP context.

AT+CGDCONT?

+CGDCONT:1,“IP”,“1234”,“”,0,0

OK

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

120

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 137
Image 137
Huawei MG323 manual Reading the Status of the PDP Context, Setting the Status of the PDP Context, +CGDCONT1,IP,1234,,0,0