Data Structures | |
struct | zb_zcl_tunneling_request_tunnel_s |
RequestTunnel command payload More... | |
struct | zb_zcl_tunneling_close_tunnel_s |
CloseTunnel command payload More... | |
struct | zb_zcl_tunneling_transfer_data_hdr_s |
TransferData commands header data. More... | |
struct | zb_zcl_tunneling_srv_rec_s |
struct | zb_zcl_tunnel_request_params_out_s |
struct | zb_zcl_tunneling_transfer_data_payload_s |
TransferData payload. This structure presents custom implementation of Transfer Data command payload defined in SE spec. More... | |
struct | zb_zcl_tunneling_transfer_data_error_s |
TransferDataError command payload More... | |
struct | zb_zcl_tunneling_request_tunnel_response_s |
RequestTunnelResponse command payload More... | |
struct | zb_zcl_tunneling_ack_transfer_data_s |
struct | zb_zcl_tunneling_ready_data_s |
struct | zb_zcl_tunneling_get_supported_tunnel_protocols_s |
struct | zb_zcl_tunneling_protocol_field_s |
struct | zb_zcl_tunneling_supported_tunnel_protocols_response_s |
struct | zb_zcl_tunneling_tunnel_closure_notification_s |
Macros | |
#define | ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL(_param, _addr, _dst_addr_mode, _dst_ep, _ep, _prfl_id, _def_resp, _cb,_protocol_id, _manufacturer_code, _flow_control_support,_max_incoming_transfer_size) |
Send RequestTunnel command. More... | |
#define | ZB_ZCL_TUNNELING_GET_REQUEST_TUNNEL(_data_ptr, _buffer, _status) |
Macro for parsing payload of RequestTunnel command. More... | |
#define | ZB_ZCL_TUNNELING_SEND_CLOSE_TUNNEL(_param, _addr, _dst_addr_mode, _dst_ep, _ep, _prfl_id, _def_resp, _cb,_tunnel_id) |
CloseTunnel command More... | |
#define | ZB_ZCL_TUNNELING_GET_CLOSE_TUNNEL(_data_ptr, _buffer, _status) |
Macro for parsing payload of CloseTunnel command. More... | |
#define | ZB_ZCL_TUNNELING_SERVER_SEND_TRANSFER_DATA(_param, _ep, _prfl_id, _def_resp, _cb,_tunnel_id, _data_size, _image_data) |
#define | ZB_ZCL_TUNNELING_CLIENT_SEND_TRANSFER_DATA(_param, _ep, _prfl_id, _def_resp, _cb,_tunnel_id, _data_size, _image_data) |
#define | ZB_ZCL_TUNNELING_GET_TRANSFER_DATA(_data_ptr, _buffer, _status) |
Macro for parsing payload of TransferData command. More... | |
#define | ZB_ZCL_TUNNELING_SEND_TRANSFER_DATA_ERROR(_buffer, _addr, _dst_addr_mode, _dst_ep, _ep, _prfl_id, _def_resp, _cb, _seq_num, _tunnel_id, _transfer_data_status, _command_id, _direction) |
Send client TransferDataError command and server TransferDataError command. More... | |
#define | ZB_ZCL_TUNNELING_GET_TRANSFER_DATA_ERROR(_data_ptr, _buffer, _status) |
Macro for parsing payload of TransferDataError command. More... | |
#define | ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL_RESPONSE(_param, _addr, _dst_addr_mode, _dst_ep, _ep, _prfl_id, _def_resp, _seq_num, _cb,_tunnel_id, _tunnel_status, _max_incoming_transfer_size) |
Macro for sending RequestTunnelResponse command. More... | |
#define | ZB_ZCL_TUNNELING_GET_REQUEST_TUNNEL_RESPONSE(_data_ptr, _buffer, _status) |
Macro for parsing payload of RequestTunnelResponse command. More... | |
Functions | |
void | zb_zcl_tunneling_set_max_incoming_to_cli_transfer_size (zb_uint16_t transfer_size) |
#define ZB_ZCL_TUNNELING_CLIENT_SEND_TRANSFER_DATA | ( | _param, | |
_ep, | |||
_prfl_id, | |||
_def_resp, | |||
_cb, | |||
_tunnel_id, | |||
_data_size, | |||
_image_data | |||
) |
Send TransferData command from Tunneling client to server
_param | - Reference to buffer. |
_ep | - Current endpoint. |
_prfl_id | - profile identifier |
_def_resp | - enable/disable default zcl response |
_cb | - Callback which should be called when the ZCL stack receives APS ack. |
_tunnel_id | - zb_zcl_tunneling_transfer_data_hdr_t::tunnel_id value |
_data_size | - zb_zcl_tunneling_transfer_data_payload_t::data_size value |
_image_data | - tun_data from zb_zcl_tunneling_transfer_data_payload_t::tun_data value |
#define ZB_ZCL_TUNNELING_GET_CLOSE_TUNNEL | ( | _data_ptr, | |
_buffer, | |||
_status | |||
) |
Macro for parsing payload of CloseTunnel command.
_data_ptr | - pointer to zb_zcl_tunneling_close_tunnel_t structure |
_buffer | - pointer to buffer where CloseTunnel command's payload is stored. |
_status | - status of payload parsing |
#define ZB_ZCL_TUNNELING_GET_REQUEST_TUNNEL | ( | _data_ptr, | |
_buffer, | |||
_status | |||
) |
Macro for parsing payload of RequestTunnel command.
_data_ptr | - pointer to zb_zcl_tunneling_request_tunnel_t structure |
_buffer | - pointer to buffer where RequestTunnel command's payload is stored. |
_status | - status of payload parsing |
#define ZB_ZCL_TUNNELING_GET_REQUEST_TUNNEL_RESPONSE | ( | _data_ptr, | |
_buffer, | |||
_status | |||
) |
Macro for parsing payload of RequestTunnelResponse command.
_data_ptr | - pointer to zb_zcl_tunneling_request_tunnel_response_t structure |
_buffer | - pointer to buffer where RequestTunnelResponse command's payload is stored. |
_status | - status of payload parsing |
#define ZB_ZCL_TUNNELING_GET_TRANSFER_DATA | ( | _data_ptr, | |
_buffer, | |||
_status | |||
) |
Macro for parsing payload of TransferData command.
_data_ptr | - pointer to zb_zcl_tunneling_transfer_data_payload_t structure |
_buffer | - pointer to buffer where TransferData command's payload is stored. |
_status | - status of payload parsing |
#define ZB_ZCL_TUNNELING_GET_TRANSFER_DATA_ERROR | ( | _data_ptr, | |
_buffer, | |||
_status | |||
) |
Macro for parsing payload of TransferDataError command.
_data_ptr | - pointer to zb_zcl_tunneling_transfer_data_error_t structure |
_buffer | - pointer to buffer where TransferDataError command's payload is stored. |
_status | - status of payload parsing |
#define ZB_ZCL_TUNNELING_SEND_CLOSE_TUNNEL | ( | _param, | |
_addr, | |||
_dst_addr_mode, | |||
_dst_ep, | |||
_ep, | |||
_prfl_id, | |||
_def_resp, | |||
_cb, | |||
_tunnel_id | |||
) |
CloseTunnel command
_param | - Reference to buffer. |
_addr | - Address of the device to send command to. |
_dst_addr_mode | - Address mode for _dst_addr. |
_dst_ep | - Destination endpoint. |
_ep | - Current endpoint. |
_prfl_id | - profile identifier |
_def_resp | - enable/disable default zcl response |
_cb | - Callback which should be called when the ZCL stack receives APS ack. |
_tunnel_id | - zb_zcl_tunneling_close_tunnel_t::tunnel_id value |
#define ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL | ( | _param, | |
_addr, | |||
_dst_addr_mode, | |||
_dst_ep, | |||
_ep, | |||
_prfl_id, | |||
_def_resp, | |||
_cb, | |||
_protocol_id, | |||
_manufacturer_code, | |||
_flow_control_support, | |||
_max_incoming_transfer_size | |||
) |
Send RequestTunnel command.
_param | - Reference to buffer. |
_addr | - Address of the device to send command to. |
_dst_addr_mode | - Address mode for _dst_addr. |
_dst_ep | - Destination endpoint. |
_ep | - Current endpoint. |
_prfl_id | - profile identifier |
_def_resp | - enable/disable default zcl response |
_cb | - Callback which should be called when the ZCL stack receives APS ack. |
_protocol_id | - zb_zcl_tunneling_request_tunnel_t::protocol_id value |
_manufacturer_code | - zb_zcl_tunneling_request_tunnel_t::manufacturer_code value |
_flow_control_support | - zb_zcl_tunneling_request_tunnel_t::flow_control_support value |
_max_incoming_transfer_size | - zb_zcl_tunneling_request_tunnel_t::max_incoming_transfer_size value |
#define ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL_RESPONSE | ( | _param, | |
_addr, | |||
_dst_addr_mode, | |||
_dst_ep, | |||
_ep, | |||
_prfl_id, | |||
_def_resp, | |||
_seq_num, | |||
_cb, | |||
_tunnel_id, | |||
_tunnel_status, | |||
_max_incoming_transfer_size | |||
) |
Macro for sending RequestTunnelResponse command.
_param | - Reference to buffer. |
_addr | - Address of the device to send command to. |
_dst_addr_mode | - Address mode for _dst_addr. |
_dst_ep | - Destination endpoint. |
_ep | - Current endpoint. |
_prfl_id | - profile identifier |
_def_resp | - enable/disable default zcl response |
_seq_num | - ZCL transaction sequence number |
_cb | - Callback which should be called when the ZCL stack receives APS ack. |
_tunnel_id | - zb_zcl_tunneling_request_tunnel_response_t::tunnel_id value |
_tunnel_status | - zb_zcl_tunneling_request_tunnel_response_t::tunnel_status value |
_max_incoming_transfer_size | - zb_zcl_tunneling_request_tunnel_response_t::max_incoming_transfer_size value |
#define ZB_ZCL_TUNNELING_SEND_TRANSFER_DATA_ERROR | ( | _buffer, | |
_addr, | |||
_dst_addr_mode, | |||
_dst_ep, | |||
_ep, | |||
_prfl_id, | |||
_def_resp, | |||
_cb, | |||
_seq_num, | |||
_tunnel_id, | |||
_transfer_data_status, | |||
_command_id, | |||
_direction | |||
) |
Send client TransferDataError command and server TransferDataError command.
_buffer | - pointer to buffer. |
_addr | - Address of the device to send command to. |
_dst_addr_mode | - Address mode for _dst_addr. |
_dst_ep | - Destination endpoint. |
_ep | - Current endpoint. |
_prfl_id | - profile identifier |
_def_resp | - enable/disable default zcl response |
_cb | - Callback which should be called when the ZCL stack receives APS ack. |
_seq_num | - ZCL transaction sequence number |
_tunnel_id | - zb_zcl_tunneling_transfer_data_error_t::tunnel_id value |
_transfer_data_status | - zb_zcl_tunneling_transfer_data_error_t::transfer_data_status value |
_command_id | - Tunneling cluster's command identifier. |
_direction | - command direction. |
#define ZB_ZCL_TUNNELING_SERVER_SEND_TRANSFER_DATA | ( | _param, | |
_ep, | |||
_prfl_id, | |||
_def_resp, | |||
_cb, | |||
_tunnel_id, | |||
_data_size, | |||
_image_data | |||
) |
Send TransferData command from Tunneling server to client
_param | - Reference to buffer. |
_ep | - Current endpoint. |
_prfl_id | - profile identifier |
_def_resp | - enable/disable default zcl response |
_cb | - Callback which should be called when the ZCL stack receives APS ack. |
_tunnel_id | - zb_zcl_tunneling_transfer_data_hdr_t::tunnel_id value |
_data_size | - zb_zcl_tunneling_transfer_data_payload_t::data_size value |
_image_data | - tun_data from zb_zcl_tunneling_transfer_data_payload_t::tun_data value |
AckTransferData command payload.
typedef struct zb_zcl_tunneling_close_tunnel_s zb_zcl_tunneling_close_tunnel_t |
CloseTunnel command payload
typedef struct zb_zcl_tunneling_get_supported_tunnel_protocols_s zb_zcl_tunneling_get_supported_tunnel_protocols_t |
GetSupportedTunnelProtocols command payload
Supported Tunnel Protocols Response Command Protocol Fields
Tunneling ProtocolID Enumerations.
typedef struct zb_zcl_tunneling_ready_data_s zb_zcl_tunneling_ready_data_t |
typedef struct zb_zcl_tunneling_request_tunnel_response_s zb_zcl_tunneling_request_tunnel_response_t |
RequestTunnelResponse command payload
RequestTunnel command payload
typedef struct zb_zcl_tunneling_supported_tunnel_protocols_response_s zb_zcl_tunneling_supported_tunnel_protocols_response_t |
SupportedTunnelProtocolResponse command payload.
TransferDataError command payload
TransferData commands header data.
TransferData payload. This structure presents custom implementation of Transfer Data command payload defined in SE spec.
typedef struct zb_zcl_tunneling_tunnel_closure_notification_s zb_zcl_tunneling_tunnel_closure_notification_t |
TunnelClosureNotification command payload
Tunnel cluster commands received.
Enumerator | |
---|---|
ZB_ZCL_TUNNELING_CLI_CMD_REQUEST_TUNNEL |
RequestTunnel is the client command used to setup a tunnel association with the server. The request payload specifies the protocol identifier for the requested tunnel, a manufacturer code in case of proprietary protocols and the use of flow control for streaming protocols. |
ZB_ZCL_TUNNELING_CLI_CMD_CLOSE_TUNNEL |
Client command used to close the tunnel with the server. The parameter in the payload specifies the tunnel identifier of the tunnel that has to be closed. The server leaves the tunnel open and the assigned resources allocated until the client sends the CloseTunnel command or the CloseTunnelTimeout fires.
|
ZB_ZCL_TUNNELING_CLI_CMD_TRANSFER_DATA |
Command that indicates (if received) that the client has sent data to the server. The data itself is contained within the payload. |
ZB_ZCL_TUNNELING_CLI_CMD_TRANSFER_DATA_ERROR |
This command is generated by the receiver of a TransferData command if the tunnel status indicates that something is wrong. There are three cases in which TransferDataError is sent:
|
ZB_ZCL_TUNNELING_CLI_CMD_ACK_TRANSFER_DATA |
Command sent in response to each TransferData command in case – and only in case – flow control has been requested by the client in the TunnelRequest command and is supported by both tunnel endpoints. The response payload indicates the number of octets that may still be received by the receiver. |
ZB_ZCL_TUNNELING_CLI_CMD_READY_DATA |
The ReadyData command is generated – after a receiver had to stop the dataflow using the AckTransferData(0) command – to indicate that the device is now ready to continue receiving data. The parameter NumberOfOctetsLeft gives a hint on how much space is left for the next data transfer. The ReadyData command is only issued if flow control is enabled.
|
ZB_ZCL_TUNNELING_CLI_CMD_GET_SUPPORTED_TUNNEL_PROTOCOLS |
Get Supported Tunnel Protocols is the client command used to determine the tunnel protocols supported on another device. |
Tunneling ProtocolID Enumerations.
Tunnel cluster commands generated.
Enumerator | |
---|---|
ZB_ZCL_TUNNELING_SRV_CMD_REQUEST_TUNNEL_RESPONSE |
RequestTunnelResponse is sent by the server in response to a RequestTunnel command previously received from the client. The response contains the status of the RequestTunnel command and a tunnel identifier corresponding to the tunnel that has been set-up in the server in case of success. |
ZB_ZCL_TUNNELING_SRV_CMD_TRANSFER_DATA |
Command that transfers data from server to the client. The data itself has to be placed within the payload. |
ZB_ZCL_TUNNELING_SRV_CMD_TRANSFER_DATA_ERROR |
This command is generated by the receiver of a TransferData command if the tunnel status indicates that something is wrong. There are three cases in which TransferDataError is sent:
|
ZB_ZCL_TUNNELING_SRV_CMD_ACK_TRANSFER_DATA |
Command sent in response to each TransferData command in case – and only in case – flow control has been requested by the client in the TunnelRequest command and is supported by both tunnel endpoints. The response payload indicates the number of octets that may still be received by the receiver. |
ZB_ZCL_TUNNELING_SRV_CMD_READY_DATA |
The ReadyData command is generated – after a receiver had to stop the dataflow using the AckTransferData(0) command – to indicate that the device is now ready to continue receiving data. The parameter NumberOfOctetsLeft gives a hint on how much space is left for the next data transfer. The ReadyData command is only issued if flow control is enabled.
|
ZB_ZCL_TUNNELING_SRV_CMD_SUPPORTED_TUNNEL_PROTOCOLS_RESPONSE |
Supported Tunnel Protocols Response is sent in response to a Get Supported Tunnel Protocols command previously received. The response contains a list of tunnel protocols supported by the device; the payload of the response should be capable of holding up to 16 protocols. |
ZB_ZCL_TUNNELING_SRV_CMD_TUNNEL_CLOSURE_NOTIFICATION |
TunnelClosureNotification is sent by the server to indicate that a tunnel has been closed due to expiration of a CloseTunnelTimeout. |
TransferDataStatus parameter values.
TunnelStatus parameter values.