Collect View is a Contiki tool to collect and visualize data from a mote (including energy consumption)
Requirements
- 01 Host machine (Windows or Linux TI MSP430 toolchain)
- 02 TelosB motes
Motes setup
- Use InstantContiki or Linux with TI MSP430 toolchain (see
here)
- Connect 02 motes
- Build and upload udp-sink (sink node) and udp-sender (send node
cd examples/ipv6/rpl-collect
make PERIOD=10 (sending every 10sec) if this doesn't work change in the source file
collect-common.c #define PERIOD 10
make TARGET=sky MOTES=/dev/ttyUSB0 udp-sink.upload
make TARGET=sky MOTES=/dev/ttyUSB1 udp-sender.upload
Windows environment setup
- Download Contiki source (contiki-2.7)
- Download ANT and extract to a folder (E:\dev\apache-ant-1.9.3)
- Add System Environment variable ANT_HOME=E:\dev\apache-ant-1.9.3
- Add %ANT_HOME%\bin to your PATH
build.xml fix (for Windows)
- Remove the
collect-view-shell.ihex part (it is used to compile collect example and copy to the dist folder)
<target name="collect-view-shell.ihex"
<target name="dist" depends="jar,collect-view-shell.ihex">
Go and rock
- Connect sink node to the host machin
- Run Terminal or cmd (Windows with administrator)
cd contiki-2.7\tools\collect-view
ant (building)
cd dist
java -jar collect-view.jar /dev/com6 (Windows, COM6 is the device port)
sudo java -jar collect-view.jar /dev/ttyUSB0 (Linux, ttyUSB0 is the device port)
Click
Start Collect