nRF5 SDK for Thread and Zigbee v2.0.0
BLE and Zigbee Template Example

The dynamic BLE-Zigbee Template example demonstrates the usage of the dynamic multiprotocol method. This example is a merge of a simplified version of BLE Peripheral Template and the simple Zigbee application.

The nRF52840 device operates simultaneously on Zigbee and BLE. It joins the Zigbee network as a Zigbee Router device. It also acts as a BLE Peripheral device sending BLE connectable advertisements.

The Zigbee part of the application implements the Zigbee Range Extender functionality. It is a Zigbee device which basically provides no other functionality except extending the range of the Zigbee network. It is populated by the two Zigbee ZCL clusters: Basic and Identify.

Description

LED assignments:

Button assignments:

Setup

You can find the source code in the following folder: <InstallFolder>\examples\multiprotocol\experimental\ble_zigbee_dynamic_template

Testing

Precondition
To test the example, prepare at least one nRF52840 Development Kit and an Android smartphone.
  1. On the smartphone, install nRF Connect for Mobile.
  2. Compile and program the SoftDevice and the application. Observe that the BSP_INDICATE_ADVERTISING state is indicated.
  3. Connect to the device from nRF Connect (the device is advertising as 'Nordic_Template'). Observe that the BSP_INDICATE_CONNECTED state is indicated.
  4. Disconnect the device in nRF Connect and observe that the BSP_INDICATE_ADVERTISING state is indicated.
  5. Prepare the Zigbee coordinator using the Zigbee CLI agent. Refer to Zigbee CLI Reference for complete reference of the Zigbee Command Line Interface.
  6. Run the state command to set the state of the CLI device in the Zigbee network and then start it:
    > bdb role zc
    Coordinator set
    Done
    > bdb start
    Started coordinator
    Done
  7. Check that the device with the the Basic and Identify Clusters is present in the network.
    > zdo match_desc ffff ffff 0104 2 0 3 0
    src_addr=D9D2 ep=7
    Done
    Note
    The short address of the device returned by the Match Descriptor Request may differ in your case.

Documentation feedback | Developer Zone | Subscribe | Updated