mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add character mapping examples
This commit is contained in:
parent
27f8f2c4e6
commit
37994b3cc5
3 changed files with 15 additions and 0 deletions
|
|
@ -275,6 +275,11 @@ Redirect I/O to IPv4 network socket on port 4242:
|
|||
$ tio --socket inet:4242 /dev/ttyUSB0
|
||||
```
|
||||
|
||||
Map NL to CR-NL on input from device and DEL to BS on output to device:
|
||||
```
|
||||
$ tio --map INLCRNL,ODELBS /dev/ttyUSB0
|
||||
```
|
||||
|
||||
Pipe data to the serial device:
|
||||
```
|
||||
$ cat data.bin | tio /dev/ttyUSB0
|
||||
|
|
|
|||
|
|
@ -71,3 +71,8 @@ device = /dev/ttyUSB0
|
|||
color = 14
|
||||
script = set{DTR=high,RTS=low}; msleep(100); set{DTR=low,RTS=high}; msleep(100); set{RTS=low}
|
||||
script-run = always
|
||||
|
||||
[buspirate]
|
||||
device = /dev/ttyACM0
|
||||
map = INLCRNL,ODELBS
|
||||
color = 15
|
||||
|
|
|
|||
|
|
@ -751,6 +751,11 @@ Likewise, to pipe data from file to the serial device:
|
|||
|
||||
$ cat data.bin | tio /dev/serial/by\-id/usb\-FTDI_TTL232R-3V3_FTGQVXBL\-if00\-port0
|
||||
|
||||
.TP
|
||||
Map NL to CR-NL on input from device and DEL to BS on output to device:
|
||||
|
||||
$ tio --map INLCRNL,ODELBS /dev/ttyUSB0
|
||||
|
||||
.TP
|
||||
Enable RS-485 mode:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue