From 1cec49bf7794df915f74fd99f57b49605eaabd0f Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Sun, 5 Jun 2022 14:16:41 -0400 Subject: [PATCH] Add priming packet to FIFO. This forces the originating TNC to be out-of-sync when receiving frames. --- test/util_data_channel_1.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/util_data_channel_1.py b/test/util_data_channel_1.py index 6d73acea..abdb2e8d 100644 --- a/test/util_data_channel_1.py +++ b/test/util_data_channel_1.py @@ -119,6 +119,11 @@ def t_highsnr_arq_short_station1( # Try to wait for the far-end to start up. # time.sleep(0.5) + # Add a frame to the TX queue at the beginning. This helps during testing so that + # the TNC is required to resend frames. + data = {"type": "ping", "command": "ping", "mycallsign": mycall, "dxcallsign": "BB5AA"} + sock.process_tnc_commands(json.dumps(data, indent=None)) + # Construct message to dxstation. b64_str = str(base64.b64encode(bytes(message, "UTF-8")), "UTF-8").strip() data = {