How sandertammesoo/ec2icp works
ec2icp combines an ICP packet/link protocol with MQTT-based simulator and tester applications. The visible workflow is tester commands published over MQTT, simulator-side ICP initialization and updates, and ICP output encoded and sent as MQTT payload bytes. The README is only a project title, and source excerpts are partial; application callback and subscription wiring beyond the shown code is represented conservatively.
Main entry points: source/main.c Subsystem simulator · source/main.c Interactive tester · icp.h ICP API · MQTTClient.c Client operations
Components 14
Applications
- Interactive tester
tester/source/main.c - Subsystem simulator
subsystem_simulator/source/main.c
ICP Protocol
- ICP API
icp/include/icp.h - Framing and state
icp/source/icp.c - ICP configuration
icp/source/icp_config.c
MQTT Client
- Async client API
mqtt/source/MQTTAsync.c - Client operations
mqtt/source/MQTTClient.c - Protocol exchange
mqtt/source/MQTTProtocolClient.c - Packet encoding
mqtt/source/MQTTPacket.c - Socket transport
mqtt/source/Socket.c - Message persistence
mqtt/source/MQTTPersistenceDefault.c
Other components
- Operator
- MQTT broker
- Topic definitions
mqtt/include/topics.h
Connections 16
- Operator → Interactive tester: enters commands
- Interactive tester → Topic definitions: selects topics
- Interactive tester → Async client API: publishes commands
- Subsystem simulator → Topic definitions: uses topics
- Subsystem simulator → Async client API: connects and sends
- Subsystem simulator → ICP API: configures and updates
- ICP API → ICP configuration: initializes configuration
- ICP API → Framing and state: invokes protocol
- Framing and state → Subsystem simulator: calls configured callbacks
- Async client API → Client operations: delegates operations
- Client operations → Protocol exchange: starts protocol exchange
- Protocol exchange → Packet encoding: encodes and handles
- Client operations → Message persistence: persists queued messages
- Packet encoding → Socket transport: transfers packets
- Socket transport → MQTT broker: exchanges MQTT data
- MQTT broker → Subsystem simulator: delivers subscribed messages