Repository navigation
firmware: ESP-NOW range quick-wins + per-peer RSSI (2026.06.08.01) - #43
Merged
Merged
Conversation
Field test: mesh peers vanished past ~8 m (worse in the rain). Three low-risk fixes to the always-on ESP-NOW mesh, none touching wire format: 1. Disable modem power-save in meshInit (WiFi.setSleep(false)). The default STA power-save duty-cycles the receiver, so it sleeps through 2 Hz broadcasts — at the link margin that reads as a sharp short-range cliff. Also reasserted after the WiFi upload window in connectWiFi so the mesh stays awake once an upload ends. 2. Pin max TX power in meshInit (WiFi.setTxPower(19.5dBm)). It was only set inside connectWiFi (upload window); mesh-only operation ran at the post-mode default. 3. Per-peer RX RSSI telemetry: capture info->rx_ctrl->rssi in meshOnReceive into a new local MeshPeerState.last_rssi (in-memory only, not a wire field), and surface it in the `mesh` command (rssi=NdBm). Lets us read RSSI-vs-distance and tell a real range/ sensitivity problem from a logic one. Validate on one bench unit (mesh RSSI readout + range) BEFORE merging — a main merge auto-OTAs the whole fleet via the CI manifest fan-out. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mainbuild auto-publishes the OTA manifest to all 6 boats (CIfirmware-edge.yml, main-only step), so merge = fleet-wide auto-OTA. This PR's job is the compile check only.Why
Field test on a football field: ESP-NOW peers vanished past ~8 m (worse in the rain — wet grass is brutal at 2.4 GHz). Code read ruled out a software RSSI gate (
meshOnReceivenever looked at RSSI; peer expiry is 30 s), so packets genuinely weren't arriving → RF/PHY + reliability. Three low-risk fixes, none touching the ESP-NOW wire format:WiFi.setSleep(false)) inmeshInit— default STA power-save duty-cycles the RX so it sleeps through 2 Hz broadcasts; at the link margin that looks like a short-range cliff. Reasserted inconnectWiFiafter the upload window too.WiFi.setTxPower(WIFI_POWER_19_5dBm)) inmeshInit— it was only set during the WiFi upload window, so mesh-only operation ran at the default.info->rx_ctrl->rssiinmeshOnReceiveinto a new in-memoryMeshPeerState.last_rssi(not a wire field) and print it in themeshcommand (rssi=NdBm). Lets you read RSSI-vs-distance and distinguish a real sensitivity/range problem from a logic one.FW_VERSION→2026.06.08.01.Validation plan (before merge)
scripts/flash-edge.sh), runmesh— confirmrssi=NdBmnow appears per peer.🤖 Generated with Claude Code