nes-proj/examples/native-border-router
George Oikonomou a3c185132a Tidy up webserver configuration (Native BR)
Previously, we were using the example's Makefile to configure whether we want a web server built into the BR. We had 3 options:

* No web server
* Internal web server
* External web server (from apps/)

The last option is no longer evailable. This commit removes support for this option and it also simplifies the situation: We now merely use a CPP macro to enable/disable the web server.
2017-10-30 21:46:55 +00:00
..
Makefile Tidy up webserver configuration (Native BR) 2017-10-30 21:46:55 +00:00
Makefile.target Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
README.md Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
border-router-cmds.c Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
border-router-cmds.h Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
border-router-mac.c Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
border-router.c Tidy up webserver configuration (Native BR) 2017-10-30 21:46:55 +00:00
border-router.h Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
httpd-simple.c Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
httpd-simple.h Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
project-conf.h Tidy up webserver configuration (Native BR) 2017-10-30 21:46:55 +00:00
slip-config.c Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
slip-dev.c Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00
tun-bridge.c Move example to the top-level dir (Native BR) 2017-10-30 21:46:54 +00:00

README.md

This code connects a 802.15.4 radio over TTY with the full uIPv6 stack of Contiki including 6LoWPAN and 802.15.4 framing / parsing. The native border router also acts as a RPL Root and handles the routing and maintains the RPL network. Finally the native border router connects the full 6LoWPAN/RPL network to the host (linux/os-x) network stack making it possible for applications on the host to transparently reach all the nodes in the 6LoWPAN/RPL network.

This is designed to interact with the a ../slip-radio example running on a mote that is either directly USB/TTY connected, or is remote via a TCP connect. What's on the SLIP interface is really not Serial Line IP, but SLIP framed 15.4 packets.

The border router supports a number of commands on it's stdin. Each are prefixed by !:

  • !G - global RPL repair root.
  • !M - set MAC address (if coming from RADIO, i.e. SLIP link)
  • !C - show channel (if coming from RADIO, i.e. SLIP link)
  • !D - sensor data received
  • !Q - exit

Queries are prefixed by ?:

  • ?M is used for requesting the MAC address from the radio in order to use it for uIP6 and its stateless address auto configuration of its IPv6 address. This will make the native border router have the address that correspond to the MAC address of the slip-radio. (response is !M from the slip-radio)

  • ?C is used for requesting the currently used channel for the slip-radio. The response is !C with a channel number (from the slip-radio).

  • !C is used for setting the channel of the slip-radio (useful if the motes are using another channel than the one used in the slip-radio).