
34/107
7. NETWORK SERVICE COMMANDS (GSM 07.07)
7.1 +CREG NETWORK REGISTRATION
Command Response
Default
+cme
error
Set
+CREG=<n>
0
Read
+CREG? +CREG:
<n>,<stat>[,<lac>,<ci>]
x
Test
+CREG=? +CREG:
(0-2)
The +CREG command controls the presentation of the unsolicited result code +CREG:
<stat> when <n>=1 and the ME network registration status changes, or the code +CREG:
<stat>[,<lac>,<ci>] when <n>=2 and the network cell changes.
The read command returns the status of a result code presentation and an integer <stat>
which shows whether the network has currently indicated the registration of the ME. The
location information elements <lac> and <ci> are returned only when <n>=2 and the ME is
registered in the network.
Defined values
<n>:
0
disable network registration unsolicited result code
1
enable network registration unsolicited result code +CREG: <stat>
2
enable network registration and location information unsolicited
result code +CREG: <stat>[,<lac>,<ci>]
<stat>:
0 Not registered, the ME is not currently searching for a new operator to
register with
1 Registered,
home
network
2 Not registered, but ME is currently searching for a new operator to register
with
3 Registration
denied
4 Unknown
5 Registered,
roaming
<lac>
string type; a two-byte location area code in hexadecimal format (e.g. "00C3"
equals 193 in decimal)
<ci>:
string type; a two-byte cell ID in hexadecimal format