How insys-icom/mcip-tool works
mcip-tool is a multi-applet command-line suite for using M3 firmware capabilities from containers. Users invoke an applet to exchange MCIP messages, send or receive SMS and input events, control digital outputs, or issue router CLI commands. The main applet implementation is in mcip-tool.c; m3_cli.c provides the CLI socket transport used by CLI-backed operations. The README documents the capabilities and required container permissions; sampled source confirms some MCIP and CLI calls, but not every applet’s implementation details.
Main entry points: m3_cli.c CLI socket client · mcip-tool.c Output control
Components 16
Command applets
- MCIP messaging
mcip-tool.c - SMS tool
mcip-tool.c - Input events
mcip-tool.c - Pulse events
mcip-tool.c - Output control
mcip-tool.c - CLI commands
mcip-tool.c - Container control
mcip-tool.c
Firmware transports
- MCIP socket
mcip-tool.c - CLI socket client
m3_cli.c
Firmware capabilities
- MCIP firmware
- Router CLI
- SMS capability
- Input forwarding
- Digital outputs
- Container manager
Other components
- Container user
Connections 17
- Container user → MCIP messaging: invokes
README.md - Container user → SMS tool: invokes
README.md - Container user → Input events: invokes
README.md - Container user → Pulse events: invokes
README.md - Container user → Output control: invokes
README.md - Container user → CLI commands: invokes
README.md - MCIP messaging → MCIP socket: registers and sends
mcip-tool.c - MCIP socket → MCIP firmware: exchanges messages
README.md - SMS tool → SMS capability: sends or receives
README.md - Input events → Input forwarding: listens for changes
README.md - Pulse events → Input forwarding: listens for pulses
README.md - Output control → CLI socket client: sends commands
mcip-tool.c - CLI commands → CLI socket client: sends commands
README.md - Container control → CLI socket client: sends commands
mcip-tool.c - CLI socket client → Router CLI: uses CLI socket
m3_cli.c - Output control → Digital outputs: sets state
README.md - Container control → Container manager: controls lifecycle
mcip-tool.c