AT Command

Description

AT+COPS AT command forces the mobile terminal to select and register the GSM/UMTS/EPS network.
Possible values for mode are,
0 automatic ( field is ignored)
1 manual ( field shall be present, and optionally)
2 deregister from network
3 set only (for read command +COPS?), do not attempt registration/deregistration ( and fields are ignored); this value is not applicable in read command response
4 manual/automatic ( field shall be present); if manual selection fails, automatic mode (=0) is entered

Possible values for access technology,
0 GSM
1 GSM Compact
2 UTRAN
3 GSM w/EGPRS
4 UTRAN w/HSDPA
5 UTRAN w/HSUPA
6 UTRAN w/HSDPA and HSUPA
7 E-UTRAN


Support

Module Tutorial
Usage
Command Possible response(s)
+COPS=[[, [,[,]]]] +CME ERROR: 
+COPS? +COPS: [,,[,]] +CME ERROR: 
+COPS=? +COPS: [list of supported (,long alphanumeric,short alphanumeric,numeric[,])s][,,(list of supporteds),(list of supporteds)] +CME ERROR: 

Examples

AT+COPS=?
+COPS: (2,"RADIOLINJA","RL","24405"),(0,"TELE","TELE","24491")
OK
AT+COPS?
+COPS: 0,0,"RADIOLINJA"
OK
AT+COPS=1,0,"TELE"
+CME ERROR: 3

KeywordsAT+COPS syntax, examples, parameters, error, input, response.

With Online AT Command Tester tool, you can find available networks and select the network to connect.
After ‘Find Networks’ button is pressed, the tester sends the AT+COPS=? command to initiate a network scan. The device returns the list of networks that are avaialble to connect. The ‘status’ field shows whether the network is avaialble to connect. Then using the ‘Select Network’ button, user to get service on the specific network. This is the manual network selection process.

AT+COPS – Check the current network
AT+COPS?
+COPS: 0,0,”AT&T”
OK
In above case, network selection is set for manual (‘0’) and the device is currently on the “AT&T” network.

AT+COPS – Manual Network Selection

To manually select the network using the AT+COPS command,
AT+COPS=1,0,”AT&T”
OK

AT=COPS – To get the list of avaialble operators
AT+COPS=?
+COPS: (2,”AT&T”,”AT&T”,”310410″),,(0,1,4),(0,1,2)
OK

In above example the mode is set for automatic(“1”) and the operator is selected. ‘0’ is the format of the operator name, in this case it is long format alpha numeric
Users can also test the AT command under the ‘Command Mode’ tab of the AT Command Tester.


Try this script included in AT Command Tester Tool.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Script-at_cops.at

//Test AT+COPS AT command

//AT+COPS command is used to select network operator

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

//List of supported responses

AT+COPS=?

 

//Wait for 15 seconds. Depending on network conditions, you may have to increase this wait time

WAIT=15

 

//Return current mode and currently selected operator

AT+COPS?

 

//Wait for 15 seconds

WAIT=15

 

//Manually select T-mobile as carrier using short format alphanumeric network name

AT+COPS=1,0,"TMO"

 

//Wait for 10 seconds

WAIT=10

 

//Manually select T-mobile as carrier using long format alphanumeric network name

AT+COPS=1,1,"T-Mobile USA"

 

//Wait for 10 seconds

WAIT=15

 

//Get registation status

AT+CREG?

 

//Manual deregister from network

AT+COPS=2

 

//Wait for 10 seconds

WAIT=10

 

//Get registration now

AT+COPS?

 

//Manually select T-mobile as carrier using numeric network name

AT+COPS=1,2,"310260"

 

//Wait for 10 seconds

WAIT=10

 

//If manual selection fails, enter automatic selection mode

AT+COPS=4, 0, "TMO"

 

//Wait for 10 seconds

WAIT=10

 

//Set for automatic network selection, this is generally preferred

AT+COPS=0,0, "TMO"


Output of above script in AT Command Tester Tool.

AT+COPS=?

+COPS: (2,"T-Mobile USA","TMO","310260"),,(0-4),(0-2)

 

OK

Available Networks:

Network Name->T-Mobile USA

Network ID->310260

Network Status->Current

 

AT+COPS?

+COPS: 0,0,"T-Mobile USA"

 

OK

Device is currently on "T-Mobile USA" network.

 

AT+COPS=1,0,"TMO"

ERROR

AT+COPS=1,1,"T-Mobile USA"

ERROR

AT+CREG?

+CREG: 0,1

 

OK

The device is registered in home network.

 

AT+COPS=2

OK

Network selection sucessful.

 

Updating the list...

 

AT+COPS=?

ERROR

Unable to find networks.

 

AT+COPS?

+COPS: 2

 

OK

AT+COPS=1,2,"310260"

OK

Network selection sucessful.

 

Updating the list...

 

AT+COPS=?

+COPS: (2,"T-Mobile USA","TMO","310260"),,(0-4),(0-2)

 

OK

AT+COPS=0,0, "TMO"

OK

Network selection sucessful.

 

Updating the list...

 

AT+COPS=?

+COPS: (2,"T-Mobile USA","TMO","310260"),,(0-4),(0-2)

 

OK

Available Networks:

Network Name->T-Mobile USA

Network ID->310260

Network Status->Current