Start from clean GIT
This commit is contained in:
commit
e841f14a95
2112 changed files with 6638085 additions and 0 deletions
1
experiments/debug/.loaded
Normal file
1
experiments/debug/.loaded
Normal file
|
@ -0,0 +1 @@
|
|||
90879
|
1
experiments/debug/88888.json
Normal file
1
experiments/debug/88888.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"type":"physical","duration":60,"name":"debug","reservation":null,"associations":null,"profiles":{"debug":{"nodearch":"m3","power":"dc","consumption":{"period":8244,"average":4,"current":false,"voltage":false,"power":false},"radio":{"period":null,"mode":"sniffer","channels":[16],"num_per_channel":null},"profilename":"debug"}},"mobilities":null,"nodes":["m3-91.lille.iot-lab.info","m3-108.lille.iot-lab.info"],"firmwareassociations":[{"nodes":["m3-91.lille.iot-lab.info"],"firmwarename":"rpl-eval-source.iotlab-m3"},{"nodes":["m3-108.lille.iot-lab.info"],"firmwarename":"rpl-eval-sink.iotlab-m3"}],"profileassociations":[{"nodes":["m3-91.lille.iot-lab.info","m3-108.lille.iot-lab.info"],"profilename":"debug"}],"siteassociations":null}
|
89
experiments/debug/hooks.sh
Normal file
89
experiments/debug/hooks.sh
Normal file
|
@ -0,0 +1,89 @@
|
|||
#!/bin/sh
|
||||
|
||||
# in seconds
|
||||
PERIOD=600
|
||||
RESETGUARD=60
|
||||
SINK=157
|
||||
LOCATION="lille"
|
||||
PLATFORM="iotlab-m3"
|
||||
ARCH="m3"
|
||||
RESET=200
|
||||
|
||||
_resources() {
|
||||
experiment-cli get -r
|
||||
}
|
||||
|
||||
_reset_node() { # 1: node
|
||||
# pick random point in time between guard times
|
||||
SELECTED=$(shuf -i ${RESETGUARD}-$((${PERIOD}-${RESETGUARD})) -n 1)
|
||||
sleep ${SELECTED}
|
||||
iotlab-node -sto -l "${LOCATION},${ARCH},${1}"
|
||||
iotlab-node -sta -l "${LOCATION},${ARCH},${1}"
|
||||
}
|
||||
|
||||
# for some reason, no DAG is built if all nodes start up simultaneously
|
||||
_phased_start() {
|
||||
iotlab-node -sto
|
||||
iotlab-node -sta -l lille,m3,47+49+51+53+${SINK}
|
||||
sleep 5
|
||||
iotlab-node -sta
|
||||
}
|
||||
|
||||
_run_firmware() {
|
||||
echo "Flashing ${1} and ${2}"
|
||||
iotlab-node -up ${1} -e "${LOCATION},${ARCH},${SINK}"
|
||||
iotlab-node -up ${2} -l "${LOCATION},${ARCH},${SINK}"
|
||||
|
||||
sleep ${PERIOD}
|
||||
|
||||
_reset_node ${RESET} &
|
||||
sleep ${PERIOD}
|
||||
}
|
||||
|
||||
_recompile_firmwares() { # 1: BUILDDIR, 2: EXPDIR
|
||||
|
||||
echo Recompiling firmwares
|
||||
|
||||
make -C ${1} TARGET=iotlab-m3 clean
|
||||
rm ${1}/rpl-eval-sink.${PLATFORM}
|
||||
rm ${1}/rpl-eval-source.${PLATFORM}
|
||||
make -C ${1} -j4 TARGET=iotlab-m3 WITH_COMPOWER=1
|
||||
install ${1}/rpl-eval-sink.${PLATFORM} ${2}/n-sink
|
||||
install ${1}/rpl-eval-source.${PLATFORM} ${2}/n-source
|
||||
|
||||
make -C ${1} TARGET=iotlab-m3 clean
|
||||
rm ${1}/rpl-eval-sink.${PLATFORM}
|
||||
rm ${1}/rpl-eval-source.${PLATFORM}
|
||||
make -C ${1} -j4 TARGET=iotlab-m3 WITH_COMPOWER=1 RPL_RESTORE=1
|
||||
install ${1}/rpl-eval-sink.${PLATFORM} ${2}/h-sink
|
||||
install ${1}/rpl-eval-source.${PLATFORM} ${2}/h-source
|
||||
|
||||
make -C ${1} TARGET=iotlab-m3 clean
|
||||
rm ${1}/rpl-eval-sink.${PLATFORM}
|
||||
rm ${1}/rpl-eval-source.${PLATFORM}
|
||||
make -C ${1} -j4 TARGET=iotlab-m3 WITH_COMPOWER=1 RPL_RESTORE=1 RPL_RESTORE_USE_UIDS=1
|
||||
install ${1}/rpl-eval-sink.${PLATFORM} ${2}/hs-sink
|
||||
install ${1}/rpl-eval-source.${PLATFORM} ${2}/hs-source
|
||||
}
|
||||
|
||||
pre() { # 1: expdir
|
||||
|
||||
if [ -z ${BUILDDIR+x} ]; then
|
||||
echo "BUILDDIR not defined..."
|
||||
BUILDDIR="/home/tim/src/contiki-inga/examples/ipv6/rpl-print-topo"
|
||||
fi
|
||||
|
||||
if [ ! -z ${WITH_RECOMPILE+x} ]; then
|
||||
_recompile_firmwares ${BUILDDIR} ${1}
|
||||
fi
|
||||
}
|
||||
|
||||
during() { # 1: expdir
|
||||
_run_firmware ${1}/n-source ${1}/n-sink
|
||||
_run_firmware ${1}/h-source ${1}/h-sink
|
||||
_run_firmware ${1}/hs-source ${1}/hs-sink
|
||||
}
|
||||
|
||||
post() {
|
||||
echo Finishing experiment $1
|
||||
}
|
BIN
experiments/debug/rpl-eval-sink.iotlab-m3
Executable file
BIN
experiments/debug/rpl-eval-sink.iotlab-m3
Executable file
Binary file not shown.
BIN
experiments/debug/rpl-eval-source.iotlab-m3
Executable file
BIN
experiments/debug/rpl-eval-source.iotlab-m3
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue