blob: f9463f2c53f3ff882a94bfdf06172f086f16a157 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
# Does lots of pokes, hopefully getting a response at some point.
export serialport=/dev/ttyUSB0
echo Using $serialport - edit the script to change this.
stty -F $serialport -echo -cooked
while (true)
do
echo 6|./poke -d 8 -t $serialport -v &
sleep 4
killall poke 2>/dev/null
sleep 1
killall poke 2>/dev/null
done
|