rough accelleration stuff
This commit is contained in:
parent
1088c402ad
commit
703d812b85
8 changed files with 131 additions and 21 deletions
|
|
@ -1,3 +1,3 @@
|
|||
# socat -d -d READLINE /dev/tty.usbserial-A9007QcR,clocal=1,nonblock=1,cread=1,cs8,ixon=1,ixoff=1
|
||||
socat -d -d READLINE /dev/tty.FireFly-A964-SPP-1,clocal=1,nonblock=1,cread=1,cs8,ixon=1,ixoff=1
|
||||
socat -d -d READLINE /dev/tty.usbserial-A9007QcR,clocal=1,nonblock=1,cread=1,cs8,ixon=1,ixoff=1
|
||||
#socat -d -d READLINE /dev/tty.FireFly-A964-SPP-1,clocal=1,nonblock=1,cread=1,cs8,ixon=1,ixoff=1
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@ if ARGV.empty?
|
|||
exit
|
||||
end
|
||||
|
||||
SerialPort.open('/dev/tty.FireFly-A964-SPP-1', 115200) do |sp|
|
||||
# SerialPort.open('/dev/tty.FireFly-A964-SPP-1', 115200) do |sp|
|
||||
SerialPort.open('/dev/tty.usbserial-A9007QcR', 9600) do |sp|
|
||||
|
||||
sp.write("\r\n\r\n");
|
||||
sleep 1
|
||||
ARGV.each do |file|
|
||||
|
|
@ -44,4 +46,6 @@ SerialPort.open('/dev/tty.FireFly-A964-SPP-1', 115200) do |sp|
|
|||
end
|
||||
end
|
||||
end
|
||||
puts "Done."
|
||||
sleep 500
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue