simple_repeater: RADIO_DIAG on the masts (radiostat/radiokick)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
548b96d15c
commit
f0c48e2b46
3 files changed
+18
No files matched your search
@@ -1869,6 +1869,11 @@ void MyMesh::handleCommand(uint32_t sender_timestamp, char *command, char *reply
|
|||||||
// verdict, which `set tx` swallows. See main.cpp.
|
// verdict, which `set tx` swallows. See main.cpp.
|
||||||
extern bool txPwrHandleCommand(const char* command, char* reply);
|
extern bool txPwrHandleCommand(const char* command, char* reply);
|
||||||
if (txPwrHandleCommand(command, reply)) return;
|
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
|
#ifdef PIN_DIAG
|
||||||
// CUSTOM (TeTeHacko): `dio1` — is the DIO1 IRQ line alive, and if not, which
|
// CUSTOM (TeTeHacko): `dio1` — is the DIO1 IRQ line alive, and if not, which
|
||||||
// END of it is broken? Salvage diagnostics, see main.cpp.
|
// END of it is broken? Salvage diagnostics, see main.cpp.
|
||||||
|
|||||||
@@ -657,6 +657,16 @@ bool txPwrHandleCommand(const char* command, char* reply) {
|
|||||||
return true;
|
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
|
#ifdef PIN_DIAG
|
||||||
// CUSTOM (TeTeHacko): `dio1` -- salvage diagnostic for a node whose radio
|
// CUSTOM (TeTeHacko): `dio1` -- salvage diagnostic for a node whose radio
|
||||||
// transmits (a witness hears the frames) but never reports completion, i.e. the
|
// transmits (a witness hears the frames) but never reports completion, i.e. the
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ build_flags =
|
|||||||
; link at 0 dBm. Advertising is already +8 (simple_repeater/main.cpp);
|
; link at 0 dBm. Advertising is already +8 (simple_repeater/main.cpp);
|
||||||
; runtime: `blepwr <dBm>`, saved in /ble_pwr.
|
; runtime: `blepwr <dBm>`, saved in /ble_pwr.
|
||||||
-D RPT_BLE_CONN_TX_POWER=8
|
-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
|
; INA226 defaults to 0x44 in EnvironmentSensorManager = collision with SHT41
|
||||||
; (false detection, garbage in telemetry). 0x40 is the real INA226 HW default.
|
; (false detection, garbage in telemetry). 0x40 is the real INA226 HW default.
|
||||||
-D TELEM_INA226_ADDRESS=0x40
|
-D TELEM_INA226_ADDRESS=0x40
|
||||||
|
|||||||
Reference in new issue
Block a user