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

Zigbee end-device (NRF52840) leaving the coordinator (also NRF52840)

I've been working with the NRF52840 for a while now. My setup is based on the CLI coordinator code and a bunch of end devices running the multisensor freertos based program.

Recently something weird started to happen. After being paired with the coordinator for like days, some end devices disconnect from the network and never re-join again. Also, the connection status LED turns off and never turns on again unless I manually reboot the power of the end device. What could be the issue here?

What can I do to prevent this? Should I make kind of a watchdog to the connection status?

Best regards,

Fernando

Parents
  • Hi Fernando

    Do the devices "usually" rejoin after losing a connection? Are you for instance using the zb_secure_set_tc_rejoin_enabled() functions which specifies whether the Trust Center Rejoin is allowed or not. To determine what exactly causes these disconnects I think we need to see a sniffer log to see what's happening over the air. Check out the nRF Sniffer for details on taking a sniffer trace. By default I think a rejoin function should be called after a LEAVE event occurs. You can check out this page on the Infocenter for some zigbee network rejoining examples.

    Best regards,

    Simon

Reply
  • Hi Fernando

    Do the devices "usually" rejoin after losing a connection? Are you for instance using the zb_secure_set_tc_rejoin_enabled() functions which specifies whether the Trust Center Rejoin is allowed or not. To determine what exactly causes these disconnects I think we need to see a sniffer log to see what's happening over the air. Check out the nRF Sniffer for details on taking a sniffer trace. By default I think a rejoin function should be called after a LEAVE event occurs. You can check out this page on the Infocenter for some zigbee network rejoining examples.

    Best regards,

    Simon

Children
  • Hello Simonr,

    Yes, the devices usually rejoin after losing the connection. I'm thinking that probably the issue is related to a timeout during the re-join procedure. If the gateway is being kept offline for too long the end device never re-joins after the gateway power up.

    This subject leads me to a further question which is: What do I need to change in order to completely remove this timeout? I'm switching the code to router mode (since the device will be connected to the outlet), and I noticed that after the first boot if there is no coordinator on the network the router will stop searching for any after some time. I want to stop this behavior and leave the router continually searching for a coordinator until reaching one. How can I do that?

    Thanks in advance,

    Best regards,

    Fernando Fontes

Related