[nrf5 sdk for zigbee 4.1] ZigBee leave network failed

Dear Support Team,

Based on nrf5 sdk for zigbee 4.1, nrf52840dk, do the following tests: 1. Modify the \examples\zigbee\light_control\light_switch example, that is, add button 1 to leave network, button 2 to join network, button 3 to directly erase nvram, and button 4 to soft restart.
2. Compile the example and download to 52840-Dk.
3. The device presses button2 to join network.
4. The device presses button4 to invoke a soft restart, and sees the device rejoin.
5. The device presses button1 leave network.
Phenomenon: The device does not leave the network and no abnormal error is displayed. Please help to analyze and solve it.
The following is the light_switch program, which modifies main.c and zigbee_helpers.c.

6521.light_switch.rar

Parents
  • Hi,

    What are you using as coordinator? Can you get a sniffer log of this?

    I am not able to reproduce the issue with your project. I built your project in nRF5 SDK for T&Z v4.1.0 with the modified zigbee_helpers.c, and used Zigbee Shell from nRF Connect SDK as coordinator. The device left successfully when I performed the same steps as you, that is, joining the network, soft reset, and then leaving the network.

    The screenshot from the sniffer log shows the device rejoining the network after reset, sending a leave command, and then there is no more communication from the light switch on the network:

    Best regards,
    Marte

Reply
  • Hi,

    What are you using as coordinator? Can you get a sniffer log of this?

    I am not able to reproduce the issue with your project. I built your project in nRF5 SDK for T&Z v4.1.0 with the modified zigbee_helpers.c, and used Zigbee Shell from nRF Connect SDK as coordinator. The device left successfully when I performed the same steps as you, that is, joining the network, soft reset, and then leaving the network.

    The screenshot from the sniffer log shows the device rejoining the network after reset, sending a leave command, and then there is no more communication from the light switch on the network:

    Best regards,
    Marte

Children
Related