This test-bed project is a fork from Erbium COAP Server [1], RPLINFO [2] 6LBR [3] and libcoap [4]
- Install the CETIC Contiki tree following the instructions on https://github.com/cetic/6lbr/wiki/COOJA-Interface
Install libcoap:
$ cd ~/
$ wget http://downloads.sourceforge.net/project/libcoap/coap-18/libcoap-4.1.1.tar.gz
$ tar -xvzf libcoap-4.1.1.tar.gz
$ cd libcoap-4.1.1
$ ./configure
$ make
Clone this repository:
$ cd ~/6lbr/examples
$ git clone https://github.com/marciolm/er-rest-example-rpl.git
Open a terminal and run Cooja simulation:
$ cd er-rest-example-rpl
$ ./start-cooja-rplinfo.sh
- To connect your Linux host machine in the simulated WSN, you have to start the 6LBR, start the bridge br0 and enable the IPv6 routing.
Open a second terminal:
$ cd ~/6lbr/examples/er-rest-example-rpl
$ ./start-6lbr.sh
There are some scrips to retrive the routing information via COAP. To run them, start a third terminal:
$ cd ~/6lbr/examples/er-rest-example-rpl
$ ./coap-read-4.sh