contiki/examples/z1/ipv6/z1-websense
2012-02-21 08:33:25 -05:00
..
example-sky-websense.csc
Makefile Made the sky and z1 platform handling of PROJECT_CONF_H the same as the other platforms: the makefile should define PROJECT_CONF_H to be the name of the header file to include. This header file should #undef everything it #defines, as it is included after all the other configuration options in contiki-conf.h 2011-09-05 11:46:15 +02:00
Makefile.target
project-conf.h
README
websense-remote.c
wget.c Converted u8_t to uint8_t and u16_t to uint16_t in the examples directory. 2012-02-21 08:33:25 -05:00
wget.h
z1-websense.c

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.


To test the example in COOJA under Linux
----------------------------------------

1. Start COOJA and load the simulation "example-z1-websense.csc"
> make TARGET=cooja example-z1-websense.csc

2. Connect to the COOJA simulation using tunslip6:
> make connect-router-cooja

3. 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]/


To run the example on real nodes under Linux
--------------------------------------------

1. Program the nodes with the websense application
> make TARGET=z1 z1-websense.upload

2. Disconnect the nodes and program one node with the RPL border router
> (cd ../rpl-border-router && make TARGET=z1 border-router.upload)

3. Connect to the border router using tunslip6:
> make connect-router

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.