Name DVR recordings after the race via MSP_SET_DVR_NAME (0x030F)#613
Open
bob9 wants to merge 1 commit into
Open
Name DVR recordings after the race via MSP_SET_DVR_NAME (0x030F)#613bob9 wants to merge 1 commit into
bob9 wants to merge 1 commit into
Conversation
A race timer can push a label for the next DVR recording through the ELRS backpack (e.g. "WinterCup-Qual1-H2"). While a label is set, recordings are named YYYY-MM-DD-NNNN-label.ext - date and file index lead so a plain filename sort lists the day in recording order; NNNN is the existing contiguous DVR counter, which now also scans labelled files so indexes never collide. Snapshot .jpg previews and split segments share the name. The label is sanitised to filename-safe characters, capped at 32 chars (names stay under the playback list's 64-char buffer), expires 5 minutes after it was set so later non-race recordings fall back to the standard naming, and an empty payload clears it. With no label, nothing changes.
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
Lets a race timer name the next DVR recording (e.g.
WinterCup-Qual1-H2) by sending a newMSP_SET_DVR_NAME(0x030F) message through the ELRS backpack.elrs.chandles the new MSP command and hands the payload todvr_set_race_label().dvr.cstores a filename-safe copy of the label (alnum kept, spaces become-, everything else dropped) with a 5-minute TTL so a recording made well after the heat doesn't inherit the race's name; an empty payload clears it. The label is written to the record conf on every update so a stale value never survives.record/) reads the label from the conf and uses it when building the recording filename.Additive only — recordings without a label are named exactly as before.
Related PRs
Forward MSP_ELRS_BACKPACK_SET_DVR_NAME to the goggles ExpressLRS/Backpack#232 — companion firmware PR: the VRX backpack forwards
MSP_ELRS_BACKPACK_SET_DVR_NAMEto the goggles over the serial link, which is what delivers this message.Send RTC time from the TX backpack to the VRX backpack over ESP-NOW ExpressLRS/Backpack#231 — syncs the backpack/goggle RTC so the named recordings also carry correct timestamps.
Add Sync Backpack Time button to set the backpack RTC from the handset ExpressLRS/Lua-Scripts#18 — adds a Sync Backpack Time button to the ELRS Lua script that seeds the clock used for those timestamps.
Let pilots switch between Raceband and Lowband via the ELRS backpack #614 — lets pilots switch between Raceband and Lowband via the backpack; part of the same integration, independent of this PR.
Send handset time to the TX backpack to set its RTC ExpressLRS/ExpressLRS#3701 — TX-module side of that time sync: forwards the handset time to the backpack.