Skip to content

Open Rust SDK (MIT License) ​

The complete hardware communication, ADPCM audio decoding, and firmware update stack for ReAI Recording Card is open-sourced under the MIT License:

ReAI Recording Card SDK Documentation › Open Rust SDK
SDK v0.0.9 (MIT)Tokio + btleplug (BLE) + reqwest (HTTP)nRF52840 v0.3.x · ESP32-C3 v0.1.x

Crate & Tooling Overview ​

ComponentResponsibility
reai-card-sdkAsync Rust library: BLE NUS scanning & serialized command queue, raw JSON recovery, IMA ADPCM decoder, SoftAP HTTP client, Nordic Secure DFU (0xFE59), and Wi-Fi OTA
examples/dyj_cliCross-platform CLI (scan, check, realtime, decode, controls, events, take-oldest, dfu)
examples/dyj_webLocal debug server (http://127.0.0.1:8787) with SSE logs, realtime waveform, 72×40 OLED canvas, and /wifi-ota wizard

Installation ​

toml
[dependencies]
reai-card-sdk = { git = "https://github.com/ReAI-com/reai-card-sdk.git", tag = "v0.0.9" }
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }

Quick CLI & Local Console ​

bash
git clone https://github.com/ReAI-com/reai-card-sdk.git
cd reai-card-sdk
make cli ARGS=scan
make cli ARGS=check
make cli ARGS="realtime 30 rt.wav"
make web

Feature Guides with Live Web Demos ​

  1. Connection, Telemetry & Self-Test
  2. Recording, Realtime PCM & WAV
  3. Controls, Switches & Events
  4. File Management & BLE Transfer
  5. Wi-Fi Provisioning, AP & Credentials
  6. Cloud Upload & Device Sync
  7. 72×40 OLED Display & LED
  8. KV Config, OTA & Lifecycle

Download Rust Quickstart ​

Rust 2024Rust SDK Quickstart (main.rs)

Covers BLE scan & connect, event subscriptions, 8-input bindings, OLED display, 3s realtime audio capture, and oldest-file WAV export.

rust-quickstart-main.rs

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