Set command

The set command reads 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).

When the modem is active (either LTE communication or Global Navigation Satellite System (GNSS) receiver), the %XRFTEST 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 GNSS 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 the PA temperature measurement regarding modem activity. When the GNSS receiver is active, the SoC-internal temperature sensor value is updated more regularly. During LTE, the value is updated only at wakeup.



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

10 – Sensor test
1 – ON (measure)
0 – PA temperature
1 – SoC-internal temperature sensor v1.2.x≥1 pti_v1.1.x≥1
2 – Reserved
3 – VBAT (same as %XVBAT)
4 – Reserved

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

%XRFTEST: <temperature>

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>

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

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

%XRFTEST: 20355