General > General Technical Chat
tio - A simple serial device I/O tool for linux
lundmar:
--- Quote from: DiTBho on July 17, 2022, 10:32:28 am ---
--- Quote from: lundmar on June 12, 2022, 03:17:29 pm ---support for redirecting I/O to a file or network socket
--- End quote ---
yup, this is helpful for me
--- End quote ---
Yeah, it is a pretty useful feature for scripting or sharing the same tty device. This file socket feature was originally contributed by an engineer from Google. Since then I have extended it to support both ipv4 and ipv6 network sockets.
Recently tio was featured on Hackaday (https://hackaday.com/2022/07/13/tio-is-a-serial-terminal-for-us) and here someone mentioned that tio should support split I/O.
I plan to support that by allowing to split the input and output on independent socket ports and socket files. The idea is detailed in https://github.com/tio/tio/blob/master/TODO
DiTBho:
Great!
I Also appreciate the Pulse DTR command! It's very useful for me since I use the DTR pulse everywhere, from 68hc11, 683xx, to ESP32.
Two years ago, I had to * hack * the Linux kernel / device / char / serial to "remove" the automatic DTR pulse function (I don't know if USB serial kernel modules have it), otherwise every time I ran Minicom, the kernel driver sent out a DTR pulse (because associated with the "fopen device") and my target received a reset pulse.
Very annoying, especially if you use a program to send the code to the target, and Minicom to communicate.
I ended up removing all the lines causing it. :o :o :o
lundmar:
--- Quote from: DiTBho on July 17, 2022, 04:47:51 pm ---I Also appreciate the Pulse DTR command! It's very useful for me since I use the DTR pulse everywhere, from 68hc11, 683xx, to ESP32.
--- End quote ---
In the latest tio version I have reworked the toggle and pulse feature so you can now toggle or pulse any serial line (DTR, RTS, CTS, DSR, DCD, RI) which will come handy if an embedded target reacts to other lines. However, not all serial device hardware or drivers support toggling all lines but tio will attempt toggle either way. The pulse duration for each line can now be configured.
The details are described here: https://github.com/tio/tio/releases/tag/v1.46
lundmar:
tio v2.0 is now available here: https://github.com/tio/tio/releases/tag/v2.0
It includes a few new features which embedded people may find useful, such as RS-485 support and a new convenience feature which makes it easy to communicate with test instruments via serial port.
For example, to send a SCPI command and read response simply do:
--- Code: ---$ echo "*IDN?" | tio /dev/ttyACM0 --response-wait
KORAD KD3305P V4.2 SN:32475045
--- End code ---
It will take a while before the various Linux/BSD/Mac distributions catch up to v2.0 but until then the snap is readily available.
Also, tio v2.0 will soon be available as a MSYS2 package for Windows.
lundmar:
tio v2.1 released - full release note available here: https://github.com/tio/tio/releases/tag/v2.1
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version