USB mux logger script fixed.
This commit is contained in:
parent
05dc2bf06b
commit
0e1c9b85bd
3 changed files with 8 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 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
|
||||
./readTTYToFile.sh /dev/ttyACM1 &
|
||||
|
@ -13,8 +13,9 @@ for i in `seq 0 7`;
|
|||
do
|
||||
echo "channel #"$i
|
||||
|
||||
pypy ./muxctrl.py -l $i
|
||||
python ./muxctrl.py -l $i -m
|
||||
|
||||
echo sleep 30 seconds
|
||||
sleep 30
|
||||
done
|
||||
|
||||
|
@ -23,5 +24,5 @@ sleep 3
|
|||
# TODO stop logging of the received data
|
||||
killall -12 readTTYToFile.sh
|
||||
|
||||
python ./muxctrl.py -g -m -l 0 -s 115200
|
||||
python ./muxctrl.py -b -m -l 0 -s 115200
|
||||
|
||||
|
|
|
@ -347,6 +347,7 @@ if __name__ == "__main__":
|
|||
# 1. open serial device or abort
|
||||
if args.device != None:
|
||||
device = args.device
|
||||
|
||||
openSerialDevice(device)
|
||||
|
||||
# 2. start thread to poll cc_dataReceiverThread()
|
||||
|
@ -438,3 +439,4 @@ if __name__ == "__main__":
|
|||
closeSerialDevice()
|
||||
|
||||
exit(0)
|
||||
|
||||
|
|
|
@ -22,3 +22,4 @@ while read line; do
|
|||
break
|
||||
fi
|
||||
done < $TTY_DEV
|
||||
|
||||
|
|
Loading…
Reference in a new issue