mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Lua API moved into a tio library table and names adjusted to Lua stdlib style. Regex in expect() replaced with Lua patterns so binary data can be handled. New tio.alwaysecho variable allows enabling and disabling echo to console. Read and write functions now manage complex retry and timeout logic internally, giving the user a simple "nil if fail" API like the rest of Lua. exit() was removed, os.exit() already exists in the Lua standard library.
78 lines
1.6 KiB
Text
78 lines
1.6 KiB
Text
###############################
|
|
# tio - https://tio.github.io #
|
|
###############################
|
|
|
|
# Example tio configuration file
|
|
#
|
|
# Place file in any of the following locations:
|
|
# $XDG_CONFIG_HOME/tio/config
|
|
# $HOME/.config/tio/config
|
|
# $HOME/.tioconfig
|
|
|
|
[default]
|
|
baudrate = 115200
|
|
databits = 8
|
|
flow = none
|
|
stopbits = 1
|
|
parity = none
|
|
output-delay = 0
|
|
output-line-delay = 0
|
|
auto-connect = direct
|
|
no-reconnect = false
|
|
local-echo = false
|
|
input-mode = normal
|
|
output-mode = normal
|
|
timestamp = false
|
|
log = false
|
|
log-append = false
|
|
log-strip = false
|
|
color = bold
|
|
rs-485 = false
|
|
alert = none
|
|
script-run = always
|
|
prefix-ctrl-key = t
|
|
|
|
# Configuration profiles
|
|
|
|
[rpi3]
|
|
baudrate = 115200
|
|
device = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6009HU3-if00-port0
|
|
socket = unix:/tmp/tio-socket-0
|
|
color = 9
|
|
|
|
[am64-evm]
|
|
baudrate = 115200
|
|
device = /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
|
|
alert = bell
|
|
color = 10
|
|
|
|
[tincan]
|
|
baudrate = 9600
|
|
device = /dev/serial/by-id/usb-TinCanTools_Flyswatter2_FS20000-if00-port0
|
|
log = true
|
|
log-file = tincan.log
|
|
log-strip = true
|
|
color = 11
|
|
|
|
[usb-devices]
|
|
pattern = ^usb([0-9]*)
|
|
device = /dev/ttyUSB%m1
|
|
color = 12
|
|
|
|
[rs-485-device]
|
|
device = /dev/ttyUSB0
|
|
rs-485 = true
|
|
rs-485-config = RTS_ON_SEND=1,RTS_AFTER_SEND=1,RTS_DELAY_BEFORE_SEND=60,RTS_DELAY_AFTER_SEND=80,RX_DURING_TX
|
|
color = 13
|
|
|
|
[esp32]
|
|
device = /dev/ttyUSB0
|
|
color = 14
|
|
script = tio.set{DTR=high,RTS=low}; tio.msleep(100); tio.set{DTR=low,RTS=high}; tio.msleep(100); tio.set{RTS=low}
|
|
script-run = always
|
|
|
|
[buspirate]
|
|
device = /dev/ttyACM0
|
|
map = INLCRNL,ODELBS
|
|
color = 15
|