Method and apparatus for writing electronic control unit identification information

By automatically matching the software version number and writing path of the electronic control unit, the electronic control unit identification information is written efficiently and accurately, solving the problems of low efficiency and easy error in the existing technology and improving the overall vehicle assembly efficiency.

CN116048555BActive Publication Date: 2026-03-24DONGFENG MOTOR GRP
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-10
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

In existing technologies, the writing efficiency of electronic control unit identification information is low and prone to errors, which affects the overall vehicle assembly efficiency.

Method used

A method and apparatus for writing identification information of electronic control units are provided. By reading the software version number of the electronic control unit, matching the corresponding data length value and writing path, complete identification data is automatically written, avoiding manual input.

Benefits of technology

This improved the efficiency of writing identification information, reduced the probability of errors, and increased the overall vehicle assembly efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116048555B_ABST
    Figure CN116048555B_ABST
Patent Text Reader

Abstract

The application discloses an electronic control unit identification information writing method and device, and relates to the technical field of electronic control units. When identification information is written into the electronic control unit, the complete identification data corresponding to the electronic control unit is written only once, the software version number of the electronic control unit is read, the corresponding data length value and identification information writing path are matched for the software version number, and the target data segment with the data length value in the complete identification data is written into the electronic control unit through the identification information writing path. Therefore, the identification data does not need to be manually entered each time, the efficiency of identification information writing is improved, and the error probability is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic control unit (ECU) technology, and more particularly to a method and apparatus for writing ECU identification information. Background Technology

[0002] The electronic control units (ECUs) used in vehicles may be from different manufacturers or different brands produced by the same manufacturer. Before assembling the ECUs into the vehicle, the OEM needs to write identification information such as assembly time, manufacturer code, or brand code into the ECUs for later traceability. Currently, OEMs write this identification information into the ECUs manually. Manual input is inefficient and prone to errors, greatly reducing the efficiency of vehicle assembly. Summary of the Invention

[0003] This invention solves the technical problems of low efficiency and easy error in writing electronic control unit (ECU) identification information by providing a method and apparatus for writing ECU identification information.

[0004] On the one hand, embodiments of the present invention provide the following technical solutions:

[0005] A method for writing electronic control unit (ECU) identification information includes:

[0006] Write and store the complete identification data corresponding to the electronic control unit;

[0007] Read the software version number of the electronic control unit;

[0008] Write the corresponding data length value and identification information to the path corresponding to the software version number;

[0009] The target data segment in the complete identification data is written to the electronic control unit through the identification information writing path, and the data length of the target data segment is the data length value.

[0010] Preferably, the complete identification data is any one of the following: assembly date, manufacturer code, and brand code.

[0011] Preferably, before reading the software version number of the electronic control unit, the method further includes:

[0012] Handshake with the electronic control unit;

[0013] The command instructs the electronic control unit to enter extended mode;

[0014] Unlock secure access to the electronic control unit.

[0015] Preferably, after reading the software version number of the electronic control unit and before writing the target data segment in the complete identification data into the electronic control unit through the identification information writing path, the method further includes:

[0016] Determine whether the software version number is obtained for the first time;

[0017] If so, then execute the step of matching the corresponding data length value and identification information to the path for writing the software version number;

[0018] Otherwise, directly obtain the data length value corresponding to the software version number and the write path of the identification information.

[0019] Preferably, writing the target data segment from the complete identification data into the electronic control unit via the identification information writing path includes:

[0020] The first to Nth bits of the complete identification data are sequentially written to the electronic control unit through the identification information writing path, where N is the data length value.

[0021] On the other hand, embodiments of the present invention also provide the following technical solutions:

[0022] An electronic control unit (ECU) identification information writing device, comprising:

[0023] The identification data acquisition module is used to write and store the complete identification data corresponding to the electronic control unit;

[0024] The software version number reading module is used to read the software version number of the electronic control unit;

[0025] The write rule matching module is used to match the corresponding data length value and identification information write path for the software version number;

[0026] The identification data writing module is used to write the target data segment in the complete identification data into the electronic control unit through the identification information writing path, wherein the data length of the target data segment is the data length value.

[0027] Preferably, the electronic control unit identification information writing device further includes:

[0028] A handshake module is used to perform a handshake with the electronic control unit;

[0029] An extended mode control module is used to command the electronic control unit to enter extended mode;

[0030] A secure access unlocking module is used to unlock secure access to the electronic control unit.

[0031] Preferably, the identification data writing module is further configured to sequentially write the first to Nth bits of the complete identification data into the electronic control unit through the identification information writing path, where N is the data length value.

[0032] On the other hand, embodiments of the present invention also provide the following technical solutions:

[0033] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the above-described methods for writing electronic control unit identification information.

[0034] On the other hand, embodiments of the present invention also provide the following technical solutions:

[0035] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described methods for writing electronic control unit identification information.

[0036] One or more technical solutions provided by this invention have at least the following technical effects or advantages:

[0037] When writing identification information to the electronic control unit, this invention only requires writing the complete identification data corresponding to the electronic control unit once, reading the software version number of the electronic control unit, matching the corresponding data length value and identification information writing path for the software version number, and writing the target data segment with a data length of the data length value in the complete identification data to the electronic control unit through the identification information writing path. This eliminates the need for manual entry of identification data each time, improves the efficiency of identification information writing, and reduces the probability of errors. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a flowchart of the method for writing electronic control unit identification information in an embodiment of the present invention;

[0040] Figure 2 This is a schematic diagram of the electronic control unit identification information writing device in an embodiment of the present invention. Detailed Implementation

[0041] The embodiments of the present invention provide a method and apparatus for writing electronic control unit (ECU) identification information, thereby solving the technical problems of low efficiency and easy error in writing ECU identification information in the prior art.

[0042] To better understand the technical solution of the present invention, the technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] like Figure 1As shown, the method for writing electronic control unit identification information in this embodiment includes:

[0044] Step S1: Write and store the complete identification data corresponding to the electronic control unit;

[0045] Step S2: Read the software version number of the electronic control unit;

[0046] Step S3: Match the corresponding data length value and identification information to the path for the software version number;

[0047] Step S4: Write the target data segment from the complete identification data to the electronic control unit through the identification information writing path. The data length of the target data segment is the data length value.

[0048] The identification information of the electronic control unit can be the assembly date, manufacturer code, or brand code. Electronic control units in the same series may be from different manufacturers or different brands produced by the same manufacturer. Each electronic control unit may have different rules for entering identification information. In step S1, if the identification information is the assembly date, among multiple electronic control units assembled on the same day, the identification information entry rules for some electronic control units may require 4 digits (e.g., 2022), for others may require 7 digits (e.g., 2022.01), and for the remaining electronic control units may require 10 digits (e.g., 2022.01.01). Therefore, the complete identification data for the corresponding electronic control unit is 2022.01.01. If the identification information is a brand code, among electronic control units in the same series, the identification information entry rules for some electronic control units may require 2 digits (e.g., S5), for others may require 6 digits (e.g., S5-Pro), and for the remaining electronic control units may require 7 digits (e.g., S5-Pro+). Therefore, the complete identification data for this series of electronic control units is S5-Pro+. Before technicians write identification information to a large number of electronic control units on the vehicle assembly line, they will enter the complete identification data corresponding to the electronic control unit into the diagnostic equipment and store the complete identification data in a fixed address space of the diagnostic equipment in accordance with the UDS protocol. When entering identification information, the complete identification data can be directly obtained from this fixed address space.

[0049] In step S2, the software version number of the electronic control unit is BT software version number SW. BT (Boot loader) refers to a low-level driver program that runs before the operating system kernel. Through this small program, hardware devices can be initialized and a memory space mapping can be established, thereby bringing the system's hardware and software environment to a suitable state so as to prepare the correct environment for the final call to the operating system kernel.

[0050] In step S3, after obtaining the software version number of a certain electronic control unit (ECU), the technician can determine the identification information writing rules for that ECU based on the software version number. This can be understood as determining the length of the identification data to be written and the identification information writing path. The diagnostic device can then match the corresponding data length value and identification information writing path for that software version number. In this embodiment, different software version numbers may correspond to the same data length value and identification information writing path.

[0051] Of course, after obtaining a certain software version number and matching the data length value and the identification information writing path for the first time, when obtaining the same software version number again, the data length value and identification information writing path corresponding to the software version number can be directly obtained. Therefore, after step S2 and before step S4, the electronic control unit identification information writing method of this embodiment may further include:

[0052] Determine if the software version number is obtained for the first time; if so, proceed to step S3; otherwise, directly obtain the data length value and identification information writing path corresponding to the software version number.

[0053] Step S4 may include: writing the first to Nth bits of the complete identification data sequentially into the electronic control unit (ECU) via the identification information writing path, where N is the data length value. For example, if the identification information is the assembly date and the data length corresponding to the software version number of a certain ECU is 7, then the 2022.01 in the complete identification data 2022.01.01 will be written into the ECU via the identification information writing path corresponding to the software version number, i.e., the target data segment is 2022.01. Of course, if the complete identification data is 01.01.2022, then the Nth bit from the end to the last bit of the complete identification data will be written into the ECU.

[0054] As can be seen from the above, the electronic control unit (ECU) identification information writing method of this embodiment only needs to write the complete identification data corresponding to the ECU once when writing identification information to the ECU. It reads the software version number of the ECU, matches the corresponding data length value and identification information writing path for the software version number, and writes the target data segment with a data length of the data length value in the complete identification data to the ECU through the identification information writing path. It eliminates the need for manual entry of identification data each time, improves the efficiency of identification information writing, and reduces the probability of errors.

[0055] In this embodiment, the diagnostic device writes identification information to the electronic control unit (ECU) via the UDS protocol. Therefore, before reading the ECU's software version number, it needs to handshake with the ECU, then command the ECU to enter extended mode, and finally unlock the ECU's secure access. That is, before step S2, the ECU identification information writing method also includes: handshaking with the ECU; commanding the ECU to enter extended mode; and unlocking the ECU's secure access. Failure to handshake, enter extended mode, or unlock secure access will terminate the writing process.

[0056] like Figure 2 As shown, this embodiment also provides an electronic control unit identification information writing device, including:

[0057] The identification data acquisition module is used to write and store the complete identification data corresponding to the electronic control unit;

[0058] The software version number reading module is used to read the software version number of the electronic control unit;

[0059] The write rule matching module is used to match the corresponding data length value and identification information write path for the software version number;

[0060] The identification data writing module is used to write the target data segment from the complete identification data to the electronic control unit through the identification information writing path. The data length of the target data segment is the data length value.

[0061] Furthermore, the electronic control unit identification information writing device also includes: a handshake module for handshaking with the electronic control unit; an extended mode control module for commanding the electronic control unit to enter extended mode; and a secure access unlocking module for unlocking the secure access of the electronic control unit.

[0062] Furthermore, the identification data writing module is also used to sequentially write the first to Nth bits of the complete identification data into the electronic control unit through the identification information writing path, where N is the data length value.

[0063] Based on the same inventive concept as the electronic control unit identification information writing method described above, this embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of any of the methods described above for writing electronic control unit identification information.

[0064] The bus architecture (represented by a bus) can include any number of interconnected buses and bridges, linking various circuits including one or more processors (represented by a processor) and memory (represented by memory). The bus can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface between the bus and receivers and transmitters. Receivers and transmitters can be the same element, a transceiver, providing a unit for communicating with various other devices over a transmission medium. The processor is responsible for managing the bus and general processing, while memory can be used to store data used by the processor during operation.

[0065] Since the electronic device described in this embodiment is the electronic device used to implement the electronic control unit identification information writing method in this embodiment of the invention, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the electronic control unit identification information writing method described in this embodiment of the invention. Therefore, how the electronic device implements the method in this embodiment of the invention will not be described in detail here. Any electronic device used by those skilled in the art to implement the electronic control unit identification information writing method in this embodiment of the invention falls within the scope of protection of this invention.

[0066] Based on the same inventive concept as the above-described method for writing electronic control unit identification information, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described methods for writing electronic control unit identification information.

[0067] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0068] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0069] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0070] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0071] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0072] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for writing identification information of an electronic control unit, characterized in that, include: The complete identification data corresponding to the electronic control unit is entered into the diagnostic equipment, and the complete identification data corresponding to the electronic control unit is written and stored. Read the software version number of the electronic control unit; the software version number of the electronic control unit is BT software version number SW; Write the corresponding data length value and identification information to the path corresponding to the software version number; The target data segment in the complete identification data is written to the electronic control unit through the identification information writing path, and the data length of the target data segment is the data length value.

2. The method for writing electronic control unit identification information as described in claim 1, characterized in that, The complete identification data can be any one of the following: assembly date, manufacturer code, and brand code.

3. The method for writing electronic control unit identification information as described in claim 1, characterized in that, Before reading the software version number of the electronic control unit, the process also includes: Handshake with the electronic control unit; The command instructs the electronic control unit to enter extended mode; Unlock secure access to the electronic control unit.

4. The method for writing electronic control unit identification information as described in claim 1, characterized in that, After reading the software version number of the electronic control unit and before writing the target data segment in the complete identification data into the electronic control unit through the identification information writing path, the method further includes: Determine whether the software version number is obtained for the first time; If so, then execute the step of matching the corresponding data length value and identification information to the path for writing the software version number; Otherwise, directly obtain the data length value corresponding to the software version number and the write path of the identification information.

5. The method for writing electronic control unit identification information as described in claim 1, characterized in that, Writing the target data segment from the complete identification data into the electronic control unit via the identification information writing path includes: The first to Nth bits of the complete identification data are sequentially written to the electronic control unit through the identification information writing path, where N is the data length value.

6. A device for writing identification information of an electronic control unit, characterized in that, include: The identification data acquisition module is used to input the complete identification data corresponding to the electronic control unit into the diagnostic device, and to write and store the complete identification data corresponding to the electronic control unit. The software version number reading module is used to read the software version number of the electronic control unit; the software version number of the electronic control unit is BT software version number SW. The write rule matching module is used to match the corresponding data length value and identification information write path for the software version number; The identification data writing module is used to write the target data segment in the complete identification data into the electronic control unit through the identification information writing path, wherein the data length of the target data segment is the data length value.

7. The electronic control unit identification information writing device as described in claim 6, characterized in that, Also includes: A handshake module is used to perform a handshake with the electronic control unit; An extended mode control module is used to command the electronic control unit to enter extended mode; A secure access unlocking module is used to unlock secure access to the electronic control unit.

8. The electronic control unit identification information writing device as described in claim 6, characterized in that, The identification data writing module is further configured to sequentially write the first to Nth bits of the complete identification data into the electronic control unit through the identification information writing path, where N is the data length value.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the electronic control unit identification information writing method according to any one of claims 1-5.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the electronic control unit identification information writing method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Production line flash terminal supporting multiple protocols and flashing method with terminal

    CN102968114A

  • Product Mark information management method and device and server

    CN110517022A