Skip to content

Improve Serial port detection.#314

Open
wb8tyw wants to merge 1 commit intoham-radio-software:masterfrom
wb8tyw:wb8tyw_serial_fix_via_initram
Open

Improve Serial port detection.#314
wb8tyw wants to merge 1 commit intoham-radio-software:masterfrom
wb8tyw:wb8tyw_serial_fix_via_initram

Conversation

@wb8tyw
Copy link
Copy Markdown
Contributor

@wb8tyw wb8tyw commented Apr 4, 2026

Instead of trying to scan the serial ports with platform specific methods, use the python provided serial.tools.list_ports

  • changes/309.bugfix

  • changes/310.bugfix Tickets fixed by this PR.

  • d_rats/dplatform_generic.py Add platform independent list of serial ports

  • d_rats/dplatform_macos.py

  • d_rats/dplatform_unix.py

  • d_rats/dplatform_win32.py Remove no longer needed serial port listing method.

Original Author: Github user Initram

Instead of trying to scan the serial ports with platform specific methods,
use the python provided serial.tools.list_ports

- changes/309.bugfix
- changes/310.bugfix
  Tickets fixed by this PR.

- d_rats/dplatform_generic.py
  Add platform independent list of serial ports

- d_rats/dplatform_macos.py
- d_rats/dplatform_unix.py
- d_rats/dplatform_win32.py
  Remove no longer needed serial port listing method.

Original Author: Github user Initram
@wb8tyw
Copy link
Copy Markdown
Contributor Author

wb8tyw commented Apr 4, 2026

Attention MAC-OS users, please test this change to make sure that it works.

Github tests results look good for Windows and Linux, but the MAC-OS runners do not appear to have any serial ports to detect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant