Calibrated Multi-Device Arbitration — Zero Double Replies
SNTP clock alignment + RTT-normalized heard_ms timestamps + per-device mic_gain_offset_db calibration guarantee only the closest speaker answers while losers stay strictly silent.
One open Northbound v2 protocol connecting Phicomm R1 standalone nodes, Echo Dot 2, Xiaomi LX06, ESP32-S3 paper-and-ink displays, and Android — with calibrated multi-device wake arbitration, on-demand Full-Duplex S2S, and zero-ADB Web-OTA.
Skip the 1,000-line manual. Select your device and whether you run an always-on NAS — we match the exact track and give you a verified prompt for your AI coding assistant.
Runs companion/android-core + Android gateway on-device over loopback; zero NAS/Docker, future upgrades over Web-OTA.
Help me deploy the Home Mate Standalone Companion Core onto my Phicomm R1 speaker (<R1_IP>, stock unrooted firmware with ADB over Wi-Fi enabled): 1. Build the companion APK from yes999zc/home-mate (./tools/build_android_core_apk.sh --abi armeabi-v7a) and get the universal APK from yes999zc/home-mate-gateway-android Release v2.6.0; verify SHA256SUMS.txt. 2. Provision with the shipped 1-sec ADB + pure-HTTP BootInstaller: clone yes999zc/home-mate-gateway-android as a sibling repo, then run python3 ../home-mate-gateway-android/tools/provision_r1.py --ip <R1_IP> --device-id r1-study --core-host 127.0.0.1 --room "Study" --core-apk <CORE_APK> --apk <GATEWAY_APK> (or guide me to double-click tools/install_r1_macos.command / tools/install_r1_windows.bat). ADB disconnects immediately after hm-dl.dex hello; never run foreground adb install -r on stock R1. 3. Confirm exit 0 and adb devices is empty; verify <R1_IP>:8930/api/v0/status reports profile phicomm-r1, gateway on 127.0.0.1:8932, and device id r1-study. 4. Guide me through ASR/LLM/TTS setup at <R1_IP>:8930 and note future upgrades run over Web-OTA with zero ADB. Never disable the loopback gateway lock or commit real tokens.
# 1. 构建 R1 紧凑版伴侣核心 APK ./tools/build_android_core_apk.sh --abi armeabi-v7a # 2. 使用 1 秒 ADB + 纯 HTTP BootInstaller 一键装机(或双击 tools/install_r1_macos.command) python3 ../home-mate-gateway-android/tools/provision_r1.py \ --ip <R1_IP> --device-id r1-study --core-host 127.0.0.1 --room "书房" \ --core-apk build/android-core/apk/HomeMate-Core-v*-android-armeabi-v7a.apk \ --apk HomeMate-Gateway-v2.6.0-universal.apk
Zero bytes touched on stock SquashFS; 256 MB batch runs standalone dual-wake, 128 MB batch uses experimental --thin mode with NAS Core.
Help me deploy Home Mate onto my Xiaomi AI Speaker Pro (LX06, IP <LX06_IP>, LAN NAS <NAS_IP>): 1. NEVER modify stock read-only SquashFS partitions; use Scheme A (/data/hm + /data/init.sh) only. 2. Clone yes999zc/home-mate-gateway-linux (and sibling yes999zc/home-mate if compiling). 3. Inspect MemTotal in /proc/meminfo and /data free space: - MemTotal >= 180000 kB (256 MB): run ./tools/pack_lx06_bundle.sh and ./deploy/lx06/install-lx06.sh --device-ip <LX06_IP> --kws-url http://<PC_IP>:18089/hm-kws-lx06.tar.xz; verify hm-core, hm-gateway, hm-kws and :8930 HTTP 200. - MemTotal < 180000 kB (128 MB experimental): run Full Docker Core on NAS, build the thin gateway with ./tools/pack_lx06_bundle.sh --thin, then install with ./deploy/lx06/install-lx06.sh --thin --device-ip <LX06_IP> --core-addr <NAS_IP>:8932 (optional --core-token; confirm HM_PROFILE=lx06 and the watchdog).
# 256 MB 本机双唤醒(自动打包并安装) ./tools/pack_lx06_bundle.sh ./deploy/lx06/install-lx06.sh --device-ip <LX06_IP> --kws-url <HOST_URL>/hm-kws-lx06.tar.xz
256 MB batch runs full standalone dual-wake; 128 MB batch can only try experimental --standalone-asr (~51 MiB free RAM, expect lag).
Help me deploy Home Mate onto my Xiaomi AI Speaker Pro (LX06, IP <LX06_IP>, no always-on NAS at home): 1. NEVER modify stock read-only SquashFS partitions; use Scheme A (/data/hm + /data/init.sh) only. 2. Clone yes999zc/home-mate-gateway-linux. 3. Inspect MemTotal in /proc/meminfo and /data free space: - MemTotal >= 180000 kB (256 MB): run ./tools/pack_lx06_bundle.sh and ./deploy/lx06/install-lx06.sh --device-ip <LX06_IP> --kws-url http://<PC_IP>:18089/hm-kws-lx06.tar.xz; verify hm-core, hm-gateway, hm-kws and :8930 HTTP 200. - MemTotal < 180000 kB (128 MB experimental): with no NAS the only path is --standalone-asr (pure-ASR standalone, ~51 MiB free RAM, high load and lag, trial only; confirm /tmp usage < 45% and HM_VOICE_EVENTS=0). For the full experience prepare a NAS or pick another device track. 4. Verify with a live wake-word test (256 MB dual-wake / 128 MB pure-ASR wake). Never commit real tokens or IPs to Git.
# 256 MB 本机双唤醒(无 NAS 同样适用) ./tools/pack_lx06_bundle.sh ./deploy/lx06/install-lx06.sh --device-ip <LX06_IP> --kws-url <HOST_URL>/hm-kws-lx06.tar.xz # 128 MB 无 NAS 试验模式 ./deploy/lx06/install-lx06.sh --standalone-asr --device-ip <LX06_IP>
firebreak unlock + emOS base; full hm-core + 7-mic HW-ref AEC + STFT-ERB Full-Duplex S2S running 100% on-speaker.
Help me deploy Home Mate onto my Amazon Echo Dot 2 (RS03QR / AEOBC, node id dot2-living): 1. Preflight (never flash p10 without confirmation): unlock via yes999zc/firebreak and save stock p10 backup; flash emOS via wilbowes/EchoMuse and join Wi-Fi. 2. Clone yes999zc/home-mate and yes999zc/home-mate-gateway-linux as sibling directories. 3. Generate an Ed25519 signing key outside Git, then build hm-core, hm-gateway (board-dot2), and hm-release. 4. Run ./tools/hm-provision.sh --dry-run first, then activate A/B slots and verify :8930 health, the multi-device arbitration baseline and the STFT-ERB full-duplex channel.
# 1. 解锁(仅原厂未解锁机器) uvx firebreak@latest # 2. 构建并预演部署到 emOS ./tools/build_core.sh && ./tools/hm-provision.sh --dry-run --ip <DOT2_IP>
3 boards in 1 repo (CHD 3.5" paper-and-ink / CubeBox 1.54" / Headless) with HW-ref AEC Full-Duplex S2S & DisplayImage screen-cast.
Help me flash my ESP32-S3 board (CHD 3.5" / CubeBox 1.54" / Headless) from yes999zc/home-mate-gateway-esp32 (v0.1.1) and pair with Home Mate Core v0.6.0 at <NAS_IP>: 1. Verify <NAS_IP>:8930/api/v0/status reports hm-core v0.6.0+ with HM_GATEWAY_ALLOW_LAN=1. 2. Download the matching board firmware from Release v0.1.1 and verify SHA256SUMS.txt (or build locally with ESP-IDF 6.1). 3. Flash with esptool.py --chip esp32s3 -p <PORT> write_flash @flash_args (never erase 0x9000 NVS or 0x800000 assets), verify reconnect on :8932, and test DisplayImage.
# 下载对应板型预编译包后烧录(保留 NVS 与 assets) esptool.py --chip esp32s3 -p /dev/cu.usbmodem* write_flash @flash_args
Install signed v2.6.0 APK, auto-discover LAN Core over UDP :8933, with offline KWS, gateway Silero VAD & Xiao Rui Pixel Pet.
Help me connect Home Mate Android Gateway v2.6.0 (yes999zc/home-mate-gateway-android) to my LAN Home Mate Core at <NAS_IP>: 1. Check <NAS_IP>:8930/api/v0/status to verify Core is online with HM_GATEWAY_ALLOW_LAN=1 and UDP :8933 discovery. 2. Pick the right Release v2.6.0 APK (full-arm64, universal, or slim) and verify SHA256SUMS.txt. 3. Walk me through pairing the Bearer token (or lan_gateway_exempt) and confirm the device is online in /api/v0/mode with its isolated 0.22 / 3.00 KWS baseline.
# 从 GitHub Release v2.6.0 下载对应 APK 后核验 SHA-256 shasum -a 256 -c --ignore-missing SHA256SUMS.txt
companion/android-core (libhmcore.so) and the gateway APK on one device: hm-core on 127.0.0.1:8932, console on :8930 — no NAS, no Docker, unrooted.
Help me turn my spare Android device (Android 5-16, unrooted) into a No-NAS Home Mate all-in-one node: 1. Download the gateway APK from yes999zc/home-mate-gateway-android Release v2.6.0 (HomeMate-Gateway-v2.6.0-full-arm64.apk for arm64 devices, universal.apk for 32-bit or unsure) and verify SHA256SUMS.txt. 2. Companion core APK (HomeMate-Core-*-android-*.apk with libhmcore.so): git clone https://github.com/yes999zc/home-mate and run ./tools/build_android_core_apk.sh --abi universal --release (needs Rust + Android SDK/NDK; production signing via HM_ANDROID_KEYSTORE / HM_ANDROID_KEY_ALIAS / HM_ANDROID_KEYSTORE_PASS env vars, debug certs refused). 3. Install BOTH APKs on the device (allow unknown sources); the companion auto-detects the generic-android profile (HM_PROFILE), hm-core binds 127.0.0.1:8932 and the console serves :8930, loopback-locked by default. 4. Open the gateway app and set the core address to 127.0.0.1:8932; browse http://<DEVICE_IP>:8930 to configure LLM / ASR / TTS and the wake word. 5. Verify /api/v0/status health and test the wake word live. Never commit real tokens / IPs / signing keys to Git.
# 网关 APK:从 GitHub Release v2.6.0 下载后核验 SHA-256 shasum -a 256 -c --ignore-missing SHA256SUMS.txt # 伴侣核心 APK:从 home-mate 仓源码构建 git clone https://github.com/yes999zc/home-mate && cd home-mate ./tools/build_android_core_apk.sh --abi universal --release # 产物:build/android-core/apk/HomeMate-Core-v*-android-universal.apk + SHA256SUMS.txt
One container command starts multi-arch hm-core for ESP32-S3, Android clients, 128 MB LX06 thin nodes, and whole-home wake arbitration.
Help me deploy the standard FULL Docker hm-core (v0.6.0) from yes999zc/home-mate on my LAN NAS/server (<NAS_IP>): 1. Use ghcr.io/yes999zc/home-mate:latest (NEVER --slim), set HM_GATEWAY_ALLOW_LAN=1, mount ./data:/data, and expose 8930/tcp, 8932/tcp, and 8933/udp. 2. Verify <NAS_IP>:8930/ returns HTTP 200 and /api/v0/status is healthy. 3. Call /api/v0/auth/provision to save the household admin token safely outside Git, then guide me through LLM/ASR/TTS and optional Master Brain setup.
docker run -d --name hm-core --restart unless-stopped \ --network host \ -e HM_GATEWAY_ALLOW_LAN=1 \ -v "$PWD/data:/data" \ ghcr.io/yes999zc/home-mate:latest
Every capability is verified on physical multi-speaker hardware in real living rooms.
SNTP clock alignment + RTT-normalized heard_ms timestamps + per-device mic_gain_offset_db calibration guarantee only the closest speaker answers while losers stay strictly silent.
Pushes a 25 KB hm-dl.dex bootstrapper, disconnects ADB immediately on HTTP hello, transfers APKs over pure LAN HTTP, and hands future upgrades to autonomous Web-OTA with loopback adbd self-heal.
Everyday half-duplex stability with 1-sentence Full-Duplex S2S switching (60–71 dB ERLE), block-aligned sidecar VAD, media-only ducking, and KWS orphan watchdog on Linux speakers.
companion/android-core embeds libhmcore.so + Vue 3 console directly on-device with phicomm-r1 low-RAM tuning and loopback gateway locking — zero NAS, zero Docker.
Four real-world views: Web Console, Android Xiao Rui Pet, Home Assistant readback, and the 4-repo protocol.
Core brain & gateways are AGPL-3.0; Northbound v2 protocol spec & codecs are Apache-2.0 for commercial hardware integration.
Pure-Rust edge voice brain (hm-core) + Vue 3 console + multi-device wake arbitration + Web-OTA + R1 standalone companion
Unified Rust speaker gateway for Echo Dot 2 & Xiaomi LX06: block-aligned sidecar VAD, media-only duck, KWS watchdog & Full-Duplex S2S
Universal zero-dependency Android 5–16 APK: Xiao Rui pixel pet, Phicomm R1 1-sec ADB pure-HTTP wizard, Web-OTA & gateway Silero VAD
Clean ESP-IDF 6.1 3-board gateway: CHD 3.5" paper-and-ink Full-Duplex S2S + DisplayImage, CubeBox 1.54" & Headless