From f7ab3657d83dcc32f44758295c083d740fe49ca5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jul 2026 07:11:39 -0400 Subject: [PATCH] Update frequency.py add rigctld code --- frequency.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/frequency.py b/frequency.py index 1a038230..ec18eea9 100644 --- a/frequency.py +++ b/frequency.py @@ -411,5 +411,24 @@ if (doppler_mode == 'sim'): if (doppler_mode == 'rig'): print("rig mode") while True: - sleep(1) + + system("sudo killall -9 ft857d &>/dev/null") + system("udo killall -9 socat &>/dev/null") + system("sudo killall -9 rigctld &>/dev/null") + + print("Starting virtual serial ports /tmp/vttyA and /tmp/vttyB") + + system("socat -d -d PTY,raw,echo=0,link=/tmp/vttyA PTY,raw,echo=0,link=/tmp/vttyB &") + + sleep(1.0) + + print("Starting CubeSatSim FT857 emulation") + system("/home/pi/FT857d/examples/FT857d/ft857d &") + + sleep(1.0) + + print("Starting rigctl emulating FT857 rig using virtual serial port /tmp/vttyB") + system("rigctld -m 1022 -r /tmp/vttyB -t 4532 -vv") + + print("rigctld ended")