nrf9160

AFC measurement

The AFC measurement function measures the AFC error value for a given frequency. The default error value is 0.

Syntax:

%XRFTEST=<test>,<operation>,<param0>,<param1>,<param2>,<param3>

The AFC measurement command parameters and their defined values are the following:

<test>
4 – AFC
<operation>
1 – ON (measure).
Note: OFF <operation> is not needed due to automatic stop. Mode is always LTE-M. The stored value is reset when the device is booted.
<param0>
3GPP band number. Use 24 for Global Navigation Satellite System (GNSS) reception.
<param1>
Frequency 100 kHz.
Valid range 6000–22000 (corresponds to 600.0 MHz–2200.0 MHz).
Note: If Carrier Wave (CW) is used, an offset of about 45 kHz for Narrowband Internet of Things (NB-IoT) and 300 kHz for LTE-M is recommended.
<param2>
RX signal power at the System in Package (SiP) antenna port in dBm.
<param3>
System mode.
0 – NB-IoT.
1 – LTE-M.

Response syntax:

%XRFTEST: <AFC_error_value_Hz>,<AFC_error_value_Q30>

The response parameters and their defined values are the following:

<AFC_error_value_Hz>
Measured AFC error value in Hz format.
<AFC_error_value_Q30> v1.2.x≥1 pti_v1.1.x≥1
Measured AFC error value in relative signed Q30 format.

The following command example measures the AFC error value for band 1, 2140.0 MHz, -40 dBm in LTE-M mode:

AT%XRFTEST=4,1,1,21400,-40,1 
%XRFTEST:349,175
 OK