.. _network-config:

Network Configurations
$$$$$$$$$$$$$$$$$$$$$$

Changing Stack Parameters
=========================

The following is a collection of some significant definitions to be considered 
when designing a Zigbee mesh network.  Keep in mind that this is not a c
omprehensive list.  More information can be found in the "Compile-time 
configuration parameters" section of the |ZBOSS_UG|.

    .. note::
        Be sure to perform a clean build (**Project** |rarr| **Clean**) after
        configuring a parameter to ensure that the changes take effect.

Zigbee Device
-------------

Location: ``<sdk_directory>\source\third_party\zigbee\zboss_r23\include\zb_config.h``

  - ``ZB_ZDO_PARENT_LINK_FAILURE_CNT``: Maximum retries for an end device not receiving ACKs
  
Location: ``<sdk_directory>\source\third_party\zigbee\zboss_r23\include\zb_config_common.h``

  - ``ZB_N_APS_MAX_FRAME_RETRIES``: Maximum number of APS layer retries after a missed APS ACK
  - ``ZB_N_APS_ACK_WAIT_DURATION_FROM_SLEEP``: APS ACK wait time from sleepy devices
  - ``ZB_MAC_MAX_FRAME_RETRIES``: Maximum number of MAC frame transmission retries
  - ``ZB_STANDARD_TC_KEY``: Pre-configured Trust Center link key and must remain as default for Zigbee Alliance 3.x compliance
  - ``ZB_NWK_LINK_STATUS_PERIOD``: Interval for which link status reports are broadcast on the network
  - ``ZB_DEFAULT_MAX_CHILDREN``: Maximum number of children which can join to this device
  - ``ZB_BDBC_TCLINK_KEY_EXCHANGE_TIMEOUT``: Timeout in seconds for the Trust Center to exchange link keys with the newly joined node
  - ``ZB_BDBC_MIN_COMMISSIONING_TIME_S``: Minumum commissioning period

Location: ``<sdk_directory>\source\third_party\zigbee\zboss_r23\include\zb_mem_config_common.h``

  - ``ZB_CONFIG_NWK_ROUTING_TABLE_SIZE``: Maximum number of AODV routing entries
  - ``ZB_CONFIG_NWK_MAX_SOURCE_ROUTES``: Number of cached source routes, coordinator MTO-routing specific and should equal the max number of nodes in the the network
  - ``ZB_CONFIG_NEIGHBOR_TABLE_SIZE``: Number of neighbors supported by the neighbor table
  - ``ZB_CONFIG_OVERALL_NETWORK_SIZE``: Maximum network size

Location: Project output folder |rarr| ``default/syscfg/ti_zigbee_config.h``

  - ``DEFAULT_CHANLIST``: Set of 2.4-GHz channels that the Zigbee device will first attempt to operate on

  .. note::

      This file is generated automatically from the project's .syscfg file. Please see :ref:`sysconfig-zigbee-configuration`.

