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.
118
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.5 AT+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.