This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Two Leaders in the same Thread Network - SDK 4.1

Hello,

I am working on a project which requires 2 FTDs and 2 MTDs (Sensor and Actuator) in a Thread Network.

We are using nRF52840 dongle as FTDs and arduino nano sense BLE 33 as MTDs. 

We manage to establish communication between these devices using UDP protocol.

The configuration is as follows :

Leader (Parent), Router and Two Childs.

The communication between the two childs and their parent is working fine.

When we try to establish a communication between the router and the leader (request/response), it works fine in the first instance, but after a while, the router becomes leader as well and the communication is lost.    

Considering Thread Specification, a thread network cannot have more than one leader, we would like to know if it is a common bug and how we could fix it ?

Thank you in advance, I hope I've explained well the issue.  

Kind Regards,

Houssam Slimani

  • Hi Houssam SLIMAN,

    Thanks for the detailed explanation, but it is hard to say what is wrong according to the information you have shared.

    Are you able to provide more logs or samples that can help to reproduce the issue? If this issue can recreate with two FTDs, please share your minimized sample and steps.

    Best regards,

    Charlie

  • Hi Charlie,

    Thank you so much for the prompt feedback.

    Actually, we've found a workaround which makes the communication between router and leader more stable, now the router remains router permanently.

    Indeed, we call the function otUdpSendDatagram(thread_ot_instance_get(), p_payload, &messageInfo) instead of otUdpSend(&sendSocket, p_payload, &messageInfo), so we don't use UDP sockets anymore, that's all.

    I hope this solution could be valuable for the community in the future.

    Thank you again.

    Kind Regards,

    Houssam Slimani

  • Hi Houssam Slimani,

    Good to hear you found a solution and thanks for sharing it with us.

    Do you mind setting this case public to let more people see it? It is OK you want to keep it private if there is some sensitive information you do not want to share, we will just use this as an internal reference.

    Best regards,

    Charlie

Related