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 bits) |
Counter
(4 bits) |
Message Type Code
(0x0D in the example below) |
Event Type
(0x05 in the example below) |
Current temperature in degrees Celsius with signed 8 bit #
(0x97 in the example below) |
First decimal of current temperature (0-9) in the most significant 4 – bits
(0x70 in the example below)
|
Humidity in % relative humidity (0-100%)
(0x3D in the example below) |
First decimal of relative humidity (0-9) in most significant 4-bits
(0x80 in the example below) |
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
0x0D represents the Air Temperature and Humidity Event Message Type
Air Temperature and Humidity Event Type Payload Definitions
Byte 2 Description
0x00 Periodic Report
0x01 Temperature has risen above upper threshold
0x02 Temperature has fallen below lower threshold
0x03 Temperature report on change increase
0x04 Temperature report on change decrease
0x05 Humidity has risen above upper threshold
0x06 Humidity has fallen below lower threshold
0x07 Humidity report on change increase
0x08 Humidity report on change decrease
Air Temperature Byte 3 and 4 Definitions
Byte 3: Bit 7 is the sign bit
0 = Positive
1 = Negative
Byte 3: Bit 6:0 is the hex value of the integer part of temperature
Byte 4: Is the fractional part of the temperature
Humidity Byte 5 and 6 Definitions
Byte 5: Bit 7 is the sign bit
0 = Positive
1 = Negative
Byte 5: Bit 6:0 is the hex value of the integer part of humidity
Byte 6: Is the fractional part of the humidity
Example of Air Temperature and Humidity Event Message
10 0D 05 97 70 3D 80
1 Protocol Version (currently always 0x1)
0 Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
0D Message Type Code (Air Temp and Humidity Event = 0x0D)
05 Event (Humidity has risen above upper threshold = 0x05)
97 Current Temperature in degrees Celsius (-23 = 0x97)
70 First decimal of current temperature (7 = 0x70)
3D Humidity in % relative humidity (61 = 0x3D)
80 First decimal of relative humidity (8 = 0x80)
The Radio Bridge Console will generate the following output for this message:
Humidity has risen above upper threshold
Current temperature in degrees Celsius -23.7
Humidity in % relative humidity 61.8