|
Z-Wave Protocol Controller Reference
|
A Z-Wave Supervision Command Class handlers. More...
Functions | |
| sl_status_t | zwave_command_class_supervision_init (void) |
| Setup fixture for the Supervision Command Class. More... | |
| sl_status_t | zwave_command_class_supervision_support_handler (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length) |
| Handle incoming Supervision encapsulated commands. More... | |
| sl_status_t | zwave_command_class_supervision_send_data (const zwave_controller_connection_info_t *connection, uint16_t data_length, const uint8_t *data, const zwave_tx_options_t *tx_options, const on_zwave_tx_send_data_complete_t on_supervision_complete, void *user, zwave_tx_session_id_t *session) |
| Take a frame and create a Supervision Session. More... | |
| sl_status_t | zwave_command_class_supervision_abort_send_data (zwave_tx_session_id_t session) |
| Abort a queued or ongoing transmission. More... | |
| sl_status_t | zwave_command_class_supervision_wake_on_demand (zwave_node_id_t node_id) |
| Request that a node is "Waked" Up on demand at the next communication. More... | |
| sl_status_t | zwave_command_class_supervision_stop_wake_on_demand (zwave_node_id_t node_id) |
| Cancel a request that a node is "Waked" Up on demand at the next communication. More... | |
| sl_status_t | zwave_command_class_supervision_close_session_by_tx_session (zwave_tx_session_id_t tx_session_id) |
| Close a supervision session based on the Z-Wave Tx session ID. More... | |
A Z-Wave Supervision Command Class handlers.
This module provides both support and control of the Supervision Command Class. It provides an API to send data, which will encapsulate the frame and send out. It also provides a Supervision Command Class handler that is registered to the Z-Wave Application Command Class Handler
| sl_status_t zwave_command_class_supervision_abort_send_data | ( | zwave_tx_session_id_t | session | ) |
Abort a queued or ongoing transmission.
Refer to zwave_tx_abort_transmission for a detailed description
| session | Refer to zwave_tx_abort_transmission |
| sl_status_t zwave_command_class_supervision_close_session_by_tx_session | ( | zwave_tx_session_id_t | tx_session_id | ) |
Close a supervision session based on the Z-Wave Tx session ID.
| tx_session_id | The Z-Wave TX session ID associated to the Supervision Session that must be closed. |
| sl_status_t zwave_command_class_supervision_init | ( | void | ) |
Setup fixture for the Supervision Command Class.
This setup will register the Supervision command handler to the Z-Wave CC framework,
| sl_status_t zwave_command_class_supervision_send_data | ( | const zwave_controller_connection_info_t * | connection, |
| uint16_t | data_length, | ||
| const uint8_t * | data, | ||
| const zwave_tx_options_t * | tx_options, | ||
| const on_zwave_tx_send_data_complete_t | on_supervision_complete, | ||
| void * | user, | ||
| zwave_tx_session_id_t * | session | ||
| ) |
Take a frame and create a Supervision Session.
This function is used to transmit Z-Wave frames using Supervision encapsulation. The provided payload will be encapsulated in a Supervision session, then sent out.
The Supervision module will wait for a Supervision Report before it callbacks the application.
| connection | Refer to zwave_tx_send_data |
| data_length | Refer to zwave_tx_send_data |
| data | Refer to zwave_tx_send_data |
| tx_options | Refer to zwave_tx_send_data |
| on_supervision_complete | Refer to zwave_tx_send_data. Note: The status parameter in the on_supervision_complete callback will be the Supervision Report Status nd not the Transmit Status. |
| user | Refer to zwave_tx_send_data |
| session | Refer to zwave_tx_send_data |
| sl_status_t zwave_command_class_supervision_stop_wake_on_demand | ( | zwave_node_id_t | node_id | ) |
Cancel a request that a node is "Waked" Up on demand at the next communication.
| node_id | The node ID of the node that no longer is requested to Wake-Up on demand |
| sl_status_t zwave_command_class_supervision_support_handler | ( | const zwave_controller_connection_info_t * | connection_info, |
| const uint8_t * | frame_data, | ||
| uint16_t | frame_length | ||
| ) |
Handle incoming Supervision encapsulated commands.
| connection_info | Info about the connection properties of this frame. |
| frame_data | The data payload of this frame. |
| frame_length | The length of this frame. |
| sl_status_t zwave_command_class_supervision_wake_on_demand | ( | zwave_node_id_t | node_id | ) |
Request that a node is "Waked" Up on demand at the next communication.
Note that the Supervision module will only ensure that the node supports Supervision Command Class, version 2 It will not verify that it supports the Wake Up Command Class, version 3 or the Wake-Up on demand capability.
| node_id | The node ID of the node to Wake-Up on demand |