Jason Huebert 0412fc56cc refactor(filter): name a channel's index instead of pointer arithmetic
Two small things in the channel store:

- `filter get`-style status recounted the channels with a non-empty name, but
  every slot below num_channels always has one (addChannel only ever writes the
  slot it is about to count, and delChannel zeroes the tail), so the count was
  always num_channels. The dead loop is gone; the rest of the file already
  treated the store as dense, except searchChannelsByHash()'s null-key guard,
  which stays as the corruption check it is.

- `chan - filter.getChannel(0)` appeared twice as a way to ask "which index is
  this channel?". indexOfChannel() now answers that directly and findChannel()
  is a thin wrapper over it, so `filter add chan=` does one lookup instead of
  find-then-subtract.

No reply changes (StatusLineFormat pins the exact line).
2026-10-09 18:28:44 +00:00
2026-04-28 21:39:34 +10:00
2026-09-30 14:52:58 +13:00
2025-01-13 14:07:48 +11:00
2025-06-05 20:35:40 +12:00
2026-08-13 00:53:58 +10: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
2026-10-05 10:46:04 +00: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 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.

S
Description
No description provided
Readme MIT
21 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 52.7%
C 44.3%
Python 1.9%
Shell 1%