Skip to content

v0.6.0: Bluetooth LE and LED output fix

Choose a tag to compare

@yannelli yannelli released this 22 Oct 02:40

Bluetooth LE now connects the Cardputer ADV to a paired daemon without a shared Wi-Fi network. Enable it in Settings > Network. Pair over Bluetooth opens a 2-minute pairing window. If Bluetooth was off at boot, the device asks to restart before enabling it.

The LED output now keeps its shared backlight supply steady while an effect runs, including dark phases. It sends complete RMT frames with WS2812B-2020 pulse timings and reset gaps. All existing effects, per-state and per-alert settings remain available. The display backlight stays at full brightness during active effects and returns to the selected brightness afterward. This uses more battery while an effect runs.

Bluetooth startup preserves early handshake packets. Reconnects remove old notification listeners, MTU changes keep byte offsets correct, and credit tracking handles counter rollover.

Validation:

  • Daemon: 40 tests passed; TypeScript build passed.
  • Bluetooth HAL: 30 checks passed under ASan and UBSan.
  • LED output: power, retry, color order and waveform checks passed under ASan and UBSan.
  • Keyfuzz: 200000 steps each on seeds 1, 7, 42 and 1234.
  • Firmware linkcheck passed against a real daemon over TCP and a fragmented byte pipe.
  • Screen snapshots rendered and inspected.
  • Firmware built and merged: static RAM 59160 bytes, application flash 1531737 bytes.

Hardware verification is still missing for BLE radios on both sides, BLE heap use and throughput, macOS Bluetooth permission, LED behavior under radio traffic, deep sleep, codec power-down, mic gain and SD formatting.

Download the merged firmware image and its SHA-256 file below. Flash the merged image at offset 0x0, or use the existing device update flow.