USB mux logger script fixed.

This commit is contained in:
klaute 2016-08-31 18:23:38 +02:00
parent 05dc2bf06b
commit 0e1c9b85bd
3 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# reset the mux device to default values # reset the mux device to default values
python ./muxctrl.py -g -m -l 0 -s 115200 python ./muxctrl.py -b -m -l 0 -s 115200
# TODO start logging of the received data # TODO start logging of the received data
./readTTYToFile.sh /dev/ttyACM1 & ./readTTYToFile.sh /dev/ttyACM1 &
@ -13,8 +13,9 @@ for i in `seq 0 7`;
do do
echo "channel #"$i echo "channel #"$i
pypy ./muxctrl.py -l $i python ./muxctrl.py -l $i -m
echo sleep 30 seconds
sleep 30 sleep 30
done done
@ -23,5 +24,5 @@ sleep 3
# TODO stop logging of the received data # TODO stop logging of the received data
killall -12 readTTYToFile.sh killall -12 readTTYToFile.sh
python ./muxctrl.py -g -m -l 0 -s 115200 python ./muxctrl.py -b -m -l 0 -s 115200

View file

@ -347,6 +347,7 @@ if __name__ == "__main__":
# 1. open serial device or abort # 1. open serial device or abort
if args.device != None: if args.device != None:
device = args.device device = args.device
openSerialDevice(device) openSerialDevice(device)
# 2. start thread to poll cc_dataReceiverThread() # 2. start thread to poll cc_dataReceiverThread()
@ -438,3 +439,4 @@ if __name__ == "__main__":
closeSerialDevice() closeSerialDevice()
exit(0) exit(0)

View file

@ -22,3 +22,4 @@ while read line; do
break break
fi fi
done < $TTY_DEV done < $TTY_DEV