2017-12-12 23:04:56 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
2017-12-13 17:05:03 +01:00
|
|
|
trap "boucle=false" INT
|
|
|
|
trap "boucle=false" TERM
|
|
|
|
boucle=true
|
|
|
|
|
2017-12-12 23:04:56 +01:00
|
|
|
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
|
|
|
|
|
|
|
|
rm -f ./serialOutput/serialOutput.csv
|
|
|
|
touch ./serialOutput/serialOutput.csv
|
|
|
|
|
2017-12-13 17:05:03 +01:00
|
|
|
while $boucle; do
|
2017-12-12 23:04:56 +01:00
|
|
|
read line < /dev/ttyACM0
|
|
|
|
echo $line >> ./serialOutput/serialOutput.csv
|
2017-12-13 17:05:03 +01:00
|
|
|
done
|
2017-12-12 23:04:56 +01:00
|
|
|
|
|
|
|
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py
|