OnCell G2150I AT Command Set

GPRS Commands

Define PDP Context: + CGDCONT

Description: This Command specifies PDP context parameter values for a PDP context identified by the local context identification parameter, <cid>. Four PDP contexts can be defined through MOXA software. A special form of the set command, +CGDCONT= <cid> causes the values for context number <cid> to become undefined. The test command returns values supported as a compound value. If the MT supports several PDP types, <PDP_type>, the parameter value ranges for each <PDP_type> are returned on a separate line. The read command returns the current settings for each defined context. The test command returns values supported as a compound value. If the MT supports several PDP types, <PDP_type), the parameter value ranges for each <PDP_type> are returned on a separate line.

Command syntax:

Command

Possible responses

AT+CGDCONT=[<cid>

OK

[,<PDP_type> [,<APN>

ERROR

[,<PDP_addr> [,<d_comp>

 

[,<h_comp>]]]]]]

 

AT+CGDCONT?

+CGDCONT: <cid>, <PDP_type>,

 

<APN>,<PDP_addr>, <data_comp>,

 

<head_comp>

 

[<CR><LF>+CGDCONT: <cid>, <PDP_type>,

 

<APN>,<PDP_addr>, <data_comp>,

 

<head_comp>

 

[...]] OK

AT+CGDCONT=?

+CGDCONT: (range of supported <cid>s),

 

<PDP_type>,,,(list of supported <d_comp>s), (list of

 

supported <h_comp>s)

 

[<CR><LF>+CGDCONT: (range of supported

 

<cid>s), <PDP_type>,,,(list of supported

 

<d_comp>s),(list of supported <h_comp>s)

 

[...]]

 

OK

AT+CGDCONT: 1, “IP”, “internet”;

OK

+CGDCONT=2, “IP”, “abc.com”

 

AT+CGDCONT=?

+CGDCONT: (1-4),”IP”,,,(0-1),(0-1)

 

+CGDCONT: (1-4),”PPP”,,,0,0

 

OK

AT+CGDCONT?

+CGDCONT: 1, “IP”, “internet”,,0,0

 

+CGDCONT: 2, “IP”, “abc.com”,,0,0

 

OK

Defined values:

<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. Range of values is 1 to 4.

<PDP_type>: (Packet Data Protocol type) a string parameter which specifies the type of packet data protocol

IP: Internet Protocol

PPP: Point to Point Protocol

<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.

10-2

Page 93
Image 93
Moxa Technologies manual Define PDP Context + Cgdcont, OnCell G2150I AT Command Set Gprs Commands, 10-2