Rev | Author | Line No. | Line |
---|---|---|---|
2189 | kaklik | 1 | #!/bin/bash |
2 | echo "Openning serial line" |
||
3 | stty -F /dev/ttyUSB0 igncr -echo onocr icrnl speed 9600 |
||
4 | ./read.sh & |
||
5 | sleep 5 |
||
6 | |||
7 | while true; do |
||
8 | echo -e "Time measurement..... " |
||
9 | echo -e "M2 3\r\n" > "/dev/ttyUSB0" |
||
10 | sleep 1 |
||
11 | echo -e "Temperature measurement \r\n" |
||
12 | echo -e "TM\r\n" > "/dev/ttyUSB0" |
||
13 | sleep 5 |
||
14 | done |
||
15 |