跳到主要内容
版本:Matrix OS 4.0 🚧

Interfacing With Matrix OS

Host software can talk to Matrix OS through three different surfaces. Pick the one that matches what the host is trying to control.

Choose The Right Surface

Use caseUse thisWhy
Local simulator automationMatrix OS Developer ToolkitBest for tests, scripts, and CI-style checks against the browser-hosted runtime.
Device metadata and system controlSystem Remote APIReads version/device/app info, opens settings, reboots, switches apps, and enters Developer APP.
Host app using Mystrix as a controllerDeveloper APPGives the host a clean input surface and LED canvas after Matrix OS has entered Developer APP.

Typical Host Flow

For a browser or desktop tool that wants to use a physical Mystrix as a controller:

  1. Open the Matrix OS HID interface.
  2. Use System Remote API to identify the device if needed.
  3. Send OPEN_DEVELOPER_APP (0x44) through System Remote API.
  4. Poll Developer APP PING (0x00) until the app is ready.
  5. Enable input reports and write LEDs through Developer APP.

Use System Remote API for device state and app switching. Use Developer APP for live controller input and LED canvas updates after the app switch completes.

What Not To Mix

  • Do not use Developer APP for reboot, settings, device metadata, or app switching.
  • Do not use System Remote API for high-frequency LED mirroring or live controller input.
  • Do not use the toolkit JSON-RPC bridge as the public hardware protocol; it is for local development and automation against the toolkit runtime.

When in doubt, use System Remote API to put Matrix OS in the right state, then use the app-specific protocol for the interactive work.

Comments