P
P
proger_102018-04-29 23:23:15
Arduino
proger_10, 2018-04-29 23:23:15

How to access "/dev/ttyUSB0"?

Hello.
Guys please help!
What I just did not do, on ubuntu, I'm trying to upload to the Arduino Ide on the board.
Everything compiles well, but when I send it to the board itself, I get the following error:
avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
ioctl("TIOCMGET"): Inappropriate ioctl for device
Problem uploading to board.

What I just didn’t try: I added my user to dialout, opened a folder through the administrator and assigned ttyUSB0 permissions for everyone to write and read, created a separate file that describes other rules for this interface, simply assigned rights via the console using chmod a +rw, and so on, so far nothing has helped!
I really hope for your help, because there must be a way to somehow upload a program on ubuntu to the board.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sirius Lee, 2018-05-03
@proger_10

I did this on xubuntu16:
sudo tar -xvf arduino-1.8.4-linux64.tar.xz -C /opt/
cd /opt/arduino-1.8.4/
chmod +x install.sh
./install.sh Adding
a user to dialout group:
sudo usermod -a -G dialout prog1
PS Modemmanager interferes with the work of M0 and Leonardo, I deleted it.
sudo apt-get remove modemmanager

J
jcmvbkbc, 2018-04-29
@jcmvbkbc

What I just did not try: added my user to dialout

it is right. After adding, you need to relogin (you can log out and log in, you can do su - $USER) - and everything should work. To check - in the output of the command groupsin the terminal in which avrdude is launched, the group should appear dialout.
permissions are assigned automatically when the device file is created by udev.
???

P
proger_10, 2018-04-30
@proger_10

After adding, you need to re-login

Did the same, didn't help

V
vanyamba-electronics, 2018-04-30
@vanyamba-electronics

You need to add udev rules .
And read the rules:
udevadm control --reload-rules

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question