CREG – request network registration status
Verifies the current network registration status of the
Type | Syntax | Returned Result |
---|---|---|
Test |
AT+CREG=? |
+CREG: (0-2)
OK |
Read |
AT+CREG? Perform the Write command first so that you can set the returned details of the Read command. |
The response depends on which mode you selected in the write command. The initial number returned is the mode. If the mode = 0, the following response occurs: +CREG: 0,<regStatus>
OK If the mode = 1, the following response occurs: +CREG: 1,<regStatus>
OK If the mode = 2, the following response occurs: +CREG: 2,<regStatus>[,<netLac>,<netCellID>[,<AcT>]] where:
or ERROR – the command failed. |
Write |
AT+CREG=<Mode> where
|
OK - the network registration status mode is successfully set ERROR - the command failed |
Factors contributing to SIM failure to register on the network may include:
- Missing network coverage
- Denied network access
- No valid roaming agreement between the home network and currently available operators
Example
AT+CREG=2
OK
AT+CREG?
+CREG: 2,5,"54DB","0F6B0578",7
OK