Linux/tio

From Omnia
Revision as of 23:33, 7 September 2022 by Kenneth (talk | contribs) (→‎Source Method)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

tio

tio - https://tio.github.io/

installation

Source Method

source: https://github.com/tio/tio

# Ubuntu Dependencies
apt install autoconf gcc make git
# RedHat Dependencies
yum install autogen autoconf automake gcc make git
mkdir ~/.src ; cd ~/.src
git clone https://github.com/tio/tio.git
cd tio
#git checkout v1.30
git checkout v1.32
sh autogen.sh
./configure
make
sudo make install

Version 1.30 provides -m INLCRNL option, for force new lines in output.

echo "alias tio='tio -m INLCRNL'" >> ~/.bashrc
alias tio='tio -m INLCRNL'

Uninstall Source Method

cd ~/.src/tio
make uninstall

tar method

mkdir ~/.src ; cd ~/.src
# wget https://github.com/tio/tio/releases/download/v1.20/tio-1.20.tar.xz
# tar -avxf tio-1.20.tar.xz
wget https://github.com/tio/tio/releases/download/v1.32/tio-1.32.tar.xz
tar -avxf tio-1.32.tar.xz
cd tio-1.32
./configure
make && make install

usage

tio -b 115200 /dev/ttyUSB8

example

# tio -b 115200 /dev/ttyUSB7
[tio 16:53:30] tio v1.20
[tio 16:53:30] Press ctrl-t q to quit
[tio 16:53:30] Connected

references

https://askubuntu.com/questions/40959/how-do-i-connect-to-tty-com-dev-ttyusb0/40970

https://software.intel.com/en-us/setting-up-serial-terminal-on-system-with-linux

https://embeddedfreak.wordpress.com/2008/08/12/using-gnu-screen-to-debug-your-serial-port/

Cygwin

See Cygwin#tio