summaryrefslogtreecommitdiff
path: root/tool/connect
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-05-08 15:51:35 -0700
committerJulian Blake Kongslie2022-05-08 15:51:35 -0700
commit38c5ae5b60eae9562b97da42f47af3861847f8e5 (patch)
tree556fd9e5c38fb2feea56ce5741ca02a5e110ad63 /tool/connect
parentMake the script for setting up the TTY actually connect. (diff)
downloadmultipdp8-38c5ae5b60eae9562b97da42f47af3861847f8e5.tar.xz
*Proper* serial port for memory downloads. 115200 8O2 RS232 with CRTRTS.
Diffstat (limited to 'tool/connect')
-rwxr-xr-xtool/connect13
1 files changed, 8 insertions, 5 deletions
diff --git a/tool/connect b/tool/connect
index 536db5b..f900e0c 100755
--- a/tool/connect
+++ b/tool/connect
@@ -1,21 +1,24 @@
1#!/bin/bash 1#!/bin/bash
2 2
3set -eux 3set -eu
4 4
5OLD_SETTINGS="$(stty -F /dev/ttyUSB0 -g)" 5OLD_SETTINGS="$(stty -g -F /dev/ttyUSB0)"
6 6
7stty -F /dev/ttyUSB0 \ 7stty -F /dev/ttyUSB0 \
8 115200 \ 8 115200 \
9 -drain \ 9 -drain \
10 -clocal \ 10 -clocal \
11 cread \ 11 cread \
12 -crtscts \ 12 crtscts \
13 cs8 \ 13 cs8 \
14 cstopb \ 14 cstopb \
15 -hup \ 15 -hup \
16 parenb \ 16 parenb \
17 -parodd \ 17 parodd \
18 -cmspar \
18 -igncr \ 19 -igncr \
20 ignpar \
21 -parmrk \
19 inpck \ 22 inpck \
20 -istrip \ 23 -istrip \
21 -ixany \ 24 -ixany \
@@ -26,4 +29,4 @@ stty -F /dev/ttyUSB0 \
26 29
27con /dev/ttyUSB0 || true 30con /dev/ttyUSB0 || true
28 31
29stty -F "$OLD_SETTINGS" 32stty -drain "$OLD_SETTINGS" -F /dev/ttyUSB0 2> /dev/null