nrf9160

Set command

The set command sets country-specific data. 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.v1.3.x≥2

Syntax:

%XCOUNTRYDATA=<oper>[,<country_1>][,<country_2>] ... [,<country_70>]

where <country_x> is used only for <oper> 1 and contains <act>,<mcc>,<band>,<earfcn>[,band_2,earfcn_2]..[,band_5,earfcn_5].

+CME ERROR codev1.3.x≥2
513 – Not found.
518 – Not allowed in active state.
528 – Not allowed when power off warning is active.

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

<oper>
0 – Delete stored country data
1 – Store country data
<act>
4 – Evolved Terrestrial Radio Access Network (E-UTRAN) (WB-S1 mode)
5 – E-UTRAN (NB-S1 mode)
<mcc>
Integer. Mobile Country Code (MCC)s defined by ITU-T.
<band>
Integer, 1–71. See 3GPP 36.101.
<earfcn>
Integer. E-UTRA Absolute Radio Frequency Channel Number (EARFCN) as defined in 3GPP TS 36.101.
0 – EARFCN not specified

The following command example writes two country elements. In the first country element, <act> is LTE-M, <mcc> is 244, <band> is 3, and <earfcn> is 1207. In the second country element, <act> is Narrowband Internet of Things (NB-IoT), <mcc> is 212, <band> is 20, and <earfcn> is 6150, <band> is 13, without specific <earfcn>:

AT%XCOUNTRYDATA=1,”4,244,3,1207”, “5,242,20,6175,13,0”
OK

The following command example deletes existing country data from the modem:

AT%XCOUNTRYDATA=0
OK