A typo'd tail was silently ignored while the command still replied OK: `filter off junk`, `del 0 junk`, `move 0 1 junk`, `ratelimit advert 48 junk` and `battery off junk` all reported success. That is the worst failure mode a management command has — the operator cannot tell whether the command did what they meant, or something else, or nothing. Every command form now refuses a trailing token with its own usage line, checked BEFORE any side effect, via one shared cliNoExtra() helper rather than a copy per command. An unbalanced quote is an error on every form, not just `filter add`, because the tokenizer would otherwise swallow the rest of the line into one value. An over-long command is refused whole: truncating it and acting on the prefix is safe memory but not safe policy — a cut `chan add` would store a mangled name. parseIntRange() now also checks ERANGE and leaves its output untouched on failure, so a rejected number cannot leave a stale one behind. `filter chan list <start-idx>` lets a full 16-channel store be walked: the reply cannot fit them all, and `chan del` takes a NAME, so a channel cut off by the reply buffer could neither be seen nor reliably removed. A truncated listing now ends with `next=N`; entries are only ever appended whole, and the bare listing keeps its old format whenever everything fits. `filter stats reset` exposes the resetStats() that already existed and had no CLI route. Counters go: per-rule hits, airtime, limiter drops, regex aborts. Rate state does NOT: throttle_seen/throttle_last_ms survive, so a stats reset cannot hand a throttled rule a free pass. Advert history is history, not a counter, and is kept. 375 cases green across all four native envs, 321 clean under sanitizers, firmware compiles.
MeshCore — Repeater Firmware with a Remote-Configurable Packet Filter
This is a feature fork of MeshCore. It tracks upstream automatically (synced weekly) and adds two 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
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.
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.