mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added burst nack logging
This commit is contained in:
parent
9982ee5331
commit
094ffebdd1
1 changed files with 7 additions and 0 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue