Specifications
AT Command Set for L55 Platform 2003-11-21
Copyright Siemens AG 2003 All Rights Reserved Page 117 of 131
2.8.2 Examples and hints for using GPRS commands
2.8.2.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 first via the
AT+CGDCONT command.
To retrieve the parameter of a CID the AT+CGDCONT read option must be used.
If the response of AT+CGDCONT? is OK only, no CID is defined.
AT+CGDCONT?
OK // no CID defined
All parameters of the CID are initiated by NULL or non-existing values, and the CID itself is set to
undefined. To define a CID use the AT+CGDCONT command with at least one CID parameter.
The present version of the mobile software supports CID 1 and CID 2 by using the AT+CGDCONT
command.
e.g.
AT+CGDCONT=1,IP
OK // defines CID 1 and sets the PDP type to IP
// access point name and IP address aren't set
AT+CGDCONT=2,IP, "internet.t-d1.gprs", 111.222.123.234
OK // defines CID 2 and sets PDP type, APN and IP addr
A subsequent read command will return
AT+CGDCONT?
+CGDCONT:1,IP
+CGDCONT:2,IP," internet.t-d1.gprs",111.222.123.234
OK
AT+CGDCONT=1
OK // sets the CID 1 to be undefined
A subsequent read command will return
AT+CGDCONT?
+CGDCONT:2,IP, "internet.t-d1.gprs",111.222.123.234
OK