[Diagnostic Database File-CDD] Creating a Crash Course-Beihui Information Classroom (1)

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:

Insert picture description here

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

Insert picture description here


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.


Insert picture description here



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.

Insert picture description here



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:

Insert picture description here


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

Insert picture description here



b. Click Open to open the CDDT file, edit and save the CDDT file; or open a CDD file for editing and saving.

Insert picture description here


CDD file structure analysis:

Insert picture description here



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


Insert picture description here



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


Insert picture description here



Then open the DID related class, you can check whether to support writable


Insert picture description here

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:

Insert picture description here




2. Edit CDD file project

1. Create a new project

  • Next, we will create a new CDD project from the CDDT file:
Insert picture description here


Insert picture description here


  • Edit author, change history: Document->Revision History


Insert picture description here



  • ECU information description edit:


Insert picture description here



  • Select the relevant bus interface type:


Insert picture description here



2. Communication parameter editing

Communication parameter setting: need to set request ID, response ID, time parameter, baud rate, etc.

Insert picture description here




3.DID editing

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

Insert picture description here



Step 2: Create a new Data Type

1) Select Data Type
2) Select New
3) Select the required data type
4) Edit parameters

Insert picture description here


Insert picture description here


Step 3: Associate DID with Data Type

1) Select DIDs, and select the DID created before
2) Select the corresponding Data Type

Insert picture description here


Insert picture description here


Step 4: Class association

1) Select the DID-related Class class.

Insert picture description here




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.


Insert picture description here


Insert picture description here



2) Invalid value definition:

When defining the Data Type, select Invalid Values ​​to define the type of invalid values.

Insert picture description here


3) Activate/deactivate DID:

For the DID we created, you can choose to activate or deactivate

Insert picture description here



4. DTC fault code editing:

Before creating and editing DTC, let's first understand the DTC library in CDD:

Insert picture description here

New DTC:
1. Select DTC database
2. Click New DTC
3. Edit DTC parameters


Insert picture description here



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.


Insert picture description here

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.


Insert picture description here



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


Insert picture description here




Status mask setting:
1) Set the status mask according to requirements
2) Set the requested default value

Insert picture description here

DTC code overview:
All DTC will be displayed here, you can check whether the DTC code is applied.

Insert picture description here


5. Snapshot data editing:

Step
1) Define the number of snapshot data recorded by all DTC
2) For all DTC, set the DID content of the snapshot data read;

Insert picture description here



Step 2
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

Insert picture description here


Step 3
Display the number of snapshot data, and you can set whether to support snapshot data

Insert picture description here


6. Extended snapshot data editing:

Step 1
1) Define the number of extended snapshot data
2) Set the content of the extended snapshot data

Insert picture description here


Step 2
1) Display all DTCs, which can be individually selected for editing
2) Set whether to support extended data

Insert picture description here

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

Insert picture description here


Insert picture description here