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.
120
9.5.2 Reading the Status of the PDP Context
Read
command
AT+CGDCONT?
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>
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>
9.5.3 Setting the Status of the PDP Context
Write
command
AT+CGDCONT=[<cid>[,<PDP_type>[,<APN>[,<PDP_addr>]]]]
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 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