Compile-time Options

Compile-time options can be configured through definitions in the file bdb_options.h. This option allows custom values to be defined for ZigBee Base Device attributes and constants. If the value of an attribute or constant is not defined in this file, the default value for the attribute or constant is used.

Attributes

The following macros can be used to pre-configure values for the ZigBee Base Device attributes (listed and described in Section 2.5.1):

  • BDB_COMMISSIONING_GROUP_ID

  • BDB_COMMISSIONING_MODE

  • BDB_COMMISSIONING_STATUS

  • BDB_JOINING_NODE_EUI64

  • BDB_JOIN_USES_INSTALL_CODE_KEY

  • BDB_NODE_JOIN_LINK_KEY_TYPE

  • BDB_PRIMARY_CHANNEL_SET

  • BDB_SCAN_DURATION

  • BDB_SECONDARY_CHANNEL_SET

  • BDB_TC_LINK_KEY_EXCHANGE_ATTEMPTS

  • BDB_TC_LINK_KEY_EXCHANGE_ATTEMPTS_MAX

  • BDB_TC_LINK_KEY_EXCHANGE_METHOD

  • BDB_TRUST_CENTER_NODE_JOIN_TIMEOUT

  • BDB_TRUST_CENTER_REQUIRE_KEYEXCHANGE

For example, to set the maximum number of key establishment attempts to 5, include the following line:

#define BDB_TC_LINK_KEY_EXCHANGE_ATTEMPTS_MAX5

Constants

The following macros can be used to set values for the ZigBee Base Device constants (listed and described in Section 2.5.2):

  • BDBC_MAX_SAME_NETWORK_RETRY_ATTEMPTS

  • BDBC_MIN_COMMISSIONING_TIME

  • BDBC_REC_SAME_NETWORK_RETRY_ATTEMPTS

  • BDBC_TC_LINK_KEY_EXCHANGE_TIMEOUT

  • BDBC_TL_INTERPAN_TRANS_ID_LIFETIME

  • BDBC_TL_MIN_STARTUP_DELAY_TIME

  • BDBC_TL_PRIMARY_CHANNEL_SET

  • BDBC_TL_RX_WINDOW_DURATION

  • BDBC_TL_SCAN_TIME_BASE_DURATION_MS

  • BDBC_TL_SECONDARY_CHANNEL_SET

For example, to set the minimum commissioning time for which a network is open to join to 240 seconds, include the following line:

#define BDBC_MIN_COMMISSIONING_TIME240

(this minimum commissioning time should set to a value below 255 seconds)

Parent topic:ZigBee Base Device