-
Notifications
You must be signed in to change notification settings - Fork 0
6LoWPAN Border Router
Alexandre Abadie edited this page May 30, 2017
·
2 revisions
Prerequisites:
- SSH connection to the PIs configured
- You have followed the IoT-Lab tutorials
- IoT-Lab SSH Cli tools installed on your computer:
sudo pip install iotlabsshcli
- Connect to agile-pi-2:
ssh agile-pi-2
- From the command line on the AGILE Gateway (agile-pi-2), update, build, flash and start the border router:
cd /opt/parts/RIOT git checkout 2017.04-branch make WERROR=0 BOARD=samr21-xpro -C examples/gnrc_border_router flash term
- From another terminal on your local computer. Build a RIOT networking firmware ($RIOTBASE is where the RIOT source code is located on your computer):
cd $RIOTBASE make BOARD=iotlab-a8-m3 -C examples/default
The firmware is located in $RIOTBASE/examples/default/bin/iolab-a8-m3/default.elf
- Start an experiment on IoT-LAB with 2 nodes:
experiment-cli submit -n test_agile_iot -d 60 -l saclay,a8,154+155 experiment-cli wait
- A this point, your experiment is started, but you still have to wait for the node to boot:
open-a8-cli wait-for-boot
All working nodes ids are listed in the "0" field. The others might have encountered a problem and won't be available for during the experiment.
- Flash the RIOT
default
firmware on the nodes:
open-a8-cli flash-m3 $RIOTBASE/examples/default/bin/iolab-a8-m3/default.elf
- Your experiment is ready but in case of a problem, you may have to reboot one the M3 nodes of IoT-LAB:
open-a8-cli reset-m3
- From the terminal on the border router (running on the SAMR21 board attached to the AGILE Gateway),
you should see the nodes in the RIOT shell by typing the
routers
command. This command will also show you the IPv6 addresses of the nodes you can ping from the same shell with:
> ping6 2001:db8::xxxx:xxxx:xxxx:xxxx