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

Fix #333: Emit EV_TXCOMPLETE earlier #335

Merged
merged 2 commits into from
Jul 4, 2019
Merged

Fix #333: Emit EV_TXCOMPLETE earlier #335

merged 2 commits into from
Jul 4, 2019

Conversation

terrillmoore
Copy link
Member

Before, when no packet was received in RX2, there would be a 3-5 second
delay (for EU868) before calling processDnData() and emitting
EV_TXCOMPLETE. This was the DNW2_SAFETY_ZONE to prevent a subsequent
TX to collide with a downlink packet that was ongoing but not locked on
to.

With this change, txDelay() is used to still delay the subsequent TX,
without delaying the EV_TXCOMPLETE event, which allows battery-powered
devices that wait for this event before sleeping to get an extra 3-5
seconds of sleep for each transmitted packet, improving battery life.

Closes: upstream issue 16

matthijskooijman and others added 2 commits July 3, 2019 21:47
Before, when no packet was received in RX2, there would be a 3-5 second
delay (for EU868) before calling `processDnData()` and emitting
EV_TXCOMPLETE. This was the `DNW2_SAFETY_ZONE` to prevent a subsequent
TX to collide with a downlink packet that was ongoing but not locked on
to.

With this change, `txDelay()` is used to still delay the subsequent TX,
without delaying the `EV_TXCOMPLETE` event, which allows battery-powered
devices that wait for this event before sleeping to get an extra 3-5
seconds of sleep for each transmitted packet, improving battery life.

Closes: upstream issue 16
@terrillmoore terrillmoore self-assigned this Jul 4, 2019
@terrillmoore terrillmoore merged commit a99d375 into master Jul 4, 2019
@terrillmoore terrillmoore deleted the issue333 branch August 24, 2019 03:17
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