
Typedefs | |
| typedef enum zb_bdb_commissioning_mode_mask_e | zb_bdb_commissioning_mode_mask_t |
| BDB commissioning mode mask bits This bitmask is out of BDB 3.1 spec but will continue to be used internally and as a parameter to the commissioning API. More... | |
Enumerations | |
| enum | zb_bdb_commissioning_mode_mask_e { ZB_BDB_NETWORK_STEERING = 2, ZB_BDB_NETWORK_FORMATION = 4, ZB_BDB_FINDING_N_BINDING = 8 } |
| BDB commissioning mode mask bits This bitmask is out of BDB 3.1 spec but will continue to be used internally and as a parameter to the commissioning API. More... | |
Functions | |
| zb_bool_t | bdb_start_top_level_commissioning (zb_uint8_t mode_mask) |
| Starts the specified device commissioning steps. More... | |
| void | bdb_cancel_joining (zb_bufid_t buf) |
| Cancels Network Steering procedure for a node not on the network. More... | |
| void | bdb_cancel_formation (zb_bufid_t buf) |
| Cancels Network Formation procedure. More... | |
| void | bdb_set_scan_duration (zb_uint8_t duration) |
| Sets scan duration for Energy Detection and Active scan. More... | |
| zb_ret_t | zb_bdb_close_network (zb_bufid_t buf) |
| Closes the network. More... | |
| zb_bool_t | zb_bdb_is_factory_new (void) |
| Checks if the device is factory new. More... | |
| void | zb_set_bdb_commissioning_mode (zb_uint8_t commissioning_mode) |
| Sets BDB commissioning mode. More... | |
BDB commissioning mode mask bits This bitmask is out of BDB 3.1 spec but will continue to be used internally and as a parameter to the commissioning API.
BDB commissioning mode mask bits This bitmask is out of BDB 3.1 spec but will continue to be used internally and as a parameter to the commissioning API.
| Enumerator | |
|---|---|
| ZB_BDB_NETWORK_STEERING | Network steering: 0 = Do not attempt network steering; 1 = Attempt network steering |
| ZB_BDB_NETWORK_FORMATION | Network formation: 0 = Do not attempt to form a network; 1 = Attempt to form a network, according to device type2 |
| ZB_BDB_FINDING_N_BINDING | Finding and binding: 0 = Do not attempt finding and binding; 1 = Attempt finding and binding
|
| void bdb_cancel_formation | ( | zb_bufid_t | buf | ) |
Cancels Network Formation procedure.
| buf | - ZBOSS buffer |
| void bdb_cancel_joining | ( | zb_bufid_t | buf | ) |
Cancels Network Steering procedure for a node not on the network.
| [in] | buf | - ZBOSS buffer |
| void bdb_set_scan_duration | ( | zb_uint8_t | duration | ) |
Sets scan duration for Energy Detection and Active scan.
| [in] | duration | - scan duration. Scan time is (aBaseSuperframeDuration * ((1<<
Duration to seconds Table:
|
| zb_bool_t bdb_start_top_level_commissioning | ( | zb_uint8_t | mode_mask | ) |
Starts the specified device commissioning steps.
This function performs steering and network formation if it is appropriate for the device type.
Finding and binding is not performed by this function (see note for ZB_BDB_FINDING_N_BINDING).
When the selected commissioning procedure finishes, one of the following ZBOSS signals is generated:
| [in] | mode_mask | - bitmask of commissioning steps to be performed, see zb_bdb_commissioning_mode_mask_t() |
| ZB_TRUE | - in case the device starts successfully |
| ZB_FALSE | - in case an error occurred (for example, the device has already been running) |
| zb_ret_t zb_bdb_close_network | ( | zb_bufid_t | buf | ) |
Closes the network.
This function implements BDB 3.0.1 - 8.1.1 "Local disabling of Network Steering."
It will broadcast a Mgmt_Permit_Joining_req with PermitDuration of 0.
In case it is a router or a coordinator, the function will also issue NLME-PERMIT-JOINING.request primitive with PermitDuration of 0.
The ZBOSS signal ZB_NWK_SIGNAL_PERMIT_JOIN_STATUS will be raised with zb_zdo_mgmt_permit_joining_req_param_t::permit_duration of 0.
| [in] | buf | - ZBOSS buffer; if zero is passed, a new buffer will be allocated. |
| RET_OK | - broadcast was successful |
| RET_NO_MEMORY | - buffer allocation failed |
| RET_ERROR | - any error occurred |
| zb_bool_t zb_bdb_is_factory_new | ( | void | ) |
Checks if the device is factory new.
| ZB_TRUE | - device is factory new |
| ZB_FALSE | - device is not factory new |
| void zb_set_bdb_commissioning_mode | ( | zb_uint8_t | commissioning_mode | ) |
Sets BDB commissioning mode.
This function controls the commissioning procedures to be executed.
| [in] | commissioning_mode | - bdbCommissioningMode bitmask of zb_bdb_commissioning_mode_mask_t(). |