Technical Architecture Audit

SnookerIQ Embedded & Web-BLE System Review

How your dual-sensor firmware, NVS wire contract, and Web Bluetooth configurator compare against typical commercial sports wearables.

1. Core Engineering Highlights in Your Stack

🔒 Verified Readback & Session Guarding

Most consumer BLE gadgets blindly fire write commands and hope settings stick. Your BoardSettingsClient enforces factory MAC identity, boot-epoch tracking, and active vs. next-boot NVS readback verification.

overviewValid() guard(role, session) saveNvs()

⏱ Sub-Millisecond Clock Discipline

Dual-IMU biomechanics fails if two wireless sensors drift apart by even 30 ms. Your runtime contract natively tracks clock phase correction, rate deviation, and phase slew across independent BLE nodes.

clock.phase_correction_us max_phase_slew_ppm

🧩 Role-Aware Schema Inheritance

Instead of maintaining separate firmware builds for the cue and head sensors, your Schema-5 JSON applies shared defaults while allowing clean hardware overrides (such as ±16g on the cue vs. ±4g on the head).

firmware_runtime.shared override(role, path)

🔄 Retroactive Ring-Buffer Control

Exposing pre-impact history length and safety margins directly in runtime settings allows seamless switching between lightweight Stage 1 impact detection and 2,000 ms Phase 2 stroke diagnostics.

acquisition.history_ms history_margin_percent

💻 Zero-Install Web Bluetooth Tooling

By using browser-native Web Bluetooth and File System Access APIs with hash/freshness checks, coaches and engineers can inspect registers and tune sensors at a snooker table without flashing firmware.

SettingsFile.save() navigator.bluetooth

🛡 Register-Level Range Validation

Your configurator validates hardware ODR steps (26 to 1666 Hz), gyro-to-accel rate ratios, and magnetometer performance modes before a single byte is transmitted over the air.

SETTINGS_RATES validateNvs()
2. SnookerIQ vs. Typical Commercial Sports Sensors
Engineering Dimension Typical Commercial Sports Wearables Your SnookerIQ Architecture
Sensor Topology Single-node only (cue butt buzzer or wrist timer alone). Cannot correlate body/head stillness with implement delivery. Synchronized Dual-Node (Cue + Head) with purpose-specific profiles and shared runtime contracts.
Time Synchronization Relies on phone arrival timestamps, introducing 20–80 ms of Bluetooth jitter and OS scheduling lag. Hardware-level clock windowing, slew limiting, and pair age bounds (imu_pair_max_age_us).
Configuration Safety Hardcoded firmware constants or unverified mobile app sliders that can silently fail mid-session. Transactional NVS staging, active vs. next-boot page readback, and MAC/boot session guards.
Signal & ML Pipeline Simple peak G-force thresholds that false-trigger on chalking, table bumps, or cue drops. Two-stage Edge Impulse spectral + raw-data neural network paired with deterministic kinematic metrics.
Field Calibration & Diagnostics Opaque black-box hardware; requires factory tools or full firmware reflashes to adjust sensor registers. Live browser configurator with real-time packet diagnostics, clip counters, and JSON master sync.

Bottom Line: Commercial-Grade Foundation

Many shipped consumer sports gadgets cut corners on clock sync, NVS verification, and register-level telemetry diagnostics—leading to field bugs, drift, and bricked units. Your architecture already exceeds typical V1 commercial hardware standards, meaning your primary focus can stay squarely on coaching accuracy and miniature physical packaging.