From 9e2dc2e6f48de25fa72c542cca7ccb078b2708b2 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 3 Sep 2009 17:38:28 +0200 Subject: [PATCH] Virtual device is tested with several delays The delays is the time between reception of a response and sending of the next ping message. --- tests/rtt-virtual.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/rtt-virtual.sh b/tests/rtt-virtual.sh index 70249cb..4c3d4c0 100755 --- a/tests/rtt-virtual.sh +++ b/tests/rtt-virtual.sh @@ -4,7 +4,9 @@ t() { PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN0` - vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 0 -c $COUNT + vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 0 -c $COUNT + vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-1 -t 1 -d $CAN0 -w 1 -c $COUNT + vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-2 -t 1 -d $CAN0 -w 2 -c $COUNT kill $PID_S } @@ -16,7 +18,11 @@ set logscale y set grid set xlabel "Time [ms]" set ylabel "Latency profile [messages]" -plot [0:] "socketcan-virtual-1000.dat" with lp title "Socketcan",\ - "lincan-virtual-1000.dat" with lp title "Lincan" +plot [0:] "socketcan-virtual-1000.dat" with lp title "Socketcan 0 ms delay",\ + "lincan-virtual-1000.dat" with lp title "Lincan 0 ms delay",\ + "socketcan-virtual-1-1000.dat" with lp lt 1 title "Socketcan 1 ms delay",\ + "lincan-virtual-1-1000.dat" with lp lt 2 title "Lincan 1 ms delay",\ + "socketcan-virtual-2-1000.dat" with lp lt 1 title "Socketcan 2 ms delay",\ + "lincan-virtual-2-1000.dat" with lp lt 2 title "Lincan 2 ms delay" EOF } -- 2.39.2