What's new since dev.7
Fork work only (no upstream sync). The headline is LoRa OTA firmware updates for ESP32 repeaters, driven by the new MeshCoreOTA app. The packet filter, fleet, battery gate, mesh clock and radio2/radio.rxps features are unchanged from dev.7.
LoRa OTA (ESP32)
ESP32 repeaters can now be updated over the mesh without visiting the site. The companion stays stock: every OTA operation rides inside an ordinary encrypted admin REQ/RESPONSE datagram (fork-private REQ type 0xA0), so relays just forward ciphertext and need no changes.
- The app drives the update; the node only receives, verifies and applies. The app picks the image for the repeater's board, sends only the bytes that changed when it can match the running image, and stages the result into the inactive A/B app slot. The node SHA-256s what actually landed in flash and will not apply anything that does not match. Nothing boots until you confirm.
- One operator arm.
ota stage <size> <sha256> <version>(serial or any authenticated remote admin) registers the exact image and returns a one-time token, valid for 120 s.OP_STARTmust match both the token and the {size, SHA-256} contract, so an overheard token cannot arm a different image. - Capability handshake.
OP_INFOis answered in every state and reports the wire version, board target id, usable slot size, largest literal, feature bits, the running version and the running image's SHA-256. The app uses the hash for an exact delta base and refuses a board mismatch. - Boot health check. After
ota apply, a fresh image must bring up its radio and send one zero-hop packet; any failure flips back to the previous firmware by itself.ota rollbackflips back manually. - Diagnostics:
ota status,ota abortandota rollback. These are for recovery, not the normal update path — seeOTA.mdand the MeshCoreOTA user guide. - The node-side contract is append-only and documented in
examples/simple_repeater/OtaUpdate.hfor client authors.
Requirements: an ESP32 board with a dual app partition (others report the feature unsupported), admin access, and a stock companion reachable over Bluetooth (Android/macOS/Linux) or TCP (any platform). No custom companion firmware or new payload type.
Tests and build
- New
native_otaandnative_ota_sanenvironments run the whole OTA state machine in RAM behind a fake flash layer — 73 tests, all passing. - A pre-build hook adds
OTA_PIO_ENVto every ESP32 build so the node's target id matches the one the app derives from the release asset name.
Documentation
- New
OTA.mdis the operator guide; it points at the MeshCoreOTA app rather than documenting a manual OTA procedure. The README's OTA section is now a short introduction linking to both.
Compatibility: no persisted-configuration or CLI changes — filter, fleet, battery, clock and radio2 configs load exactly as in dev.7.
Full Changelog: filter-v1.18.0-dev.7...filter-v1.18.0-dev.8
What's new since dev.8
Fork work only (no upstream sync). Two headlines: the LoRa OTA engine gains node-side delta and compression support, so an update no longer needs a previous image stored on the device; and a new opt-in chat bot answers test/ping/help chatter. The packet filter, fleet, battery gate and mesh clock are unchanged from dev.8.
Action required: ESP32 repeater partition change
This release moves the 28 ESP32 repeater targets still on the 4 MB default.csv table to larger app slots:
| Board group | Table | App slots | SPIFFS |
|---|---|---|---|
| 4 MB boards (20 targets) | min_spiffs.csv
| 1920 KiB | 128 KiB at 0x3D0000
|
| 16 MB boards (8 targets, T-Beam 1W and Station G2/G3) | default_16MB.csv
| 6400 KiB | 3456 KiB at 0xC90000
|
Both move SPIFFS away from 0x290000, so this cannot be delivered over OTA. Upgrading needs a full erase and a flash of the merged image. Back up the private key with get prv.key and re-enter settings, channels, filter rules and fleet tags first, then restore the key with set prv.key. Other roles on those boards share the base layout and need the same reflash; the T-Beam 1W observer moved with its board. See OTA.md for the full target list and procedure, or jump straight to the affected targets.
LoRa OTA: node-side delta and compressed updates (ESP32)
dev.8 introduced OTA driven by the companion app (now MeshCoreRepeaterManager). This release adds what lets the app build and ship an update with no prior image on the node. All new operations are append-only: OP_INFO_REPORT stays byte-for-byte frozen, existing ops keep their meaning, and every new feature is optional and advertised by a feature bit.
- Read-only image oracle.
OP_BLOCK_HASHreports the running image's size, ESP segment table, whole-image hash and up to four range hashes.OP_BLOCK_FINDtakes up to twelve 64-bit rolling fingerprints and a search window and returns the aligned offsets where each block occurs. Both are answered in every state, never write flash and never touch the session, so the app can build a diff with no delta base on the device. A bulk-read during block search cut a 128 KB scan from 8.2 s to 0.82 s (256 KB: 15.8 s to 1.03 s). - Compressed literals.
OP_LITERAL_Z(0x0D) carries a chunked raw-DEFLATE stream that the node inflates with the ESP32's ROM miniz straight into the staging slot, at zero flash cost. Native tests use host zlib behind a small wrapper. A truncated or corrupt stream, an unfinished stream atOP_END, or a wrong output length fails staging witherr=9. - Staged-image verification.
OP_STAGED_HASHhashes the written prefix of the staged slot read-only, sharing the running-image encoder. - Structured status and link probe.
OP_STATUS_REPORTadds a per-arm session id, progress, capability bits, a codec mask and a reserved TLV extension block.OP_PINGechoes a small payload over the op path. Both are answered in every state. The session id lets an app tell whether the repeater restarted mid-update. - Fixes and hardening. Corrected the ESP32 inflater (miniz writes both size arguments back as bytes consumed/written and treats output as a wrapping 32 KB dictionary; the old code overflowed the heap scratch, emitted stale bytes and re-read the wrong input), rejected corrupt image segment lengths before uint32 arithmetic, slimmed the node engine with byte-for-byte identical wire output, and fixed the miniz include so both installed frameworks build.
Chat bot (opt-in, new)
A repeater can now answer common #test chatter from itself, with no companion, internet or contact table. BOT.md is the full guide. Think twice before enabling one: every reply costs airtime for everyone, so give the bot its own channel with no other bots on it.
test/path/mt(and the whole-message triggerst,p,m) get a mention line and the received path;pinggets a mention line;help/hgets a short command list. Matching is case-insensitive and multi-word triggers are substrings. There is deliberately no time, hop count or SNR in a reply.- Replies use the incoming region and radio profile, delayed 1 to 3 s so they do not collide with the original relay burst. Path bytes are grouped by the sender's path hash size.
bot chan #namederives the key likefilter add chan=#name;bot chan <psk-hex>takes 32 or 64 hex digits (16-byte keys are zero-padded to 32 bytes, as core requires).bot name,bot on|offand the barebotstatus line complete the surface.- One global gate: at most one reply every 5 s. The timer is RAM-only and cleared on boot. Config persists to
/bot_cfga few seconds after an edit. - Interactions: silent while the battery gate is suspended, no reply on channels the filter drops by content rule, replies follow radio2's reply-origin rule, and they appear as TX packets in the MQTT observer feed. Do not share the fleet channel key with the bot.
radio2 status reply text
radio2 status now appends preset=F,BW,SF,CR (frequency MHz, bandwidth kHz, spreading factor, coding rate) on every line, including the off, conflict and paused forms. Parsers that match the exact reply should accept the extra field. RADIO2.md documents it.
Tests and build
- New
native_botandnative_bot_sanenvironments run the chat bot suite (27 tests). native_otagrew to 90 tests. The OTA, bot and radio2 suites all pass (164 test cases across the three, plus the sanitizer environments).
Documentation
OTA.mdgains an "Action required" partition section with the affected targets and the backup / full-erase / restore procedure;README.mdlinks to it and to the newBOT.md.- The OTA guides now point at MeshCoreRepeaterManager (renamed from MeshCoreOTA); the app's own guide is the procedure reference.
RELEASE.mdrecords that a partition-changing release must paste the OTA.md action block at the top of the notes.AGENTS.mdnow forbids em dashes in fork docs, CLI text and commit messages.
Compatibility:
- No persisted-config or CLI changes for the packet filter, fleet, battery gate, mesh clock or the existing OTA flow.
filter,/fleet_cfg, battery and/meshclockconfigs load exactly as in dev.8. The bot adds one new/bot_cfgrecord and is off by default. - The OTA wire additions are append-only.
OP_INFO_REPORTis byte-for-byte frozen and all new ops are optional and feature-gated, so an app that only knows the dev.8 operations keeps working. radio2 statusreply text gained thepreset=field (see above).- Firmware upgrade caveat: the ESP32 partition change cannot go out over OTA. Affected boards need a full erase and a merged-image reflash with
prv.keybacked up first. Other boards are unaffected. The STM32WLE5 repeaters remain excluded (they do not fit the app region), and the ESP-NOW bridge targets remain deliberately absent (an upstream MeshCore build issue).
Full Changelog: filter-v1.18.0-dev.8...filter-v1.18.0-dev.9
What's new since dev.9
This is a build fix release. It restores the firmware assets dev.9 was missing. No feature, config, CLI or wire behaviour changed.
dev.9 shipped an incomplete asset set
The LoRa OTA engine compiles into every repeater build. Its raw-DEFLATE inflater picked the ESP32 ROM miniz under #if defined(ESP32) and host zlib under a bare #else. The #else was meant for native tests, but it also caught every non-ESP32 firmware target. Those builds stopped at zlib.h: No such file or directory, so dev.9 shipped 218 assets, about 109 targets, instead of the usual 320+.
The guard now selects zlib for native tests only. ESP32 keeps miniz. Other firmware targets compile a small no-op inflater and stay OTA-inert, as they already were at runtime: the session engine answers nothing when there is no OTA slot.
What this restores
All 55 non-ESP32 repeater targets that failed in dev.9 now build, including the nRF52 and RP2040 families, observers included. Each was compile-checked locally after the fix, along with Xiao_S3_WIO_repeater, RAK_4631_repeater, PicoW_repeater and wio-e5_kiss_modem.
Still absent, as in every earlier release:
Heltec_ct62_repeater_bridge_espnow,Tenstar_C3_sx1262_repeater_bridge_espnowandTenstar_C3_sx1268_repeater_bridge_espnow: the upstream MeshCoreesp_now_recv_cb_tsignature mismatch. Not a fork regression.ThinkNode_M8_repeater: the upstream variant config omits the sensor sources at link time. It has never shipped an asset.- The STM32WLE5 repeaters remain excluded because they do not fit the app region.
Tests
All 1078 host tests pass, including native_ota and native_ota_san.
Compatibility:
No persisted config, CLI, forwarding, filter, fleet, battery, mesh clock or OTA wire changes. Nodes running dev.9 firmware need no config changes. Flashing this build gives a non-ESP32 node the same inert OTA surface it was always meant to have. ESP32 OTA behaviour is unchanged.
Full Changelog: filter-v1.18.0-dev.9...filter-v1.18.0-dev.10
Ham mode (opt-in)
A new ham feature gives licensed amateur operators two transmit powers:
ham tx for traffic anyone can read and set tx for encrypted traffic. The
repeater chooses the power per packet just before transmission. Packet contents
and on-air formats are unchanged, so stock nodes and apps see nothing different.
- Adverts, ACKs, traces, control packets and group traffic that verifies against
the Public channel or one of your hashtag channels useham tx. Direct
traffic, returned paths, raw custom packets and unmatched group traffic stay
atset tx. - The callsign gate requires
ham on, a configured callsign and that callsign
as a whole word in the live node name. A 10-minute station-ID advert is
scheduled on activation and every 10 minutes after that, carrying the call
sign in the node name. - Config persists in
/ham_cfg. Ham mode is off by default, even after a
config load failure, and is fully decoupled from the packet filter.
You must hold an amateur radio license and choose both power levels yourself
for your board and antenna. This fork enforces no power ceiling and claims no
compliance. See HAM.md before enabling it.
Documentation
- Added the HAM.md user guide and updated the README.
- Removed em dashes from the fork user guides.
Release process
-
Dev release notes now come from this file. Stable releases collect the notes
from the dev releases since the previous stable release. -
Removed unused manual inputs from the release workflows.
-
Online OTA for repeater observer builds.
ota fetch ver <version>,
ota fetch sha <digest>andota fetch startdownload a release over HTTPS,
stage it with the existing SHA-256 gate, andota applyreboots into it with
the usual boot health check and rollback. No manifest, GitHub API call or
companion app change is needed. See ONLINE_OTA.md. -
The observer only brings up WiFi at
ota fetch start. Setting the version or
digest touches no network, the observer's clock and heap gate are reused, the
station is released when the job ends, and a suspended battery gate refuses or
aborts a download. A 15-second no-progress timeout stops a stalled server from
holding the node awake. -
ota abortnow cancels an in-flight online fetch as well as the LoRa session,
clears the stored version and digest, and releases the station. A failed fetch
is terminal for powersaving and reports a real error code, noterr=0. -
Release naming changed. Tags are now
v<version>instead of
filter-v<version>, release titles sayFirmware <version>, release app
assets are<env>-v<version>.bin, and the firmware version string is the
same sha-freev<version>. Existing tags, titles and assets were renamed in
place, so older asset URLs no longer work. Old tag refs remain as aliases and
branch names are unchanged. -
OP_INFOreports one appended feature bit (0x40) for online fetch. No OTA
op codes, report layouts or frozen CLI replies changed. -
The release build and local
build.shnow produce matching sha-free version
strings and asset names.scripts/rename-ota-tags.py,
scripts/rename-ota-assets.pyandscripts/rename-ota-release-titles.py
performed the one-time migration with dry-run reports. -
Docs: new
ONLINE_OTA.md, a README paragraph that describes the fork as
more than a packet filter, fleet recipes and updated user guides. -
Battery gate: suspending and resuming now each require three consecutive
qualifying readings, about 60 seconds from the first qualifying reading to
confirmation. Suspend latency rises from about 30 seconds to 60 seconds;
resume goes from one reading to three. -
RXPS catch-up from EasySkyMesh. The noise-floor estimate now skips the
first 20 ms after every continuous-RX start, so an unsettled RSSI reading
cannot drag it to the clamp. On SX1262, a preamble with no packet behind it
now ends the receive window quickly instead of holding full receive current
until the post-preamble timer expires, and levels 1-9 round the RX window
down instead of up. Level 10 and raw periods are unchanged, and the off path
is untouched. -
Advert rate limiter rebuilt as a time-bucketed Bloom filter. It keeps the
same ~4 KiB of RAM, remembers admitted origins without early eviction, and
hashes the full 32-byte public key. With origins spread across the window,
the estimated false-positive rate is roughly 1 in 500 at 1,600 origins.
Windows are never shorter than configured (48 h means 48 h 04 m to
54 h 56 m).cache Nreports live admissions even after an idle period and
is no longer capped at 512, so thecachefield in the status and
filter ratelimitreplies drops the old/512suffix. Changing the
rate-limit window clears the advert history.
Built from commit 7e79f8220072fdf38478c4409a4007fbfd8fd2a6.