From 249d3941d6b12b894689e4cae0a9b1796193db2c Mon Sep 17 00:00:00 2001 From: trotFunky Date: Tue, 12 Dec 2017 23:04:56 +0100 Subject: [PATCH] =?UTF-8?q?Script=20pour=20chopper=20l'output=20de=20la=20?= =?UTF-8?q?s=C3=A9rie=20et=20les=20foutre=20sous=20tableau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Perso/serialToCSV.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Perso/serialToCSV.sh diff --git a/Perso/serialToCSV.sh b/Perso/serialToCSV.sh new file mode 100755 index 0000000..aadd5df --- /dev/null +++ b/Perso/serialToCSV.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok + +rm -f ./serialOutput/serialOutput.csv +touch ./serialOutput/serialOutput.csv + +while true; do + read line < /dev/ttyACM0 + echo $line >> ./serialOutput/serialOutput.csv +done + +python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py \ No newline at end of file