Apply busy radio settings and recover service starts automatically
Save valid busy RX, fast-switch and Companion tuple changes once, then apply the latest accepted intent at a safe radio gap. Preserve checked-save rollback, runtime RXEN intent, TempRadio ownership and exact remote reply delivery. Repair failed preamble compensation without hiding uncertain saves. Retry WebConfig, MQTT and NimBLE startup failures automatically. Preserve explicit off choices, OTA ownership and the latest WiFi credentials through cooperative shutdown. Add regression coverage and update command guides. Validation: focused host transaction, rollback, ownership and lifecycle suites; Full RAK4631, Heltec V4 R8 TFT and RC32 packages; representative room, sensor, LR1110, LR2021, SX1276, STM32WL and ESP-NOW builds. Linked RAK crypto and OTA workspace checks pass; its complete OTA image uses 712644/712704 bytes.
This commit is contained in:
1 parent
fb73e3afac
commit
73c5f572eb
89 files changed
+2978
-816
No files matched your search
@@ -113,6 +113,8 @@ struct TxRole : mesh::Mesh {
|
||||
uint8_t tracker_packet_hash[MAX_HASH_SIZE] = {};
|
||||
uint32_t futureMillis(uint32_t delay) const { return millis() + delay; }
|
||||
void finishRadioReply(bool) {}
|
||||
void processScheduledRadioSettings(bool) {}
|
||||
void servicePendingPrimaryRadioSettings(bool) {}
|
||||
void onSendComplete(mesh::Packet*) override;
|
||||
};
|
||||
@CALLBACK@
|
||||
@@ -225,12 +227,12 @@ int main() {
|
||||
f'mesh::powerdiag::Mask {name}::pendingWorkReason() const')
|
||||
# Include pending intent during hardware-failure backoff too:
|
||||
# nRF52's event-driven sleep has no guaranteed timer wake.
|
||||
self.assertIn('_cli.hasPendingTxPower()', pending)
|
||||
self.assertLess(pending.index('_cli.hasPendingTxPower()'),
|
||||
self.assertIn('_cli.hasPendingRadioSettings()', pending)
|
||||
self.assertLess(pending.index('_cli.hasPendingRadioSettings()'),
|
||||
pending.index('radio_apply_backoff')
|
||||
if 'radio_apply_backoff' in pending else len(pending))
|
||||
recovery = extract_braced(header, 'bool canRecoverUsbLogging() const')
|
||||
self.assertIn('!_cli.hasPendingTxPower()', recovery)
|
||||
self.assertIn('!_cli.hasPendingRadioSettings()', recovery)
|
||||
self.assertIn('_cli.loop();', extract_braced(source, f'void {name}::loop('))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user