From 6a43afb0199b1dadf0686fc5affd411fcc367207 Mon Sep 17 00:00:00 2001 From: GlassOnTin Date: Sun, 29 Mar 2026 15:39:04 +0100 Subject: [PATCH] Force radio restart on CMD_RADIO_STATE, debug LoRa RX failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CMD_RADIO_STATE 0x01 now does stopRadio() + startRadio() to ensure clean SX1262 re-initialization when rnsd configures the radio. LoRa bidirectional test: NEITHER device can receive from the other. Both detect RF energy (airtime 1.34%) but can't demodulate packets. This rules out IFAC, provisioning, and firmware issues — the problem is at the LoRa PHY layer. Both SX1262 chips see preambles but fail to decode the payload. Next step: bare-metal LoRa test bypassing all RNS/IFAC/KISS layers. Send a raw LoRa packet from one SX1262 and verify reception on the other with minimal firmware to isolate the demodulation failure. --- RNode_Firmware.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino index 335f6a0..0bbd9da 100644 --- a/RNode_Firmware.ino +++ b/RNode_Firmware.ino @@ -1159,6 +1159,8 @@ void serial_callback(uint8_t sbyte, uint8_t ch) { stopRadio(); kiss_indicate_radiostate(); } else if (sbyte == 0x01) { + // Force full restart to ensure clean SX1262 init with current params + if (radio_online) stopRadio(); startRadio(); kiss_indicate_radiostate(); }