HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Data Services

9.6AT+CGPADDR - Command for Reading the PDP Address

The AT+CGPADDR command reads the PDP address. This command can return the PDP address list of the specified PDP context identification <cid>. If <cid> is omitted, the addresses of all defined PDP contexts are returned.

9.6.1 Querying the Supported PDP Index Value

Test

AT+CGPADDR=?

command

 

Function

Checks the parameter range supported by this command.

Response

z In case of successful execution:

 

[<CR><LF>+CGPADDR: (list of supported <cid>s) <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 during command execution:

 

<CR><LF>+CME ERROR: <err><CR><LF>

Parameter description

<cid>: numeric parameter, which indicates the index value of the PDP context; value

range: 1–3. Other commands related to the PDP context can invoke the saved settings through this index value. For a TE-MT interface, this parameter is local and can be used for other commands related to the PDP context.

<PDP_addr>: character type parameter, which indicates the PDP address. The PDP address can be a static or dynamic address.

9.6.2 Reading the PDP Address List of the Specified PDP Context

This command reads the PDP address list of the specified PDP context.

Write

AT+CGPADDR=[<cid>[,<cid>]]

command

 

Function

Reads the PDP address list of the specified PDP context.

Response

z In case of successful execution:

 

[<CR><LF>+CGPADDR: <cid>,<PDP_address><CR><LF>

 

[<CR><LF>+CGPADDR: <cid>,<PDP_address><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 during command execution:

 

<CR><LF>+CME ERROR: <err><CR><LF>

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

121

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 138
Image 138
Huawei MG323 manual AT+CGPADDR Command for Reading the PDP Address, Querying the Supported PDP Index Value, At+Cgpaddr=?