A 100% Rust BLE mesh firmware for TLSR8266-based smart lights (such as the TYBT1), with a Rust SWire probe for initial flashing and Python utilities for BLE/UART OTA updates and mesh management. The firmware runs without any Telink proprietary library dependency, using a custom LLVM fork that emits TC32 objects directly (no Telink tc32-elf-* toolchain).
For the unmodified mesh SDK, see the project releases or the early commits of this repository.
This project targets the following hardware:
- TLSR8266-based devices — e.g. TYBT1 smart light bulbs
- E104-BT05-TB — a TLSR8266 development board used for UART-based mesh management (product page)
- Raspberry Pi Pico or Pico W — runs the Rust
probe-picoSWire programmer firmware for initial flashing (physical access required)
- Native LLVM TC32 backend (no vendor assembler, linker or C compiler)
- 100% Rust BLE mesh firmware with Makefile (no
libbleor vendor library dependency) - Rust SWire probe —
probe-picoRP2040 firmware plus theprobe-tlsrhost CLI, for direct flash programming, RTT logs and crash inspection - Original TYBT1 firmware backup
- BLE OTA updater (compatible with OEM firmware and this firmware)
- UART OTA updater (requires this firmware on the E104-BT05-TB)
- Mesh adoption and management utilities
Heavily inspired by Raphael Baron's reverse-engineering work on the M6 fitness band (GitHub), and trust1995's improved TC32 processor specification for Ghidra.
See the full documentation here.