Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/309.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Better handling of serial ports to allow ports like /dev/ttyACM0 and others
1 change: 1 addition & 0 deletions changes/310.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add /dev/ttyACM* to the list of serial ports to support radios like Kenwood TH-D74 on Ubuntu 24.04
3 changes: 2 additions & 1 deletion d_rats/dplatform_unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import glob
import os
import subprocess
import serial.tools.list_ports

from .dplatform_generic import PlatformGeneric

Expand Down Expand Up @@ -85,7 +86,7 @@ def list_serial_ports(self):
:returns: The serial ports
:rtype: list of str
'''
return sorted(glob.glob("/dev/ttyS*") + glob.glob("/dev/ttyUSB*"))
return [port.device for port in serial.tools.list_ports.comports()]

def os_version_string(self):
'''
Expand Down