added burst nack logging

This commit is contained in:
DJ2LS 2023-02-21 20:47:22 +01:00
parent 9982ee5331
commit 094ffebdd1

View file

@ -1400,6 +1400,7 @@ class DATA:
self.burst_ack_snr = helpers.snr_from_bytes(data_in[2:3]) self.burst_ack_snr = helpers.snr_from_bytes(data_in[2:3])
else: else:
# Decrease speed level if we received a burst nack # Decrease speed level if we received a burst nack
# self.speed_level = max(self.speed_level - 1, 0) # self.speed_level = max(self.speed_level - 1, 0)
# Set flag to retry frame again. # Set flag to retry frame again.
@ -1409,6 +1410,12 @@ class DATA:
self.burst_ack_snr = 'NaN' self.burst_ack_snr = 'NaN'
self.irs_buffer_position = int.from_bytes(bytes(data_in[4:8]), "big") 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 # Update data_channel timestamp
self.data_channel_last_received = int(time.time()) self.data_channel_last_received = int(time.time())
# self.burst_ack_snr = int.from_bytes(bytes(data_in[2:3]), "big") # self.burst_ack_snr = int.from_bytes(bytes(data_in[2:3]), "big")