Reduce number of burst retries.

This commit is contained in:
Paul Kronenwetter 2022-06-12 21:25:40 -04:00
parent e5f2f18798
commit 1ff6f95045
2 changed files with 16 additions and 16 deletions

View file

@ -60,7 +60,7 @@ def t_setup(
tnc.time_list_high_bw = [3, 1, 1]
tnc.time_list = [3, 1, 1]
# Limit number of retries
tnc.rx_n_max_retries_per_burst = 10
tnc.rx_n_max_retries_per_burst = 4
# Create the modem
t_modem = modem.RF()

View file

@ -57,7 +57,7 @@ def t_setup(
tnc.time_list_high_bw = [1, 1, 1]
tnc.time_list = [1, 1, 1]
# Limit number of retries
tnc.rx_n_max_retries_per_burst = 10
tnc.rx_n_max_retries_per_burst = 4
# Create the modem
t_modem = modem.RF()
@ -123,22 +123,22 @@ def t_highsnr_arq_short_station2(
log.info("t_highsnr_arq_short_station2:", RXCHANNEL=modem.RXCHANNEL)
log.info("t_highsnr_arq_short_station2:", TXCHANNEL=modem.TXCHANNEL)
# # This transaction should take less than 14 sec.
# timeout = time.time() + 25
# # Compare with the string conversion instead of repeatedly dumping
# # the queue to an object for comparisons.
# while (
# '"arq":"transmission","status":"received"' not in str(sock.SOCKET_QUEUE.queue)
# or static.ARQ_STATE
# ):
# if time.time() > timeout:
# log.warning("station2 TIMEOUT", first=True)
# break
# time.sleep(0.5)
# log.info("station2, first", arq_state=pformat(static.ARQ_STATE))
# This transaction should take less than 14 sec.
timeout = time.time() + 25
# Compare with the string conversion instead of repeatedly dumping
# the queue to an object for comparisons.
while (
'"arq":"transmission","status":"received"' not in str(sock.SOCKET_QUEUE.queue)
or static.ARQ_STATE
):
if time.time() > timeout:
log.warning("station2 TIMEOUT", first=True)
break
time.sleep(0.5)
log.info("station2, first", arq_state=pformat(static.ARQ_STATE))
# Allow enough time for this side to receive the disconnect frame.
timeout = time.time() + 45
timeout = time.time() + 20
while '"arq":"session","status":"close"' not in str(sock.SOCKET_QUEUE.queue):
if time.time() > timeout:
log.error("station2", TIMEOUT=True)