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
@@ -36,6 +36,7 @@ struct Mesh {
|
||||
};
|
||||
}
|
||||
struct Profiles {
|
||||
void servicePendingTuning() {}
|
||||
bool pending = false, accepted = false;
|
||||
unsigned completions = 0;
|
||||
bool finishReplyMutation(bool delivered) {
|
||||
@@ -44,7 +45,9 @@ struct Profiles {
|
||||
};
|
||||
struct CLI {
|
||||
Profiles profiles;
|
||||
void servicePendingRxSettings() {}
|
||||
void servicePendingTxPower() {}
|
||||
void servicePendingLocalRadioSettings() {}
|
||||
struct NoMorseReply {
|
||||
void complete(const void*) {}
|
||||
void fail(const void*) {}
|
||||
@@ -63,9 +66,15 @@ struct Manager {
|
||||
};
|
||||
struct MyMesh : mesh::Mesh {
|
||||
CLI _cli;
|
||||
void servicePendingRxSettings() {}
|
||||
void servicePendingTxPower() {}
|
||||
void servicePendingLocalRadioSettings() {}
|
||||
Manager manager; Manager* _mgr = &manager;
|
||||
mesh::TempRadioReplyBarrier temp_radio_reply_barrier;
|
||||
mesh::TempRadioReplyBarrier _primary_radio_reply;
|
||||
bool _primary_radio_blocked = false, _primary_radio_reply_admission = false;
|
||||
void finishPrimaryRadioReply(bool) {}
|
||||
void queueSavedRadioApply() {}
|
||||
bool radio_reply_secondary = false, primary_radio_mutation_starts_temp = false;
|
||||
uint32_t radio_reply_deadline = 0;
|
||||
mesh::Packet* pending_battery_alert_packet = nullptr;
|
||||
@@ -78,6 +87,8 @@ struct MyMesh : mesh::Mesh {
|
||||
void cancelOutboundRadioRetry(const mesh::Packet* p) { assert(p == outbound); ++cancellations; }
|
||||
void releasePacket(mesh::Packet*) { ++released; }
|
||||
bool scheduleNormalRadio() { ++normal_schedules; return true; }
|
||||
void processScheduledRadioSettings(bool) {}
|
||||
void servicePendingPrimaryRadioSettings(bool) {}
|
||||
void onSendComplete(mesh::Packet*) override;
|
||||
void onSendFail(mesh::Packet*) override;
|
||||
void onRadioProfileCopyQueued(mesh::Packet*, const mesh::Packet*, uint8_t) override;
|
||||
|
||||
Reference in new issue
Block a user