Can't connect to port

I am running ubuntu in a VM using VirtualBox and can’t connect to the Arduino.

lsusb shows:

Bus 001 Device 003: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM)

When I click Ports in GroundControl, it shows a long list of /dev/ttyS… port with, at the top, /dev/ttyACM0 and /dev/ttyprintk

I can select any port but when I click Connect, it says “Not Connected”.

I’ve tried entering “sudo usermod -a -G dialout julian” before running GroundControl (mentioned in other posts) but still no luck.

Do I assume /dev/ttyACM0 is the right port? What else can I try to connect?

Thanks for any help.

Julian

1 Like

On my Ubuntu the port is /dev/ttyACM0. To confirm you can do a “ls /dev” with the Mega plugged in. /dev/ttyACM0 should show up. Unplug it and the /dev/ttyACM0 should have gone.
Do you have the ArduionIDE installed in the VM? Did the firmware upload go well?

4 Likes

these might help -

https://www.haiku-os.org/guides/virtualizing/virtualbox-linux-debugging/

http://joequery.me/guides/arduino-ubuntu-virtualbox-windows-host/

http://www.tldp.org/HOWTO/Serial-HOWTO-10.html

What is the host OS? What is the virtual OS?

Thank you

2 Likes

@Julian7

I had to restart after adding my user to dialup. I suggest installing the Arduino IDE and trying to connect from there first.

https://www.arduino.cc/en/Guide/Linux

IMG_2499

Hope this helps

Thank you

2 Likes

Thanks @Gero and @Bee for your help. I had originally loaded the Arduino from Windows and when I tried it from the ubuntu VM, it wouldn’t connect.

After trying everything I could, I gave up and found another old laptop onto which I loaded ubuntu natively (i.e. not VirtualBox). Everything works now - loading the Arduino and running some tests with motors connected.

In case anyone else is reading this, I did have to run this command before I could connect to the Arduino:

sudo usermod -a -G dialout

Julian

3 Likes

@Julian7

I’m glad your up and running. Keep up the good work.

Thank you

2 Likes