Project

General

Profile

Actions

Bug #11434

open

Serial problem in Linux (not groups issue)

Added by Frank Willis 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/18/2024
Due date:
% Done:

0%

Estimated time:
Chirp Version:
next
Model affected:
Baofeng 5RX
Platform:
Linux
Debug Log:
I read the instructions above:
Yes

Description

Hi, I've been searching all day and cannot find the answer to this. I remember installing Chirp a few months ago and had to run some command in Linux (Fedora) to be able to use /dev/ttyUSB0. The problem has recently reappeared, possibly after some system updates.

It is not related to being in the dialout group. I am and have been in dialout. /dev/ttyUSB0 is owned by dialout. Current permissions are 660.

My USB cable still works with Chirp on another computer using the same versions of Chirp, python3 and Fedora. I can download/upload data using that computer.

I used the computer I am having trouble with as recently as 2 weeks ago. I tried a fresh install of Chirp on yet another computer that never had Chirp installed until today and have the same problem.

Neither dmesg or journalctl show anything useful.

It is not a group issue. /dev/ttyUSB0 shows up in the list of ports in Chirp (and using ls). Changing the permissions on /dev/ttyUSB0 or trying to run as sudo does not help. IIRC it was something to do with pyserial and/or the Linux Kernel. I originally found the solution googling something along those lines. The error is

File "/snap/chirp-snap/1011/lib/python3.10/site-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 1] Operation not permitted: '/dev/ttyUSB0'

Actions

Also available in: Atom PDF