True Status Module#
Function for registering state change events and triggering the report to be sent to lifeline group members after a predefined delay. The delay is currently defined to 250 ms. The delay is a means to prevent network collisions and to avoid generation of redundant reports from rapid state changes. The function also takes care of sending the report to the relevant lifeline group members only i.e., it will not send the report to a lifeline destination that issued the command causing the state change. The current implementation can hold up to 3 different state change requests in a queue awaiting the predefined delay to expire. Additional requests during this period will be discarded.
General Information#
The True Status module implements the requirements for Lifeline Reports as specified in document "ZWave Plus v2 Device Type Specification".
The main components of the True Status module are described in the following sub-sections.
True Status Engine#
The True Status Engine component is located in the ZAF/ApplicationUtilities/TrueStatusEngine
folder and consists of the following source files:
ZAF_TSE.c
TSE implements the functionality for registering and handling the state change events that a node wants to report to its lifeline association group members. A state change can be triggered by a command from a remote note, or by a local change (e.g., a button press).
Public functions#
ZAF_TSE_InitReturns
bool
True Status Callback Functions#
The True Status Callback Functions consist of several functions that implement the functionality for sending the actual state change reports to the lifeline association group members. These functions are implemented in each of the relevant command class modules. The True Status Callback Function is one of the arguments passed to the ZAF_TSE_Trigger()
function (described in the previous section), and it will be executed by the True Status Engine for sending the state change reports to each of the relevant members of the lifeline group, one at a time. An example of a True Status Callback Function implementation can be found in the Command Class BinarySwitch:
True Status Sequence Flows#
The following diagrams show the function call flows for a BinarySwitch example for the two use cases.
State change triggered by a command from a remote node
State change triggered by a local change (e.g., a button press)