Developing with ZBOSS for Zigbee
|
Data Structures | |
struct | zb_zdo_common_req_param_s |
struct | zb_zdo_get_configuration_req_param_s |
ZDO Get Configuration Request parameters. More... | |
struct | zb_zdo_get_configuration_resp_param_s |
ZDO Get Configuration Response parameters. More... | |
struct | zb_zdo_configuration_parameters_s |
Configuration parameters Stack sends set_configuration_req to the device with set values. More... | |
struct | zb_zdo_next_panid_change_parameters_s |
Next PAN ID change parameters Stack sends set_configuration_req to the device with set values. More... | |
struct | zb_zdo_next_channel_change_parameters_s |
Next channel change parameters Stack sends set_configuration_req to the device with set values. More... | |
struct | zb_zdo_clear_all_bind_req_param_s |
Parameters for zdo_clear_all_bind_req. More... | |
struct | zb_zdo_mgmt_beacon_survey_param_s |
Parameters for beacon_survey_req command. More... | |
struct | zb_zcl_wwah_beacon_survey_s |
struct | zb_zdo_beacon_survey_results_t |
R23, I.3.3 Beacon Survey Configuration TLV. More... | |
struct | zb_zdo_beacon_survey_potential_parents_t |
R23, I.3.5 Potential Parents TLV. More... | |
struct | zb_zdo_beacon_survey_resp_params_s |
Structure to store information when 'Beacon Survey' procedure is executing. More... | |
Macros | |
#define | ZB_ZDO_CLEAR_ALL_BIND_EUI64_LIST_SIZE (5u) |
#define | ZB_SURVEY_BEACON_MAX_CHANNEL_PAGE_CNT 10U |
#define | ZDO_WWAH_MAX_BEACON_SURVEY 5U |
#define | ZDO_WWAH_MAX_BEACON_SURVEY_BYTES |
#define ZB_SURVEY_BEACON_MAX_CHANNEL_PAGE_CNT 10U |
Max number of channels to process at a single beacon survey command
#define ZB_ZDO_CLEAR_ALL_BIND_EUI64_LIST_SIZE (5u) |
Max size of eui64_list. No more than 5 entry are placed in the ZB packet
#define ZDO_WWAH_MAX_BEACON_SURVEY_BYTES |
typedef struct zb_zcl_wwah_beacon_survey_s zb_zcl_wwah_beacon_survey_t |
Beacon survey result for a single potential parent. Common deniminator for r23 and WWAH.
R23, I.3.5 Potential Parents TLV.
This TLV is 3 to 13 bytes in length and indicates the number of available parents in radio range. A maximum number of 5 parents is supported for this TLV. The list of potential parents SHALL be ordered as described in 3.6.1.3.2.
Structure to store information when 'Beacon Survey' procedure is executing.
We reuse a buffer which contain 'Beacon Survey Request' command and store all necessary information into it. Format of the 'Beacon Survey Response' command is different between ZCL WWAH and r23, so we need to use two functions to parse results and send response
typedef struct zb_zdo_beacon_survey_results_t zb_zdo_beacon_survey_results_t |
R23, I.3.3 Beacon Survey Configuration TLV.
This TLV is 5-bytes in length and contains information about the channels and scan configuration that is used when performing a beacon survey.
R23, I.3.4 Beacon Survey Results TLV
This TLV is 4-bytes in length and contains information about the channels, scan configuration, and counted devices or beacons.
typedef struct zb_zdo_common_req_param_s zb_zdo_common_req_param_t |
Parameter for number of r23 ZDO commands
Parameter for ZDO Secur_Decommission_req
zb_bool_t zb_get_tc_connectivity | ( | void | ) |
Get current value of the TC connectivity flag.
void zb_set_nwk_preferred_parent | ( | zb_bool_t | val | ) |
Public API to set nwk_preferred_parent to val
void zb_set_tc_connectivity | ( | zb_bool_t | val | ) |
Overwrite the auto-detected TC connectivity flag.
That flag is related to All Hubs feature and WWAH. Note: applicable for ZRs only.
val | - if ZB_TRUE, that ZR has TC connectivity |
zb_uint8_t zb_zdo_decommission_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends Secur_Decommission_req command.
param | - index of buffer with request zb_zdo_decommission_req_param_t |
cb | - user's function to call when got response from the remote. |
zb_uint8_t zb_zdo_get_configuration_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends Secur_Get_Configuration_req command.
param | - index of buffer with request |
cb | - user's function to call when got response from the remote. |
zb_uint8_t zb_zdo_send_configuration_parameters | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends secur_set_configuration_req command with configuration parameters.
That API can be called in centralized network only at TC; in distributed network - at any device.
param | - index of buffer with request zb_zdo_configuration_parameters_s |
cb | - user's function to call when got response from the remote |
zb_uint8_t zb_zdo_send_next_channel_change | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends secur_set_configuration_req command with next channel change information.
param | - index of buffer with request zb_zdo_next_channel_change_parameters_s |
cb | - user's function to call when got response from the remote. |
zb_uint8_t zb_zdo_send_next_panid_change | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends secur_set_configuration_req command with next pan id change information.
param | - index of buffer with request zb_zdo_next_panid_change_parameters_s |
cb | - user's function to call when got response from the remote. |
zb_uint8_t* zdo_fill_get_configuration_req | ( | zb_uint8_t | param, |
zb_uint16_t | dst, | ||
zb_uint8_t | tlv_count, | ||
zb_uint8_t | first_tlv_id | ||
) |
Start filling of body of ZDO Secur Get Configuration Req.
If ZDO Secur Get Configuration Req queries about just one tlv, call to that function is enough. If it queries about > 1 tlv, continue filling using returned ptr.
param | - output buffer |
dst | - destination address |
tlv_count | - count of tlvs in the request |
first_tlv_id | - id of the first tlv id |
zb_uint8_t zdo_mgmt_beacon_survey_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends Mgmt beacon survey request.
param | - buffer holding in parameters section zb_zdo_mgmt_beacon_survey_param_t |
cb | - callback to be called on ZDO command complete. Survey result is in data section of param of type zb_zdo_beacon_survey_resp_params_t |