nRF5 SDK for Thread and Zigbee v4.1.0
Functions
Security subsystem API

Functions

void zb_secur_setup_nwk_key (zb_uint8_t *key, zb_uint8_t i)
 Setup nwk key to be used by ZCP tests. More...
 
void zb_secur_nwk_key_switch_procedure (zb_uint8_t param)
 
void zb_secur_set_tc_rejoin_enabled (zb_bool_t enable)
 

Detailed Description

Function Documentation

void zb_secur_nwk_key_switch_procedure ( zb_uint8_t  param)

Initiate procedure of NWk key switching.

Generate next NWK key if it not exists, broadcast new NWK key, after delay broadcast NWK key switch command. Can run at TC only.

Parameters
param- work buffer id or 0 (is zero, function allocates buffer itself)
void zb_secur_set_tc_rejoin_enabled ( zb_bool_t  enable)

Specifies whether Trust Center Rejoin is allowed.

If set to ZB_FALSE, devices that attempted unsecure rejoin will not be authorized.

Parameters
enable- whether to enable or disable TC Rejoin.
void zb_secur_setup_nwk_key ( zb_uint8_t key,
zb_uint8_t  i 
)

Setup nwk key to be used by ZCP tests.

Parameters
key- key to be used
i- key number (0-3)

Call this routine at TC to change random nwk key generated from zb_ib_set_defaults to well-known key. To be used in certification tests.

static const zb_uint8_t g_key_nwk[16] = { 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0, 0, 0, 0, 0, 0, 0, 0};
See also
TP_R20_BV-01 sample.

Documentation feedback | Developer Zone | Subscribe | Updated