Y
Y
Yu Yu2017-05-16 09:00:48
linux
Yu Yu, 2017-05-16 09:00:48

How to work with com port in Linux?

Before working with the serial port, for example:

cat /dev/ttyUSB0
echo "1" > /dev/ttyUSB0

I have to do this:
sudo chmod 666 /dev/ttyUSB0
What kind of rights do I give to the COM port and how can I make it so that I don't have to do it every time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-05-16
@xztau

Add the user under which the command is run to the dialout group
For chmod see here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question