mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Adding bandwidth switch for arq test.
This commit is contained in:
parent
a6d1f89687
commit
1f8106258d
|
@ -32,6 +32,7 @@ def t_highsnr_arq_short_station1(
|
||||||
mycall: str,
|
mycall: str,
|
||||||
dxcall: str,
|
dxcall: str,
|
||||||
message: str,
|
message: str,
|
||||||
|
lowbwmode: bool,
|
||||||
):
|
):
|
||||||
log = structlog.get_logger(__name__)
|
log = structlog.get_logger(__name__)
|
||||||
orig_tx_func: object
|
orig_tx_func: object
|
||||||
|
@ -70,10 +71,11 @@ def t_highsnr_arq_short_station1(
|
||||||
|
|
||||||
# enable testmode
|
# enable testmode
|
||||||
data_handler.TESTMODE = True
|
data_handler.TESTMODE = True
|
||||||
modem.TESTMODE = True
|
|
||||||
modem.RXCHANNEL = "/tmp/hfchannel1"
|
modem.RXCHANNEL = "/tmp/hfchannel1"
|
||||||
|
modem.TESTMODE = True
|
||||||
modem.TXCHANNEL = "/tmp/hfchannel2"
|
modem.TXCHANNEL = "/tmp/hfchannel2"
|
||||||
static.HAMLIB_RADIOCONTROL = "disabled"
|
static.HAMLIB_RADIOCONTROL = "disabled"
|
||||||
|
static.LOW_BANDWITH_MODE = lowbwmode
|
||||||
static.MYGRID = bytes("AA12aa", "utf-8")
|
static.MYGRID = bytes("AA12aa", "utf-8")
|
||||||
static.RESPOND_TO_CQ = True
|
static.RESPOND_TO_CQ = True
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ def t_highsnr_arq_short_station2(
|
||||||
mycall: str,
|
mycall: str,
|
||||||
dxcall: str,
|
dxcall: str,
|
||||||
message: str,
|
message: str,
|
||||||
|
lowbwmode: bool,
|
||||||
):
|
):
|
||||||
log = structlog.get_logger(__name__)
|
log = structlog.get_logger(__name__)
|
||||||
orig_tx_func: object
|
orig_tx_func: object
|
||||||
|
@ -70,10 +71,11 @@ def t_highsnr_arq_short_station2(
|
||||||
|
|
||||||
# enable testmode
|
# enable testmode
|
||||||
data_handler.TESTMODE = True
|
data_handler.TESTMODE = True
|
||||||
modem.TESTMODE = True
|
|
||||||
modem.RXCHANNEL = "/tmp/hfchannel2"
|
modem.RXCHANNEL = "/tmp/hfchannel2"
|
||||||
|
modem.TESTMODE = True
|
||||||
modem.TXCHANNEL = "/tmp/hfchannel1"
|
modem.TXCHANNEL = "/tmp/hfchannel1"
|
||||||
static.HAMLIB_RADIOCONTROL = "disabled"
|
static.HAMLIB_RADIOCONTROL = "disabled"
|
||||||
|
static.LOW_BANDWITH_MODE = lowbwmode
|
||||||
static.MYGRID = bytes("AA12aa", "utf-8")
|
static.MYGRID = bytes("AA12aa", "utf-8")
|
||||||
static.RESPOND_TO_CQ = True
|
static.RESPOND_TO_CQ = True
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,8 @@ def analyze_results(station1: list, station2: list):
|
||||||
# @pytest.mark.parametrize("n_frames_per_burst", [1, 2, 3])
|
# @pytest.mark.parametrize("n_frames_per_burst", [1, 2, 3])
|
||||||
@pytest.mark.parametrize("freedv_mode", ["datac3"])
|
@pytest.mark.parametrize("freedv_mode", ["datac3"])
|
||||||
@pytest.mark.parametrize("n_frames_per_burst", [2])
|
@pytest.mark.parametrize("n_frames_per_burst", [2])
|
||||||
def test_arq_short(freedv_mode: str, n_frames_per_burst: int):
|
@pytest.mark.parametrize("lowbwmode", [False, True])
|
||||||
|
def test_arq_short(freedv_mode: str, n_frames_per_burst: int, lowbwmode: bool):
|
||||||
log = structlog.get_logger(__name__)
|
log = structlog.get_logger(__name__)
|
||||||
|
|
||||||
s1_data = []
|
s1_data = []
|
||||||
|
@ -103,6 +104,7 @@ def test_arq_short(freedv_mode: str, n_frames_per_burst: int):
|
||||||
STATIONS[0],
|
STATIONS[0],
|
||||||
STATIONS[1],
|
STATIONS[1],
|
||||||
messages[0],
|
messages[0],
|
||||||
|
lowbwmode,
|
||||||
),
|
),
|
||||||
daemon=True,
|
daemon=True,
|
||||||
),
|
),
|
||||||
|
@ -115,6 +117,7 @@ def test_arq_short(freedv_mode: str, n_frames_per_burst: int):
|
||||||
STATIONS[1],
|
STATIONS[1],
|
||||||
STATIONS[0],
|
STATIONS[0],
|
||||||
messages[0],
|
messages[0],
|
||||||
|
lowbwmode,
|
||||||
),
|
),
|
||||||
daemon=True,
|
daemon=True,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue