¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Unable to connect to serial port on Linux installation.


 

Recently installed NanoVNA-Saver in Ubunto, underAnanconda- Python3.8. it loads but I can not connect to the device. I looks like I need to change a permission but I can't seem to fin the find right file. I get the following error:

2021-01-08 16:05:59,931 - NanoVNASaver.NanoVNASaver - ERROR - Tried to open /dev/ttyACM0 (NanoVNA) and failed: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'

Any pointers would be appreciated.
Thanks Chris
KC3OTC


 

Chris,

You must add yourself to the "dialout" group to have permission to use the
dev/ttyAMC0 device. The easiest way to do this is to open and terminal
"Cntl-Alt-T" an issue the command "sudo adduser yourusername dialout"

Larry AC8YE

On Fri, Jan 8, 2021 at 4:43 PM <cnjosack@...> wrote:

Recently installed NanoVNA-Saver in Ubunto, underAnanconda- Python3.8. it
loads but I can not connect to the device. I looks like I need to change a
permission but I can't seem to fin the find right file. I get the following
error:

2021-01-08 16:05:59,931 - NanoVNASaver.NanoVNASaver - ERROR - Tried to
open /dev/ttyACM0 (NanoVNA) and failed: [Errno 13] could not open port
/dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'

Any pointers would be appreciated.
Thanks Chris
KC3OTC






 

On Fri, Jan 8, 2021 at 11:03 PM, Larry Howell wrote:

You must add yourself to the "dialout" group to have permission to use the
dev/ttyAMC0 device. The easiest way to do this is to open and terminal
"Cntl-Alt-T" an issue the command "sudo adduser yourusername dialout"
OK, but in order to make it work, you have to do a user logout+login, or do a reboot.
73, Rudi DL5FA


 

No reuters, it's immediate and doesn't require the usual Redmond virus
solution for every change. On Ubuntu the etc/group file is sourced because
of the "sudo" command prefix.

Larry AC8YE

On Fri, Jan 8, 2021 at 5:32 PM <reuterr@...> wrote:

On Fri, Jan 8, 2021 at 11:03 PM, Larry Howell wrote:

You must add yourself to the "dialout" group to have permission to use
the
dev/ttyAMC0 device. The easiest way to do this is to open and terminal
"Cntl-Alt-T" an issue the command "sudo adduser yourusername dialout"
OK, but in order to make it work, you have to do a user logout+login, or
do a reboot.
73, Rudi DL5FA






 

Thanks Larry & Rudi! That fixed it.

Regards,
Chris KC3OTC


 

I'm on Ubuntu 20.04.2 LTS, Linux 5.4.0-80-generic, and installed NanoVNAsaver 0.3.9
When I got the same error mentioned before.
ERROR - Tried to open /dev/ttyACM0 (NanoVNA) and failed: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
I then did "sudo adduser $USER dialout", and logged out and in (before I saw that was unnecessary). I then confirmed that I had granted myself dialout
cat /etc/group | grep $USER
and also checked the permission on the port
$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Aug 8 13:40 /dev/ttyACM0

but I still get the same error. Is it possible there is a different permission I require and don't have?
How can I diagnose why this still fails?

--
"K4EGP / Edward G Prentice" <K4EGP.ham@...>
Retired software engineer QTH:EM95na


 

Il 08/08/21 19:56, Edward ha scritto:
I'm on Ubuntu 20.04.2 LTS, Linux 5.4.0-80-generic, and installed NanoVNAsaver 0.3.9
When I got the same error mentioned before.
ERROR - Tried to open /dev/ttyACM0 (NanoVNA) and failed: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
I then did "sudo adduser $USER dialout", and logged out and in (before I saw that was unnecessary). I then confirmed that I had granted myself dialout
cat /etc/group | grep $USER
and also checked the permission on the port
$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Aug 8 13:40 /dev/ttyACM0

but I still get the same error. Is it possible there is a different permission I require and don't have?
How can I diagnose why this still fails?
Hi Edward,

I also use PC with Linux Ubuntu platform, and I solved it easily with the command:

*sudo putty /dev/ttyACM0 -serial -sercfg 9600,8,n,1,N*

or using the excellent minicom program, also from the terminal, with the following command:

minicom -D /dev/ttyACM0

You can read the whole article, on my blog, at:



All the best,

'73 de Paolo IV3BVK (K1BVK)

--

Paolo Garbin - IV3BVK - K1BVK

WW LOC JN65GX - 33074 Fontanafredda (PN)
Inviato con Thunderbird su Distribuzione Linux random

Nota di riservatezza / Confidentiality note
Il messaggio pu¨° contenere informazioni strettamente confidenziali, urgenti e coperte da segreto professionale. Salvo che non sia espressamente autorizzato ¨¨, pertanto, strettamente proibito qualsiasi uso, comunicazione, copia o diffusione non autorizzata dei contenuti di questo documento. La diffusione, distribuzione e/o copiatura dei documenti trasmessi da parte di qualsiasi soggetto diverso dal destinatario ¨¨ proibita sia ai sensi dell'art. 616 c.p. sia ai sensi del D.Lgs. 196/2003. Nel caso in cui abbiate ricevuto per errore la presente comunicazione, vogliate cortesemente darcene immediata notizia e cancellare questo messaggio dal Vostro sistema. In ogni caso, il mittente, in ragione del mezzo di trasmissione utilizzato, non assume alcuna responsabilit¨¤ in merito alla segretezza e riservatezza delle informazioni contenute nel presente messaggio e nei relativi allegati.

This message may contain information which are strictly confidential, urgent and protected by professional secrecy. It is then strictly prohibited, unless expressly authorized, any use, disclosure, copying or distribution of the content of this communication. If you have received this communication in error, please notify us immediately and then delete it from your system. In any case, considering the means of transmission, we do not undertake any liability with respect to the secrecy and confidentiality of the information contained in this e-mail and in its attachments.


 

For me : Ubuntu 22.04 nanovna saver 0.2.2

1)plug nanovna
2)in a term
sudo chmod o+rw /dev/ttyACM0


 

The problem with that is that on a lot of Linux distros, devices are created by udev at boot, so this will typically revert on restart of the system. The proper solution is to add the user to the group for the tty devices (not sure on this dist - "dialout" on some . . . it can be found via ls -lia /dev/tty<whatever>), and then the fix will be persistent.

On August 29, 2022 3:55:25 AM CDT, p.pacaud@... wrote:
For me : Ubuntu 22.04 nanovna saver 0.2.2

1)plug nanovna
2)in a term
sudo chmod o+rw /dev/ttyACM0





--
Sent from my Android device with K-9 Mail. Please excuse my brevity.