From 094ffebdd157fa74da1e5e52e8a938bb1d1f7ade Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Tue, 21 Feb 2023 20:47:22 +0100 Subject: [PATCH] added burst nack logging --- tnc/data_handler.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index b3c81bff..da0cdc13 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -1400,6 +1400,7 @@ class DATA: self.burst_ack_snr = helpers.snr_from_bytes(data_in[2:3]) else: + # Decrease speed level if we received a burst nack # self.speed_level = max(self.speed_level - 1, 0) # Set flag to retry frame again. @@ -1409,6 +1410,12 @@ class DATA: self.burst_ack_snr = 'NaN' self.irs_buffer_position = int.from_bytes(bytes(data_in[4:8]), "big") + self.log.warning( + "[TNC] ARQ | TX | Burst NACK received", + burst_nack_counter=self.burst_nack_counter, + irs_buffer_position=self.irs_buffer_position, + ) + # Update data_channel timestamp self.data_channel_last_received = int(time.time()) # self.burst_ack_snr = int.from_bytes(bytes(data_in[2:3]), "big")