From: Janus Varmarken Date: Sat, 19 Jan 2019 09:16:47 +0000 (-0800) Subject: Add script that analyzes results of smarthome detection experiments for 2 devices... X-Git-Url: http://plrg.eecs.uci.edu/git/?p=pingpong.git;a=commitdiff_plain;h=c007cbbd22ef8eb5351a2b08a8de4ab05e0d589c Add script that analyzes results of smarthome detection experiments for 2 devices. Still need to add remaining devices to this script. --- diff --git a/Code/Projects/SmartPlugDetector/execute_layer2_smarthome_all_detection_results_analysis.sh b/Code/Projects/SmartPlugDetector/execute_layer2_smarthome_all_detection_results_analysis.sh new file mode 100755 index 0000000..e0a140b --- /dev/null +++ b/Code/Projects/SmartPlugDetector/execute_layer2_smarthome_all_detection_results_analysis.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Base directory where the smarthome evaluation traces and timestamp files are stored, +# (i.e., /some/arbitrary/local/path/experimental_result/smarthome) +TIMESTAMPS_BASE_DIR=$1 +readonly TIMESTAMPS_BASE_DIR + +# Base directory for the detection results files for the smarthome experiment +RESULTS_BASE_DIR=$2 +readonly RESULTS_BASE_DIR + + + +# ==================================================== ARLO CAMERA ===================================================== +TIMESTAMPS_FILE="$TIMESTAMPS_BASE_DIR/arlo-camera/timestamps/arlo-camera-smarthome-nov-15-2018.timestamps" +RESULTS_FILE="$RESULTS_BASE_DIR/arlo-camera/arlo-camera.wlan1.detection.pcap___phone-side.detectionresults" +# Put the analysis results in the same folder as the detection results. +ANALYSIS_RESULTS_FILE="$RESULTS_FILE.analysis" + + +PROGRAM_ARGS="'$TIMESTAMPS_FILE' '$RESULTS_FILE' '$ANALYSIS_RESULTS_FILE'" +./gradlew run -DmainClass=edu.uci.iotproject.evaluation.DetectionResultsAnalyzer --args="$PROGRAM_ARGS" +# ====================================================================================================================== + + + +# ==================================================== TP-LINK PLUG ==================================================== +TIMESTAMPS_FILE="$TIMESTAMPS_BASE_DIR/tplink-plug/timestamps/tplink-plug-smarthome-nov-9-2018.timestamps" + +# DEVICE SIDE +RESULTS_FILE="$RESULTS_BASE_DIR/tplink-plug/tplink-plug.wlan1.detection.pcap___device-side.detectionresults" +ANALYSIS_RESULTS_FILE="$RESULTS_FILE.analysis" +PROGRAM_ARGS="'$TIMESTAMPS_FILE' '$RESULTS_FILE' '$ANALYSIS_RESULTS_FILE'" +./gradlew run -DmainClass=edu.uci.iotproject.evaluation.DetectionResultsAnalyzer --args="$PROGRAM_ARGS" + +# DEVICE SIDE OUTBOUND +RESULTS_FILE="$RESULTS_BASE_DIR/tplink-plug/tplink-plug.wlan1.detection.pcap___device-side-outbound.detectionresults" +ANALYSIS_RESULTS_FILE="$RESULTS_FILE.analysis" +PROGRAM_ARGS="'$TIMESTAMPS_FILE' '$RESULTS_FILE' '$ANALYSIS_RESULTS_FILE'" +./gradlew run -DmainClass=edu.uci.iotproject.evaluation.DetectionResultsAnalyzer --args="$PROGRAM_ARGS" +# ====================================================================================================================== \ No newline at end of file