Three testers asked what to enter under Settings > Deployment. Until a deployment is chosen
the card now stands out (blue, title "First step: choose where your data goes") and lists
the steps: open your CoreScope on another screen, open Coverage, scan its QR code or type
the address under it. Once chosen it shrinks to one line naming where the app uploads.
Google Play updates silently and late, and a GitHub APK never updates by itself. At start
the app asks Play's in-app update API (@capawesome/capacitor-app-update 8.1.1); for a Play
install Play decides, and a tap starts the update in Play. Any other install compares its
version with version.json of its deployment, now written by every web build.
A hidden page gets no GPS updates while Web Bluetooth can still deliver packets, so a
reception was stamped with the last position from before the page was hidden. Fixes now
carry their receive time; a hidden page only uses a fix up to 30 s old (receptions, RF
samples, pings). After a minute or more in the background while connected, Home says how
long and how many receptions were saved or not saved.
A OnePlus closed the app during a test walk (exit reason o-kill, importance
125, so with the foreground service running). Without an extra permission
the app cannot prevent that, so before the first Connect in the Android app
a popup says to set the battery setting to Unrestricted, linking
dontkillmyapp.com. Shown once (localStorage flag); storage that throws skips
it rather than blocking Connect. Same text in the user guide.
Release v1.24.3, SW cache coredrive-rx-v63.
Google Play requires a link to the privacy policy inside the app. Settings
gets an About card with the privacy policy, user guide and source code; in
the Android app the links open in the phone's browser (Bridge.launchIntent).
SW cache coredrive-rx-v61.
The Android app draws edge to edge, so the header sat under the status bar
and the Home/Map/Settings bar under the navigation buttons. index.html now
pads the body and the bottom bar by the system bar insets: Capacitor's
--safe-area-inset-* variables, env(safe-area-inset-*) as fallback, 0 in a
desktop browser. Checked headless at phone width in a browser; not yet on
the phone.
The Deployment card in Settings gets a "Scan QR code" button. It uses
BarcodeScanner.scan() of @capacitor-mlkit/barcode-scanning 8.2.1 (exact; 8.2.2
was 10 days old), which runs the Google code scanner in Play services: its own
camera screen, no camera permission, the module downloaded once on first use
with progress shown in the card. A scanned code must spell out https:// itself
and then goes through the same config.json check as a typed URL. A cancelled
scan is silent; a QR code that is not a deployment URL says so.
The QR code itself comes from CoreScope's Coverage page (clientRxCoverage.appUrl),
which is a separate change in the CoreScope repository.
android/app/build.gradle leaves libbarhopper_v3.so out of the APK: that is the
bundled ML Kit detector used only by startScan and readBarcodesFromImage, which
the app never calls. Debug APK 29.5 MB with it, 9.2 MB without (4.9 MB before
the plugin).
- src/qrscan.js + test/qrscan.test.mjs: 8 tests (468 total pass)
- web build checked headless: appver filled, Deployment card hidden
Not tested on a device: the scan, the module download and the size cut are
unverified on hardware.
The APK carried the config.json that happened to be in public/ at build time, so
every APK belonged to one deployment, and a real one would have put the broker
login inside the file.
The native app now asks for the URL of a CoreDrive RX web deployment under
Settings and reads that deployment's config.json through CapacitorHttp, outside
the WebView, so the deployment needs no CORS header for it. A new URL is checked
before it replaces the old one. The last good config of the same deployment is
kept in localStorage and used when a start has no network; a different
deployment drops it. android:sync removes config.json from the APK assets.
- src/deployment.js: URL normalization (https only), fetch + validate + cache
- src/config.js: setConfigSource and parseConfigText, fetch path unchanged
- test/deployment.test.mjs: 11 tests (460 total pass)
- web build checked headless: appver filled, Deployment card hidden
Not tested on a device yet.
The first version filtered only #coredrive. Reading every channel slot of
the companion (CMD_GET_CHANNEL, once per connection, only with the notice
on) lets the app recognise any channel message the way the firmware does:
channel hash, then MAC (Mesh.cpp:225-236), for GRP_TXT and GRP_DATA. What
still triggers a count is a direct message or a room-server post.
The slots cannot change during the connection: the MeshCore app cannot
reach the companion while CoreDrive RX holds the BLE link. A slot the
uplink ping writes is added to the list as well.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While CoreDrive RX holds the BLE link the MeshCore app cannot, so a user
asked whether they would miss messages. The companion already pushes a
one-byte PUSH_CODE_MSG_WAITING (0x83) per queued message; the app now
counts those on Home, behind a Settings toggle that is off by default,
with an optional two-tone sound. Nothing is fetched: CMD_SYNC_NEXT_MESSAGE
would remove the message from the companion's queue.
The push carries no type, so #coredrive traffic of other clients would be
counted too. src/msgwait.js matches each push against the 0x88 that came
just before it (logged before processing, Dispatcher.cpp:199): the first
copy of another client's ping-channel GRP_TXT expects one push, which is
swallowed; re-broadcasts expect none (wasSeen, Mesh.cpp:233); echoes of
our own ping expect none (markSeen on send, Mesh.cpp:651). A promise
chain keeps the async decrypt of the 0x88 ahead of the 0x83.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sends one uplink ping immediately from Settings → Diagnostics, shown once
the ping channel is set up. It skips the interval, distance, parked and
skip-cell rules (the skip cells live on the phone, so a spot already
pinged could not be retested for 7 days); the hourly cap and a GPS fix are
still required.
Field test on rx.on8ar.eu/beta, 2026-10-16: ping cdrx 78277c0e was echoed by
1403 and c0cd directly and via 1403→e470 and 1403→…→0606. The echo hash
b76c6a2777f9b0e9 matches the transmission CoreScope received from 15
observers (TRANSPORT_FLOOD, scope be, first hop 1403). Release notes updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings gets a 'CoreScope account' card, shown only when CoreScope has
user management on (or this companion's uploads are held). A connected
companion is linked automatically; the sign exchange holds the radio so
region discovery, the discover sweep and the RF sampler cannot answer
for it. Drain holds only when CoreScope requires linked companions.
The service worker no longer caches CoreScope's account/config answers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two field logs traced to one root cause: config.json is fetched exactly once at
DOMContentLoaded and never retried, so a single transient failure at startup left
getConfig() returning null (or a stale cached copy) for the rest of the session.
Log A: no config at all. connectAll took its else branch, never built a Publisher,
and then reported "All connected - capturing" anyway. An hour of receptions queued
and nothing published. The Push button answered "nothing pending / not connected"
because drain() returns 0 for a null publisher exactly as it does for an empty
queue - and its reconnect branch was guarded on `publisher && !connected()`, which
skipped the one case needing recovery. The only message naming the cause went to
els('status'), which the next connect cleared with log('').
Log B: a config.json cached before rfSampler/regionDiscovery existed. Absent flags
normalize to false, so both features were dead while the served config said on -
publishing worked, everything looked green, and nothing reported it. A stale config
is worse than none: none is detectable, stale is not.
- sw.js: config.json bypasses the cache in both directions, and the
caches.match('/') fallback is limited to navigations. Serving index.html for a
JSON request is what turned an offline start into "invalid JSON: Unexpected
token '<'".
- config.js: loadConfig dedupes concurrent attempts, caches only on success so a
retry actually re-fetches, and names an HTML body instead of leaking a parse error.
- uplink.js (new, pure): uplinkState / uplinkWarning / pushOutcome /
regionInertReason / buildLogHeader.
- app.js: retries the config on every connect, on `online`, and once a minute while
missing; startPublisher() split out so a late config brings uploading up without
reconnecting; a red Home banner while receptions are buffered but not uploaded;
the progress list no longer claims an uplink it does not have; pushNow reports
queue depth independently of link health and picks the matching repair.
- Region discovery names which of its four gates is holding it, once, in the log -
"no regions lines" was consistent with all four and distinguished none. Its
re-entry throttle is now stamped before the gates instead of after.
- Every exported log carries a header with app version, EFFECTIVE config flags,
firmware version, region-discovery status, uplink state and queue depth. Both
field logs arrived unattributable to a version; the header is built at share time
so it cannot roll out of the 200-line ring buffer the way a startup line does.
Tests: 217 pass (+41). sw.js is driven in a node:vm ServiceWorkerGlobalScope so the
shipped file is tested, not a copy of its logic.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Firmware, simple_repeater/MyMesh.cpp:562-571: a TRANSPORT_FLOOD is matched
against a named region by code1, while a plain ROUTE_TYPE_FLOOD — a packet
carrying no transport scope at all — is governed solely by the region tree's
root, whose name is '*'. So '*' answers "do I forward unscoped floods?", which
is a different question from any region name.
Shown inside the comma-separated list it read as just another scope. Split it
out into a small "+ unscoped" marker, and base declaresNothing on the scoped
regions alone — a repeater declaring only '*' declares no regions yet does
forward plain floods, and those are two facts, not one.
Adds a new card at the bottom of Home listing the 5 most-recently
answered repeaters from region discovery, most recent first, hidden
until there is at least one answer. Both real answer shapes are shown
distinctly: a repeater that declared regions lists them; one that
declared an empty list says so explicitly ("declares nothing
flood-allowed") rather than rendering blank, since that is a genuine
answer, not an absence of one. A truncated reply is marked, since a
missing region there is not necessarily a real absence.
- src/regionsview.js (new): pure regionsRows(answers) transform —
last 5, most-recent-first, declaresNothing/truncated flags. Name
resolution is a network call and stays out of this module.
- src/app.js: noteRegionsAnswer stores each accepted reply
(onRegionsFrame) and resolves its name once via the existing
names.js session cache (no extra network call per render);
renderRegionsCard does the DOM write.
- index.html: new #regionsCard card following the existing .card +
<label> pattern; .stats font-size 28px->24px and tighter
.statusstrip/.discstatus margins to make room, without touching the
shared .card padding or dropping any of the four top-card figures.
- public/sw.js: CACHE bumped v24 -> v25 (frontend files changed).
Tests: src/regionsview.js covered directly in
test/regionsview.test.mjs (empty input, >5 answers, <5 answers,
declares-regions vs declares-nothing, truncated flag, name pass-
through). app.js has no test harness in this codebase and is not
covered — wiring verified by a clean `vite build` and manual read.
Ask exactly one repeater per region-discovery round (half the 30s discover
cadence, so once a minute) for its declared flood-allowed region list, and
compare it later against what CoreScope observes it actually forward.
- src/regionreq.js: selectNextTarget(state) -> pubkey|null, pure round-robin
selection with demotion for non-answerers (never dropped, since silence is
ambiguous: out of range, rate-limited, old firmware, or busy).
- src/meshpacket.js: parsePacket now also returns advertTs (the node's own
re-advert clock, so a repeater is re-asked only after a config edit) and
advertType (ADV_TYPE_*, so only ADV_TYPE_REPEATER nodes are ever asked --
only simple_repeater firmware implements the reply).
- src/app.js: wiring only. Candidates are 0-hop adverts (full pubkey, direct
RF range) from repeaters; maybeQueryRegions() rides the discover clock at
half rate and sends at most one buildRegionsRequest per round, logged at
the tx (orange) level; onRegionsFrame is a dedicated listener fed the RAW
notification (never parseFrame(...).data, which strips the code byte and
would silently break parseRegionsResponse's bytes[0] check).
- Feature gate: FIRMWARE_VER_CODE >= 13 (CMD_SEND_ANON_REQ's non-contact
allowance), read via the existing requestDeviceInfo() call at connect;
when regionDiscovery is configured on but the firmware is too old, the
feature stays off and Settings shows why.
- config.regionDiscovery defaults to false (config.js, config.example.json).
- index.html: regionsInfo status line in Settings/Diagnostics.
- sw.js: cache buster v18 -> v19 (frontend files changed).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Adds fullRfLog (default off) so a sysop can opt in to queuing receptions
the capture path cannot attribute to a node — DIRECT routes, 1-byte path
hashes, etc — as a diagnostic RF observation stream. The decision lives
in a new pure src/capture.js so it stays testable without a DOM; an
unattributable reception moves no coverage state (counters, SNR meter,
recently-heard, beeper, map hexes untouched). MQTT payload shape and
Publisher.buildPayload are unchanged.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Optional short "bloop" (Web Audio, no asset) on every mapped reception, so
the operator gets feedback without looking at the phone — silence in a stale
area, frequent pings where devices are around, and an audible sign capture is
still alive (issue #7). Off by default; the choice is persisted in
localStorage so a later app start restores it.
Tone generation lives in a DI-injectable createBeeper() (mirrors wakelock.js)
so it is unit-tested without a browser. The AudioContext is unlocked from the
Connect click / toggle change to satisfy the autoplay policy.
Bump SW cache v11->v12.
Closes#7
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Connect/Disconnect (+ progress + status) moves from Home to the Settings tab, so
the recently-heard list moves up — Home stays a pure monitor.
- The app opens on Settings (where Connect lives) until a companion is connected,
then jumps to Home; the live monitor is shown only when there's something to watch.
- Last reception shows the resolved node name when available, upgrading from the raw
ID once names.js resolves it (label derived live each tick).
SW cache v8→v9.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Home becomes a pure monitor and a new Settings tab holds config/diagnostics.
- Discover now runs automatically while connected with a 15 s traffic backoff
(an overheard 2-byte forwarder/advert means a busy channel — don't poll on top
of it); standstill still suspends it. The Flood probe is removed entirely.
- New Settings tab: CoreScope broker status + "Push pending now", companion info,
diagnostics (verbose, debug log, share/mail the log via Web Share API).
- Home enriched: nodes/hex/rx counters, status strip (GPS accuracy, pending,
upload health + last-upload age, capture rate), last-reception SNR peak-hold
meter, discover status line.
- Fix the +60-pending-on-WiFi bug: publish() now times out instead of hanging on
a dead socket, drainLoop re-arms in finally so it can never die, MQTT keepalive
lowered, and a drain is kicked on broker reconnect / window online.
Pure logic in src/monitor.js + src/sharelog.js with tests. SW cache v7→v8.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Wake lock held for the whole session (native Screen Wake Lock where available,
hidden muted loop video fallback for Bluefy/WKWebView), acquired in the Connect
user-gesture so iOS allows video.play(), released on disconnect. Shows a notice
when Web Bluetooth is missing (iOS Safari → Bluefy). SW cache → v7.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Feed each GPS fix into the idle gate; while paused, skip queueing/counting/
mapping new receptions (recent-heard list still updates as liveness) and
suspend the Discover loop. Adds an amber status chip; bumps SW cache to v6.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Discover button now sends a zero-hop node-discover request (CONTROL/DISCOVER_REQ,
cmd 0x37) every 30s with an in-button countdown; meshpacket parses DISCOVER_RESP
into a heard_key (src=discover). Wire format verified against meshcore_py + firmware docs.
- replace Ping with a one-shot Flood probe (mesh-wide advert, 60s cooldown) that maps
repeaters beyond direct range via overheard re-broadcasts.
- meshpacket: guard TRACE packets (header path bytes are per-hop SNR, not hop hashes)
so they can't yield a bogus heard_key.
- debug log: green reserved for captures, orange for our own sends, explicit grey
notice for 1-byte path-hash packets, and a Verbose toggle for raw 0x88 bytes +
unattributable frames.
- bump version 0.7.0 -> 0.8.0, sw cache v2 -> v3.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Green = forwarded/sent (heard/attributed, published, discover/ping sent),
red = held back/failed (not attributable, no GPS, publish/send errors),
grey = status. (No version bump — v0.7.0.)
On connect, query DEVICE_INFO (CMD_DEVICE_QUERY) and read path_hash_mode (byte
81, fw v10+). If it's 0 (1-byte, collision-prone → our rule rejects it), set it
to 1 (2-byte) via CMD_SET_PATH_HASH_MODE and report it below the Connect button.
Discover sends one zero-hop self-advert (CMD_SEND_SELF_ADVERT=7, byte1=0) to
wake/probe only the directly-surrounding nodes (NOT flood). Ping is a toggle:
the same zero-hop advert every 15s, auto-reset whenever a multibyte packet is
heard. Buttons enabled only while a companion is connected.
Shows the running build next to the title. Versioning scheme: patch=fix/tweak,
minor=new backward-compatible feature, major=breaking (e.g. MQTT contract) or
first stable release.
The live map crowded the capture view, so move it to its own full-screen Map
tab. Bottom bar switches Home (stats/connect/recent/debug) <-> Map; Leaflet is
invalidated on show so tiles size correctly.
- src/hexgrid.js: JS port of the server hex grid (same cells as the analyzer)
- src/localmap.js: Leaflet map aggregating this session's receptions into live
hexes (best SNR colour); follows GPS with zoom preserved, drag to inspect +
📍 button to re-follow; hexes persist until reload
- wired into the capture flow; Leaflet via CDN
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Recent-nodes list now shows node names when a prefix resolves uniquely (full
node list fetched once via corsproxy.on8ar.eu/cs, cached 1h in localStorage;
2-byte prefix collisions fall back to the raw prefix). HTML-escaped.
Clean list of the last 20 heard nodes with their latest SNR (green→red), hit
count; raw debug log collapsed behind a toggle. Node-name lookup deferred (needs
a CORS allowance for rx.on8ar.eu on the analyzer API + full node-list fetch).
- SELF_INFO (CMD_APP_START 0x01 → PACKET_SELF_INFO 0x05) auto-fills the
companion pubkey (used as rx_pubkey / clientId / topic); manual field removed
- one Connect button: companion → SELF_INFO → broker, automatically; toggles to
Disconnect when connected
- stepped progress block: ① companion → ② companion id → ③ ON8AR CoreScope → all connected
- transport supports multiple frame listeners; publisher.end()
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- broker URL + credentials read from VITE_* env (.env.local, gitignored); the
UI no longer has credential fields — end user only connects the companion
- MQTT clientId = companion pubkey so an EMQX ACL can bind topics to ${clientid}
- .env.example documents the shared publish-only ingest-account model + the wss
valid-cert requirement
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- debug panel logs every frame in, parsed heard-key, and the exact outgoing MQTT
payload; Simulate RX pushes a real fixture through the full pipeline (no BLE/GPS
needed; mock-GPS toggle for desktop)
- test/pipeline.test.mjs asserts + prints the payload layout end-to-end
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Protocol core implemented + unit-tested (meshpacket: path[last]/advert pubkey,
direct-only rule; frames: 0x88 snr/rssi/raw). Working skeleton for transport
(Web Bluetooth NUS), GPS, IndexedDB queue, MQTT.js publisher and field UI.
Remaining work in docs/plan.md (spikes + harden + verify).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>