Skip to content

Dual-Chip Architecture & Device Model ​

Understanding the ReAI Recording Card's dual-MCU hardware boundary eliminates 90% of timeout and state-conflict issues.

ReAI Recording Card SDK Documentation › Architecture & State Model
SDK v0.0.9 (MIT)nRF52840 (BLE) + ESP32-C3 (Wi-Fi)Main v0.3.x · Wi-Fi v0.1.x

Dual-Chip Responsibilities ​

ChipRolePower PolicyInterface
Nordic nRF5284016 kHz PDM capture, 4:1 IMA ADPCM encoding, SD card owner (idle), button/switch/LED/OLED, BLE 5Always powered (deep-sleep capable)BLE NUS (6e400001-...) + Secure DFU (0xFE59)
Espressif ESP32-C32.4 GHz Wi-Fi AP/STA, HTTP fast transfer, STA upload, Wi-Fi OTAOn-demand (powered only after WIFI_OPEN)nRF UART passthrough + SoftAP HTTP (192.168.4.1:80)

Three Core Protocol Rules ​

  1. Strict Command Serialization: The wire protocol carries no request ID; only one command may be in flight per BLE connection at a time.
  2. Wi-Fi Power Determines SD Card Ownership (STATE_INFO.wifiOpen):
    • wifiOpen == false: nRF owns the SD card (STORAGE, FILE_*, RECORD_START, RECORD_MARK work; ESP32 passthrough commands fail fast with WifiModulePoweredDown).
    • wifiOpen == true: ESP32 owns the SD card (AP HTTP /api/files, WIFI_*, UPLOAD_*, OTA_WIFI_* work; nRF SD commands fail fast with SdOwnedByWifiModule).
  3. Shared Binary Channel (0x00 Prefix): Both realtime audio and FILE_UPLOAD binary frames share the 0x00 prefix; the SDK prevents mixing them by rejecting BLE file transfers while a realtime session is active (RealtimeRecordingActive).

ReAI Recording Card Developer Documentation · MIT Open Hardware SDK · Partner Assets