HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Data Services

9.4.3 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.0.0”,0,0

OK

Establish the communication.

AT+CGDATA=“PPP”,1

CONNECT

Run +++ to quit the data mode and enter the command mode.

9.5AT+CGDCONT - Command for Defining the PDP Context

The AT+CGDCONT command defines the PDP context. The MT locally saves a group of PDP contexts with <cid> as the index. Each record of the saved setting environment contains a group of PDP related parameters. The write command saves the group of PDP related parameters in the PDP contexts that use <cid> as the index. Each PDP context is initially undefined. After the write command saves a group of parameters in a PDP context, the PDP context is defined. The number of defined PDP contexts that can be saved at the same time is determined by the value range of <cid>.

If AT+CGDCONT= <cid> is sent, all parameters in the PDP contexts indicated by <cid> are cleared. In this case, the PDP contexts become undefined again.

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

118

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 135
Image 135
Huawei MG323 manual AT+CGDCONT Command for Defining the PDP Context, At+Cgdcont?, AT+CGDATA=PPP,1 Connect