Skip to Content

DT IoT Command — Multiple Temperature Sensors

The DT command in IoT devices allows querying and configuring up to 8 OneWire temperature sensors connected to OW0 and OW1 ports.


What is it for?

🌡️ Multi-zone — Monitor temperature at 8 different points
🚚 Cold chain — Control refrigerated cargo temperature
🏭 Industrial — Supervise thermal processes at multiple locations
📍 Identification — Assign sensors by 16-character unique ID


Query All Temperatures

QDT RDTabbbbccabbbbccabbbbccabbbbccabbbbccabbbbccabbbbccabbbbcc

The abbbbcc groups correspond to each sensor (DT00 to DT07) in order.


Response Parameters

FieldDescription
aTemperature sign: + or -
bbbbTemperature value in hundredths of °C
ccTime elapsed since last calculation (seconds)

Special Values

ValueMeaning
+0000FFSensor not connected or no reading

General Query Example

>QDT< >RDT+258702+267503+267503+0000FF+0000FF+0000FF+0000FF+258703;ID=865413050155570;*5C<

Decoding:

SensorValueTempAgeStatus
DT00+25870225.87°C2s✅ OK
DT01+26750326.75°C3s✅ OK
DT02+26750326.75°C3s✅ OK
DT03-06+0000FF--❌ Not connected
DT07+25870325.87°C3s✅ OK

Sensor Mapping

One sensor per One Wire port

If only 1 sensor is connected per port, these will be automatically mapped:

PortSensor
OW0DT00
OW1DT01

Multiple sensors per port

To connect more than one sensor to each port, it is necessary to configure the unique ID of each sensor with the SDT command.


Syntax

OperationCommandDescription
ConfigureSDTaab,ccccccccccccccccAssign ID to sensor
QueryQDTaaRead specific sensor

Response

RDTaab,cccccccccccccccc,deeeeff

Configuration Parameters

FieldDescription
aaSensor index (00-07)
bEnable: 0 = disabled, 1 = enabled
ccccccccccccccccSensor unique code (16 hex characters)
dTemperature sign: + or -
eeeeTemperature value in hundredths of °C
ffTime since last reading (seconds)

Individual Configuration Example

Configure sensor 07 with specific ID

>SDT071,2887F03F0700007F< >RDT071,2887F03F0700007F,+265605;ID=865413050155570;*32<

Query configured sensor

// Sensor 07 enabled with unique ID, temp: 26.56°C

Query configured sensor

>QDT07< >RDT071,2887F03F0700007F,+265600;ID=865413050155570;*37< // Current reading: 26.56°C, 0 seconds old

To connect multiple sensors to the same OW port, you must configure the unique ID of each sensor with SDT. If you only connect 1 sensor per port, it maps automatically.

Compatibility

💾Firmware:v1.00.00
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated