发布包(v2.0.0) | 2.0 发布说明 | 1.5.1 开发笔记 | Cap CC1101 接入指南
Custom firmware for the M5Stack Cardputer ADV that turns it into a pocket toolkit for M5Stack Units: nine cells on the home grid, one job per cell, offline and keyboard-driven.
| Home | Radio | Dash |
|---|---|---|
![]() |
![]() |
![]() |
| Cell | Screen | Purpose |
|---|---|---|
| 1 | Radio | 32-channel RSSI spectrum with peak hold + sub-GHz capture / decode / replay (315 / 433 / 868 / 915 MHz) |
| 2 | NFC | Read NFC-A tags, 8-slot card library in flash, Type 2 Tag clone & emulate with the real UID |
| 3 | Climate | ENV III (SHT30 + QMP6988): temperature, humidity, pressure, altitude |
| 4 | IR | Learn a remote with the IR Unit, decode NEC, resend on a 38 kHz carrier |
| 5 | ToF | Laser ToF (VL53L1X, 4 m) large-digit range with a 0–4 m bar |
| 6 | Dash | ENV III and ToF side by side, with online indicators |
| 7 | Setup | Brightness, volume, language, TX permit, auto screen-off, factory reset |
| 8 | Diag | Grove bus scan with unit identification, chip status, heap, uptime |
| 9 | About | Version, which units are actually online, usage disclaimer |
Bilingual UI (Simplified Chinese / English, G toggles and persists), H opens
a help overlay from any screen and returns you where you were.
All strings live in one X-macro table (firmware2/src/i18n.h).
Sub-GHz and NFC talk to the Cap CC1101 & NFC (U219) on the rear EXT header;
the stock Bruce launcher never powers that cap (POWER_EN and RF_SW are left
floating), so both drivers are written from scratch.
MIFARE Classic cloning is not supported (no Crypto1 implementation).
| Method | File | Steps |
|---|---|---|
| M5Launcher / SD card | release/2.0.0/CapLab-2.0.0-app.bin |
FAT32 SD card → M5Launcher → SD → select → Install |
| esptool (app only) | CapLab-2.0.0-app.bin |
write_flash 0x10000 CapLab-2.0.0-app.bin |
| M5Burner / esptool (full) | CapLab-2.0.0-full.bin |
Merged image: bootloader + partitions + otadata + app, flash at 0x0 |
Keys: G language | H help | ENTER primary action | DEL back |
; . , / move | 1-9 home cells | 1-4 band on the radio screen.
cd firmware2
python -m platformio run # 2.0 mainline
python -m platformio run -t upload --upload-port COM7build_dir points at a pure-ASCII temp directory on purpose: the Windows xtensa
ld.exe cannot create firmware.map under a non-ASCII path and fails to link.
Release packaging and the regression suite:
python tools/release.py 2.0.0 # two bins + m5burner split files + SHA256SUMS
python tools/make_cover.py # 1600x900 store cover from real screenshots
python tools/regress.py # 18 checks over one serial connectionfirmware/ CapLab 1.5.1 — sub-GHz + NFC only, released and field-verified
firmware2/ CapLab 2.0 — Unit toolkit (this release)
src/core/ app contract, registry, nav, chrome, settings
src/hal/ grove port arbiter + drivers (env3, tof, ir)
src/apps/ one file per home cell
src/legacy/ CC1101 and NFC drivers ported from 1.5.1 unchanged
tools/ dev.py (serial), regress.py, release.py, make_cover.py
docs/ plan, hardware verification report, release notes
release/ packaged binaries per version
firmware/ (1.5.1) and firmware2/ (2.0) build independently and share the NVS
namespace app keys band / tx / en, so flashing between them keeps band,
TX permit and language.
MIT (see LICENSE).
For your own devices and authorised testing only. Replaying sub-GHz transmissions and cloning NFC tags may be regulated where you live — fit an antenna, stay on frequencies you are allowed to use, and never touch a tag or remote that is not yours.


