Skip to content

Reduce frequency of "Telemetry Lost" callout - #3550

Merged
pkendall64 merged 4 commits into
ExpressLRS:masterfrom
CapnBry:ignore-disconnect
Mar 1, 2026
Merged

pkendall64 merged 4 commits into
ExpressLRS:masterfrom
CapnBry:ignore-disconnect

Conversation

@CapnBry

@CapnBry CapnBry commented Feb 21, 2026 •

Copy link
Copy Markdown
Member

Changes transmitter linkstats reporting to add a variable grace period (0 to 3s) when reporting an internal "disconnected" state. Purpose is to reduce the frequency of the "Telemetry Lost" EdgeTX callout. This does not change internal behavior, only the external reporting is affected.

"I'd much rather be happy than right any day" -- Slartibartfast
Hitchhiker's Guide to the Galaxy

Details

In 4.0, #3367 modified the behavior of reporting when our internal state goes from "connected" to "disconnected" to where it is immediately reported, instead of lazily letting EdgeTX timeout. Turns out, users don't like knowing this and this has caused a perceived degradation in link quality due to knowing how often we're in the disconnected state.

Disconnected reporting behavior

  • 3.x - On disconnect, stop sending LinkStats packets to the handset. Handset reports "telemetry lost" due to timeout, Handset-side 750ms - 1000ms grace period to allow a reconnect before reporting to user.
  • 4.0 - On disconnect, immediately report to the handset disconnect status via LinkStats LQ of 0. Handset reports "telemetry lost" due to 0 LQ. No grace period before reporting to user.
  • This PR - On disconnect, keep reporting LinkStats to the handset as normal. If the connection is recovered during our internal grace period, no "telemetry lost" report will be generated to the user. If our grace period expires without a reconnect, immediately report to the handset via LinkStats LQ of 0. Handset reports "telemetry lost" immediately.

What does 'disconnected' mean?

The internal ExpressLRS state and behavior is determined by the presence of telemetry. Disconnected state affects dynamic power, sync packet interval, etc but not the sending of RC channel data which always continue regardless of connected state. ExpressLRS internally goes to disconnected after missing 5 telemetry packets back to back, with a minimum duration of 512ms. This can happen quite frequently in a many-transmitter environment due to interference.

Grace period duration

Up for discussion! The grace period is linearly scaled depending on the last LQ received from the model. At 50% LQ or below there is no grace period, scaling up to 3 seconds at 100% LQ. I feel like 2 or 3 seconds is around where we want to be here, I erred on the side of "this callout isn't all that useful".

Uplink LQ Duration
50% 0ms
75% 1500ms
100% 3000ms

Refactor

I took the time to refactor the uint8_t [] used for sending linkstats to use a CRSF_MK_FRAME_T(crsfLinkStatistics_t) and then use common functions to generate the CRC.

@CapnBry CapnBry added enhancement 🪄 New feature or request V4.1 🍑 labels Feb 21, 2026

@mha1 mha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have flown it a few times. No adverse effects.

@pkendall64 pkendall64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good my end too.
No adverse effects I can see.

@pkendall64
pkendall64 merged commit b430fa7 into ExpressLRS:master Mar 1, 2026
26 checks passed
@J-Sorenson

Copy link
Copy Markdown

Sorry to be late to the party, but does this affect dynamic power? Usually you want the transmit power to raise without delay if there is a loss of telemetry. It takes less than 1 second for the plane to hit the ground, and with 1/16 telemetry rate at 100Hz, your signal could degrade and be lost at the current power before you see 50% LQ.

Also, does this affect logging of telemetry link? I think the sensitivity of lost telemetry callouts should be handled within the TX OS (EdgeTX, ETHOS), not obscured by the module. I think it's switched from being moderately annoying to lying that everything is fine.

@CapnBry

CapnBry commented Mar 3, 2026

Copy link
Copy Markdown
Member Author

No, dummy. Read the first post, first paragraph.

This does not change internal behavior, only the external reporting is affected.

Every RC protocol handles the sensitivity of its callouts indirectly. The question being how to determine this. On systems with symmetric telemetry bandwidth this is probably a lot easier, but in our system where there may be only 1 telemetry packet every 3 seconds or as frequent as 2ms, it is difficult to determine when we should stop reporting. This keeps our current internal behavior (affecting dynamic power) but just modifies how long we'll wait to tell EdgeTX. Telemetry is not used for control of the model, yet the callout is definitely associated with loss of control by the user. This change looks to improve the experience by eliminating the callout during a temporary loss of downlink data, which has no effect on model control and should not be something the user needs to know about.

Telemetry sensors such as VBAT are not affected by this and their timeout and callout is still handled by EdgeTX regardless of this change.

@J-Sorenson

Copy link
Copy Markdown

Good to hear, Capn', and thanks for the details!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants