2013-03-26 12:09:49 +00:00
|
|
|
Z1 websense
|
|
|
|
===========
|
|
|
|
|
|
|
|
This example features a simple webserver running on top of the IPv6 contiki
|
|
|
|
stack on Zolertia Z1 motes to provide sensor values, and with a RPL border
|
|
|
|
router to bridge the sensor network to Internet.
|
2011-03-08 08:27:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
To test the example in COOJA under Linux
|
|
|
|
----------------------------------------
|
|
|
|
|
|
|
|
1. Start COOJA and load the simulation "example-z1-websense.csc"
|
2013-03-26 12:09:49 +00:00
|
|
|
|
|
|
|
make TARGET=cooja example-z1-websense.csc
|
2011-03-08 08:27:38 +00:00
|
|
|
|
|
|
|
2. Connect to the COOJA simulation using tunslip6:
|
2013-03-26 12:09:49 +00:00
|
|
|
|
|
|
|
make connect-router-cooja
|
2011-03-08 08:27:38 +00:00
|
|
|
|
|
|
|
3. You should now be able to browse to the nodes using your web browser:
|
2016-02-12 18:10:02 +00:00
|
|
|
|
2015-09-30 14:06:58 +00:00
|
|
|
Router: http://[fd00::0212:7401:0001:0101]/
|
|
|
|
Node 2: http://[fd00::0212:7402:0002:0202]/
|
2011-03-08 08:27:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
To run the example on real nodes under Linux
|
|
|
|
--------------------------------------------
|
|
|
|
|
|
|
|
1. Program the nodes with the websense application
|
2013-03-26 12:09:49 +00:00
|
|
|
|
|
|
|
make TARGET=z1 z1-websense.upload
|
2011-03-08 08:27:38 +00:00
|
|
|
|
|
|
|
2. Disconnect the nodes and program one node with the RPL border router
|
2013-03-26 12:09:49 +00:00
|
|
|
|
2016-02-12 18:10:02 +00:00
|
|
|
cd examples/ipv6/rpl-border-router && make TARGET=z1 border-router.upload
|
2011-03-08 08:27:38 +00:00
|
|
|
|
|
|
|
3. Connect to the border router using tunslip6:
|
2013-03-26 12:09:49 +00:00
|
|
|
|
|
|
|
make connect-router
|
2011-03-08 08:27:38 +00:00
|
|
|
|
|
|
|
4. Reboot the router and note the router IP address
|
|
|
|
|
|
|
|
5. You should now be able to browse to your router node using your web
|
|
|
|
browser: http://[<ROUTER IPv6 ADDRESS>]/. On this page you should
|
|
|
|
see a list of all accessible nodes with their IP adresses.
|