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

simple coap example and Thread network

Dear nordic,

I have some doubts in this example based on thread. Thread says one node join to the network using by commissioning.

1. In this example where we start commissioning? its confusing me i checked this example node can join any time in this network but how its possible where this commissioning happen?

2. And i am little bit confusing in Preshared key in open thread. How this PSK generated and HOW this PSK used to Authenticate for commissioning?

3.For generation of PSK network name and pan id is used . Is it possible to set PSK manually?

  • Hi.

    Default key 00112233445566778899aabbccddeeff is set inside of OpenThread in the file key_manager.cpp, line 50

    This is the key that is used in the precommissioned examples, it can be changed by using otThreadSetMasterKey:

    But only in the precomissioned examples. It willl be generated when the Thread network is formed and every joining node would obtain it during commissioning.

    Best regards,

    Andreas

Related