Tilt Sensor Configuration Example:
0A 0A 41 46 F0 0C 1E 28
0A Downlink Message Type (0x0A =
0A Control byte:
0x0A
Disable report-on-change toward vertical = Yes
Disable report-on-change toward horizontal = No
Disable transitions to vertical orientation only = No
Disable transitions to horizontal orientation only = Yes
41 Angle for transition to horizontal state in degrees (0x41 = 65 degrees)
46 Angle for transition to vertical state in degrees (0x46 = 70 degrees)
F0 Vertical hold time (0xF0 = 240, 240 * 250ms = 60 seconds = 1 minute
0C Horizontal hold time (0x0C = 12 * 250ms = 3 seconds)
1E Report-on-change toward vertical (0x1E = 30 degrees)
28 Report-on-change toward horizontal (0x28 = 40 degrees)
If the configuration is successful the sensor will respond with a Downlink Acknowledge message:
1 0 FF 02
1 Protocol Version (currently always 0x1)
0 Packet Counter, increments by 1 each message and wraps from 0xF to 0x0
FF Message Type (Downlink ACK = 0xFF)
02 Downlink Message Valid (Invalid/Undefined = 0x01, Valid = 0x02)