project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.29k stars 1.95k forks source link

[Feature] Enhance chip-tool with IPC Capabilities #33265

Open yufengwangca opened 3 months ago

yufengwangca commented 3 months ago

Feature description

...

  1. Enable the chip-tool to operate in interactive mode.
  2. Integrate an IPC channel to facilitate communication with the Fabric-Bridge app. Evaluate and potentially utilize the following candidates: WebSocket: Leverage existing integration within chip-tool for consistency and efficiency. Pigweed RPC: Explore this option for its suitability in embedded communication, focusing on lightweight and efficient data transfer.

Platform

other

Platform Version(s)

No response

Anything else?

No response

bzbarsky-apple commented 3 months ago

The right answer here should be websocket; that's the IPC mechanism chip-tool already has, and we shouldn't try to add a second one...

The app running on the other side is not going to be an "embedded" anything, since it's running on the same hardware as chip-tool.