How do I decode a Tilt event?

How do I decode a Tilt event?

The Tilt Sensor will generate events when the orientation of the device transitions its vertical-horizontal axis as determined by configurable threshold angles (state transition) or when the vertical-horizontal orientation changes by a configurable amount (report on change).

Tilt Event Message: 0x0A
Byte         Description
0                 Tilt Event Payload
1                 Tilt Angle from Vertical Axis


Tilt Event Payload Definitions
Event Payload Description
0x00         Sensor transitioned to Vertical (across vertical threshold)
0x01         Sensor transitioned to Horizontal (across horizontal threshold)
0x02         Report on change toward Vertical (change exceeds vertical amount)
0x03         Report on change toward horizontal (change exceeds horizontal amount)

Example of Tilt Event Message:

1 0 0A 01 53

1                         Protocol Version (currently always 0x1)
0                         Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
0A                         Message Type Code (Tilt Event = 0x0A)
01                         Event (Sensor has transitioned to horizontal = 0x01)
53                         Current Tilt Angle from vertical axis (83 degrees = 0x53)

The RadioBridge Console will generate the following output for this message:

Sensor transitioned to horizontal
Tilt angle from vertical axis: 83 degrees
    • Related Articles

    • 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) ...
    • How do I decode a Dual Push Button event?

      The Dual Push Button Sensor will generate events when the either the left button, the right button, or both buttons are pressed, released, or held-down for a configurable amount of time.   Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2 Byte 3 Protocol version ...
    • How do I decode a Single Push Button event?

      The Single Push Button Sensor will generate events when the button is pressed, released and or held-down for a configurable amount of time.   Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2 Byte 3 Protocol version (4 bits) Counter (4 bits) Message Type Code ...
    • How do I decode a Dry Contact Sensor Event?

      The wireless Dry Contact Sensor detects a connection between two wires. When the wires are either shorted or opened, the Dry Contact Sensor will generate an event.   Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2    Protocol version     (4 bits) Counter       ...
    • How do I decode a Door/Window Sensor event?

      The Door/Window Sensor will generate events when a door (or window) is open or closed.   Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 3 Protocol version (4 bits) Counter (4 bits) Message Type Code (0x03) Event (0x01 in the example below)     Protocol ...