github-actions[bot] e864ad548f refactor: keep the remaining fork features inert when disabled
A default-off parity pass over the features that had not had one (RXPS and
radio2 were fixed in 250551c4 and cc4aee21). No user-visible behaviour
changes; with everything disabled the node takes the upstream path and
does no feature work.

- powerApplyCpuFrequency() used to make real changes even in the default
  case: every ESP32 boot called setCpuFrequencyMhz() on the running
  frequency (and re-initialised the UART on UART-console boards). It now
  returns before either call when the requested frequency equals the
  running one; applying a new value or restoring the default is unchanged.
- onAdvertRecv() evaluated getRTCClock()->getCurrentTime() before mesh
  clock sync's enabled check, on every advert, for a disabled feature.
  Gated at the call site.
- allowPacketForward() and onGroupDataRecv() computed est_air_ms (the
  integer time-on-air) on every packet although only the filter's airtime
  telemetry reads it. It is now computed only when the filter is enabled
  (0 otherwise; nothing downstream reads it).
- checkContent() with an empty rule store can only return ALLOW, but ran
  the group-text parse, its stack buffers and the stash packet hash
  anyway. It now returns right after the stash is cleared - a fresh node
  does no content work on group packets.
2026-11-12 13:51:02 -06:00
2026-04-28 21:39:34 +10:00
2026-09-20 15:25:18 -04:00
2026-10-15 19:42:40 +11:00
2025-01-13 14:07:48 +11:00
2025-06-05 20:35:40 +12:00
2026-11-12 13:51:02 -06:00
2026-02-03 13:47:43 +13:00
2026-03-23 14:26:56 +01:00
2025-01-20 10:20:42 +11:00
2025-01-25 23:09:09 +11:00
2026-03-31 00:51:15 +13:00
2025-03-03 18:08:00 +13:00
2026-06-05 21:25:25 +12:00

MeshCore — Repeater Firmware with a Remote-Configurable Packet Filter

This is a feature fork of MeshCore. It tracks upstream automatically (synced weekly) and adds five repeater-focused capabilities on top of stock firmware. Everything else — supported boards, clients, protocols, build system — is identical to upstream; see the upstream README for the general project, hardware support, and getting-started guide.

What this fork adds

📡 Packet filter

A remote-configurable drop-rule engine for the simple_repeater firmware. Rules match on packet type, route type, region, hop count, channel, and — on decrypted payloads — channel identity and sender/text patterns. Rules are managed over the repeater CLI, locally via serial or remotely over the mesh by an authenticated admin. No rebuild, no physical access.

Independently of the rules, flood-route adverts can be rate-limited per originating node: each node's advert is forwarded at most once per window (up to 30 days), taming advert storms on busy channels while every node stays discoverable.

→ Full guide, including the complete predicate reference and CLI commands: FILTER.md

🔋 Battery gate

A configurable low-battery cut-off: below a set voltage the repeater stops forwarding (but stays reachable and keeps advertising); when the battery recovers it resumes automatically. Debounce + hysteresis keep it from flapping, and the admin can check voltage and tune thresholds over the mesh.

→ Full guide: BATTERY.md

⚡ Power profile

Three runtime knobs take an idle repeater from ~54 mA to ~4 mA: ESP32 light sleep (powersaving), the radio's receive duty cycle (radio.rxps) and the CPU clock (cpu.freq). All are persisted and revertible from the CLI — the duty-cycle levels are chosen so the datasheet's preamble-capture guarantee still holds, so the savings do not quietly turn into lost packets.

Credit where it is due: powersaving is upstream MeshCore, and the RXPS duty-cycle subsystem is ported from EasySkyMesh (IoTThinks/MeshCore, PowerSaving-v18); this fork added the cpu.freq setting, the port and the guide.

→ Full guide: POWER.md

🕒 Mesh clock sync

A repeater with no GPS, NTP, or battery-backed RTC can estimate UTC from signed adverts it hears. When enabled (clock mesh on), it waits for a batch of distinct sources to agree on the median before stepping the RTC; it is off by default. Advert timestamps earlier than the firmware build timestamp are rejected and never enter the batch. Public adverts are not a root of trust, so this is for plausible time on clockless nodes, not authoritative timekeeping.

→ Full guide: MESHCLOCK.md

🛰️ Fleet management (remote CLI scripts)

Broadcast CLI jobs to a whole fleet of repeaters through one private keyed channel. Set once per repeater (fleet chan set + tags + fleet on), a group text message on that channel executes as a small script — deferred, and at most once per job key per boot — on every repeater whose tags the job targets. Every admin command works remotely: radio settings, filter rules, node names, reboots. Re-send jobs freely to catch nodes that were offline; duplicates are ignored automatically; tags address sub-fleets (by location, board type, or rollout stage) and !ack makes nodes answer in-channel.

The channel key is the credential: holding the PSK is equivalent to serial-console access on every member, so PSK hygiene is the whole security model. The feature supersedes the battery gate — fleet jobs run, and fleet-channel traffic relays, even while a low battery has suspended forwarding.

→ Full guide, including recipes, the two-phase and scheduled-cutover patterns, and the security model: FLEET.md

📶 MQTT observer

An optional firmware build that publishes the traffic a repeater hears to one or two MQTT brokers, turning the node into a live feed for map, coverage, and packet-analysis tools — no computer or companion app attached to it. It captures before the packet filter and battery gate, so it observes packets the node will not forward, and it uplinks its own adverts by default so the node appears in the feed. ESP32 boards only; two broker slots with Ed25519-signed JWT or username/password auth, TLS with a valid clock, and a bounded best-effort queue that rides out broker outages.

→ Full guide, including the build targets, broker setup, CLI reference, and the message schema: MQTT_OBSERVER.md

Why run this instead of stock repeater firmware?

Stock repeaters forward everything they hear, until the battery dies. This fork is for operators who want policy and resilience at the node:

  • Shared / community nodes — mute noisy senders or channels that eat your airtime, without asking anyone to change their setup.
  • OpenHop-style policy, nothing extra to run — the rule engine is modelled after the policy filters in OpenHop and lives entirely in the repeater firmware, so you get about the same functionality with just the node itself — no computer, companion app, or other hardware needed.
  • Solar / off-grid sites — the node goes quiet while it can still answer you, instead of disappearing dark, and wakes itself when there's sun again.
  • Fleet operators — run several repeaters (a region, a club's network, a set of towers) and push settings to all of them with one broadcast message instead of one admin session each: radio preset cutovers, advert hygiene, filter policy, rollouts and rollbacks.

Getting the firmware

Prebuilt binaries for all supported boards are on the Releases page. Two channels:

Channel Branch Based on Tags
dev repeater-filter upstream dev (merged weekly by CI) filter-v*-dev.N
stable repeater-filter-stable upstream main releases filter-v*

Flash as you would stock firmware, then follow FILTER.md to set your first rules over the CLI, FLEET.md if you are running a fleet, POWER.md if the node runs on solar or battery, or MQTT_OBSERVER.md if you flashed an observer build. Observer builds ship in the same releases as the plain repeater firmware.

S
Description
No description provided
Readme MIT
11 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 56.4%
C 40.8%
Python 1.8%
Shell 0.9%