X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/b6a48d7f59692de4091ddd8447a6642f9008a271..ee367e21f2ccb37e6593c2545658280ec815ca88:/gw-tests/filter-sff.sh diff --git a/gw-tests/filter-sff.sh b/gw-tests/filter-sff.sh index 547bb10..a597954 100755 --- a/gw-tests/filter-sff.sh +++ b/gw-tests/filter-sff.sh @@ -4,10 +4,13 @@ ids="0 $(seq 255 256 2047)" -main() { +prepare() { sshgw 'for i in `seq 0 2047`; do cangw -A -s can0 -d can1 -f $(printf %x $i):c00007ff; done' +} + +main() { for i in $ids; do - latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -h hist-$i.dat -f time-$i.dat + latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -n id-$i done } @@ -22,7 +25,7 @@ plot [0:1500] [1:$COUNT] \\ EOF lt=1 for i in $ids; do - echo_plot "\"hist-$i.dat\" with lp lt $lt title \"Message id $i\"" + echo_plot "\"id-$i-hist.txt\" with lp lt $lt title \"Message id $i\"" lt=$((lt+1)) done echo