Send RTC time from the TX backpack to the VRX backpack over ESP-NOW#231
Open
bob9 wants to merge 1 commit into
Open
Send RTC time from the TX backpack to the VRX backpack over ESP-NOW#231bob9 wants to merge 1 commit into
bob9 wants to merge 1 commit into
Conversation
The TX backpack sends MSP_ELRS_BACKPACK_SET_RTC via ESP-NOW when the VRX backpack requests its startup packet, whenever its local clock has been set (via WiFi NTP or a SET_RTC message on its serial port, which now also seeds the local clock). The VRX backpack handles SET_RTC from ESP-NOW by setting its system clock and forwarding the time to the goggles (e.g. HDZero) over serial, reusing the existing SetRTC path that previously only ran during WiFi NTP sync.
This was referenced Jul 14, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the VRX backpack's clock (and, on HDZero, the goggles' RTC) from the TX backpack, so DVR recordings get correct timestamps without the pilot ever opening the backpack WiFi page.
MSP_ELRS_BACKPACK_SET_RTCon its serial port (in addition to the existing WiFi NTP path).MSP_ELRS_REQU_VTX_PKT), the TX backpack replies with the current time over ESP-NOW — only when its clock has actually been set, and only on request (no periodic resync).SetRTC()path that previously only ran during WiFi NTP sync. On modules without an RTC serial protocol this is a no-op via the existingModuleBase::SetRTCstub.Uses the existing
MSP_ELRS_BACKPACK_SET_RTC(0x030E) opcode — this only adds a new transport for it. Additive only; devices that don't handle it ignore the message.Related PRs
0x3C), seeding the TX backpack clock that this PR distributes.MSP_ELRS_BACKPACK_SET_RTCto the TX backpack, seeding the clock this PR distributes.