examples/networking/misc/openthread/README.md
This example demonstrates how to use the OpenThread open source implementation of Thread on RIOT.
The Command Line Interface of OpenThread was ported. Please check the full documentation of the CLI for usage information. Commands start with prefix 'ot'.
You can either build a FTD or MTD firmware:
With RIOT port, a node is auto-setup and ready to communicate with this configuration:
OPENTHREAD_PANID=0xbeef
OPENTHREAD_CHANNEL=26
You can pass the panid/channel independently when building the firmware:
make BOARD=<target> OPENTHREAD_PANID=0xaaaa OPENTHREAD_TYPE=ftd flash term
make BOARD=<target> OPENTHREAD_CHANNEL=20 OPENTHREAD_TYPE=ftd flash term
To try OpenThread in RIOT, you can do the following:
make BOARD=<target> clean all flash OPENTHREAD_TYPE=mtd
make BOARD=<target> clean all flash OPENTHREAD_TYPE=ftd
Check the state of the node with ot state. In the beginning, it should be
detached, but after some seconds it should become leader
Start another node and check that it becomes router. There is only one
leader in a Thread network.
Get the mesh IP address of a node with ot ipaddr.
ipaddr
fdde:ad00:beef::ff:fe00:8000
fe80::ff:fe00:8000
fdde:ad00:beef:0:946a:c722:a5d9:8481
fe80::3984:f4eb:d182:5dae
ping fdde:ad00:beef:0:946a:c722:a5d9:848
You can try IEEE802.15.4 scan with ot scan command
You can also check other commands with ot help
OpenThread port on RIOT is stable. In case of any bug, please report via GitHub issue.