nrf9160

Set command

The set command writes the COEX0 pin configuration to device RAM.

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. The configuration can be stored to NVM with the %XFSSYNC command when the Production Test Image (PTI) modem firmware is used. The stored configuration is applied when the device is powered on. When RF is turned off, the given COEX0 state is inverted.

Active %XPOFWARN warning blocks the storing to NVM.v1.3.x≥2

Syntax:

%XCOEX0=<count>,<state_0>,<freqlo_0>,<freqhi_0>,...
<state_count-1><freqlo_count-1><freqhi_count-1>

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

<count>
The number of frequency ranges. Valid values are 1, 2, 3, and 4.
<state_x>
The state of COEX0 with the following frequency range. Valid values are 0 and 1.
<freqlo_x>
Low limit for the frequency range in MHz.
<freqhi_x>
High limit for the frequency range in MHz.

The following command example sets COEX0 to 1 when Global Navigation Satellite System (GNSS) is enabled (and 0 when GNSS is turned off). COEX0 is not used with other frequencies (or LTE):

AT%XCOEX0=1,1,1570,1580
OK

The following command example sets COEX0 to 1 when GNSS is enabled, or LTE frequency is 600 MHz to 800 MHz or 2000 MHz to 2180 MHz:

AT%XCOEX0=3,1,1570,1580,1,2000,2180,1,600,800
OK

If the command is given without any parameters, it deletes the previously written values:

AT%XCOEX0
OK