#IoT Street Light Example Author: Ryan Hu
This is an Internet of Things example application, which shows how to notify the street lights when there is the human presence is detected by a proximity sensor. The Contiki 3.0 on Ubuntu 14.04 is used to run this example. Each street light is considered as the node with an IPv6 address that can respond to the remote HTTP GET requests for retrieving the sensor values.
The example features a simple webserver running on top of the IPv6 contiki stack on Sky motes to provide sensor values, and with a RPL border router to bridge the sensor network to Internet.
-
Start COOJA and load the simulation "example-sky-websense.csc"
make TARGET=cooja example-sky-websense.csc
-
Connect to the COOJA simulation using tunslip6:
make connect-router-cooja
-
You should now be able to browse to the nodes using your web browser: Router: http://[aaaa::0212:7401:0001:0101]/ Node 2: http://[aaaa::0212:7402:0002:0202]/
-
Program the nodes with the websense application
make TARGET=sky sky-websense.upload
-
Disconnect the nodes and program one node with the RPL border router
cd ../rpl-border-router && make TARGET=sky border-router.upload
-
Connect to the border router using tunslip6:
make connect-router
-
Reboot the router and note the router IP address
-
You should now be able to browse to your router node using your web browser: http://[]/. On this page you should see a list of all accessible nodes with their IP addresses.
=======