2017-08-23 19:57:06 +08:00
|
|
|
.. _rpl-node-sample:
|
|
|
|
|
|
|
|
RPL node
|
|
|
|
###########
|
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
|
|
|
This sample builds a simple RPL node and shows how to join into an RPL
|
|
|
|
mesh network.
|
|
|
|
|
|
|
|
This sample assumes that your chosen platform has networking support.
|
|
|
|
Some code configuration adjustments may be needed.
|
|
|
|
|
|
|
|
The sample will listen for RPL multicast messages and joins with the RPL
|
|
|
|
Border Router node in DAG network.
|
|
|
|
|
|
|
|
The sample exports the following resources through a CoAP server role:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
/led
|
2018-01-08 19:50:02 +08:00
|
|
|
/rpl-obs
|
2017-08-23 19:57:06 +08:00
|
|
|
|
|
|
|
These resources allow you to toggle an on-board LED (if available) and build
|
|
|
|
the RPL mesh network topology from node RPL information.
|
|
|
|
|
|
|
|
Building And Running
|
|
|
|
********************
|
|
|
|
|
2018-01-08 19:50:02 +08:00
|
|
|
Running BR
|
|
|
|
==========
|
2017-08-23 19:57:06 +08:00
|
|
|
|
2018-01-08 19:50:02 +08:00
|
|
|
Follow the instructions from :ref:`rpl-border-router-sample` to run Zephyr
|
|
|
|
RPL border router.
|
2017-08-23 19:57:06 +08:00
|
|
|
|
|
|
|
Running RPL node
|
|
|
|
================
|
|
|
|
|
|
|
|
To build and run RPL node, follow the below steps to build and install
|
|
|
|
it on IEEE 802.15.4 radio supported board.
|
|
|
|
|
2017-11-10 18:25:45 +08:00
|
|
|
.. zephyr-app-commands::
|
|
|
|
:zephyr-app: samples/net/rpl-node
|
|
|
|
:board: <board to use>
|
|
|
|
:conf: <config file to use>
|
|
|
|
:goals: build flash
|
|
|
|
:compact:
|
2017-08-23 19:57:06 +08:00
|
|
|
|
|
|
|
Wait until the RPL node joins with Border-Router and updates the list in the web UI.
|