XCP UDP Configuration
Configure XCP UDP server connection
Vehicle Network Toolbox / XCP Communication / UDP
Simulink Real-Time / XCP / UDP
The XCP UDP 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 UDP Configuration. Use one XCP UDP Configuration to configure one server connection for data acquisition or stimulation. If you add XCP UDP Data Acquisition and XCP UDP Data Stimulation blocks, your model checks to see if there is a corresponding XCP UDP Configuration block. If there is no corresponding XCP UDP Configuration block, the model prompts you to add one.
The XCP UDP 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 (Simulink).
Config name — Specify XCP UDP session name
Specify a unique name for your XCP session.
A2L File — Select an A2L file
Click Browse to select an A2L file for your XCP 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. Select a file that contains the seed/key definition to enable security. Note: Seed/key security is not support on Linux® systems.
File (*.DLL) — Select file for seed and key security
If you select Enable seed/key security, 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.
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.
Disable CTR error detection — Disable CTR error detection scheme
'on' (default) |
To detect missing packets, the block can check the counter value in each
XCP packet header. When
'on', counter error detection for
packet headers is disabled. When
'off', the counter
Error detection scheme is enabled.
Error detection scheme — Select CTR error detection scheme
One counter for all CTOs and
DTOs (default) |
Separate counters for (RES,ERR,EV,SERV) and
Separate counters for (RES,ERR), (EV,SERV) and
To detect missing packets, the block can check the counter value in each XCP packet header and apply an error-detection scheme.
Sample time — Sample time of block
-1 (default) | numeric
Enter the base sample time or a multiple of the base sample time.
-1 means that sample time is inherited. For
information about simulation sample timing, see Timing in Hardware Interface Models.
Local IP Address — Client IP address
Enter the IP address to which you want to connect.
Local Port — Client IP port
The combination of Local IP address and Local port must be unique.
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 R2019a