E
E
eegmak2021-03-27 22:40:09
linux
eegmak, 2021-03-27 22:40:09

What console utility to transfer data to the usb-uart adapter in linux?

I flash the microcontroller via /dev/ttyUSB0 (usb-uart adapter is connected)
How can I connect to this adapter in the terminal to transfer characters to the controller?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Denis Yuriev, 2021-03-27
@eegmak

Let's say you have Ubuntu/Debian/Mint or a similar Linux distribution.

  1. screen :
    1. apt install screen
    2. screen /dev/ttyUSB0

  2. tio :
    1. apt install tio
    2. tio /dev/ttyUSB0

and a thousand more options

S
Saboteur, 2021-03-27
@saboteur_kiev

minicom
and in general it is possible to do echo

S
Sergey Karbivnichy, 2021-03-27
@hottabxp

CuteCom, PuTTY...

S
S-trace, 2021-03-31
@S-trace

cat file.bin > /dev/ttyUSB0
echo "ATSOMECOMMAND=1" > /dev/ttyUSB0
read -r response < /dev/ttyUSB0; echo "$response"
It may need to be configured via stty before that (wake rate, flow control, and so on).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question