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

Change preambleLength to 8 symbols to reduce airtime #1902

Merged
merged 2 commits into from
Nov 8, 2022

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Nov 5, 2022

This changes the preamble length from 32 to 8 symbols, which is the same as is used in LoRaWAN. I saw in the source that it was set to 32 in order to let the device sleep longer, but since the LoRa chip itself doesn’t sleep, this does not make sense to me.

It does reduce the time on air quite significantly, namely more than 20% when sending 10 bytes (from 854ms to 657ms on Long Fast). It think we should test it a bit, because it may have an influence on the performance of Channel Activity Detection, but I don’t think it is significant. RadioLib sets the CAD duration for SX126x to 8 symbols and for SX127x, it is only around 2 symbols.

I did some initial testing and messaging works for me. It seems even not to be a breaking change as I also received messages from my solar node on 1.3.x.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2022

🤖 Pull request artifacts

file commit
pr1902-firmware-2.0.0.c0e6305.zip c0e6305

thebentern added a commit to meshtastic/artifacts that referenced this pull request Nov 5, 2022
@thebentern thebentern merged commit fb92e49 into meshtastic:develop Nov 8, 2022
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