RF sensor testing

The command allows to read the temperature sensor next to the Power Amplifier (PA) inside the System in Package (SiP) and another temperature sensor inside the nRF9120 System on Chip (SoC).v1.2.x

When the modem is active (either LTE communication or Global Positioning System (GPS) receiver), the command with <param0>=0 returns the latest PA temperature sensor value measured automatically during modem wakeup or transmission. The temperature is not measured during LTE or GPS reception, because PA is not in use. During modem inactivity, the modem measures the PA temperature value when the command is received.

The command with <param0>=1 returns the SoC internal temperature sensor value with the same restrictions that apply to PA temperature measurement regarding modem activity. When the GPS receiver is active, the SoC internal temperature sensor value is updated more regularly. During LTE, the value is updated only at wakeup.

The command parameters and their defined values are the following:

<test>
10 – Sensor test
<operation>
1 – ON (measure)
<param0>
0 – PA temperature
1 – SoC internal temperature sensorv1.2.x≥1
2 – Reserved
3 – VBAT (same as %XVBAT)
4 – Reserved

Response syntax when <param0> = 0 or <param0> = 1:

%XRFTEST: <temperature>
OK

When <param0> = 0 or <param0> = 1, the response is given in millidegrees Celsius, with a resolution of approximately 50 millidegrees Celsius.

Response syntax when <param0> = 3:

%XRFTEST: <vbat>
OK

When <param0> = 3, the response is given in millivolts.

The following command example measures the PA temperature which is approximately 20.4 Celsius:

AT%XRFTEST=10,1,0
%XRFTEST: 20355
OK