|
Developing with ZBOSS for Zigbee
|
◆ ZB_JOIN_ANON_KEY_NEG
#define ZB_JOIN_ANON_KEY_NEG 0x02U |
Key Negotiation with Well-known key
◆ ZB_JOIN_AUTH_KEY_NEG
#define ZB_JOIN_AUTH_KEY_NEG 0x03U |
Key Negotiation with auth method
◆ ZB_JOIN_INSTALLCODE_KEY
#define ZB_JOIN_INSTALLCODE_KEY 0x01U |
◆ ZB_JOIN_NO_AUTHENTICATION
#define ZB_JOIN_NO_AUTHENTICATION 0x00U |
◆ ZB_TLV_KEY_ECDHE_METHOD_ENABLE
#define ZB_TLV_KEY_ECDHE_METHOD_ENABLE |
( |
|
var, |
|
|
|
method |
|
) |
| ((var) |= (1u << (method))) |
Add supported key negotiation method into a bitmask
- Parameters
-
◆ ZB_TLV_PSK_SECRET_ENABLE
Add supported PSK secret into a bitmask
- Parameters
-
◆ zb_post_join_key_upd_method_t
PostJoinKeyUpdateMethod enum (see Table 4-33) Note: These values were members of enum zb_post_join_key_upd_method_e
type but were converted to a set of macros due to MISRA violations.
◆ zb_disable_key_neg_method()
void zb_disable_key_neg_method |
( |
zb_uint8_t |
method | ) |
|
Disable the supported by this device Key Negotiation Protocols Method
- Parameters
-
◆ zb_disable_psk_secret()
Disable the supported by this device Pre-shared secret
- Parameters
-
◆ zb_enable_key_neg_method()
void zb_enable_key_neg_method |
( |
zb_uint8_t |
method | ) |
|
Enable the supported by this device Key Negotiation Protocols Method
- Parameters
-
◆ zb_enable_psk_secret()
Enable the supported by this device Pre-shared secret
- Parameters
-
◆ zb_get_supported_key_neg_mtd()
◆ zb_get_supported_key_neg_mtd_direct()
zb_uint16_t zb_get_supported_key_neg_mtd_direct |
( |
void |
| ) |
|
Get the supported by this device Key Negotiation Protocols Bitmask (in scope of Zigbee Direct functionality)
- Returns
- bitmask of the supported methods - zb_tlv_key_negotiation_methods_t
◆ zb_get_supported_psk_secrets()
Get the supported by this device Supported Pre-shared secrets Bitmask
- Returns
- bitmask of the supported secrets - zb_tlv_psk_secrets_t
◆ zb_get_supported_psk_secrets_direct()
zb_uint8_t zb_get_supported_psk_secrets_direct |
( |
void |
| ) |
|
Get the supported by this device Supported Pre-shared secrets Bitmask (in scope of Zigbee Direct functionality)
- Returns
- bitmask of the supported secrets - zb_tlv_psk_secrets_t
◆ zb_set_aps_enc_for_zdo_conf_cmd()
void zb_set_aps_enc_for_zdo_conf_cmd |
( |
zb_bool_t |
val | ) |
|
Set/unset aps security for zdo commands, which need configuration mode
◆ zb_set_aps_enc_for_zdo_in_distrib_nwk()
void zb_set_aps_enc_for_zdo_in_distrib_nwk |
( |
zb_bool_t |
val | ) |
|
Set/unset aps security for zdo set/get conf and decommission reqs
◆ zb_set_supported_key_neg_mthd()
void zb_set_supported_key_neg_mthd |
( |
zb_uint8_t |
methods_mask | ) |
|
Set the supported by this device Key Negotiation Protocols Bitmask
- Parameters
-
◆ zb_set_supported_key_neg_mthd_direct()
void zb_set_supported_key_neg_mthd_direct |
( |
zb_uint16_t |
methods_mask | ) |
|
Set the supported by this device Key Negotiation Protocols Bitmask (in scope of Zigbee Direct functionality)
- Parameters
-
◆ zb_set_supported_psk_secrets()
void zb_set_supported_psk_secrets |
( |
zb_uint8_t |
secret_mask | ) |
|
Set the supported by this device Pre-shared secrets Bitmask
- Parameters
-
◆ zb_set_supported_psk_secrets_direct()
void zb_set_supported_psk_secrets_direct |
( |
zb_uint8_t |
secret_mask | ) |
|
Set the supported by this device Pre-shared secrets Bitmask (in scope of Zigbee Direct functionality)
- Parameters
-
◆ zb_zdo_get_auth_level_req()
Get authentication level for target device.
- Parameters
-
- Returns
- ZDP transaction sequence number if call was made by ZR/ZED
-
0x00 if call was made by ZC and transaction was successful
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
static void app_sec_get_auth_lvl_cb (
zb_uint8_t param)
{
TRACE_MSG(TRACE_APP1,
"app_send_get_auth_lvl_cb, param %hd:", (FMT__H, param));
TRACE_MSG(TRACE_APP1,
"# tsn = %hd, status 0x%x", (FMT__H_H, ptr->tsn, ptr->status));
TRACE_MSG(TRACE_APP1,
"# ieee_addr = "TRACE_FORMAT_64, (FMT__A, TRACE_ARG_64(ptr->target_ieee)));
TRACE_MSG(TRACE_APP1,
"# initial_join_auth = %hd, key_upd_method = %hd", (FMT__H_H, ptr->initial_join_auth, ptr->key_upd_method));
}
{
ZB_IEEE_ADDR_COPY(buf_params->target_ieee, target_ieee_addr);
}
◆ zb_zdo_secur_update_device_tclk()
Send Security_Key_Update_req for update EXISTING verified tclk.
- Parameters
-
param | - index of buffer with request |
dev_ieee_addr | - extended address of device, which tclk should be updated. |
- Returns
- RET_OK if the request was sent
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:147
#define TRACE_MSG(lm, fmts, args)
Put trace output.
Definition: zb_trace.h:369
Definition: zboss_api_zdo.h:3090
zb_uint8_t zb_zdo_get_auth_level_req(zb_uint8_t param, zb_callback_t cb)
Get authentication level for target device.
#define ZB_BUF_GET_PARAM(buf, type)
Definition: zboss_api_buf.h:457
#define ZB_SCHEDULE_APP_ALARM(func, param, timeout_bi)
Definition: zboss_api_core.h:370
void zb_set_supported_psk_secrets(zb_uint8_t secret_mask)
void zb_enable_key_neg_method(zb_uint8_t method)
#define zb_buf_begin(buf)
Definition: zboss_api_buf.h:354
void zb_disable_key_neg_method(zb_uint8_t method)
zb_64bit_addr_t zb_ieee_addr_t
Long (64-bit) device address.
Definition: zb_types.h:535
Parameters for get authentication level request.
Definition: zboss_api_zdo.h:3085
#define ZB_TLV_PSK_SECRET_ENABLE(var, secret)
Definition: zboss_api.h:1161
#define ZB_TIME_ONE_SECOND
Definition: zboss_api_core.h:172