Add MSP functions to get/set binding information#3554
Draft
CapnBry wants to merge 7 commits intoExpressLRS:masterfrom
Draft
Add MSP functions to get/set binding information#3554CapnBry wants to merge 7 commits intoExpressLRS:masterfrom
CapnBry wants to merge 7 commits intoExpressLRS:masterfrom
Conversation
Member
Author
|
Oh Lorde help me, there's no saving ourselves from the layout of this project! 😭 |
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.
Adds support for our own
MSP_RX_CONFIG/MSP_SET_RX_CONFIGMSP messages to support get/set the UID and set the UID by binding phrase. This allows lua scripts or engineering QA to programmatically set / clear the binding information without going through the binding process. Both receiver and transmitter support this message.Status: Maybe loses the active ModelID on the TX so you have been warned. This needs some cleanup of common code and rebooting the radio isn't the greatest.
Details
Not much to say, the MSP message has to fit in one packet so bind phrases need to be less than 52 characters.
Lua test
elrs-phrase.zip
A little EdgeTX lvgl demo tool script for being able to test this function. I would unalive myself if I had to enter my bind phrase on a B&W screen, but the function works on B&W radios too if someone wants to manage their bind phrase with a scroll wheel like they just got the high score on Space Invaders.
Set which device you want to change the phrase on, hit Set. You can also get the current UID with the Refresh button.