Update README

This commit is contained in:
Martin Lund 2024-04-29 16:05:14 +02:00
parent e2960c3f82
commit c16a2a1f94

View file

@ -262,6 +262,11 @@ Pipe data to the serial device:
$ cat data.bin | tio /dev/ttyUSB0 $ cat data.bin | tio /dev/ttyUSB0
``` ```
Manipulate modem lines on connect:
```
$ tio --script "set{DTR=high,RTS=low}; msleep(100); set{DTR=toggle,RTS=toggle}" /dev/ttyUSB0
```
Pipe command to serial device and wait for line response within 1 second: Pipe command to serial device and wait for line response within 1 second:
``` ```
$ echo "*IDN?" | tio /dev/ttyACM0 --script "expect('\r\n', 1000)" --mute $ echo "*IDN?" | tio /dev/ttyACM0 --script "expect('\r\n', 1000)" --mute