8 [ "$INTERACTIVE" ] && read -p "Press a key to continue" || :
12 if ! [ "$INTERACTIVE" ]; then echo "Skipping interactive test $0"; exit 0; fi
14 sshgw cangw -A -s can0 -d can1
15 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -n len2
17 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 4) -n len4
19 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 6) -n len6
21 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n len8
24 ADDITIONAL_PLOTS=detail
27 if [[ "$1" = detail ]]; then
32 echo "set logscale xy"
35 set title "Measurment precission: PC versus CANalyzer"
37 set grid xtics mxtics ytics mytics lw 1, lw 0.5
38 set xlabel "Time [ms]"
39 set ylabel "Latency profile [messages]"
40 plot [$range] [1:$COUNT] \
41 "len2-hist.txt" with lp lc 1 lt 1 title "PC: 2 byte messages", \
42 "len4-hist.txt" with lp lc 2 lt 1 title "PC: 4 byte messages", \
43 "len6-hist.txt" with lp lc 3 lt 1 title "PC: 6 byte messages", \
44 "len8-hist.txt" with lp lc 4 lt 1 title "PC: 8 byte messages", \
45 "canalyzer-2-hist.txt" with lp lc 1 lt 2 title "CANalyzer: 2 byte messages", \
46 "canalyzer-4-hist.txt" with lp lc 2 lt 2 title "CANalyzer: 4 byte messages", \
47 "canalyzer-6-hist.txt" with lp lc 3 lt 2 title "CANalyzer: 6 byte messages", \
48 "canalyzer-8-hist.txt" with lp lc 4 lt 2 title "CANalyzer: 8 byte messages"