Clear Filters
Clear Filters

Automatic code generation cannot generate A2L files when using DDS communication

5 views (last 30 days)
Hello everyone,
I want to use XCP to calibrate system signals. But in my system, DDS commucnication is required. And the question occurs.
XCP need to add the A2L file to realize calibration. But the simulink system with DDS commucnication function cannot generate A2L file by automatic code generation.
So, how i to calibrate system signals in DDS system?
Thank you very much!

Answers (1)

Abhishek Chakram
Abhishek Chakram on 8 Feb 2024
Hi hengyang wang,
Calibrating system signals in a DDS (Data Distribution Service) system when you cannot generate an A2L (ASAP2) file directly from Simulink can be challenging, as A2L files are typically used by calibration tools to identify and access variables within the ECU software. However, you can still approach this problem in the following ways:
  • If the automatic code generation does not support A2L file generation, you can manually create or edit an A2L file to include the necessary information for calibration. This process can be error-prone and time-consuming but may be necessary if no other options are available.
  • You can develop a middleware layer that bridges DDS communication with XCP or another calibration protocol. This layer would translate XCP commands to DDS messages and vice versa, allowing you to use standard calibration tools with DDS systems.
  • Develop a custom application or tool that interacts with DDS topics to monitor and modify variables. This tool would subscribe to DDS topics for monitoring and publish to DDS topics to change variable values. While not using XCP directly, this method leverages the DDS infrastructure for calibration purposes.
Best Regards,
Abhishek Chakram

Categories

Find more on Get Started with DDS Blockset in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!