Set command

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

The command configuration is stored to Non-volatile Memory (NVM) approximately every 48 hours and when the modem is powered off 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.

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 Positioning System (GPS) is enabled (and 0 when GPS 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 GPS is enabled, or LTE frequency is 600–800 MHz or 2000–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