KardiaMobile 6L (BLE) & Classic AC-009 (19 kHz) Client-Side ECG Decoder
Live App: Launch Kardia ECG Suite (16bit.io/kardiadecode/) — runs 100% client-side in your browser with zero backend, zero accounts, and zero cloud uploads.
The Problem: AliveCor KardiaMobile personal ECG sensors normally lock live capture, 6-lead viewing, and PDF report exports behind proprietary mobile apps and cloud accounts. Meanwhile, older KardiaMobile Classic (AC-009) cards transmit single-lead ECG data as an inaudible 19 kHz ultrasonic FM audio carrier, while the newer KardiaMobile 6L (AC-019) streams dual-channel 300 Hz packets over Bluetooth Low Energy. I wanted a single, zero-dependency, browser-native tool that works on Linux, macOS, Windows, and mobile to acquire, decode, analyze, and export clinical-style millimeter-calibrated ECG reports completely offline.
The Architecture
KardiaMobile 6L (AC-019) -> Web BLE (SHA-256 M2, 36B @ 300 Hz) -> 6 Limb Leads (I, II, III, aVR, aVL, aVF) KardiaMobile Classic (AC-009) -> 48 kHz Mic / WAV -> 19 kHz I/Q FM Demod (200 Hz/mV) -> 600 Hz Lead I Baseband ECG -> Zero-Phase Biquad + 50/60 Hz Notch + db4 Wavelet -> Median-Beat Overview -> Vector PDF / SVG
The Build
- 6L BLE Protocol & Raw CSV Replay: Implements the
M2 K<token>SHA-256 GATT handshake overnavigator.bluetooth, unpacks 36-byte signed 16-bit LE dual-channel frames into all 6 limb leads, detects ±20,000 raw-count electrode-rail dropouts (auto-falling back to Lead I if held hand-to-hand), and imports/exports lossless raw capture CSVs compatible with bothSkjld-labsandkardia-rsformats. - AC-009 19 kHz Ultrasonic FM Pipeline: Captures unprocessed 48 kHz microphone audio (disabling OS AEC/NS/AGC/VoiceIsolation) with a live 18–20 kHz carrier-lock SNR meter, Welch 4096-pt FFT spectrum, zero-phase room-noise isolator, and drag-and-drop WAV/FLAC/MP3 decoding.
- Automated EKG Overview & Findings: Builds an aligned median beat complex with confidence-gated
GOOD / MARGINAL / INSUFFICIENTquality scoring to estimate HR, HRV (SDNN/RMSSD), PR, QRS, QT, BazettQTcB, FridericiaQTcF, J+60ms ST offset, and Einthoven orthogonalP/QRS/T*frontal axes. Highlights points of interest or concern (rate extremes, AF-like irregularity, premature ectopic beats, conduction/QTc flags, and electrode contact drops) with one-click animated jump-to-beat strip inspection. - Interactive Device Guide & Vector PDF 1.4 / SVG Reports: Includes an embedded vector SVG placement and BLE bond-reset guide for all supported models, plus a pure JavaScript Vector PDF 1.4 and dimensioned SVG report generator with exact 1 mm / 5 mm medical rose grids, 1 mV × 0.20 s calibration pulses, and 6-lead 2×3 + continuation or single-lead 3×10 s layouts.
Disclaimer: Experimental research software — not a medical device and not clinically validated for diagnosis. Limb-only devices do not measure precordial leads V1–V6.
Open-Source Attribution: Built on reverse-engineering and DSP groundwork from ShaneBreazeale/kardia-rs, Skjld-labs/kardia-ecg-reader-macos-public, and joshuamcateer/kardiadecode.