Developing with ZBOSS for Zigbee
Debug_keys

Functions

zb_ret_t zb_debug_broadcast_aps_key (zb_ieee_addr_t long_addr)
 
zb_ret_t zb_debug_broadcast_nwk_key (void)
 

Detailed Description

Function Documentation

◆ zb_debug_broadcast_aps_key()

zb_ret_t zb_debug_broadcast_aps_key ( zb_ieee_addr_t  long_addr)

Broadcast TCLK or other APS key. For debugging purposes only.

That function broadcasts APS key stored in keypair for that long_addr. Wireshark understands that broadcast, so it can decode the traffic. That function has pure debug purposes. It must be explicitly called by the application. The function works in debug ZBOSS builds only. The function does nothing in release ZBOSS builds.

Parameters
long_addr- address of the remote device
Returns
RET_OK if broadcast done ok, RET_NOT_FOUND if no such keypair, RET_ERROR if that function is disabled in that ZBOSS build
#ifdef DEBUG
/* This signal is called when TC and Joiner established the TC link key*/
{
/* Broadcast APS key to decode packets in Wireshark. Only for debugging */
}
break;
#endif /* DEBUG */

◆ zb_debug_broadcast_nwk_key()

zb_ret_t zb_debug_broadcast_nwk_key ( void  )

Broadcast NWK key.

FOR DEBUGGING PURPOSES ONLY. It zeroes your network security. Never use it in productuion!

That function broadcasts the current NWK key. Wireshark understands that broadcast, so it can decode the traffic. That function has pure debug purposes. It must be explicitly called by the application.

The function works in debug ZBOSS builds only. The function does nothing in release ZBOSS builds.

Returns
RET_OK if broadcast done ok, RET_ERROR if that function is disabled in that ZBOSS build
zb_debug_signal_tclk_ready_params_s
TCLK Read debug signal parameters.
Definition: zboss_api_zdo.h:1478
zb_debug_broadcast_aps_key
zb_ret_t zb_debug_broadcast_aps_key(zb_ieee_addr_t long_addr)
zb_debug_signal_tclk_ready_params_s::long_addr
zb_ieee_addr_t long_addr
Definition: zboss_api_zdo.h:1481
ZB_ZDO_SIGNAL_GET_PARAMS
#define ZB_ZDO_SIGNAL_GET_PARAMS(sg_p, type)
Definition: zboss_api_zdo.h:1109
ZB_DEBUG_SIGNAL_TCLK_READY
#define ZB_DEBUG_SIGNAL_TCLK_READY
Definition: zboss_api_zdo.h:1085