Add per-profile TX routing and bridge filtering
Persist Companion TX preferences per contact and channel. Default repeater, room, and sensor replies to both active TX profiles, with a reply-only force option for an RX-only secondary profile. Track both reply copies before a temporary-radio handoff and account for OTA copies under queue backpressure. Add bridge/crossover filter modes and the third built-in wardriving filter, plus compact filter CLI syntax, documentation, and CI coverage. Fix quoted target names being interpreted as slot/key selectors, partial recovery of invalid saved reply settings, filter suspension during tempradio2, and unnecessary packet allocation while OTA traffic is throttled. Validation: 1,477 native tests, 52 Python integration tests, 29 filter UI tests, and five firmware builds covering ESP32, nRF52, and STM32 passed.
This commit is contained in:
1 parent
0e0aa8e014
commit
95aca52b4e
60 files changed
+3188
-362
No files matched your search
@@ -52,6 +52,10 @@ public:
|
||||
virtual RadioParamApplyResult prepareTransmitProfile(uint8_t profile) {
|
||||
return profile == 0 ? RadioParamApplyResult::APPLIED : RadioParamApplyResult::FAILED;
|
||||
}
|
||||
virtual RadioParamApplyResult prepareTransmitProfile(uint8_t profile, bool reply_rx_override) {
|
||||
(void)reply_rx_override;
|
||||
return prepareTransmitProfile(profile);
|
||||
}
|
||||
virtual uint16_t profilePreamble(uint8_t) const { return 0; }
|
||||
virtual uint32_t getProfileAirtime(uint8_t, int len_bytes, uint8_t = 0) {
|
||||
return getEstAirtimeFor(len_bytes);
|
||||
@@ -379,6 +383,9 @@ protected:
|
||||
virtual void onSendComplete(Packet* packet) { }
|
||||
virtual void onSendFail(Packet* packet) { }
|
||||
virtual void onRadioProfileCopyQueued(Packet* packet, const Packet* original, uint8_t priority) { }
|
||||
// Policy gate for the other profile only; same-profile TX remains eligible.
|
||||
// Called before admitting copies (including bound retry packets) to a queue.
|
||||
virtual bool allowRadioProfileCross(const Packet* packet) { return true; }
|
||||
virtual const char* getLogDateTime() { return ""; }
|
||||
|
||||
virtual float getAirtimeBudgetFactor() const;
|
||||
@@ -421,6 +428,9 @@ protected:
|
||||
void setRadioAvailable(bool available);
|
||||
bool isRadioAvailable() const { return radio_available; }
|
||||
bool isPacketRadioCurrent(const Packet* packet) const;
|
||||
// Planned fan-out before transport filters; also bounds OTA queue admission.
|
||||
uint8_t getTransmitProfileMask(const Packet* packet) const;
|
||||
uint32_t getTransmitAirtime(const Packet* packet) const;
|
||||
|
||||
public:
|
||||
void begin();
|
||||
|
||||
Reference in new issue
Block a user