0

I have connected two arduinos to /etc/ttyUSB0 and /etc/ttyUSB1.

Only one is visible in Arduino IDE. Why and how to force second?

UPDATE

$ ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Jan 6 23:32 usb-1a86_USB2.0-Serial-if00-port0 -> ../../ttyUSB1

I.e. it shows port, which IS NOT SHOWN in Arduino IDE (only /dev/ttyUSB0 is shown.

ALSO

I can see both ports if run arduino with sudo. Should I run it with sudo?

Permissions are same

$ ls -l ttyUSB?
crw-rw-rw- 1 root dialout 188, 0 Jan 6 23:26 ttyUSB0
crw-rw-rw- 1 root dialout 188, 1 Jan 6 23:39 ttyUSB1
asked Jan 6, 2018 at 20:22
8
  • What means are you using to verify that both of these devices exist right now ? Incidentally, unlike some other operating systems, these identifiers are newly assigned each time the device is connected, and may refer to different devices at different times. You can even get the assigned numbers to increment with a single device, if a program holds the old device file open while it is re-plugged. Commented Jan 6, 2018 at 20:28
  • What does ls -l /dev/serial/by-id show? Commented Jan 6, 2018 at 20:32
  • You can also verify it with gtkterm. Click "Configuration" and "Port" and open the drop down menu "Port:". Check if they both are there. Perhaps you can try the Arduino IDE with sudo. Did you set some kind of permission to /etc/ttyUSB0? Remove all the Arduino and Java from the repositories. Unpack the newest Arduino IDE into a folder and start it from that folder. Be sure to remove the librxtx-java from the repositories (I use synaptic). Commented Jan 6, 2018 at 20:34
  • @Jot this looks blind guessing Commented Jan 6, 2018 at 20:49
  • 3
    Terrible advice. You should NEVER EVER run the Arduion IDE (or any similar software) as root. It's not designed to be safe for such use, and you run the risk of leaving behind files which your normal user won't be able to clean up or change. Instead, either set up proper udev rules, put yourself in the group that owns serial devices, and restart. Or temporarily chown the device in question to yourself - but if you do that you'll have to each time you plug it in. Commented Jan 6, 2018 at 22:21

1 Answer 1

1

You have to add use your user to the dialout group, as explained in the installation instructions for Linux.

sudo usermod -a -G dialout $USER

Then log out and back in again.

answered Jan 7, 2018 at 14:06

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.