diff --git a/examples/simple_repeater/MyMesh.cpp b/examples/simple_repeater/MyMesh.cpp index 4f188477..70a391dd 100644 --- a/examples/simple_repeater/MyMesh.cpp +++ b/examples/simple_repeater/MyMesh.cpp @@ -1869,6 +1869,11 @@ void MyMesh::handleCommand(uint32_t sender_timestamp, char *command, char *reply // verdict, which `set tx` swallows. See main.cpp. extern bool txPwrHandleCommand(const char* command, char* reply); if (txPwrHandleCommand(command, reply)) return; +#ifdef RADIO_DIAG + // CUSTOM (TeTeHacko): `radiostat` / `radiokick` -- see main.cpp. + extern bool radioDiagHandleCommand(const char* command, char* reply); + if (radioDiagHandleCommand(command, reply)) return; +#endif #ifdef PIN_DIAG // CUSTOM (TeTeHacko): `dio1` — is the DIO1 IRQ line alive, and if not, which // END of it is broken? Salvage diagnostics, see main.cpp. diff --git a/examples/simple_repeater/main.cpp b/examples/simple_repeater/main.cpp index 460cf432..f96ddb05 100644 --- a/examples/simple_repeater/main.cpp +++ b/examples/simple_repeater/main.cpp @@ -657,6 +657,16 @@ bool txPwrHandleCommand(const char* command, char* reply) { return true; } +#ifdef RADIO_DIAG +// CUSTOM (TeTeHacko): `radiostat` / `radiokick` -- see RadioLibWrappers.cpp. +// On the masts since 2. 11. 2026: mast-three came up deaf after a BLE OTA (recv 0, +// tx_timeout 4, 17 min, a reboot fixed it), the same picture as x4 on 31. 10. +// The next time it happens on a mast, the state is there to read. +bool radioDiagHandleCommand(const char* command, char* reply) { + return radio_driver.diagHandleCommand(command, reply); +} +#endif + #ifdef PIN_DIAG // CUSTOM (TeTeHacko): `dio1` -- salvage diagnostic for a node whose radio // transmits (a witness hears the frames) but never reports completion, i.e. the diff --git a/variants/sensecap_solar/platformio.ini b/variants/sensecap_solar/platformio.ini index 3b75dd88..f248d636 100644 --- a/variants/sensecap_solar/platformio.ini +++ b/variants/sensecap_solar/platformio.ini @@ -71,6 +71,9 @@ build_flags = ; link at 0 dBm. Advertising is already +8 (simple_repeater/main.cpp); ; runtime: `blepwr `, saved in /ble_pwr. -D RPT_BLE_CONN_TX_POWER=8 + ; `radiostat` / `radiokick` (admin CLI): came up deaf after a BLE OTA on + ; 2. 11. 2026 (recv 0, tx_timeout 4, 17 min); catch the state next time. + -D RADIO_DIAG=1 ; INA226 defaults to 0x44 in EnvironmentSensorManager = collision with SHT41 ; (false detection, garbage in telemetry). 0x40 is the real INA226 HW default. -D TELEM_INA226_ADDRESS=0x40