The Activity window specifies the length of a ring buffer that captures a history of events
over its period. With a maximum of 1 event per second.
For example, a 10 second Activity window, with an Activity Threshold of 2, requires a
minimum of 3 interrupts within a 10 second window for the device to be set to Active state.
Moved state time:
Moved state timer works in combination with the Motion detection engine.
For example, if the device is configured with below settings:
• Activity window Length:5
• Activity Thershold:0
• Stationary to Moved: 1
• Moving to stationary Threshold: 5
• Moved State: 30
After detecting single accelerometer interrupt in 5 seconds window, the device is set to active
state and after staying active for 1 second (above 0 in stationary to moved threshold), the
state changes from stationary to moved.
Therefore, after detecting motion for a second, state changes from stationary to moved.
Moved to stationary state works as below,
After device being stationary for 1 second in a 5 second window, device is set to inactive and
if device stays stationary above 1 second then a counter in the “moved to stationary” window
starts incrementing. If device stays stationary for next 5 seconds (moved to stationary
threshold:5) then the motion detection engine puts the device into Stationary state. From
there, the “moved state timer” starts and the device will transition to Idle state with moved
flag advertised for 30 seconds after which the moved flag will be disabled.