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

[BACKPORT v2] get_all_params fixes #2469

Merged
merged 6 commits into from
Dec 12, 2024
Merged

[BACKPORT v2] get_all_params fixes #2469

merged 6 commits into from
Dec 12, 2024

Conversation

julianoes
Copy link
Collaborator

Backport of #2468.

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 f3a6d6d into v2 Dec 12, 2024
33 checks passed
@julianoes julianoes deleted the pr-v2-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