GSM/GPRS Module
M35
AT Commands Manual
M35
_AT_Commands_Manual Confidential / Released 58 / 186
Parameter
Unsolicited result code
If
<n>
=1 and there is a change in the ME network registration status
+CREG: <stat>
If
<n>
=2 and there is a change in the ME network registration status or a change of the network cell:
+CREG: <stat>[,<lac>,<ci>]
Example
AT+CREG=1
Read Command
AT+CREG?
Response
TA returns the status of result code presentation and an
integer
<stat>
which shows whether the network has
currently indicated the registration of the ME. Location
information elements
<lac>
and
<ci>
are returned only when
<n>
=2 and ME is registered in the network.
+CREG: <n>,<stat>[,<lac>,<ci>]
OK
If error is related to ME functionality:
+CME ERROR: <err>
Write Command
AT+CREG=<n>
Response
TA controls the presentation of an unsolicited result code
+CREG: <stat>
when
<n>
=1 and there is a change in the ME
network registration status.
OK
Reference
GSM 07.07
<n>
0
Disable network registration unsolicited result code
1
Enable network registration unsolicited result code
+CREG: <stat>
2
Enable network registration unsolicited result code with location information
<stat>
0
Not registered, ME is not currently searching a new operator to register to
1
Registered, home network
2
Not registered, but ME is currently searching a new operator to register to
3
Registration denied
4
Unknown
5
Registered, roaming
<lac>
String type; two byte location area code in hexadecimal format
<ci>
String type; two byte cell ID in hexadecimal format
NOTES