Commit Graph
5 Commits
Author SHA1 Message Date
Bastian Mäuser 4e4bf28508 Document missing_after_secs default as fallback only
The code default stays 30 s for configs that omit the key, but 30 s
false-locks with the companion beacon (event gaps of 25-60 s are
routine). Docs now say explicitly that shipped configs must set 60+.
2026-11-06 15:12:18 +01:00
Bastian Mäuser dcf403200a Fix probe reliability and restore sane missing_after
Two false locks with the phone present: missing_after=30 sat below the
realistic worst-case event gap (beacon counter rotation every 10s times
2-20% duty sampling, with frozen-RSSI dedupe collapsing catches inside
one window), and the connect probe ran while our own discovery
duty-cycling was active, where attempts stall or abort with
le-connection-abort-by-local.

Probe now stops discovery first and retries (2x6s); sample config and
handoff document the sampling math. Local config additionally raises
rssi_lock to -85, where nearby-phone readings were pinning.
2026-11-06 12:17:47 +01:00
Bastian Mäuser b93c0134dd Add Debian packaging and arm64 cross build
cargo-deb metadata produces a .deb with the binary, the packaged user
unit variant, man page and example config; arm64 cross-builds as a
static musl binary via an isolated rustup and rust-lld (recipe in
README). Add MIT LICENSE for the package copyright.
2026-11-05 16:34:47 +01:00
Bastian Mäuser 44510411fc Add Android companion beacon app (v1)
Kotlin/Compose foreground service advertising a connectable legacy
advertisement at ~1 Hz with a counter that rotates in ServiceData every
10s: changed payload values make BlueZ emit PropertiesChanged even when
the RSSI repeats, keeping the daemon's freshness clock fed for a
stationary phone. Running from a foreground service with a battery
optimization exemption defeats the advertising pauses that caused the
false locks. Replaces third-party beacon apps; the daemon needs no
changes. Verified with a real Gradle build (AGP 8.13.2, Kotlin 2.3.21,
compileSdk 36).
2026-11-05 15:15:03 +01:00
Bastian Mäuser aef8e2af17 Add AGENTS.md and handoff notes for agents
Distill the session findings (BlueZ RSSI dedupe, beacon pauses, MSRV
pinning, scan-only decision) so future agents and humans don't have to
rediscover them. AGENTS.md carries the rules, docs/HANDOFF.md the
history and open threads.
2026-11-05 15:01:54 +01:00