How do I decode a Thermocouple Temperature Sensor event?
The Thermocouple Temperature
Sensor will generate events based on temperature measurements rising above or
falling below configured thresholds, report-on-change, and periodic messaging.
Byte 0: 7-4
|
Byte 0: 3-0
|
Byte 1
|
Byte 2
|
Byte 3 and Byte 4
|
Byte 5
|
Protocol version
(4 bits)
|
Counter
(4 bits)
|
Message Type Code
0x13
|
Temp
event payload
|
Temperature Reading
(16 bits, sign bit, 11 bits of integer, and 4 bits of
fractional temp, 2’s complement)
(0x000.0 in the example below)
|
Faults
(each bit represents an error type, 8 possible errors)
|
Protocol Definition
First
4 bits are defined by Radio Bridge for the protocol
Next
4 bits are a counter that goes from 0 to F (Hex) and repeats
Message Type Code
0x13 represents the Thermocouple
Temperature Sensor Message Type Code
Thermocouple Temperature Sensor Event
Byte
2 Description
0x00 Periodic
Report
0x01 Temperature
has risen above upper threshold
0x02 Temperature has
fallen below lower threshold
0x03 Report on change increase
0x04 Report
on change decrease
0x05 Faults
Byte 3 and 4
Current
temperature in degrees Celsius
Temperature (Celsius)
|
Bytes 3-4 (hex)
|
Byte 4 bits 3:0 (Last nibble)
|
Max temp, +1600.00
|
0x640 0
|
Nibble=0 = 0000 bin 0
|
+1000.4375
|
0x3E8 7
|
Nibble=0 = 0111 bin 7/
16
|
+100.9375
|
0x064 F
|
Nibble=F = 1111 bin
15/16
|
+25.500
|
0x019 8
|
Nibble=8 = 1000 bin 8 /
16
|
+0.0625
|
0x000 1
|
Nibble=1 = 0001 bin 1
/16
|
+0.000
|
0x000 0
|
Nibble=0 = 0000 bin 0
/16
|
-0.0625
|
0xFFF F
|
For negative numbers,
F = - 1/16th
|
-0.25
|
0xFFF C
|
|
-1.000
|
0xFFF 0
|
|
Min temp -250.000
|
0xF06 0
|
For negative number 0 is
-15/16ths
|
Byte 4 bits 3:0 are fractions, 8/16,
4/16, 2/16, 1/16
Byte 5
Faults:
If something goes wrong with the thermocouple such as detection of a broken
probe, a fault message will be generated and a code provided in byte 5 of the
uplink based on the following table:
Bit
|
Description
|
7
|
The cold-Junction temperature is outside of the normal operating range
|
6
|
The hot junction temperature is outside of the normal operating range
|
5
|
The cold-Junction temperature is at or above than the cold-junction
temperature high threshold
|
4
|
The Cold-Junction temperature is lower than the cold-junction
temperature low threshold
|
3
|
The thermocouple temperature is too high
|
2
|
Thermocouple temperature is too low
|
1
|
The input voltage is negative or greater than VDD
|
0
|
An open circuit such as broken thermocouple wires has been detected
|
Example
of Thermocouple Temperature Sensor Event Message
10 13 00
014e 00
1
Protocol Version (currently always 0x1)
0
Packet
Counter (increments by 1 each message and wraps from 0xF to 0x0)
13 Message Type Code (0x13 = Thermocouple
Temperature Sensor Identifying value)
00 Thermocouple Temperature Sensor Event Payload (0x00 = Periodic
Report)
014e Thermocouple
Temperature (0x014e in 2’s compliment= 20.88 Celsius)
00 Thermocouple Fault Type Code (0x00 = No
Faults)
Same Thermocouple Temperature Sensor Event Message (but with negative
temperature: -20.88 Celsius)
10 13 00
FEB2 00
1
Protocol Version (currently always 0x1)
0
Packet
Counter (increments by 1 each message and wraps from 0xF to 0x0)
13 Message Type Code (0x13 = Thermocouple
Temperature Sensor Identifying value)
00
Thermocouple Temperature Sensor Event Payload (0x00 = Periodic
Report)
FEB2 Thermocouple
Temperature (0xFEB2 in 2’s compliment = -20.88 Celsius)
00 Thermocouple Fault Type Code (0x00 = No
Faults)
The Radio Bridge Console will
generate the following output for this message:
Temperature Event: Periodic
Report
Temperature in degrees Celsius:
20.88 C
Faults: No Faults
Related Articles
How Do I Decode a No-Probe Temperature Sensor Event
The No-Probe Temperature Sensor will generate events if the temperature rises above or falls below the configured thresholds Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2 Byte 3 Byte 4 Protocol version (4 bits) Counter (4 bits) No-Probe Temp ...
How do I decode an External Probe Temperature Sensor Event?
The External Probe Temperature Sensor will generate events if the temperature rises above or falls below the configured thresholds. Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2 Byte 3 Byte 4 Protocol version (4 bits) Counter (4 bits) ...
How do I decode an Air Temperature and Humidity event?
The Air Temperature and Humidity Sensor will generate events when the environment changes to exceed set thresholds or on a periodic basis. Air Temperature and Humidity Event Message: 0x0D Byte Description 0 ...
How do I decode an Air Temperature and Humidity event?
The Air Temperature and Humidity Sensor will generate events when the environment changes to exceed set thresholds or on a periodic basis. Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Protocol version (4 ...
How Do I Decode A High Precision Tilt Sensor Event?
The High Precision Tilt Sensor will generate events if when the sensor is tilted either away from or toward the vertical orientation by a specified amount. Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Protocol version (4 bits) ...