OpenThread CLI - Commissioning
Quick Start
Form Network
Form a network with the device that has Commissioner support.
-
Generate and view new network configuration.
> dataset init new Done > dataset Active Timestamp: 1 Channel: 13 Channel Mask: 0x07fff800 Ext PAN ID: d63e8e3e495ebbc3 Mesh Local Prefix: fd3d:b50b:f96d:722d::/64 Network Key: dfd34f0f05cad978ec4e32b0413038ff Network Name: OpenThread-8f28 PAN ID: 0x8f28 PSKc: c23a76e98f1a6483639b1ac1271e2e27 Security Policy: 0, onrcb Done
-
Commit new dataset to the Active Operational Dataset in non-volatile storage.
dataset commit active Done
-
Enable Thread interface
> ifconfig up Done > thread start Done
Obtain Joiner IEEE EUI-64
-
Start the Joiner node and obtain the Joiner's IEEE EUI-64.
> eui64 18b4300000000002 Done
Start Commissioner
-
Start the Commissioner Role
> commissioner start Commissioner: petitioning Done Commissioner: active
-
Add the Joiner with the device-specific pre-shared key (PSKd)
> commissioner joiner add 18b4300000000002 J01NME Done
Start Joiner
-
Factory reset the device.
> factoryreset
-
Start the Joiner process.
> ifconfig up Done > joiner start J01NME Done Join success
-
Attach to Thread network
> thread start Done
-
After successful attach, validate the device has the same Active Operational Dataset as above.
> dataset active Active Timestamp: 1 Channel: 13 Channel Mask: 0x07fff800 Ext PAN ID: d63e8e3e495ebbc3 Mesh Local Prefix: fd3d:b50b:f96d:722d::/64 Network Key: dfd34f0f05cad978ec4e32b0413038ff Network Name: OpenThread-8f28 PAN ID: 0x8f28 PSKc: c23a76e98f1a6483639b1ac1271e2e27 Security Policy: 0, onrcb Done