.. _ug_zigbee_architectures: Zigbee architectures #################### .. contents:: :local: :depth: 2 This page describes the platform designs that are possible with the Zigbee stack on Nordic Semiconductor devices. The designs are described from the least to the most complex, that is from simple applications that consist of a single chip running single or multiple protocols to scenarios in which the nRF SoC acts as a network co-processor when the application is running on a much more powerful host processor. .. _ug_zigbee_platform_design_soc: System-on-Chip designs ********************** This single-chip solution has the combined RFIC (the IEEE 802.15.4 in case of Zigbee) and processor. The Zigbee stack and the application layer run on the local processor. This design has the following advantages: * Lowest cost * Lowest power consumption * Lowest complexity It also has the following disadvantages: * For some uses, the nRF SoC's MCU can be to slow to handle both the application and the network stack load. * The application and the network stack share flash and RAM space. This leaves less resources for the application. * Dual-bank DFU or an external flash is needed to update the firmware. Single-chip, single protocol (SoC) ================================== In this design, the application layer and the stack run on the same processor. The application uses the :ref:`nrfxlib:zboss` APIs directly. This is the design most commonly used for End Devices and Routers. .. figure:: ../../../../../nrf/protocols/zigbee/images/zigbee_platform_design_soc.svg :alt: Zigbee-only architecture (nRF52 Series devices) Zigbee-only architecture on nRF52 Series devices .. figure:: ../../../../../nrf/protocols/zigbee/images/zigbee_platform_design_nRF53.svg :alt: Zigbee-only architecture (nRF53 Series devices) Zigbee-only architecture on nRF53 Series devices This platform design is suitable for the following development kits: .. table-from-rows:: /includes/sample_board_rows.txt :header: heading :rows: nrf52840dk_nrf52840, nrf52833dk_nrf52833, nrf5340dk_nrf5340_cpuapp_and_cpuapp_ns, nrf21540dk_nrf52840 Single-chip, multiprotocol (SoC) ================================ With the nRF devices supporting multiple wireless technologies, including IEEE 802.15.4 and Bluetooth® Low Energy (Bluetooth LE), the application layer and the Zigbee and Bluetooth LE stack run on the same chip. This design has the following advantages: * It allows to run Zigbee and Bluetooth LE simultaneously on a single chip, which reduces the overall BOM cost. It also has the following disadvantages: * Bluetooth LE activity can degradate the connectivity on Zigbee if not implemented with efficiency in mind. .. figure:: ../../../../../nrf/protocols/zigbee/images/zigbee_platform_design_multi.svg :alt: Multiprotocol Zigbee and Bluetooth LE architecture (nRF52 Series devices) Multiprotocol Zigbee and Bluetooth LE architecture on nRF52 Series devices .. figure:: ../../../../../nrf/protocols/zigbee/images/zigbee_platform_design_nRF5340_multi.svg :alt: Multiprotocol Zigbee and Bluetooth LE architecture (nRF53 Series devices) Multiprotocol Zigbee and Bluetooth LE architecture on nRF53 Series devices For more information, see :ref:`ug_multiprotocol_support` and :ref:`zigbee_light_switch_sample_nus`. This platform design is suitable for the following development kits: .. table-from-rows:: /includes/sample_board_rows.txt :header: heading :rows: nrf52840dk_nrf52840, nrf52833dk_nrf52833, nrf5340dk_nrf5340_cpuapp_and_cpuapp_ns .. _ug_zigbee_platform_design_ncp: Co-processor designs ******************** In co-processor designs, the application runs on one processor (the host processor) and communicates with another processor that provides the radio interface. In these designs, the more powerful processor (host) interacts with the Zigbee network through a connectivity device, for example a Nordic Semiconductor's device with the Zigbee interface. The co-processor designs can be used when a device requires additional functionalities or more compute power than what Nordic Semiconductor's devices have to offer, but the more powerful processor does not have a suitable radio interface. The split stack architectures are most commonly used to design a Zigbee gateway, but sometimes also for complex Zigbee Routers or Zigbee End Devices. .. _ug_zigbee_platform_design_ncp_details: Network Co-Processor (NCP) ========================== In this design, the host processor runs the Zigbee application layer (ZCL) and the Zigbee commissioning logic. The connectivity device (nRF SoC) runs the :ref:`NCP application ` that contains lower parts of the Zigbee stack (802.15.4 PHY/MAC and the Zigbee PRO network layer), as well as provides commands to execute BDB commissioning primitives. The host processor communicates with the NCP through a serial interface (USB or UART). The NCP design has the following advantages: * Cost-optimized solution - uses the resources on the more powerful processor. * The NCP device does not require the support for the dual-bank DFU. It can be upgraded by the host processor. * Access to the :ref:`full feature set of ZBOSS `. * Lower memory footprint on the connectivity side (as compared with single-SoC Zigbee applications). It also has the following disadvantages: * The host part of the stack must be built and run for every individual host processor in use. However, Nordic Semiconductor provides reference implementation for Linux-based platforms in the ZBOSS NCP Host package. .. figure:: ../../../../../nrf/protocols/zigbee/images/zigbee_platform_design_ncp.svg :alt: Split Zigbee architecture Split Zigbee architecture The |NCS| includes the :ref:`ug_zigbee_tools_ncp_host` tool. |zigbee_ncp_package| The tool is available for download as a standalone :file:`zip` package using the following link: * `ZBOSS NCP Host`_ (|zigbee_ncp_package_version|) |zigbee_ncp_package_more_info| This platform design is suitable for the following development kits: .. table-from-rows:: /includes/sample_board_rows.txt :header: heading :rows: nrf52840dk_nrf52840, nrf52833dk_nrf52833, nrf21540dk_nrf52840