working on serial protocol

This commit is contained in:
2019-01-28 14:42:33 +01:00
parent 054d0f574c
commit 15c6cbd8ae
5 changed files with 25 additions and 7 deletions

View File

@@ -5,18 +5,18 @@ DATAFILE="foo.dat"
TMPFILE="/tmp/dd2data"
IMAGE="graphe.png"
NB_READ=25000
NB_READ=25
./t -v -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
./t -vv -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
gnuplot << __EOC__
set term png size 3200,512
set output "${IMAGE}"
set grid
set title "Dans le Double Dragon 2"
set title "Temperature dans le Double Dragon 2"
set xdata time
set timefmt "%s"
set format x "%H:%M:%S"
set format x "%a, %H:%M:%S"
set yrange [ 5.0 : 30.0]
plot "${DATAFILE}" using 1:2 title " foo" with lines, \
"${DATAFILE}" using 1:3 title " bar" with lines, \