Siemens MC55 AT manual Using Gprs AT commands Examples, AT+CGDCONT=1,IP

Models: MC55 AT

1 475
Download 475 pages 54.64 Kb
Page 298
Image 298

11.20Using GPRS AT commands (Examples)

Examples

EXAMPLE 1

Defining and using a Context Definition ID (CID):

Every time a CID is used as a parameter for a GPRS command the CID has to be defined before by using the AT+CGDCONT command. To get the parameter of a CID use the AT+CGDCONT read option. If the response of 'AT+CGDCONT?' is OK only, there is no CID defined.

AT+CGDCONT?

There is no CID defined

OK

All parameters of the CID are initiated by NULL or not present values, and the CID itself is set to be undefined. To define a CID use the AT+CGDCONT command with at least one CID parameter. At the moment the mobile supports CID 1 and CID 2 by using the AT+CGDCONT command.

Define CID 1 and set the PDP type to IP, access point name and IP address are not set:

AT+CGDCONT=1,"IP"

OK

Define CID 2 and sets PDP type, APN and IP addr:

AT+CGDCONT=2,"IP", "internet.t-d1.gprs", 111.222.123.234

OK

A following read command will respond:

AT+CGDCONT?

+CGDCONT:1,"IP","","",0,0 +CGDCONT:2,"IP","internet.t-d1.gprs",111.222.123.234

OK

Set the CID 1 to be undefined:

AT+CGDCONT=1

OK

A following read command will respond:

AT+CGDCONT? +CGDCONT:2,"IP","internet.t-d1.gprs",111.222.123.234

OK

MC55_ATC_V04.00

Page 298 of 475

3/17/06

Confidential / Released

 

 

Page 298
Image 298
Siemens MC55 AT manual Using Gprs AT commands Examples, AT+CGDCONT=1,IP, AT+CGDCONT=2,IP, internet.t-d1.gprs