diff options
| -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 | ||
