XCP CAN FD Configuration
Configure XCP server connection
Vehicle Network Toolbox / XCP Communication / CAN FD
Simulink Real-Time / XCP / CAN FD
The XCP CAN FD Configuration block uses the parameters specified in the A2L file and the ASAP2 database to establish an XCP server connection.
Before you acquire or stimulate data, specify the A2L file to use in your XCP CAN FD Configuration. Use one XCP CAN FD Configuration to configure one server connection for data acquisition or stimulation. If you add XCP CAN FD Data Acquisition and XCP CAN FD Data Stimulation blocks, your model checks to see if there is a corresponding XCP CAN FD Configuration block. If there is no corresponding XCP CAN FD Configuration block, the model editor prompts you to add one.
The XCP CAN FD communication blocks support Simulink® accelerator mode and rapid accelerator mode. You can speed up the execution of Simulink models by using these modes. For more information about these simulation modes, see Design Your Model for Effective Acceleration.
Config name — Specify XCP CAN FD session name
'CAN FD_Config1' (default)
Specify a unique name for your XCP CAN FD session.
A2L File — Select an A2L file
Click Browse to select an A2L file for your XCP CAN FD session.
Enable seed/key security — Select that key required to establish connection
Select this option if your server requires a secure key to establish connection. Use the File (*DLL) parameter to specify the DLL file that contains the seed/key definition.
File (*.DLL) — Select file for seed and key security
If you select Enable seed/key security
EnableSecurity), this field is enabled. Click
Browse to select the file that contains the seed
and key security algorithm that unlocks an XCP server module. This parameter
is available in Windows Desktop Simulation for Vehicle Network Toolbox™.
The File (*.DLL) parameter specifies the name of the DLL-file that contains the seed and key security algorithm used to unlock an XCP server module. The file defines the algorithm for generating the access key from a given seed according to ASAM standard definitions. For information on the file format and API, see the Vector web page Steps to Use Seed&Key Option in CANape or "Seed and Key Algorithm" in National Instruments™ CAN ECU Measurement and Calibration Toolkit User Manual. Note: The DLL must be the same bitness as MATLAB (64-bit).
Output connection status — Display connection status
Select this option to display the status of the connection to the server module. Selecting this option adds a new output port.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
The XCP communication blocks support code generation with limited deployment portability that runs only on the host computer or Simulink Real-Time™ targets.
Code generation requires a C++ compiler that is compatible with the code generation target. For more information, see Supported and Compatible Compilers.
Introduced in R2022b