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

Correct LoRa modem timeout #91

Open
jacobeva opened this issue Oct 12, 2024 · 2 comments
Open

Correct LoRa modem timeout #91

jacobeva opened this issue Oct 12, 2024 · 2 comments

Comments

@jacobeva
Copy link
Contributor

This is a bad idea because modem transmissions can take longer than 20 seconds on the SX1262. We need to calculate the airtime and then wait 2x that airtime, or similar, so that our timeout value scales with the airtime.

@faragher
Copy link

I forget if it's actually stored or just computed on the fly, but considering an MDU of 500 byes, would it make sense to do timeout = (500*8) / Baud + PreambleTime + FudgeFactor?

Basically compute the maximum transmission time and add, oh, 10 - 20%? I can't imagine it's too critical to be close if there's currently a flat 20 second timeout.

@jacobeva
Copy link
Contributor Author

jacobeva commented Oct 14, 2024 via email

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

No branches or pull requests

2 participants