Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_all_params fixes #2468

Merged
merged 6 commits into from
Dec 12, 2024
Merged

get_all_params fixes #2468

merged 6 commits into from
Dec 12, 2024

Conversation

julianoes
Copy link
Collaborator

This includes several fixes to improve/fix getting all parameters, especially using a low bandwidth radio such as an SiK radio.

The main fixes are:

  • Logic fix in keeping track of which parameters have already been received. We used to re-transmit way too many parameters again unnecessarily.
  • Increase timeout to start re-transmissions. Parameters sent in bursts over an SiK radio can have long periods of silence. We just need to wait these out instead of using re-transmissions too early.
  • When re-requesting parameters, we should still accept any other parameters, in case they are still coming in and we started the re-transmission too early.
  • During re-transmission, request missing parameters in chunks of 10 to speed things up.

It turns out the logic to check which params were missing was broken.
This would retransmit way too many parameters, so the process takes
longer but would still end successful, eventually.
When downloading params over a SiK radio there can be bursts where many
params arrive, and longer periods where we have to wait.

Therefore, wait a bit before triggering the retransmission.
This comes with index -1, so it's confusing.
This fixes the logic of retransmission in case we started retransmitting
too early and are still receiving parameters from the initial burst.

In that case, we accept whatever comes in, while also requesting what we
haven't yet received.
Instead of requesting the parameters which were missed in the initial
burst one by one, we can now request them in chunks, e.g. 10 at a time.

This speeds up the process quite a bit.
@julianoes julianoes merged commit abf0167 into main Dec 12, 2024
38 of 40 checks passed
@julianoes julianoes deleted the pr-get-all-param-fixes branch December 12, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants