Mavproxy cannot connect to USB port /dev/serial/by-id/

I am sure this is a Linux issue per se. This problem has been replicated across three different flavors of Linux on my Ubuntu Macbook Pro. Mavproxy does not have permission to access the serial port. Manually adding the user account to the tty and dialout groups make no difference.

Not sure what the /dev/serial/by-id/ is about either and why it is not a tty port.


WARNING: You should uninstall ModemManager as it conflicts with APM and Pixhawk
Auto-detected serial ports are:
/dev/serial/by-id/usb-ArduPilot_mRoX21_370044001051353336333832-if00
Connecting to /dev/serial/by-id/usb-ArduPilot_mRoX21_370044001051353336333832-if00
Connect /dev/serial/by-id/usb-ArduPilot_mRoX21_370044001051353336333832-if00 source_system=255
Failed to connect to /dev/serial/by-id/usb-ArduPilot_mRoX21_370044001051353336333832-if00 : [Errno 13] could not open port /dev/serial/by-id/usb-ArduPilot_mRoX21_370044001051353336333832-if00: [Errno 13] Permission denied: ‘/dev/serial/by-id/usb-ArduPilot_mRoX21_370044001051353336333832-if00’
No mode mapping available
Log Directory:
Telemetry log: mav.tlog
MAV>

It is a user permission error. Try it with sudo.

Yes. Strangely enough after a few reboots it now seems to work. Very odd.

Thanks.

You need to reboot or logout after making changes to user groups for the changes to make effect.

That may have been it. But I swore I did that. Many times.

I have the same issue …please help…
~$ mavproxy.py
WARNING: You should uninstall ModemManager as it conflicts with APM and Pixhawk
Auto-detected serial ports are:
/dev/serial/by-id/usb-CubePilot_CubeOrange+_1A0032000D51323031393637-if00
Connecting to /dev/serial/by-id/usb-CubePilot_CubeOrange+_1A0032000D51323031393637-if00
Connect /dev/serial/by-id/usb-CubePilot_CubeOrange+_1A0032000D51323031393637-if00 source_system=255
Failed to connect to /dev/serial/by-id/usb-CubePilot_CubeOrange+_1A0032000D51323031393637-if00 : [Errno 13] could not open port /dev/serial/by-id/usb-CubePilot_CubeOrange+_1A0032000D51323031393637-if00: [Errno 13] Permission denied: ‘/dev/serial/by-id/usb-CubePilot_CubeOrange+_1A0032000D51323031393637-if00’
No mode mapping available

Im trying with jetson orin nano

its not working with sudo aswell

/ros2_ws$ sudo mavproxy.py
sudo: mavproxy.py: command not found

This is resolved :slightly_smiling_face:

If you get a “permission denied” error message when connecting to serial devices, the user permissions may need to be changed:

sudo usermod -a -G dialout username

The system will need to be restarted to apply the above change.