The Voltage Sensor will generate
events if the measured value rises above or falls below the configured
thresholds.
Byte 0: 7-4
|
Byte 0: 3-0
|
Byte 1
|
Byte 2
|
Byte 3 & 4
|
Protocol version
(4 bits)
|
Counter
(4 bits)
|
Message Type Code
(0x14)
|
Voltage Event
(0x01 in the example below)
|
Voltage
Measurement
(0x0810 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
0x14
represents the Voltage Sensor Message Type
Voltage Event
Byte
2 Description
0x00 Periodic report
0x01 Measurement
has risen above upper threshold
0x02 Analog
measurement has fallen below lower threshold
0x03 Report
on change increase
0x04 Report
on change decrease
Byte 3 (Relative Measurement)
The
voltage measurement is in units of 10mV (range 0-3000)
Example
of Voltage Sensor Event Message
10 14
00 08 10
1
Protocol Version (currently always 0x1)
0
Packet
Counter (increments by 1 each message and wraps from 0xF to 0x0)
14
Message Type Code (Voltage Sensor Event = 0x14)
00 Voltage Event (Event 0x00 means the message is sent to a configured
periodic amount of time)
0810 Voltage Relative Measurement (Relative Measurement
is = 0x0810 = 2064 mVolts = 2.064 Volts)
The Radio Bridge Console will
generate the following output for this message:
Voltage Event: Periodic Report
Voltage Measurement: 2.064 Volts