Native Flipper Zero (Momentum) remote frontend for a backpack-mounted M5StickS3 (ESP32-S3) running Bruce firmware, over an authenticated BLE link. BruceLink reuses Bruce's existing functions through a remote interface — it does not reimplement them.
Status: the Flipper and the StickS3 link over BLE on real hardware (owner-reported, 2026-11-23): pairing with a comparison code, a paired reconnect after a reboot, device info, and the Wi-Fi scan as a job (tools run one radio at a time between restarts, ADR 0006). Frames are authenticated but not encrypted. Capture and active operations are not wired into Bruce yet and are refused. See
docs/STATUS.mdandLOCAL_HANDOFF.md.
- A portable C99 protocol core shared byte-for-byte by both devices: authenticated session (pre-shared key + ephemeral X25519, forward secrecy, replay protection, request tags), pairing, framing, fragmentation, jobs, a capability registry, a capture session manager, a pcap writer, and a remote-operation safety gate.
- Host tests under AddressSanitizer + UBSan, cppcheck clean, and a Python
reference that recomputes the wire bytes, the handshake and pairing from the
C output (counts per run in
docs/TEST_RESULTS.md). - The Flipper app (BLE only) compiles for Momentum
mntm-012; what has run on hardware is listed indocs/STATUS.md. - The ESP32-S3 bridge + NimBLE 2.5.1 central compiles and links for the target.
| Path | What |
|---|---|
shared/brucelink_core/ |
portable protocol core (C99) |
flipper/brucelink/ |
native Flipper FAP (UI + transports) |
esp32/lib/BruceLink/ |
bridge core + NimBLE central transport |
esp32/src/modules/brucelink/ |
Bruce glue + PATCH.md (builds in the Bruce tree) |
esp32/test_compile/ |
standalone ESP32-S3 compile check |
tests/ |
host C tests + Python reference/interop |
scripts/hil/ |
hardware-in-the-loop scripts |
docs/ |
ADRs, architecture, protocol, status, capability matrix, HW testing |
make -C tests/c test cppcheck # core tests (ASan+UBSan) + static analysis
python3 -m unittest discover -s tests # Python reference + C interop
(cd flipper/brucelink && ufbt) # Flipper FAP (needs the mntm-012 SDK)
(cd esp32/test_compile && pio run) # ESP32-S3 bridge compile check
scripts/hil/build_all.sh # all of the aboveMomentum mntm-012 (API 87.1)
· Bruce 1.17 (env m5stack-sticks3)
· NimBLE-Arduino 2.5.1. BruceLink is independent of these projects.
Active, RF-transmitting functions (e.g. deauthentication testing) are
disabled by default and not available yet (refused on the StickS3
until they run as jobs, ADR 0006). The gate they will pass: an authenticated
connection, an explicit operator opt-in, one specific target (never
broadcast), a rate limit, and an emergency stop that also fires on link loss.
The core also has an optional target scope that nothing on the wire sets
yet. They are intended only for owned or
explicitly authorized, isolated lab environments. BruceLink adds no transmit
code of its own; it forwards to Bruce's existing primitives. See
docs/decisions/0003-capture-and-safety.md.
MIT — see LICENSE.