CAT serial port settings not saved in pihpsdr

58 views
Skip to first unread message

Hans Moeller

unread,
Oct 12, 2025, 11:53:43 AM (yesterday) Oct 12
to Hermes-Lite
I am using a USB to serial interface for CAT control.
Unfortunately the serial port settings are not saved. After each restart of pihpsdr it reverts back to the default settings (/dev/ttyACM0) and i have to go back into the settings and set it to /dev/ttyUSB0.

Is there a workaround or a ini-file that can be edited to fix this issue?

73 de Hans
AB5HM

Ron Lewkowicz

unread,
Oct 12, 2025, 3:35:14 PM (yesterday) Oct 12
to Hermes-Lite
Is this with DL1YCF fork of piHPSDR?  

Settings are stored in ~/.config/pihpsdr.  It's a plain text file named with the mac address of your HL2 and the suffix is .props

The line of interest is rigctl_serial_port[0]=

I don't have a USB serial interface but I can confirm that if I change the entry from the default  ACM0 to USB0 it does get saved in the props file and after a restart it is still USB0 in the menu and does not revert to ACM0.

"Christoph v. Wüllen"

unread,
4:58 AM (15 hours ago) 4:58 AM
to Hans Moeller, herme...@googlegroups.com
Hmmm...

this should not happen. When the program starts, it populates the names of
all serial adapters with /dev/ttyACMx (x=0,1,2....) but then names from
the props file should overwrite this.

The only exception is a serial port that has been auto-detected for
the G2 front panel, this one will not be overwritten.

Since it seems that all other settings are correctly stored/restored,
it would be best to look at the props file after you have closed the
program, then to verify your settings is correctly written there
(the problem can in principle occur both when writing the props file
and when restoring it).

Where is the props file?

- if the program starts in the pihpsdr directory (either a file pihpsdr.sh
or a directory release/pihpsdr is found), then this is the location
of the props file as well.

- otherwise, the working directory of piHPDSR (where the log file is produced
and the props file is read) is

LINUX: $HOME/.config/pihpsdr
MacOS: $HOME/Library/Application Support/piHPSDR


- if this fails (the above directories do not exist and cannot be created),
the $HOME dir is used as the last resort.


Which file is the props file:

for normal radios, the name of the props file is of the form XX-XX-XX-XX-XX-XX.props,
where the XXs represent the hardware (ethernet MAC) address of the radio.


If you can locate the props file, send it to me and I shall have a look.
> --
> You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/hermes-lite/7831ee07-73be-458d-a15c-d3f7a0f94f0an%40googlegroups.com.

Hans Moeller

unread,
12:10 PM (7 hours ago) 12:10 PM
to Hermes-Lite
Issue is resolved with the  DL1YCF fork of piHPSDR
Reply all
Reply to author
Forward
0 new messages