> 11.6 | AT+CGDCONT Define PDP Context

> Syntax

> Test Command AT+CGDCONT=?
> Response(s)
> +CGDCONT: (range of supported<cid>s), <PDP_type>, , , (list of supported <d_comp>s), (list of supported <h_comp>s)
> OK
> ERROR
> +CME ERROR

> Read Command AT+CGDCONT?
> Response(s)
> [+CGDCONT: <cid>, <PDP_type>, <APN>, <PDP_addr>, <d_comp>, <h_comp>]
> [+CGDCONT: ...]
> OK
> ERROR
> +CME ERROR

> Write Command AT+CGDCONT=[<cid>[, <PDP_type>[, <APN>[, <PDP_addr>[, <d_comp>[, <h_comp>]]]]]]
> Response(s)
> OK
> ERROR
> +CME ERROR

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> GSM 07.07 |  | + |  | + | + | + | + | + | + |  |  | - | + | -

> Command Description
> The test command returns supported values as a compound value.
> The read command returns the current settings for each defined PDP context.
> The write command specifies the parameters for a PDP context identified by the context identifier <cid>. The number of contexts that may be in a defined state at the same time is given by the range returned by the test command. A special form of the write command (AT+CGDCONT=<cid>) causes the values for context <cid> to become undefined.
> Parameter Description

> <cid>(num)

> PDP Context Identifier
> Parameter specifies a particular PDP context definition. The parameter is local to the TE-MT interface and is used in other PDP context-related commands.
> 1...2

> <PDP_type>(str)

> Packet Data Protocol type
> Specifies the type of the packet data protocol.
> “IP“
> Internet Protocol (IETF STD 5)

> <APN>(str)

> Access Point Name
> The logical name that is used to select the GGSN or the external packet data network. If the value is null or omitted, then the subscription value will be requested.

> <PDP_addr>(str)

> Packet Data Protocol address
> Identifies the MT in the address space applicable to PDP (e.g. IP V4 address for PDP type IP). If the value is null or omitted, then a value may be provided by the TE during the PDP startup procedure or, failing that, a dynamic address will be requested.

> <d_comp>(num)

> Data Compression
> Controls the PDP data compression (applicable for Subnetwork Dependent Convergence Protocol (SNDCP) only) 3GPP TS 44.065
> [0]
> off

> <h_comp>(num)

> Header Compression
> Controls the PDP header compression 3GPP TS 44.065, 3GPP TS 25.323
> [0]
> off
> 1
> on
> Notes

> • | The MT supports PDP type IP only.

> • | All context definitions will be stored non volatile if the ME is configured accordingly (see AT^SCFG parameter "GPRS/PersistentContexts" (<gpc>)).

> • | If the non volatile storage of CGDCONT settings is not activated by the AT^SCFG parameter "GPRS/PersistentContexts", then AT&F and ATZ will undefine every context which is not active or not online.