ReAI Recording Card Developer Documentation
Welcome to the ReAI Recording Card (recording-card.reai.com / c.reai.com) developer documentation portal. Structured following AWS Documentation standards, this site unifies the hardware wire protocol, the MIT-licensed Rust SDK (reai-card-sdk v0.0.9), browser Web Bluetooth & Wi-Fi SoftAP integrations, live interactive web demos, and standalone downloadable examples.
ReAI Recording Card SDK Documentation › Documentation Overview
SDK v0.0.9 (MIT)BLE 5 NUS + 2.4 GHz Wi-Fi AP/STAMain >= 0.3.7 (rec. >= 0.3.18) · Wi-Fi >= 0.1.0 (rec. 0.1.4)
Test Hardware Directly in Your Browser
Connect your ReAI Recording Card over Web Bluetooth (BLE) or Wi-Fi SoftAP HTTP directly in Chrome/Edge—or use the built-in Virtual Card Simulator with zero physical hardware:
- Launch Live Web Console: Interactive workbench covering telemetry, live ADPCM waveform, 8-input bindings, file transfer, Wi-Fi provisioning, 72×40 OLED canvas, and raw wire logs.
- Download Standalone Examples: 9 zero-dependency HTML demos, a Python 3 upload receiver, a local Wi-Fi CORS proxy, and a Rust quickstart.
Core Architecture Highlights
- Dual-Chip Power & Storage Arbitration: Daily audio capture runs on the Nordic nRF52840 (16 kHz / 16-bit mono PDM + 4:1 IMA ADPCM at ~8 KB/s
.apm). The Espressif ESP32-C3 stays powered off untilWIFI_OPEN,charge_onsync, or OTA. - Pre-Checked SD Ownership: When
wifiOpen == true, ESP32 owns the SD card and nRF storage/recording commands fail fast (SdOwnedByWifiModule) instead of hanging. - Zero-Subscription Local Transcription: Mobile (
com.reai.recordingcard) and desktop apps run Silero VAD + SenseVoice-int8 + CAM++ locally; raw audio never leaves your device unless you configure your own endpoint.
Documentation Map
Getting Started
| Topic | Summary | Link |
|---|---|---|
| Live Web Console | Browser BLE & Wi-Fi AP debugging workbench + simulator | Open Console |
| Quick Start | Physical button, side switch, mobile pairing & browser setup | Quick Start |
| Dual-Chip Architecture | Serial command gate, SD ownership rules & firmware boundaries | Architecture |
SDK Developer Guide (Live Demos & Downloads)
| Module | Covered Commands / Endpoints | Guide |
|---|---|---|
| 1. Connection & Telemetry | SYNC_TIME, BASE_INFO, STATE_INFO, BATTERY, STORAGE, TEST_CHECK | Open Guide |
| 2. Recording & Realtime Audio | RECORD_START/STOP/MARK, RECORD_REALTIME_ENABLE, IMA ADPCM -> WAV | Open Guide |
| 3. Controls & Events | btn_* / switch_* / charge_* bindings & live event stream | Open Guide |
| 4. Files & BLE Transfer | FILE_LIST, FILE_UPLOAD, FILE_UPLOAD_OLDEST, .apm decoder | Open Guide |
| 5. Wi-Fi & SoftAP | WIFI_OPEN/SCAN/CONNECT/CRED_*, http://192.168.4.1/api/files | Open Guide |
| 6. Cloud Upload & Sync | upload_url (<=63B), UPLOAD_FILE, SYNC_START, SYNC_STATUS | Open Guide |
| 7. OLED Display & LED | DISPLAY_SHOW (5×8 ASCII / 360B bitmap), DISPLAY_CLEAR, LED | Open Guide |
| 8. Config, OTA & Lifecycle | CONFIG_SET/GET/DEL, OTA_WIFI_*, AP .bin upload, RESTART/SHUTDOWN | Open Guide |