e0a140b5e744a08d396ec34995349a44c0e1954e
[pingpong.git] / Code / Projects / SmartPlugDetector / execute_layer2_smarthome_all_detection_results_analysis.sh
1 #!/bin/bash
2
3 # Base directory where the smarthome evaluation traces and timestamp files are stored,
4 # (i.e., /some/arbitrary/local/path/experimental_result/smarthome)
5 TIMESTAMPS_BASE_DIR=$1
6 readonly TIMESTAMPS_BASE_DIR
7
8 # Base directory for the detection results files for the smarthome experiment
9 RESULTS_BASE_DIR=$2
10 readonly RESULTS_BASE_DIR
11
12
13
14 # ==================================================== ARLO CAMERA =====================================================
15 TIMESTAMPS_FILE="$TIMESTAMPS_BASE_DIR/arlo-camera/timestamps/arlo-camera-smarthome-nov-15-2018.timestamps"
16 RESULTS_FILE="$RESULTS_BASE_DIR/arlo-camera/arlo-camera.wlan1.detection.pcap___phone-side.detectionresults"
17 # Put the analysis results in the same folder as the detection results.
18 ANALYSIS_RESULTS_FILE="$RESULTS_FILE.analysis"
19
20
21 PROGRAM_ARGS="'$TIMESTAMPS_FILE' '$RESULTS_FILE' '$ANALYSIS_RESULTS_FILE'"
22 ./gradlew run -DmainClass=edu.uci.iotproject.evaluation.DetectionResultsAnalyzer --args="$PROGRAM_ARGS"
23 # ======================================================================================================================
24
25
26
27 # ==================================================== TP-LINK PLUG ====================================================
28 TIMESTAMPS_FILE="$TIMESTAMPS_BASE_DIR/tplink-plug/timestamps/tplink-plug-smarthome-nov-9-2018.timestamps"
29
30 # DEVICE SIDE
31 RESULTS_FILE="$RESULTS_BASE_DIR/tplink-plug/tplink-plug.wlan1.detection.pcap___device-side.detectionresults"
32 ANALYSIS_RESULTS_FILE="$RESULTS_FILE.analysis"
33 PROGRAM_ARGS="'$TIMESTAMPS_FILE' '$RESULTS_FILE' '$ANALYSIS_RESULTS_FILE'"
34 ./gradlew run -DmainClass=edu.uci.iotproject.evaluation.DetectionResultsAnalyzer --args="$PROGRAM_ARGS"
35
36 # DEVICE SIDE OUTBOUND
37 RESULTS_FILE="$RESULTS_BASE_DIR/tplink-plug/tplink-plug.wlan1.detection.pcap___device-side-outbound.detectionresults"
38 ANALYSIS_RESULTS_FILE="$RESULTS_FILE.analysis"
39 PROGRAM_ARGS="'$TIMESTAMPS_FILE' '$RESULTS_FILE' '$ANALYSIS_RESULTS_FILE'"
40 ./gradlew run -DmainClass=edu.uci.iotproject.evaluation.DetectionResultsAnalyzer --args="$PROGRAM_ARGS"
41 # ======================================================================================================================