mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
reduced connection attempts, resend message only if snr > -2dB
This commit is contained in:
parent
0b9c7084f2
commit
75bda136b8
2 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,7 @@ class ISS_State(Enum):
|
||||||
|
|
||||||
class ARQSessionISS(arq_session.ARQSession):
|
class ARQSessionISS(arq_session.ARQSession):
|
||||||
|
|
||||||
RETRIES_CONNECT = 10
|
RETRIES_CONNECT = 5
|
||||||
|
|
||||||
# DJ2LS: 3 seconds seems to be too small for radios with a too slow PTT toggle time
|
# DJ2LS: 3 seconds seems to be too small for radios with a too slow PTT toggle time
|
||||||
# DJ2LS: 3.5 seconds is working well WITHOUT a channel busy detection delay
|
# DJ2LS: 3.5 seconds is working well WITHOUT a channel busy detection delay
|
||||||
|
|
|
@ -17,6 +17,8 @@ class BeaconFrameHandler(frame_handler.FrameHandler):
|
||||||
self.details['frame']["gridsquare"]
|
self.details['frame']["gridsquare"]
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.config["MESSAGES"]["enable_auto_repeat"]:
|
# only check for queued messages, if we have enabled this and if we have a minimum snr received
|
||||||
|
print(self.details["snr"])
|
||||||
|
if self.config["MESSAGES"]["enable_auto_repeat"] and self.details["snr"] >= -2:
|
||||||
# set message to queued if beacon received
|
# set message to queued if beacon received
|
||||||
DatabaseManagerMessages(self.event_manager).set_message_to_queued_for_callsign(self.details['frame']["origin"])
|
DatabaseManagerMessages(self.event_manager).set_message_to_queued_for_callsign(self.details['frame']["origin"])
|
||||||
|
|
Loading…
Reference in a new issue