Questions about Openthread network

Dear Support Team

I am preparing to develop a Thread application which have one node  was used to receive data from all other nodes in the same Thread network.  I found that there were Thread CoAP Client and Thread CoAP Server in the NCS sample folder. 

Here are some of my questions after I read the Thread CoAP Client and CoAP Server sample document on line:

1)The node was used to receive data should be the Thread CoAP Server and the node was used to send data should be the Thread CoAP Client, right?

2)As the red circle part said, Does it mean that a client node can send data to all server nodes in the same Thread network without pairing and a client node only can send data to one server node in the Thread network after pairing? What case is the pairing necessary?

3) I think that there were only two roles in the Thread nerwork after I read these two sample documents, dose the data flow just can runs unidirection from Thread CoAP Client to Thread CoAP Sever? Does the data flow couldn't run bidirection between Thread CoAP Clients? I found that there are three roles in the below picture which said on this link(Thread in Homes (threadgroup.org).

4) Is there MAC address in Thread node? A node can send data to another node just need the the IP address? Which API in the sample is used to send data to a node and which API and event is used to receive data from a node?

5)Can the MAC address and the IP address be changed in a node? How to change the MAC address and the IP address?

 

Parents
  • Hi Tom,

    1)The node was used to receive data should be the Thread CoAP Server and the node was used to send data should be the Thread CoAP Client, right?

    Yes.

    From the CoAP specification:

    "
    Client
    The originating endpoint of a request; the destination endpoint of
    a response.

    Server
    The destination endpoint of a request; the originating endpoint of
    a response.
    "

    2)As the red circle part said, Does it mean that a client node can send data to all server nodes in the same Thread network without pairing and a client node only can send data to one server node in the Thread network after pairing? What case is the pairing necessary?

    That is correct.

    Pairing can be necessary for some use cases.
    If I were to make up an example use-case for pairing:
    You have 20 light bulb clients and 2 light switch servers. These are distributed over 2 rooms, with 10 bulbs in each room.
    Then you can pair the light bulbs in one room to one switch, and vice-versa for the other room.

    3) I think that there were only two roles in the Thread nerwork after I read these two sample documents, dose the data flow just can runs unidirection from Thread CoAP Client to Thread CoAP Sever? Does the data flow couldn't run bidirection between Thread CoAP Clients? I found that there are three roles in the below picture which said on this link(Thread in Homes (threadgroup.org).

    See our Thread documentation and the OpenThread Getting Started guide.

    For Thread roles, see Node Roles and Types.

    A Thread End Device can send messages to a Thread Router.
    A Thread Router can send messages to a Thread End Device.

    Regards,
    Sigurd Hellesvik

  • Dear Sigurd

    Thanks for your support of patiently. Could you give us further support for the below questions? Many thanks.

    Which samples in NCS are for Router, End Device, Thread Leader and Border Router.

Reply Children
Related