From 401c2f4d8fdac72b8d40c4c01b1023ea194ec186 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Wed, 20 Jan 2021 15:03:42 +0100 Subject: [PATCH] Update arq.py --- arq.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arq.py b/arq.py index e1fb737c..d8205d9f 100644 --- a/arq.py +++ b/arq.py @@ -242,6 +242,7 @@ def transmit(data_out): # ----------------------- Loop through ARQ FRAMES BUFFER with N = Numbers of frames which will be send at once for n in range(static.ARQ_TX_N_FRAMES): + static.ARQ_STATE = 'SENDING_DATA' logging.info("TX | SENDING BURST [" + str(n+1) + " / " + str(static.ARQ_TX_N_FRAMES) + "] [" + str(static.ARQ_N_SENT_FRAMES + n+1) + " / " + str(static.TX_BUFFER_SIZE) + "] [" + str(burst_payload_crc) + "]") modem.transmit(12, arqburst[n]) #LETS SLEEP SOME TIME FOR TX COOLDOWN --> CAN BE REMOVED LATER IF SYNC/UNSYNC OF FREEDV IS WORKING BETTER @@ -249,6 +250,7 @@ def transmit(data_out): # --------------------------- START TIMER FOR WAITING FOR ACK ---> IF TIMEOUT REACHED, ACK_TIMEOUT = 1 static.ACK_TIMEOUT = 0 + static.ARQ_STATE = 'RECEIVING_ACK' timer = threading.Timer(static.ACK_TIMEOUT_SECONDS * static.ARQ_TX_N_FRAMES, arq_ack_timeout) timer.start() logging.info("TX | WAITING FOR ACK")