Commit Graph
25 Commits
Author SHA1 Message Date
efitenandClaude Opus 4.8 c4c049523a fix(app): only attribute path[last] for FLOOD routes
A direct-routed packet consumes the next hop from the FRONT of the path
(firmware Mesh.cpp removeSelfFromPath), so path[last] is the route's
destination-side end, not the node we physically heard — crediting SNR/RSSI to
the wrong (often far-away) node. Flood forwarders append at the end, so there
path[last] is correct. deriveHeardKey now skips DIRECT (2/3) multi-hop packets
via a new isFloodRoute() guard; the debug log calls them out explicitly. Also
covers TRACE (always DIRECT). bump 0.8.0 -> 0.8.1, sw cache v3 -> v4.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
pre-runtime-config
2026-06-11 22:18:38 +02:00
efitenandClaude Opus 4.8 27cdab6a5d chore: gitignore local announce/promo text files
These are local announcement copy, not source — keep them out of github by default.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 20:48:23 +02:00
efitenandClaude Opus 4.8 02b61df753 feat(app): node-discover + flood probe, debug-log cleanup
- 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>
2026-06-11 20:46:33 +02:00
efiten 1e49e40e21 feat(app): colour-code the debug log
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.)
2026-06-10 20:31:19 +02:00
efiten 9a5b4c5e02 feat(app): auto-set companion to 2-byte path-hash mode on connect
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.
v0.7.0
2026-06-10 20:27:46 +02:00
efiten 25b5889a89 feat(app): Discover + Ping buttons (zero-hop self-advert)
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.
v0.6.0
2026-06-10 20:15:34 +02:00
efiten c04b8fa9f0 fix(app): align follow button under the zoom control (explicit 10px corner margin) v0.5.4 2026-06-10 16:53:39 +02:00
efiten 8e45167402 fix(app): follow button uses Leaflet's leaflet-bar/<a> markup (matches zoom buttons)
Avoids the app's global button{} styles + native mobile button rendering that
stripped the box; now styled like the +/- control.
v0.5.3
2026-06-10 16:50:44 +02:00
efiten c261c5f59f fix(app): follow-button styling + cache-busting so updates land
- 📍 follow button: override the app's global button padding/margin so the icon
  sits centred in the box
- service worker: bump cache name + purge old caches on activate
- (nginx on rx.on8ar.eu now sends no-cache for index.html/sw, immutable for
  hashed assets, so new versions actually reach clients)
v0.5.2
2026-06-10 16:46:18 +02:00
efiten 91bbe1a67f fix(app): live GPS marker/follow updates continuously, not only on RX
The map's position marker only moved when a packet arrived, so it appeared to
hang and jump. GPS fixes (watchPosition) now feed the map directly via
setPosition; hexes are still added only on a real RX.
v0.5.1
2026-06-10 16:37:22 +02:00
efiten baeed272fc chore: add app version display (semver via Vite inject), set 0.5.0
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.
v0.5.0
2026-06-10 11:53:44 +02:00
efiten 050652b49a feat(app): send companion self-reported name as MQTT 'origin'
The server uses this to label mobile observers in the leaderboard even when the
companion never advertised (so it isn't in the nodes table).
2026-06-10 11:27:06 +02:00
efiten d01cecf413 feat(app): split into Home/Map views with a bottom tab bar
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.
2026-06-10 10:49:07 +02:00
efitenandClaude Opus 4.8 9f2ff0b7d9 feat(app): real-time local coverage hex map (follows GPS, keeps zoom)
- 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>
2026-06-10 10:41:43 +02:00
efiten 5f4c3c1eef perf(app): resolve node names on-the-fly per heard node (no bulk list)
Each distinct heard prefix triggers one tiny /api/nodes/resolve request (via
corsproxy), cached in memory for the session — ID shown first, replaced with the
name when it arrives. Drops the full ~node-list download + localStorage cache;
far less traffic and memory, and scales with network size.
2026-06-09 19:32:31 +02:00
efiten d7b50cdb31 feat(app): resolve heard-node names via CoreScope API (corsproxy /cs)
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.
2026-06-09 19:20:11 +02:00
efiten a39504826d feat(app): recently-heard nodes list (latest SNR, colour-coded) + debug log toggle
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).
2026-06-09 19:14:56 +02:00
efitenandClaude Opus 4.8 26a6cb429e feat(app): BLE auto-reconnect + PWA (installable); remove Simulate/mock GPS
- transport auto-reconnects on gattserverdisconnected (exponential backoff,
  buffer preserved); onStatus surfaces reconnecting/connected in the UI
- PWA: manifest + service worker (network-first, offline shell) + icons →
  'Add to Home screen' on Android
- removed Simulate RX + mock GPS (field hardware verified); kept debug log

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 19:03:37 +02:00
efitenandClaude Opus 4.8 32072580e2 feat(app): auto companion pubkey via SELF_INFO + single connect/disconnect button
- 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>
2026-06-09 18:47:24 +02:00
efiten 06b68f1c34 chore: deploy to rx.on8ar.eu (npm run deploy) + docs
Static build served by nginx on the reverse proxy (root@94.130.105.135,
/var/www/rx.on8ar.eu, TLS via certbot). Content updates = npm run deploy.
2026-06-09 18:28:36 +02:00
efiten c99dbb1a31 fix(env): EMQX websocket path is /ws (verified), user corescope-rx 2026-06-09 17:13:27 +02:00
efiten dc560cd360 docs(env): use emqx.on8ar.eu wss (valid Let's Encrypt cert) via hostname 2026-06-09 17:03:39 +02:00
efitenandClaude Opus 4.8 958bd7c2e4 feat: MQTT config from build-time env (creds never shown in UI)
- 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>
2026-06-09 17:00:25 +02:00
efitenandClaude Opus 4.8 7867a859e4 feat: on-screen debug log + Simulate RX, payload-layout pipeline test
- 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>
2026-06-09 16:53:22 +02:00
efitenandClaude Opus 4.8 db83810878 feat: scaffold corescope-rx capture app (BLE companion → MQTT coverage)
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>
2026-06-09 16:47:30 +02:00