diff options
| author | Julian Blake Kongslie | 2022-04-22 23:06:09 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-04-22 23:06:09 -0700 |
| commit | 4c712088c0a11b8b962d4b866e7972eebf8eb33e (patch) | |
| tree | 92e0d51e1a88e01ac48ce37e4099350b933bdbcb /tool/setup-rs232 | |
| parent | Oversample RS232 RX uart. (diff) | |
| download | multipdp8-4c712088c0a11b8b962d4b866e7972eebf8eb33e.tar.xz | |
Add a quick and dirty script to set expected RS232 terminal settings.
Diffstat (limited to 'tool/setup-rs232')
| -rwxr-xr-x | tool/setup-rs232 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tool/setup-rs232 b/tool/setup-rs232 new file mode 100755 index 0000000..689d838 --- /dev/null +++ b/tool/setup-rs232 | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | set -eux | ||
| 4 | |||
| 5 | stty -F /dev/ttyUSB0 \ | ||
| 6 | 115200 \ | ||
| 7 | -drain \ | ||
| 8 | -clocal \ | ||
| 9 | cread \ | ||
| 10 | -crtscts \ | ||
| 11 | cs8 \ | ||
| 12 | cstopb \ | ||
| 13 | -hup \ | ||
| 14 | parenb \ | ||
| 15 | -parodd \ | ||
| 16 | -igncr \ | ||
| 17 | inpck \ | ||
| 18 | -istrip \ | ||
| 19 | -ixany \ | ||
| 20 | -ixoff \ | ||
| 21 | -ixon \ | ||
| 22 | -echo \ | ||
| 23 | -icanon | ||
