This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connecting of nRF52840DK board to ZigBee product

Hello,

I am a student and I am trying to experiment using a nRF52840DK to replace a device in a ZigBee network but unable to do so with the available examples.

I do not really know how should I change the examples to suit my needs.

I was thinking of replicating my "Door/Window sensor" or a "Wireless ZigBee Hub".

I tried using the CLI agent but do not know how to establish a connection with the devices.

May I know is it possible to be done? 

Thank you.

Regards,

Terence

  • Hi Terence,

    If you are new with Zigbee I recommend starting out with the Zigbee CLI Agent example. This example can work as either a Zigbee router you can add to an existing zigbee network or as a coordinator to setup a new network.

    You should also setup a Zigbee sniffer, for instance you can use the nRF Sniffer for 802.15.4 with a nRF52840 dongle, which is an easy and cheap solution for sniffing. If you have questions while developing you can add sniffer traffic dumps to your tickets and it will be easier to get help.

    I recommend you familiarize yourself with both the BDB specification and the ZCL specification if you are planning to develop your own Zigbee products. You can download both of them from the Zigbee Alliance website. If you want to replicate a device you should first try to find out what clusters that device has implemented.

    I don't know how far you have come in your development. To start out you can perhaps familiarize yourself on how to add a new Zigbee device to an existing Zigbee network. You can use the Zigbee CLI as a router or the Zigbee light bulb example for example. Check that the zigbee example is running on the same channel as your coordinator (sniffer gives the answer), check that the Zigbee network is opened (association permit in beacon packet is set to true, sniffer will also give you the answer here), and check if the coordinator replies to TC key rotation packets (request/verify key).

    Best regards,

    Marjeris

  • Hi Marjeris,

    I have been trying the CLI Agent example. I was able to connect the sensor to the nRF52840DK using the match descriptor command. But for commands like simple_desc_req, active_ep attr read, attr write which all resulted to a "Unimplemented signal (Signal: 21, Status: 0). What does this mean?

    Regards,

    Terence

  • Can you attach the commands and log responses from the CLI window?

    The "Unimplemented signal" is just the default response of the zigbee_default_signal_handler() on the example:

            default:
                /* Unimplemented signal. For more information see: zb_zdo_app_signal_type_e and zb_ret_e. */
                NRF_LOG_INFO("Unimplemented signal (signal: %d, status: %d)", sig, status);
                break;

    I recommend you take a look at the sniffer trace to see what happened.

    Check that the simple descriptor request is being sent to a valid node and endpoint inside the network:

    https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fzigbee_example_cli_reference.html&anchor=simple_desc_req

    You can optain the short address and endpoint of the sensor by looking at the response of the match descriptor request looking for the devices that implement the basic cluster for example, or by a sniffer log.

    Best regards,

    Marjeris

  • Hi Marjeris,

    Sorry I was away for 2 weeks. I've attached my .pcap file and a screenshot of the commands and logs of CLI window.

    capture.pcapng

    May I know would it be possible for the nRF52840dk to connect to a ZigBee hub which is already connected to a device, probably as a router or another end device?

    Regards,

    Terence

Related