Skip to content

Conversation

@Cisien
Copy link

@Cisien Cisien commented Oct 17, 2025

This change would give the "listen before send" code a better chance to detect if another nearby repeater is transmitting.

@Cisien
Copy link
Author

Cisien commented Oct 17, 2025

One behavior i've noticed, but i'm not sure yet if it's related to this change. For direct path messages, having the direct.txdelay value set to 0 makes tracing very unreliable. Setting this to 0.5 brings it to 100%

Should I clamp the minimum delay so it's never 0?

@Cisien Cisien force-pushed the cisien/change_txdelay_calc branch from 5c36659 to 22dce23 Compare October 17, 2025 18:33
@Cisien
Copy link
Author

Cisien commented Oct 17, 2025

Updated so the minimum value is 5 (arbitrary number), traces are reliable on direct.txdelay 0 now

@Cisien Cisien changed the title Changes retransmit delay to not longer use buckets Changes retransmit delay to no longer use buckets Oct 17, 2025

uint32_t t = (_radio->getEstAirtimeFor(packet->path_len + packet->payload_len + 2) * _prefs.tx_delay_factor);
return getRNG()->nextInt(0, 6) * t;
uint32_t total_delay = getRNG()->nextInt(5, t);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would make the maximum delay 't'. Whereas it used to be 5*t was the max.
This would change the interpretation of the _prefs values. Admins can set to some small fraction, like 0.1 (or smaller) if very small delays want to be experimented with. Currently max for the pref is 2.0 (I think), which is probably very wild/unrealistic.
Also, currently the minimum 'extra' delay is 0, and this introduces min of 5 which could be a fairly 'radical' change. For a first-try, I'd rather introducing JUST the granularity change... ie. no 6 buckets, and just continuous range instead

@Cisien Cisien marked this pull request as draft October 18, 2025 22:10
@ripplebiz
Copy link
Collaborator

BTW, I've pushed to dev similar because a few of the main team want to try out what more granular tx delays are like.

@Cisien
Copy link
Author

Cisien commented Oct 31, 2025

Excellent, i'll run it on my repeaters and let you know if anything looks off

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