How vectorgrp/xcp-lite works
Main Components
a) Core Components:
• XCP Server (C/C++ from XCPlite)
• Transport Layer (Ethernet/UDP)
• Protocol Layer
• Rust API Layer
• A2L Generator
• Calibration System
• Measurement System
b) External Components:
• CANape Tool (Client)
• Target Application
[Transport Layer]
• ↑↓
[XCP Protocol Layer]
• ↑↓
[Core XCP Server]
• ↑↓
[Rust API Layer]
• ↑↓
[Application Layer]
Key Elements to Highlight
a) Data Flow Components:
• Measurement Data Path
• Calibration Data Path
• A2L Description Generation
• Event System
b) Thread Management:
• RX/TX Server Threads
• Application Threads
• Thread-safe Calibration Access
Specific Implementation Details
[Xcp Singleton]
• ↓
[XcpEvent] ← → [CalSeg<T>]
• ↓ ↓
[Measurement] [Calibration]
Implementation Notes
• The separation between C/C++ and Rust components
• Thread-safe calibration access mechanisms
• Event-based measurement system
• A2L generation flow