zephyr/samples/net/rpl-node
Anas Nashif 9512f0ddf3 samples: rpl: do not build when assert is enabled
Was failing due to increased size of binary.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-01-09 11:13:08 -05:00
..
src samples: net: rpl: Fix compile error in rpl-node application 2017-11-09 10:59:30 +02:00
0001-Added-CoAP-support-for-Sparrow-Border-Router.patch net: samples: Add leds demo app over RPL and CoAP 2017-10-06 22:07:37 -04:00
CMakeLists.txt samples: net: Remove QEMU_NET_STACK setting from CMakeLists.txt 2017-11-10 14:52:53 +02:00
prj_quark_se_c1000_devboard.conf samples: net: rpl: RPL node application was missing sample.yaml 2017-11-09 10:59:30 +02:00
README.rst samples: net: Update compilation instructions for cmake 2017-11-10 11:36:33 -05:00
sample.yaml samples: rpl: do not build when assert is enabled 2018-01-09 11:13:08 -05: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
   /ipv6/neighbors
   /rpl-info
   /rpl-info/parent
   /rpl-info/rank
   /rpl-info/link-metric

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
********************

If you're using a Sparrow border router, follow the steps below to build and
run Sparrow BR.  (Sparrow has its own TLV mechanism to build topology that
Zephyr doesn't support.)  A patch is provided in the sample folder to to support
building topology with CoAP-based responses.

Running Sparrow BR
==================

.. code-block:: console

   git clone https://github.com/sics-iot/sparrow.git
   cd sparrow
   git am 0001-Added-CoAP-support-for-Sparrow-Border-Router.patch
   cd products/sparrow-border-router
   sudo make connect-high PORT=/dev/ttyACM0

If your PC is using an http proxy, you should unset it for this sample.
Wait until the border router is up and running. The python script used below
will run a web-based UI.

.. code-block:: console

   cd examples/sparrow
   ./wsdemoserver.py

Wait until you see "Connected" message on console. Unset proxy in browser
and open 127.0.0.1:8000.

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.

.. zephyr-app-commands::
   :zephyr-app: samples/net/rpl-node
   :board: <board to use>
   :conf: <config file to use>
   :goals: build flash
   :compact:

Wait until the RPL node joins with Border-Router and updates the list in the web UI.