WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
10
2.2 Querying the Network Registration Status: +CREG
Description
To query the network registration status of the module
Format
AT+CREG=<n><CR>
AT+CREG? <CR>
AT+CREG=?<CR>
Parameter
<n>:
0: Forbid unsolicited result codes of network registration (default setting).
1: Allow unsolicited result codes of network registration.
2: Allow unsolicited location information (Cell ID, Local ID) of network registration.
Return Value
<CR><LF>+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<n>:
0: Forbid unsolicited result codes of network registration (default setting).
1: Allow unsolicited result codes of network registration.
2: Allow unsolicited location information (Cell ID, Local ID) of network registration.
<stat>:
0: Unregistered. The device is not searching for new carriers.
1: Registered the local network
2: Unregistered. The device is searching for base stations.
3: The registration is rejected.
4. Unknown code
5: Registered, roaming
<lac>: Location Area Code
<ci>: string type; two
-
byte cell ID in hexadecimal format
<Act>:
0: GSM
2: UTRAN
3: GSM w/EGPRS
Example
AT+CREG=1
OK
Enable
network
registration
unsolicited result code.
AT+CREG?
+CREG: 1,1
Query the current network registration
status.