diff --git a/tnc/data_handler.py b/tnc/data_handler.py index f1afa51a..a652af68 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -3415,6 +3415,7 @@ class DATA: ): timeleft = int((self.data_channel_last_received + self.transmission_timeout) - time.time()) + ARQ.arq_seconds_until_timeout = timeleft if timeleft % 10 == 0: self.log.debug("Time left until channel timeout", seconds=timeleft) diff --git a/tnc/sock.py b/tnc/sock.py index 94ac8d1e..337402d5 100644 --- a/tnc/sock.py +++ b/tnc/sock.py @@ -1173,6 +1173,7 @@ def send_tnc_state(): "arq_bytes_per_minute": str(ARQ.bytes_per_minute), "arq_bytes_per_minute_burst": str(ARQ.bytes_per_minute_burst), "arq_seconds_until_finish": str(ARQ.arq_seconds_until_finish), + "arq_seconds_until_timeout": str(ARQ.arq_seconds_until_timeout), "arq_compression_factor": str(ARQ.arq_compression_factor), "arq_transmission_percent": str(ARQ.arq_transmission_percent), "speed_list": ARQ.speed_list, diff --git a/tnc/static.py b/tnc/static.py index 8f2c3e0c..544172e3 100644 --- a/tnc/static.py +++ b/tnc/static.py @@ -26,6 +26,7 @@ class ARQ: arq_bits_per_second_burst: int = 0 arq_bits_per_second: int = 0 arq_seconds_until_finish: int = 0 + arq_seconds_until_timeout: int = 0 rx_buffer_size: int = 16 rx_frame_buffer: bytes = b"" rx_burst_buffer = [] @@ -35,7 +36,7 @@ class ARQ: # ARQ PROTOCOL VERSION # v.5 - signalling frame uses datac0 # v.6 - signalling frame uses datac13 - arq_protocol_version: int = 6 + arq_protocol_version: int = 7 total_bytes: int = 0 speed_list = [] # set save to folder state for allowing downloading files to local file system