mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Replace existing toggle and pulse key commands with the following generalized key commands which allows to toggle or pulse all serial port lines: ctrl-t g Toggle serial port line ctrl-t p Pulse serial port line When used, user will be asked which serial line to toggle or pulse. Also introduce --line-pulse-duration option for setting specific pulse duration in milliseconds for each serial line using a key value pair format. Each key represents a serial line. The following keys are available: DTR, RTS, CTS, DSR, DCD, RI. Example: $ tio /dev/ttyUSB0 --line-pulse-duration DTR=200,RTS=300,RI=50 Likewise, the pulse duration can also be set via configuration file using the line-pulse-duration variable: line-pulse-duration = DTR=200,RTS=300,RI=50
47 lines
946 B
Text
47 lines
946 B
Text
###############################
|
|
# tio - https://tio.github.io #
|
|
###############################
|
|
|
|
# Example configuration file
|
|
|
|
# Defaults
|
|
baudrate = 115200
|
|
databits = 8
|
|
flow = none
|
|
stopbits = 1
|
|
parity = none
|
|
prefix-ctrl-key = t
|
|
output-delay = 0
|
|
output-line-delay = 0
|
|
dtr-pulse-duration = 0
|
|
no-autoconnect = disable
|
|
hexadecimal = disable
|
|
timestamp = disable
|
|
color = bold
|
|
|
|
# Sub-configuraions
|
|
|
|
[rpi3]
|
|
baudrate = 115200
|
|
tty = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6009HU3-if00-port0
|
|
socket = unix:/tmp/tio-socket-0
|
|
color = 9
|
|
|
|
[am64-evm]
|
|
baudrate = 115200
|
|
tty = /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_01093176-if01-port0
|
|
line-pulse-duration = DTR=200,RTS=300,RI=50
|
|
color = 10
|
|
|
|
[tincan]
|
|
baudrate = 9600
|
|
tty = /dev/serial/by-id/usb-TinCanTools_Flyswatter2_FS20000-if00-port0
|
|
log = enable
|
|
log-file = tincan.log
|
|
log-strip = enable
|
|
color = 11
|
|
|
|
[usb devices]
|
|
pattern = usb([0-9]*)
|
|
tty = /dev/ttyUSB%s
|
|
color = 12
|