Are you an M2M/IOT developer?
Request a free 1-month trial!!! SIM card provided with access to 2G/3G Data, SMS and USSD.Platform for real-time monitoring.Global cellular network across 190 countries, 440 networks.
First Name*       Country*    
Last Name*        Company*  
Email*               Phone*        
Purpose*      

AT Command

Description

AT+CGDCONT AT commands sets the PDP context parameters such as PDP type (IP, IPV6, PPP, X.25 etc), APN, data compression, header compression etc.

Usage
Command Possible response(s)
+CGDCONT=[[,[,[,[,[,[,[,[,[,]]]]]]]]]] OK ERROR
+CGDCONT? [+CGDCONT: ,,,,,[,[,[,[,]]]]] [+CGDCONT: ,,,,,[,[,[,[,]]]] [...]]
+CGDCONT=? +CGDCONT: (range of supporteds),,,,(list of supporteds),(list of supporteds),(list of supporteds),(list of supporteds),(list of supporteds),(list of supporteds) [+CGDCONT: (range of supporteds),,,,(list of supporteds),(list of supporteds),(list of supporteds),(list of supporteds),(list of supporteds),(list of supporteds) [...]]

Examples

What are the supported PDP contexts?
AT+CDGCONT=?

+CGDCONT: (1-10),("IP"),,,(0-1),(0-1)
+CGDCONT: (1-10),("IPV6"),,,(0-1),(0-1)

OK

Define a PDP Context. First parameter is the Context ID, second is the type of IP connection and third is the APN
AT+CDGCONT=1,"IP","epc.tmobile.com"
OK

Get the list of currently defined PDP Contexts
AT+CDGCONT?

+CGDCONT: 1,"IP","epc.tmobile.com","0.0.0.0",0,0
+CGDCONT: 2,"IP","isp.cingular","0.0.0.0",0,0
+CGDCONT: 3,"IP","","0.0.0.0",0,0

OK

KeywordsAT+CGDCONT syntax, examples, parameters, error, input, response.

With Online AT Command Tester tool, you can get,add, delete and edit PDP contexts stored on the device.

Users can also test the AT command under the ‘Command Mode’ tab of the AT Command Tester.

Under “Script Mode’ tab, users can send batch of AT commands to the device,