Update README

This commit is contained in:
Martin Lund 2024-09-25 20:51:40 +02:00
parent 4034d0ad51
commit d494b9d3ac

View file

@ -232,19 +232,24 @@ Connect automatically to latest registered serial device:
$ tio --auto-connect latest $ tio --auto-connect latest
``` ```
It is also possible to use exclude options to affect which serial devices are It is possible to use exclude options to affect which serial devices are
involved in the automatic connection strategy: involved in the automatic connection strategy:
``` ```
$ tio --auto-connect new --exclude-devices "/dev/ttyACM?,/dev/ttyUSB2" $ tio --auto-connect new --exclude-devices "/dev/ttyACM?,/dev/ttyUSB2"
``` ```
Exclude drivers by pattern: And to exclude drivers by pattern:
``` ```
$ tio --auto-connect new --exclude-drivers "cdc_acm,ftdi_sio" $ tio --auto-connect new --exclude-drivers "cdc_acm,ftdi_sio"
``` ```
Note: Pattern matching supports '*' and '?'. Use comma separation to define Note: Pattern matching supports '*' and '?'. Use comma separation to define
multiple patterns. multiple patterns.
To include drivers by specific pattern simply negate the exclude option:
```
$ tio --auto-connect new --exclude-drivers !("cp2102")
```
Log to file with autogenerated filename: Log to file with autogenerated filename:
``` ```
$ tio --log /dev/ttyUSB0 $ tio --log /dev/ttyUSB0