Communication in MATLAB
Use an A2L file to allow communication between XCP client and server modules via XCP
A2L文件是定义ECU实现的特殊说明文件。A2L文件中的信息允许XCP客户端通过XCP连接与服务器模块通信。格式化的文本文件包含事件和测量定义以及其他配置信息,用于获取和刺激数据并执行其他功能。
要与XCP服务器进行通信,A2L文件(ECU描述文件)必须至少包含以下属性信息:
ProtocolLayerInfo
TransportLayerCANInfo
Measurements
DAQInfo
和事件
MATLAB®:
DAQInfo
和事件
content is required if using dynamic DAQ list functionality.万博1manbetx®:因为XCP CAN Data Acquisitionblock uses dynamic DAQ list functionality,
DAQInfo
和事件
content is required.
您可以使用CAN协议将XCP客户端连接到服务器模块。这使您可以在服务器模块上使用事件和访问测量。跟着XCP Database and Communication Workflow要学习如何使用XCP连接到设备。
您可以执行直接读取或写入服务器模块上的内存。或者,创建动态数据刺激列表并将测量结果分配给列表,然后读取获得的DAQ数据并写入刺激数据。
Functions
Properties
Topics
Hardware Connection
- XCP Hardware Connection
Diagram for connecting XCP client and server.
Read and Write Data to Memory
- Read a Calibrated Measurement
Translate pedal position to read a calibrated torque demand measurement. - 阅读一个值
Read a single value by name directly from memory. - 写一个值
Write a single value by name directly to memory.
Acquire and Stimulate Measurements
- 通过动态DAQ列表获取测量数据
Create a dynamic data acquisition list and read measurements from the list events. - 通过动态刺激列表刺激测量数据
Create a dynamic data stimulation list and assign measurements to the list events.