Engineered for Precision.
Isolated from the Cloud.
An overview of the software, embedded firmware, audio subsystems, and protocol engineering that power the LyfMateStrix offline computing stack.
Core Subsystems
Local SQLite Architecture
LyfMateStrix structures user routines, habits, and execution metrics strictly within an ACID-compliant SQLite relational database kept in the app's private storage on the client device (protected by the phone's built-in device encryption).
- Zero network egress: Database queries are completely decoupled from remote networking interfaces.
- Sub-millisecond query evaluation: Local indexes ensure zero latency when rendering schedules or evaluating alarm triggers.
STREAM_RING Hardware Routing
Most productivity apps bind audio playback to standard media streams (`STREAM_MUSIC`), which are easily silenced by the OS. LyfMateStrix routes mission-critical alerts through `STREAM_RING`.
- Physical volume rocker synchronization: Alarms respect the device's physical ring volume level.
- Bypasses background throttling: Hardware audio channels ensure sound plays immediately without waiting for foreground thread scheduling.
Dual-Core RTOS Firmware
The companion wearable runs a custom, lightweight C++ firmware pipeline leveraging dual-core task segregation under FreeRTOS.
- Dedicated rendering core: Powers the 240x240 circular UI, chronograph tick rendering, and voice visualizer smoothly at 20 FPS.
- Background protocol core: Manages BLE GATT advertising, time sync, and action queue processing without blocking user interface frames.
Bilateral BLE Sync Protocol
Communication between the mobile hub and companion hardware is managed through a custom Bluetooth Low Energy GATT service (`7ab20000-b51b-4411-8bce-459f152d3433`).
- Offline action queuing: When out of range, actions (such as completing or creating a routine) are stored in local FIFO queues.
- State reconciliation: Reconnecting triggers an instantaneous delta sync, resolving the schedule state in both directions.
Technical Matrix
| Layer | Technology / Architecture | Design Principle |
|---|---|---|
| Mobile Core | TypeScript, React Native, Native Android Modules | Strict TargetSdk 36 compliance, zero storage permissions |
| Local Database | SQLite on-device engine | Zero remote telemetry, 100% offline schema constraints |
| Wearable Firmware | C++ / FreeRTOS Embedded Microcontroller | Dual-core task separation, hardware power profiling |
| Audio Pipeline | STREAM_RING + I2S Digital MEMS Audio (INMP441) | Hardware volume coupling and local digital signal processing |
| Data Protocol | Custom BLE GATT Service with Packed Payload Streams | Bilateral, offline-first FIFO action queue |