Internal functions for the S2 component.
More...
Internal functions for the S2 component.
◆ COMMAND_CLASS_SECURITY_2
| #define COMMAND_CLASS_SECURITY_2 0x9F |
◆ COMMAND_CLASS_SECURITY_2_VERSION
| #define COMMAND_CLASS_SECURITY_2_VERSION 1 |
◆ zwave_s2_abort_send_data()
Z-Wave controller transport callback function which will be triggered when S2 frame tranmission is aborted.
- Parameters
-
| session_id | The session id of the frame which has been aborted. |
- Returns
- SL_STATUS_OK to indicate that ongoing session are aborted.
-
SL_STATUS_NOT_FOUND to indicate that no transmission was ongoing.
◆ zwave_s2_on_frame_received()
Entry point of S2 frames received from the PHY/radio stack.
This function is used to feed S2 frames into the S2 engine. See S2_application_command_handler
- Parameters
-
| connection_info | Information about sender. |
| rx_options | Receive options |
| frame_data | S2 control frame data |
| frame_length | S2 control frame length |
- Returns
- true If frame is accepted
-
false If frame is not an S2 frame.
◆ zwave_s2_on_on_multicast_group_deleted()
Asks LibS2 to erase an MPAN entry.
- Parameters
-
| group_id | The Z-Wave Group ID that is to be re-shuffled |
◆ zwave_s2_send_data()
Sending an S2 encapsulated frame.
This function will encrypt a data payload and encapsupate it into an Security 2 message. This function wraps S2_send_data. This function can only handle one transmit session at a time.
- Parameters
-
| connection | Contains information about target node. |
| data_length | Length of un-encrypted data. |
| cmd_data | un-encrypted data to send |
| tx_options | Transmit options. The number_of_responses field determines if S2 verify delivery is going to be used |
| on_send_complete | Callback for the transmission complete event. |
| user | User pointer |
| parent_session_id | Parent Session handle that gets used to duplicate tx_options. |
- Returns
- sl_status_t
- SL_STATUS_OK on success
- SL_STATUS_NOT_SUPPORTED if unknown encapuslation scheme is applied.
- SL_STATUS_BUSY if a tranmission is ongoing.
- SL_STATUS_WOULD_OVERFLOW if we cannot handle the frame and it should just be dropped.
◆ s2_ctx