WiSHFUL coexistence demo (blacklisting)ΒΆ
setup portable testbed (server / switch / nucs / rm090)
create and swap-in experiment with jFed
open ssh to each nuc and close it again
open ssh to each nuc
cd /groups/portable-ilabt-iminds-be/wishful/repos/contiki/ ; git pull
cd ../taisc/ ; svn update [optional] pico .subversion/servers [optional] http-proxy-host = proxy2.intec.ugent.be [optional] http-proxy-port = 8080
check symbolic links:
``ll compiler/`` => lrwxrwxrwx 1 mkulin por-wishful 20 May 10 12:48 taisc.h -> taisc_P_rm090_D_la.h
copy chain to contiki folder:
cp examples/Wishful-chain.c ../contiki/platform/rm090/chain.c
check symbolic links:
ll ../contiki/platform/rm090/ => lrwxrwxrwx 1 mkulin por-wishful 69 Jun 16 17:47 taisc.h -> /groups/portable-ilabt-iminds-be/wishful/repos/taisc/compiler/taisc.h => lrwxrwxrwx 1 mkulin por-wishful 72 Jun 16 17:49 taisc.o -> /groups/portable-ilabt-iminds-be/wishful/repos/taisc/vm/rm090/taisc_la.o
create sensor binary:
cd ../contiki/examples/rime/ ./createBinaryTestbed [optional] sudo pip install crc16
copy binary to default dir:
cp example-unicast.rm090 ../../../../scripts/binaries/Wishful-application.rm090
flash nodes
flash sensor nodes with correct short address on all nucs:
cd /groups/portable-ilabt-iminds-be/wishful/scripts ./flash_nodes X (X = short_address of first node (/dev/ttyUSB0), takes +1 for every other sensor attached to that nuc) example: nuc1: ./flash_nodes 1 nuc2: ./flash_nodes 5 nuc3: ./flash_nodes 9 ...
goto wishful directory and export python path:
cd /groups/portable-ilabt-iminds-be/wishful/repos/wishful_upis export PYTHONPATH=$(pwd)
run control program. example:
python examples/showcase2/start_blacklisting_local.py -n 32 -c examples/showcase2/blacklisting_global.ini -f portable -m OML