N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
29
4 GPRS Commands
4.1 Setting PDP Format: CGDCONT
Description
To set the packet data protocol (PDP) format of the GPRS
Format
AT+CGDCONT=[<cid>[,<PDP_type>[,<APN>[,<PDP_addr>[,<d_comp>[,<h_
comp> [,<pd1> [,…[,pdN]]]]]]]]]<CR>
AT+CGDCONT?<CR>
AT+CGDCONT=?<CR>
Parameter
<cid>:(PDP Context Identifier) a numeric parameter that specifies a particular PDP
context definition. The parameter is local to the TE-MT interface and is used in other
PDP context-related commands. The range of permitted values (minimum value =
1) is returned by the test form of the command.
<PDP_type>:(Packet Data Protocol type) a string parameter. IP Internet Protocol
(IETF STD 5)
<APN>:(Access Point Name) a string parameter which is a 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_address>:a string parameter that identifies the MT in the address space
applicable to the PDP. If the value is null or omitted, then a value maybe provided
by the TE during the PDP startup procedure or, failing that, a dynamic address will
be requested. The read form of the command will continue to return the null string
even if an address has been allocated during the PDP startup procedure. The
allocated address may be read using the +CGPADDR command.
<d_comp>:a numeric parameter that controls PDP data compression (applicable
for SNDCP only)
0: off (default if value is omitted)
<h_comp>:a numeric parameter that controls PDP header compression
0: off (default if value is omitted)
<pd1>, … <pdN>:zero to N string parameters whose meanings are specific to the
<PDP_type>
Return Value
See the Example.
Example
AT+CGDCONT=1,"IP","CMNET"
OK
Set APN.