The runner gains the fleet script grammar per the fleet-standalone plan: - parse() is now public and pure (no state, no counters): it validates the whole script and returns the directive block — job key, !tags list (1..8 tags, job-key charset, exact comma list), !ack / !ack err mode and the !at epoch — plus the command-body offset. FleetManager uses it for targeting decisions before enqueueing; enqueue() re-parses through the same code so the parser stays authoritative in one place. - The directive block is the run of !-lines after !id: !tags/!ack/!at each at most once, either order; any other block line, a repeat, or a !delay in block position rejects the whole script (fail-safe, as before). - !delay <ms> (1..300000) pauses execution anywhere in the command body: run() is resumable, walking the queue slot in place across loop passes (signed-difference millis deadline, the BatteryGate wrap pattern; body offsets recorded between passes — restPos() peeking keeps the next line's terminator intact, and slot text is zero-filled so a resume past the final line reads empty and finishes). A sleeping script holds its queue slot; two sleepers fill the 2-slot queue. - run() accumulates the acknowledgement summary as lines execute and reports it in CliRunResult when the script finishes (single command: its actual reply; several: 'ran N ok' / 'ran N; err: <first failing reply>'). - markKeySeen() + enqueueValidated() support the scheduled-script store: mark at admission, queue later without re-marking. - FILTER_CLI_* tunables move to FleetConfig.h as FLEET_CLI_*; the runner's PacketFilterConfig.h include becomes FleetConfig.h. - parseGroupText() hoists from PacketFilter.cpp to CliUtil.h: the definition of a message's sender/text split now lives in one place for the filter's text= selectors and the fleet intake alike. Runner behaviour tests (parsing, directive block, delays/resume, summaries, idempotency, seen ring) move into test/test_fleet; the existing filter suite stays green unchanged.
MeshCore — Repeater Firmware with a Remote-Configurable Packet Filter
This is a feature fork of MeshCore. It tracks upstream automatically (synced weekly) and adds three 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
🛰️ Fleet management (remote CLI scripts)
Broadcast CLI jobs to a whole fleet of repeaters through one private keyed
channel. A filter rule with action=cli forwards a group text message like
normal traffic and executes its text as a small script — deferred, and at
most once per job key per boot. 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, and the sender
name or a tag in the job key can address sub-fleets (by location, board type,
or rollout stage).
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.
→ Full guide, including recipes, the two-phase cutover pattern, and the security model: CLI.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, and CLI.md if you are running a fleet.