AT Command

Description

AT+CGREG AT command returns the registration status of the device.

Usage
Command Possible response(s)
+CGREG=[] +CME ERROR: 
+CGREG? +CGREG: ,[,[],[],[],[][,,]]
+CGREG=? +CGREG: (list of supporteds)

Examples

AT+CGREG?
+CGREG: 0,0
OK

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

With Online AT Command Tester tool, you can find the GPRS registration status of the device.

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



Try this script included in AT Command Tester Tool.

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

//Script-at_cgreg.at

//Test AT+CGREG AT command

//AT+CGREG returns network registration status of device

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

 

//List of supported write values for AT+CGREG

AT+CGREG=?

 

//Get current registration status

//If there is any error, CME error code is returned

AT+CGREG?

 

//Configure to return unsolicited result code when network registration

//is disabled

AT+CGREG=0

 

//Configure to return unsolicited result code  with when network registration is enabled

AT+CGREG=1

 

//Configure to return unsolicited result code when there is change in

//network registration status or change of network cell

AT+CGREG=2


Output of above script in AT Command Tester Tool.

AT+CGREG=?

+CGREG: (0-2)

 

OK

AT+CGREG?

+CGREG: 0,1

 

OK

AT+CGREG=0

OK

AT+CGREG=1

OK

AT+CGREG=2

OK