Main Content

XCP CAN Configuration

Configure XCP server connection

  • XCP CAN Configuration block

Libraries:
Vehicle Network Toolbox / XCP Communication / CAN
Simulink Real-Time / XCP / CAN

Description

The XCP CAN 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 Configuration. Use one XCP CAN Configuration to configure one server connection for data acquisition or stimulation. If you add XCP CAN Data Acquisition and XCP CAN Data Stimulation blocks, your model checks to see if there is a corresponding XCP CAN Configuration block. If there is no corresponding XCP CAN Configuration block, the model prompts you to add one.

The XCP CAN 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 Acceleration (Simulink).

Parameters

expand all

Specify a unique name for your XCP CAN session.

Click Browse to select an A2L file for your XCP CAN session.

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. Note: Seed/key security is not supported on Linux® systems.

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).

Select this option to allow a special (user-defined) connect mode. When off, only a normal mode connection is supported.

Select this option to display the status of the connection to the server module. Selecting this option adds a new output port.

Extended Capabilities

Version History

Introduced in R2013a

expand all