Openthread UDP and groups with nRF52840

Hello,

I have a series of nRF52840 devices that are already connected together in a Thread Network.

My system is composed by one client and multiple servers.

1) I'd like to create a firmware that use UDP protocol for exchanging messages between client and servers, so that, for example, it is possible to send commands of LED ON/LED OFF from client to servers.

2) Moreover, I'd like to select (with a group concept) between servers, so that some are able to receive the LED commands and some not.

Does a firmware sample about this argument already exist? Could you tell me where I can find it?

If not, could you help me to understand how to realize my firmware?

I'm looking forward to your reply.

Thanks in advance

Parents
  • Hi, 

    The UDP sample demonstrates how to send and receive UDP packets. This sample can be used as a starting point for implementing UDP-based messaging between your client and server devices in a Thread network.

    The Thread CoAP Client/Server samples demonstrate group and unicast control of LEDs using CoAP over Thread, which is another common approach for resource control in Thread networks. These samples show how to control LEDs on server nodes using both unicast and multicast (group) messages, and may be easier to adapt for group-based control than raw UDP. 

    Regards,
    Amanda H. 

Reply
  • Hi, 

    The UDP sample demonstrates how to send and receive UDP packets. This sample can be used as a starting point for implementing UDP-based messaging between your client and server devices in a Thread network.

    The Thread CoAP Client/Server samples demonstrate group and unicast control of LEDs using CoAP over Thread, which is another common approach for resource control in Thread networks. These samples show how to control LEDs on server nodes using both unicast and multicast (group) messages, and may be easier to adapt for group-based control than raw UDP. 

    Regards,
    Amanda H. 

Children
Related