AT Command

Description

AT+CGDATA AT command causes the device to establish a connection with the network. Commands following +CGDATA command in the AT command line shall not be processed by the device.

Usage
Command Possible Response(s)
+CGDATA[=[,[,[,...]]]] CONNECT ERROR
+CGDATA=? +CGDATA: (list of supporteds)
NOTE:       The syntax of the AT Set Command is corrected to be according to ITU?T Recommendation V.250 [14]. Older versions of the specification specify incorrect syntax +CGDATA=[[,[,[,...]]]].

Examples

AT+CGDATA=?
+CGDATA:("PPP")
OK
AT+CGDATA="PPP",1
CONNECT

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

Test AT+CGDATA command with AT Command Tester





Try this script included in AT Command Tester Tool.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Script-at_cgdata.at

//Test AT+CGDATA AT command

//AT+CGATT command is used to enter data state

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

//List of supported responses

//Lists the Layer 2 protocol to be used betweenthe TE and MT

AT+CGDATA=?

 

//WAIT for 2 sec

WAIT=2

 

//Get the current state

AT+CGDATA="PPP",1


Output of above script in AT Command Tester Tool.

AT+CGDATA=?

+CGDATA: "PPP"

 

OK

 

AT+CGDATA="PPP",1

CONNECT