README.md
OpenThread on RIOT
This test demonstrates the OpenThread stack running on RIOT. When flashed, it will initialize the OpenThread Command Line Interface for interacting with the stack.
Quick usage
To test OpenThread on RIOT, you can do the following:
- Flash nodes with
make BOARD=<target> clean all flash
- Write
panid 0x1234
,ifconfig up
thenthread start
on one node. - Check the state of the node with
state
. In the beggining should bedetached
, but after some seconds it should becomeleader
- Write
panid 0x1234
,ifconfig up
thenthread start
on another node. The second node should becomechild
orrouter
if there's a leader. - Get the mesh IP address of a node with
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
Addresses starting with fd
are mesh-local, and addresses starting with fe80
are link-local.
Mesh-local address types that contain ff:fe00
are classified as Router Locator (RLOC). Mesh-local address types
that don't contain ff:fe00
are Endpoint Identifies (EID).
- Ping from another node to a mesh-local address with
ping fdde:ad00:beef:0:946a:c722:a5d9:8481
. - You can try IEEE802.15.4 scan with
scan
command - You can also check other commands with
help
- Enjoy!
Note
See the OpenThread CLI Reference for more information about OpenThread CLI commands