GSM Modules
18
2. Network Service Command
2.1 +CREG: network registration and roaming
Format
This command is used to check the module’s network registration and roaming
status.
Example AT+CREG=<mode>
+CREG :<mode>,<stat> return code
AT+CREG=0
OK
Disabled network registration and provide
result code
AT+CREG?
+CREG: 0,1
Display the module’s registration status
Example
AT+CREG=
?
+CREG:
(
0-2
)
OK
Check status range
Parameter
<mode>
:
0 Disabled network registration and provide result code (default)
1 Enabled network registration and provide result code: +CREG: <stat>
2 Enabled network registration and provide the location information.
<stat>
:
0: Not logged on the network yet, currently not searching for new operator
1: Already logged on the local network.
2: Not logged on the network, currently searching for the BS
4: unknown code
5: Already logged on the network, under roaming status
2.2 +COPS: network selection
Format
This command is used for network selection.
Example AT+COPS=[<mode>[,<format>[,<oper>]]]
Example
AT+COPS?
+COPS=<mode>[,<format>,<oper>]
OK
Return current network’s registration
mode and network
AT+COPS=[<mode>[,<format>[,<oper>]]]
OK
Select and register network