Next: Test switch status (TB)
Up: Serial Port Command Interface
Previous: Get system time (TS)
Contents
The temperature command reports the temperature of the Cricket unit. It
is also used to enable the temperature sensor in the first place. When
the temperature sensor is enabled, the embedded Cricket software
calculates distances using the speed of sound at the ambient
temperature. The temperature is returned in the units specified by the
UN command (Section 2.2.20). By default the temperature is
specified in degrees Celsius.
By sending ``P TP 1/0'', you can enable(1)/disable(0) the temperature sensor.
Example (enable the temperature sensors):
P TP 1<return>
Result:
TP 1
Michel Goraczko
2004-12-02