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.
Syntax:
%XRFTEST=<test>,<operation>,<param0>
The set command parameters and their defined values are the following:
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