I knew the Network Key is generated randomly for setting the ZLL security state? Could you tell me where and how to get the Network Key after it has been generated? Is there any APIs I can use to get the Network Key in my application layer?
There are two ways to get the Network Key in Simplicity Studio when connected to node of the network.
The first is to capture a trace of the network at the time of network establishment. In this case, when your node receives the key, it will be captured and allow decoding. Keys can be seen in Network Analyzer > Window > Preferences > Network Analyzer > Decoding > Security Keys.
If you did not capture a trace while joining but you have a connection to one of the nodes, you can get the keys from the terminal using the command "keys print".
The key is listed under NWK Key.
As I understand, with Zigbee 3.0, Toucklink commissioning is still there but there is no more notion of "ZLL Profile". What about the keys described in the first post?
In the table below, only the TP (Pre-configured Link Key) is used. So the ZLL Master Key is no more useful?