Data Stimulation using XCP in Vehicle Network toolbox

조회 수: 4 (최근 30일)
Hariprasath Sekar
Hariprasath Sekar 2020년 12월 3일
답변: Charu 2025년 6월 19일
We are planning to use XCP on CAN blocks provided in the vehicle network toolbox. I would like to know whether the Data Stimulation block works in a way to overwrite a Variable inside an ECU which is between two internal modules.

답변 (1개)

Charu
Charu 2025년 6월 19일
Hi,
When using XCP on CAN via the Vehicle Network Toolbox with Simulink Real-Time, the Data Stimulation block can indeed send values to overwrite variables inside the ECU—but only if those variables are exposed in the A2L file as calibration or measurement objects.
If the variable that is to be stimulated is internal to the ECU and not listed in the A2L, such as one used only between two internal software modules, then the Data Stimulation block won’t be able to access it. XCP relies on address and access information from the A2L, so without that, the overwrite isn’t possible. The workarounds for this are:
  • Temporarily expose the internal variable in the A2L for testing purposes.
  • For model-based testing with Simulink Real-Time, replicate the internal logic in a test harness, and use stimulation blocks at that level before deploying to hardware.
  • In some setups, a bypass strategy or SIL/HIL co-simulation should give more control over such internal signals during testing.

카테고리

Help CenterFile Exchange에서 Vehicle Network Toolbox에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by