Start from clean GIT
This commit is contained in:
commit
e841f14a95
2112 changed files with 6638085 additions and 0 deletions
1
experiments/hsr/103588.json
Normal file
1
experiments/hsr/103588.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"type":"physical","duration":70,"name":"hsr","reservation":null,"associations":null,"profiles":{"rpltopo":{"nodearch":"m3","power":"dc","consumption":{"period":588,"average":1024,"current":false,"voltage":false,"power":true},"radio":null,"profilename":"rpltopo"}},"mobilities":null,"nodes":["m3-47.lille.iot-lab.info","m3-49.lille.iot-lab.info","m3-51.lille.iot-lab.info","m3-53.lille.iot-lab.info","m3-57.lille.iot-lab.info","m3-59.lille.iot-lab.info","m3-83.lille.iot-lab.info","m3-85.lille.iot-lab.info","m3-87.lille.iot-lab.info","m3-89.lille.iot-lab.info","m3-91.lille.iot-lab.info","m3-93.lille.iot-lab.info","m3-95.lille.iot-lab.info","m3-123.lille.iot-lab.info","m3-127.lille.iot-lab.info","m3-131.lille.iot-lab.info","m3-133.lille.iot-lab.info","m3-151.lille.iot-lab.info","m3-153.lille.iot-lab.info","m3-155.lille.iot-lab.info","m3-157.lille.iot-lab.info","m3-159.lille.iot-lab.info","m3-161.lille.iot-lab.info","m3-192.lille.iot-lab.info","m3-194.lille.iot-lab.info","m3-196.lille.iot-lab.info","m3-198.lille.iot-lab.info","m3-200.lille.iot-lab.info","m3-202.lille.iot-lab.info","m3-204.lille.iot-lab.info","m3-218.lille.iot-lab.info","m3-220.lille.iot-lab.info","m3-222.lille.iot-lab.info","m3-224.lille.iot-lab.info","m3-226.lille.iot-lab.info","m3-228.lille.iot-lab.info","m3-230.lille.iot-lab.info","m3-244.lille.iot-lab.info","m3-246.lille.iot-lab.info","m3-248.lille.iot-lab.info","m3-250.lille.iot-lab.info","m3-239.lille.iot-lab.info","m3-254.lille.iot-lab.info","m3-256.lille.iot-lab.info"],"firmwareassociations":null,"profileassociations":[{"nodes":["m3-123.lille.iot-lab.info","m3-127.lille.iot-lab.info","m3-131.lille.iot-lab.info","m3-133.lille.iot-lab.info","m3-151.lille.iot-lab.info","m3-153.lille.iot-lab.info","m3-155.lille.iot-lab.info","m3-157.lille.iot-lab.info","m3-159.lille.iot-lab.info","m3-161.lille.iot-lab.info","m3-192.lille.iot-lab.info","m3-194.lille.iot-lab.info","m3-196.lille.iot-lab.info","m3-198.lille.iot-lab.info","m3-200.lille.iot-lab.info","m3-202.lille.iot-lab.info","m3-204.lille.iot-lab.info","m3-218.lille.iot-lab.info","m3-220.lille.iot-lab.info","m3-222.lille.iot-lab.info","m3-224.lille.iot-lab.info","m3-226.lille.iot-lab.info","m3-228.lille.iot-lab.info","m3-230.lille.iot-lab.info","m3-244.lille.iot-lab.info","m3-246.lille.iot-lab.info","m3-248.lille.iot-lab.info","m3-250.lille.iot-lab.info","m3-239.lille.iot-lab.info","m3-254.lille.iot-lab.info","m3-256.lille.iot-lab.info","m3-47.lille.iot-lab.info","m3-49.lille.iot-lab.info","m3-51.lille.iot-lab.info","m3-53.lille.iot-lab.info","m3-57.lille.iot-lab.info","m3-59.lille.iot-lab.info","m3-83.lille.iot-lab.info","m3-85.lille.iot-lab.info","m3-87.lille.iot-lab.info","m3-89.lille.iot-lab.info","m3-91.lille.iot-lab.info","m3-93.lille.iot-lab.info","m3-95.lille.iot-lab.info"],"profilename":"rpltopo"}],"siteassociations":null}
|
BIN
experiments/hsr/h-sink
Executable file
BIN
experiments/hsr/h-sink
Executable file
Binary file not shown.
BIN
experiments/hsr/h-source
Executable file
BIN
experiments/hsr/h-source
Executable file
Binary file not shown.
83
experiments/hsr/hooks.sh
Normal file
83
experiments/hsr/hooks.sh
Normal file
|
@ -0,0 +1,83 @@
|
|||
#!/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}
|
||||
|
||||
iotlab-node -sto
|
||||
iotlab-node -sta
|
||||
|
||||
_reset_node ${RESET} &
|
||||
sleep ${PERIOD}
|
||||
}
|
||||
|
||||
_recompile_firmware() { # 1: BUILDDIR, 2: EXPDIR, 3: MODE, 4: OPTS
|
||||
|
||||
echo Recompiling firmware ${3}
|
||||
|
||||
rm ${1}/rpl-eval-sink.${PLATFORM}
|
||||
make -C ${1} TARGET=${PLATFORM} clean
|
||||
make -C ${1} -j4 TARGET=${PLATFORM} WITH_RPL_RESTORE_NO_INVOKE=1 $4
|
||||
install ${1}/rpl-eval-sink.${PLATFORM} ${2}/${3}-sink
|
||||
|
||||
rm ${1}/rpl-eval-source.${PLATFORM}
|
||||
make -C ${1} TARGET=${PLATFORM} clean
|
||||
make -C ${1} -j4 TARGET=${PLATFORM} $4
|
||||
install ${1}/rpl-eval-source.${PLATFORM} ${2}/${3}-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_firmware ${BUILDDIR} ${1} "n" ""
|
||||
_recompile_firmware ${BUILDDIR} ${1} "h" "RPL_RESTORE=1"
|
||||
_recompile_firmware ${BUILDDIR} ${1} "hs" "RPL_RESTORE=1 RPL_RESTORE_USE_UIDS=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/hsr/hs-sink
Executable file
BIN
experiments/hsr/hs-sink
Executable file
Binary file not shown.
BIN
experiments/hsr/hs-source
Executable file
BIN
experiments/hsr/hs-source
Executable file
Binary file not shown.
BIN
experiments/hsr/n-sink
Executable file
BIN
experiments/hsr/n-sink
Executable file
Binary file not shown.
BIN
experiments/hsr/n-source
Executable file
BIN
experiments/hsr/n-source
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue