From 4c712088c0a11b8b962d4b866e7972eebf8eb33e Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Fri, 22 Apr 2022 23:06:09 -0700 Subject: Add a quick and dirty script to set expected RS232 terminal settings. --- tool/setup-rs232 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 tool/setup-rs232 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 @@ +#!/bin/bash + +set -eux + +stty -F /dev/ttyUSB0 \ + 115200 \ + -drain \ + -clocal \ + cread \ + -crtscts \ + cs8 \ + cstopb \ + -hup \ + parenb \ + -parodd \ + -igncr \ + inpck \ + -istrip \ + -ixany \ + -ixoff \ + -ixon \ + -echo \ + -icanon -- cgit v1.2.3