How stncalex/classic-diagnostic-adapter works
Classic Diagnostic Adapter (CDA) bridges legacy ECU diagnostics into SOVD resources. A client request is mapped using an ECU’s MDD diagnostic description, encoded as UDS, transported over DoIP, and returned as an SOVD response. The repository also includes ECU discovery, CAN and DoIP communication, configuration and topology, runtime-update and communication-management plugins, and persistent storage. Relationships among unsampled subsystems are shown only where documented; dashed edges indicate architectural links not verified in the excerpts.
Main entry points: main.rs CDA Runtime · sovd.rs SOVD Routes · diag_kernel.rs Diagnostic Kernel · lib.rs DoIP Gateway
Components 21
SOVD API
- SOVD Routes
cda-sovd/src/sovd.rs - SOVD Applications
cda-sovd/src/sovd/apps.rs - ECU Resources
cda-sovd/src/sovd/components/ecu.rs - Function Resources
cda-sovd/src/sovd/functions.rs
Diagnostic Processing
- Diagnostic Kernel
cda-core/src/diag_kernel.rs - ECU Manager
cda-core/src/diag_kernel/ecumanager.rs - Service Lookup
cda-core/src/diag_kernel/service_lookup.rs - Payload Codec
cda-core/src/diag_kernel/payload_decode.rs
ECU Communications
- UDS Services
cda-comm-uds/src/query.rs - DoIP Gateway
cda-comm-doip/src/lib.rs - DoIP Discovery
cda-comm-doip/src/vir_vam.rs - CAN Gateway
cda-comm-can/src/gateway.rs
Runtime Services
- CDA Runtime
cda-main/src/main.rs - Topology Plugin
cda-plugin-topology/src/plugin.rs - Communication Lifecycle
cda-plugin-communication-management/src/lifecycle/controller.rs - Runtime Update
cda-plugin-runtime-update/src/operations/apply.rs
Data and Storage
- MDD Database
cda-database/src/storage.rs - Storage API
cda-interfaces/src/storage_api.rs - Local Storage
cda-storage/src/local_storage.rs
Other components
- SOVD Client
- Vehicle ECU
Connections 20
- SOVD Client → SOVD Routes: requests
README.md - SOVD Routes → SOVD Applications: routes
cda-sovd/src/sovd/apps.rs - SOVD Routes → ECU Resources: serves resources
- SOVD Routes → Function Resources: serves resources
- SOVD Applications → Diagnostic Kernel: uses diagnostics
- Diagnostic Kernel → ECU Manager: delegates
cda-core/src/diag_kernel.rs - ECU Manager → Service Lookup: looks up services
cda-core/src/diag_kernel/ecumanager.rs - Service Lookup → MDD Database: reads descriptions
- Diagnostic Kernel → Payload Codec: encodes and decodes
cda-core/src/diag_kernel.rs - Diagnostic Kernel → UDS Services: issues UDS requests
- UDS Services → DoIP Gateway: transports UDS
- DoIP Gateway → Vehicle ECU: communicates
README.md - DoIP Gateway → DoIP Discovery: discovers vehicles
cda-comm-doip/src/lib.rs - CDA Runtime → SOVD Routes: starts API
- CDA Runtime → CAN Gateway: configures transport
- CDA Runtime → Topology Plugin: configures plugin
- CDA Runtime → Communication Lifecycle: configures plugin
- Runtime Update → Storage API: uses storage
- Storage API → Local Storage: implemented by
- CDA Runtime → MDD Database: loads descriptions