radiolib: RADIO_DIAG -- radiostat/radiokick for a receiver that went deaf
bench-sensor stopped receiving on 31. 10. 2026 (recv frozen for minutes,
noise_floor -120, last_rssi 0, nothing in the debug log); a reboot revived it.
Before fixing anything, find out WHERE it is stuck:
radiostat wrapper state, DIO1 ISR count/age, last good RX age, plus the
SX1262 side: chip mode, cmd status, IRQ register, device errors,
instantaneous RSSI, DIO1/RXEN pin levels, boosted gain. Read only.
radiokick one recovery step at a time (rx | clrirq | standby | agc); the
first one that brings recv back names the broken layer.
Compiled only with -D RADIO_DIAG; the sensor example wires the commands in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
49886b6c04
commit
e6f2ae6249
5 files changed
+106
No files matched your search
@@ -515,6 +515,10 @@ void SensorMesh::handleCommand(ClientInfo* from, uint32_t sender_timestamp, char
|
||||
board.setGpio(val);
|
||||
}
|
||||
sprintf(reply, "%x", board.getGpio());
|
||||
#ifdef RADIO_DIAG
|
||||
// CUSTOM (TeTeHacko): `radiostat` / `radiokick` -- see RadioLibWrappers.cpp.
|
||||
} else if (radio_driver.diagHandleCommand(command, reply)) {
|
||||
#endif
|
||||
} else{
|
||||
_cli.handleCommand(sender_timestamp, command, reply); // common CLI commands
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user