Set command

nRF91x1 Cellular AT Commands

The set command selects a mobile network automatically or manually. The command configuration is stored to Non-volatile Memory (NVM) approximately every 48 hours and when the modem is set to minimum functionality mode with the +CFUN=0 command.

Active %XPOFWARN warning blocks the storing to NVM.

Syntax when <mode> is 0:

+COPS=<mode>

Syntax when <mode> is 1. <format> must be 2:

+COPS=<mode>,<format>,<oper>[,<AcT>]

Syntax when <mode> is 3:

+COPS=<mode>,<format>

The set command parameters and their defined values are the following:

<mode>
0 – Automatic network selection
1 – Manual network selection
3 – Set <format> of +COPS read command response
<format>
0 – Long alphanumeric <oper> format.
1 – Short alphanumeric <oper> format.
2 – Numeric <oper> format
<oper>
String of digits. Mobile Country Code (MCC) and Mobile Network Code (MNC) values.
<AcT>
The given value is used as the preferred access technology during network selection followed by the +COPS command. The value is not used in later network selections, for example, after the next power-up, even though the manual network selection mode is still in use. If the given access technology is not available, the same operator is selected in another access technology.
7 – Evolved Terrestrial Radio Access Network (E-UTRAN)
9 – E-UTRAN (NB-S1 mode)

For manual selection, only the numeric string format is supported and <oper> is mandatory.

The following command example selects the automatic network selection:

AT+COPS=0
OK

The following command manually selects network 24407:

AT+COPS=1,2,"24407"
OK