overviewPreface
As you know, CCP stands for CAN Calibration Protocol and XCP stands for Universal Measurement and Calibration Protocol. Both are commonly used for development, testing and on-board calibration and were developed by ASAM (Association for Standardization of Automation and Measurement Systems).
TOSUN provides CCP/XCP calibration solution, TSMaster supports online calibration, offline calibration, automated calibration of CCP/XCP, etc.This article focuses on the CCP/XCP calibration function of TSMaster.
→ TSMaster Calibration Function
CCP/XCP Functional Overview
CCP Calibration
XCP on CAN/CAN FD Calibration
Support DAQ/Polling measurement
Memory settings, including loading image files, configuring checksum methods, etc.
Support for characteristic parameter curves, MAP diagrams, etc.
Supports MDF/MF4 storage and playback
Supports graphical display of variable curves
Support calibration parameter management, par/DCM or hex format
Supports single and multiple file downloads
DATABASE
After loading the A2L file, it automatically parses out information about variables, conversion methods, structure layouts, etc. in the database, and also supports searching.
Protocol Details
1、Protocol settings
Protocol settings mainly include security algorithm import, master-slave node identifier setting, CAN FD configuration, byte sequence, etc.
2. DAQ Settings
XCP DAQ settings include dynamic/static DAQ configuration, maximum number of event channels, optimization type, address expansion, ODT signal configuration, and crossover/recovery support.
3. DAQ allocation
System Message View: DAQ Allocation Process
Message View: Original Message Trace
4、Event Setting
Event names, event channels, trigger rates, priorities, units, event types, etc. can be created manually or automatically from A2L files.
5. Optional commands
XCP Optional Commands: Optional commands can be manually checked or automatically recognized from the A2L file.
Memory settings
Memory configurations include: calibration data loading and exporting. Supports s19, hex, mot files.
Data logging
Recording of calibration data, internally recorded in mat format by default, with an optional version in MDF format, which can also be exported as an MDF format file.
signal excitation
Variables can be dragged directly from the calibration database page to the signal excitation page, or added directly by right clicking. You can reset to the original signal value, support import and export configuration.
parametric curve
1. MAP chart display
Supports parameter calibration in both curves and MAP charts, and can also read parameters from the ECU.
2、X/Y chat display
The MAP chart can be set to be displayed as an X/Y chart.
Calibration parameter management
✔ Support for import and export of calibration parameters
✔ Support for par, DCM format and hex format
✔ You can set the current state as the baseline
Calibration Data Manager, which mainly contains the following functions: ✔ Loading and analyzing calibration data ✔ Analyzing and comparing multiple calibration data ✔ Modifying calibration parameters offline ✔ Outputting rectified calibration data files
1. Load data
Calibration data loading, support data type contains: 1, Hex, S19 type data. 2, DCM data 3, PAR data If the above loaded data is only a localization of the A2L definition data, the system will prompt the user to select a template data file to automatically make up.
2. Data comparison
Data comparison includes the following operations: 1. Data variable statistics 2. Select filter conditions: △ All items: show all variables. △ Modified items: display only modified variables △ Same items: display only unchanged variables △ Mismatch items: variables not defined in A2L appear in the loaded data file.
(3) Selecting the reference file: After the reference file has been changed, the response comparison results will also be changed. The icon of the file selected as reference is shown on the right.
4) Select the data block to view the detailed changed data points. As shown in the figure below: the yellow background indicates the rectified data.
3. Data calibration
Static data calibration allows engineers to complete the analysis and integration of calibration data. For example, the process of rectifying multiple different calibration data into one target calibration data file is the same as offline calibration.
After the operation is completed, the user is supported to export Hex/s19 data files and calibration data management files such as DCM/Par.
Calibration data curing
The parameters modified during the CCP/XCP calibration process are located in the calibration RAM area, and after the ECU has been powered down, this part of the modified parameters will be lost. Therefore, it is necessary to solidify the calibrated parameters into the Flash of the ECU. Generally two ways are used: based on CCP/XCP or based on UDS.
1. CCP/XCP based brush writing
The calibrated data file is downloaded and solidified into the target ECU via the XCP Program protocol (UDS protocol is explained separately) to validate the calibration data.
After you have finished configuring the download parameters, the recommended download method is:
1) Erase the ECU internal data first.
2) Perform the download process again.
With this approach, the flushing speed will be much faster than executing the download process directly
2、UDS based brush writing
In TSMaster, it is enough to configure the brushing process from top to bottom according to the brushing specification. Among them, the calibration data file is loaded into the composite service, and the corresponding 0x34,0x36,0x37 service flow will be generated automatically inside the software. For detailed configuration method, you can check the TSMaster diagnosis related chapter description.
Calibration data curing
TSMaster has built-in message analysis, diagnostics, calibration, and system variable data in one unit, making it easy to analyze data synchronously. Through the COM component call can also realize the automation calibration.
Typical Applications: In production lines, laboratories and other scenarios, user-developed applications call the TSMaster software through a COM component interface to realize automated calibration and brushing.
Remote Calibration
1, remote calibration system in the client to complete the device mapping, the user's actual operating interface is still TSMaster, so all the features of the TSMaster introduced in the foregoing, applicable to this remote system.
2. The device side adopts MCU device + 4G/Wifi module, which has stronger environmental adaptability compared with the program using SOC or small computer equipment.
3, data analysis, data management, make full use of the existing characteristics of the TSMaster software system, with strong data analysis, comparison, rectification, export capabilities.