Merge pull request #6 from AstroTaka/testing

test_sdr of SpyServer does not use 401.5MHz fixed frequency
pull/731/head
AstroTaka 2022-12-11 10:05:03 +09:00 zatwierdzone przez GitHub
commit 9ef554920e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -801,7 +801,7 @@ def read_auto_rx_config(filename, no_sdr_test=False):
sdr_port=auto_rx_config["sdr_port"],
ss_iq_path=auto_rx_config["ss_iq_path"],
ss_power_path=auto_rx_config["ss_power_path"],
check_freq=auto_rx_config["min_freq"],
check_freq=auto_rx_config["min_freq"] * 1e6,
)
if not _sdr_ok:

Wyświetl plik

@ -772,7 +772,7 @@ class SondeScanner(object):
sdr_hostname = self.sdr_hostname,
sdr_port = self.sdr_port,
ss_iq_path = self.ss_iq_path,
check_freq = self.min_freq
check_freq = self.min_freq * 1e6
)
if not _sdr_ok:
@ -835,7 +835,7 @@ class SondeScanner(object):
sdr_hostname = self.sdr_hostname,
sdr_port = self.sdr_port,
ss_iq_path = self.ss_iq_path,
check_freq = self.min_freq
check_freq = self.min_freq * 1e6
)
if not _sdr_ok:

Wyświetl plik

@ -21,7 +21,7 @@ def test_sdr(
sdr_port = 5555,
ss_iq_path = "./ss_iq",
ss_power_path = "./ss_power",
check_freq = 401.5
check_freq = 401500000
):
"""
Test the prescence / functionality of a SDR.
@ -69,7 +69,7 @@ def test_sdr(
_cmd = (
f"timeout 10 " # Add a timeout, because connections to non-existing IPs seem to block.
f"{ss_iq_path} "
f"-f {int(check_freq * 1e6)} "
f"-f {check_freq} "
f"-s 48000 "
f"-r {sdr_hostname} -q {sdr_port} -n 48000 - > /dev/null 2> /dev/null"
)