Respect dynamic CR in transmit timing#38
Open
robekl wants to merge 3 commits intoweebl2000:snr-drives-crfrom
Open
Respect dynamic CR in transmit timing#38robekl wants to merge 3 commits intoweebl2000:snr-drives-crfrom
robekl wants to merge 3 commits intoweebl2000:snr-drives-crfrom
Conversation
When a repeater forwards a direct-routed pkt, it looks up the next-hop neighbor's SNR, computes the link margin against the SF-specific demodulation floor, then determines coding rate (RT) based on SNR. Weaker links get higher CR. We apply CR on a per-packet basis and restore to default configuration after TX. Margin thresholds: <3 dB - CR 4/8 3-6 dB - CR 4/7 6-10 dB - CR 4/6 >=10 dB - CR 4/5 Flood repeats adhere to configured CR, as do forwards to unknown neighbors.
Owner
|
Thank you, I will have a look at this over the weekend most likely! |
4712455 to
5b5d13c
Compare
88f5888 to
bf7a82b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch makes transmit timing respect dynamic coding rate (CR) instead of assuming the node's default CR.
What Changed
estimateTxAirtimeFor(...)hook inDispatcherso timing paths can use a per-packet CR when one is selected._tx_cr._tx_crbefore estimating airtime, so sender-side timing reflects the selected first-hop dynamic CR.companion,repeater,room_server,sensor, andsimple_secure_chat).setDefaultCR(...)anywhere runtime radio parameters are applied or restored.Why This Satisfies the Goal
The goal was to update retransmit delay and transmit-duration calculations based on dynamic CR.
This patch does that by making:
Notes