The crash course begins! Please see the questions before class:
(Single-choice question) The function that can read the internal parameters of the vehicle is _______.
A. Entertainment function
B. Autopilot function
C. Vehicle diagnosis function
We will announce the answer in the comment area~
Every car has many functions, such as intelligent driving functions and entertainment domain functions. But no matter how it develops, the traditional diagnostic functions of our vehicles are necessary and very important. So what is vehicle diagnosis? Simply put, it is to obtain the parameter information inside the vehicle by means of one question and one answer through the diagnosis service.
Vehicle diagnosis process:
In our entire car development, testing, production, and after-sales service process, we need to use the vehicle diagnostic function. But these are all completed by different companies or different departments, so we need to unify the diagnostic database at each stage to ensure the consistency of diagnostic requirements and the reusability of diagnostic data in the entire process.
The diagnostic database needs to have machine (such as software) readable characteristics, so that it is possible to automatically generate diagnostic automated tests and diagnostic protocol stacks. The diagnostic database platform also needs to have good interactivity to facilitate the interaction and conversion of diagnostic databases in different formats.
Here is a crash course for everyone to understand how the Vector diagnostic product chain CANdelaStudio tool generates diagnostic database files to maintain the consistency of diagnostic specifications.
1. Introduction to CANdelaStudio
1. CANdelaStudio diagnostic specification definition
As shown in the figure above, it is a typical VL model. From the early development to the after-sales stage, the diagnosis database of ECU (corresponding to the diagnosis requirements of ECU) is the core. In the development stage, implement the ECU diagnosis protocol stack according to the ECU diagnosis database. In the testing phase, the diagnostic test specifications and test cases are generated according to the ECU diagnostic database. In the production stage, develop and apply parameterized EOL equipment based on the ECU diagnostic database. In the after-sales phase, a parameterized diagnostic instrument is developed and applied based on the ECU diagnostic database. At different stages, the format of the diagnostic database used may be different, but all diagnostic databases are derived from the same data source. Based on the machine-readable diagnostic database, it realizes the consistency of requirements, data reusability and parameterization of diagnostic equipment in the development, testing, production and after-sale stages of the diagnosis.
CANdelaStudio is used to define ECU diagnostic requirements, support users to create and edit vehicle ECU diagnostic requirements, and generate diagnostic database files (CDD) to achieve the consistency of our diagnostic requirements.
After installing the CANdelaStudio software, it will bring its own CDDT template. The CDD file is generated from the CDDT template file. The generated CDD file can also be imported into different software. For example, based on the AUTOSAR system, the CDD file can be imported into the Vinci software to generate the code of the MICROSAR Diag part; the CDD file can be imported into other Vector software (CANoe, CANape, Indigo, etc.) for manual diagnostic testing; it can also be imported into CANoe. DiVa software generates diagnostic automation test cases, and finally imports the test cases generated by CANoe.DiVa into CANoe for automated testing.
I just said that CDD files are generated from CDDT files, so what is the difference between them? The CDDT file is the template file of the CDD. When the CDD file is generated, we need to know which CDDT file it was generated from.
CDDT file: Define macro-vehicle-level communication parameter types, service list, structure, vehicle-wide conversation mode,
security access, DID, etc.
CDD file: Define micro-single controller level specific communication parameters, specific service parameters, specific session mode
, security access, DID, etc.
2. CANdelaStudio version introduction:
- CANdelaStudio View: Can view CDD files, but cannot edit CDD files.
- CANdelaStudio Standard: Edit CDD files based on CDDT, but cannot edit CDDT files
- CANdelaStudio Pro: supports multi-language version
- CANdelaStudio Admin: The highest authority version, you can edit CDDT files
Check the software version:
3. Introduction to diagnostic data and architecture in CANdelaStudio
Project creation method:
a. Click New to select the corresponding CDDT template to edit the database and save it as a CDD file
b. Click Open to open the CDDT file, edit and save the CDDT file; or open a CDD file for editing and saving.
CDD file structure analysis:
Variants: Variants , the core content of the CDD file, contains all the diagnostic service data in an ECU. There are Base Variant and Variants here, which can be simply understood as the high, medium and low models of models, and each model of configuration corresponds to a Variant. When importing CDD files in other Vector tools (CANoe, Diva, etc.), you can select the corresponding Variant.
Under each Variant, you need to select the supported classes (Supported Classes):
Open each class, there are different services below, such as Sessions class, below contains 10 session services. You can view the supported sub-functions and service-related parameters
Then open the DID related class, you can check whether to support writable
CDD data reusability:
The data content in CDD, Data Types, Variants, DTC, DID, etc., can be pasted and copied to complete data reuse, without re-editing from CDD1 to CDD2
Service architecture view:
2. Edit CDD file project
1. Create a new project
- Next, we will create a new CDD project from the CDDT file:
- Edit author, change history: Document->Revision History
- ECU information description edit:
- Select the relevant bus interface type:
2. Communication parameter editing
Communication parameter setting: need to set request ID, response ID, time parameter, baud rate, etc.
DID is a two-byte identifier. Different DIDs store different data formats, such as how many bytes are stored in decimal numbers, ASCII code type numbers, or linear data.
So how to edit DID in CANdelaStudio?
First of all, we need to create the DID, which is usually created in Base Variant.
Step 1: Create a new DID
1) Select DIDs
2) Select New DID
3) Edit ID and name
Step 2: Create a new Data Type
1) Select Data Type
2) Select New
3) Select the required data type
4) Edit parameters
Step 3: Associate DID with Data Type
1) Select DIDs, and select the DID created before
2) Select the corresponding Data Type
Step 4: Class association
1) Select the DID-related Class class.
If there is a DID that needs to define a bit, first select New Bitfield in the associated Data Type, and then associate the Data Type.
2) Invalid value definition:
When defining the Data Type, select Invalid Values to define the type of invalid values.
3) Activate/deactivate DID:
For the DID we created, you can choose to activate or deactivate
4. DTC fault code editing:
Before creating and editing DTC, let's first understand the DTC library in CDD:
1. Select DTC database
2. Click New DTC
3. Edit DTC parameters
DTC fault code import/export:
In the DTC database, the DTC in the Excle table can be directly imported into CANdelaStudio, or the DTC in CANdelaStudio can be exported into an Excle table.
Load the DTC in the DTC library into the Variant:
In the DTC Table of Primary Fault Memory, right-click and select Copy & Reference from Available DTCs... in the pop-up window to load the fault codes in the DTC library into the Variant.
Although you can load DTC by selecting Copy and Reference, if we modify the DTC in the DTC library, the DTC loaded by Copy will not be automatically updated in the DTC Table following the modification of the DTC library. The DTC loaded through Reference can be automatically updated.
0x19 service setting:
set the 0x19 service that needs to be applied
Status mask setting:
1) Set the status mask according to requirements
2) Set the requested default value
DTC code overview:
All DTC will be displayed here, you can check whether the DTC code is applied.
5. Snapshot data editing:
1) Define the number of snapshot data recorded by all DTC
2) For all DTC, set the DID content of the snapshot data read;
1) Display all DTCs, which can be individually selected for editing
2) For a single DTC, the DID that needs to record a snapshot can be selected
Display the number of snapshot data, and you can set whether to support snapshot data
6. Extended snapshot data editing:
1) Define the number of extended snapshot data
2) Set the content of the extended snapshot data
1) Display all DTCs, which can be individually selected for editing
2) Set whether to support extended data
This lesson’s sharing of CANdelaStudio’s CDD files is here. Please continue to pay attention to our sharing in the next lesson.
Vector Informatik is the world's leading provider of distributed system design and development tools, network node testing and verification tools, and embedded software components. It provides design, modeling, simulation, analysis, testing, and ECU development, testing, and calibration for automotive bus networks. Provides a series of powerful software and hardware tools and components for the process of diagnosis and diagnosis, supporting various bus systems, protocols and standards such as CAN, LIN, MOST, FlexRay, Ethernet, SAE J1939, OSEK and AUTOSAR. On a global scale, customers from the fields of automobiles, commercial vehicles, construction machinery and control engineering are applying the solutions and products provided by Vector.
As a partner of Vector China, Beihui Information not only provides corresponding tools and technical support services and training, but also provides corresponding solutions for different applications to help Chinese customers improve the R&D efficiency. Welcome to contact Beihui Information to answer your questions!
Note: Some pictures in the picture are from the
author of Vector : Beihui Information-Anhao