feat: set Morse receive floor and add bounded RSSI diagnostics

This commit is contained in:
mikecarper committed 2026-10-20 17:44:29 -07:00
1 parent 4e27d5108b
commit 265b71d77a
15 files changed
+358 -20

No files matched your search

+14
View File
@@ -83,6 +83,11 @@ power envelope into text. This is a separate manual session, not another
MeshCore packet channel or an authenticated sender. Nothing decoded is
automatically transmitted, relayed or inserted into a channel/DM inbox.
Reception requires a saved timing hint of **15-60 WPM**. The default remains
25 WPM. Slower speeds of 1-14 WPM remain available for transmission; listening
rejects them with a receive-specific error instead of silently changing the
saved setting. Set `morse.wpm` to at least 15 before listening.
| Command | Action |
| --- | --- |
| `morse listen 1` | Listen for one minute at the saved `morse.freq`, using `morse.wpm` as the timing hint. |
@@ -101,6 +106,15 @@ radio at least one second after listening begins. Start with matching WPM on
the sender and receiver. Noise, fading, interference and timing mismatch can
produce errors; decoded text has no sender identity or integrity check.
Automatic detection retains sustained noise peaks learned during the quiet
interval, after initial receiver settling. It keeps that quiet envelope across
marks and gaps rather than dropping the threshold back toward the average
noise level. There is no fixed per-board RSSI cutoff. A stable quiet floor
retains the six-dB acquisition margin; a noisier environment requires a signal
above its learned excursions. The envelope relaxes gradually when conditions
become quieter. Stop and start listening to run the initial learning interval
again in a new environment.
The receiver uses a continuous native FSK receive filter and live received
signal strength (RSSI) to follow the carrier's on/off envelope. It does not
transmit or require a packet preamble, sync word, CRC or direct-data pin:
+9 -1
View File
@@ -88,11 +88,19 @@ and the USB recovery grace periods. Tiers grow after reset authorization:
stats outage cannot shorten a later physical fault's interval. Ten minutes
of healthy monitored operation resets a raised tier to one hour.
Native TX-completion events are the progress evidence. Queueing, purging,
Native TX-completion events are progress evidence. On the pinned ESP32 HWCDC
backend, an exclusive check of both the empty software queue and acknowledged
hardware FIFO also completes a pending write: the SDK does not emit another
TX event for the final FIFO acknowledgement. An empty software queue alone
does not establish completion. Queueing, purging,
reinitializing, or accepting the optional bounded minute probe is not proof
of recovery. The watchdog never waits for a host. USB connection reports,
especially HWCDC's host/reader flags, are SDK approximations and do not reliably
identify an open TTY process.
HWCDC therefore uses physical host presence with a 100 ms continuous-loss
check rather than its unreliable open-reader heuristic. A brief status dip
does not revoke a valid stats lease. A real USB bus reset invalidates the lease
immediately; sustained host loss and actual TX stalls remain observable.
Recovery waits for active Binary USB clients, mOTA/update owners, unsaved
contacts, radio tests/calibration/temporary-radio operations, functional CLI