From 5699127c9ad7fc967b3c25bef1a45836614b9310 Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Sat, 7 Feb 2015 10:49:51 -0500 Subject: [PATCH] additional edits to further clarify interface between native-border-router and slip-radio --- examples/ipv6/native-border-router/README.md | 33 ++++++++++++-------- examples/ipv6/slip-radio/README.md | 2 ++ 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/examples/ipv6/native-border-router/README.md b/examples/ipv6/native-border-router/README.md index e7aeb25bc..03174972f 100644 --- a/examples/ipv6/native-border-router/README.md +++ b/examples/ipv6/native-border-router/README.md @@ -1,21 +1,28 @@ -The native border router connects a TTY with an ethernet TUN device -via the RPL protocol. This works with the ../slip-radio example to permit -a Linux host to have a 802.15.4 radio connected via a serial interface. -What's on the SLIP interface is really not Serial Line IP, but SLIP framed -15.4 packets. +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 +* !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 - just a test - ?C - writes stuff to SLIP port! - ?S - shows stats for SLIP port. +* ?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). diff --git a/examples/ipv6/slip-radio/README.md b/examples/ipv6/slip-radio/README.md index 17bb364c7..5e3e0a5f6 100644 --- a/examples/ipv6/slip-radio/README.md +++ b/examples/ipv6/slip-radio/README.md @@ -2,3 +2,5 @@ This project is intended to run on a mode that is connected to a native host sys by SLIP. The SLIP is really SERIAL LINE 15.4, as this just turns the mote into a smart radio, running the RPL and 6lowpan stack on the Host. This goes with native-border-router. + +