System and method for realizing vehicle information configuration based on UDS diagnostic service and data storage

Through UDS diagnostic services and data storage technology, unified configuration of the MCU software for the main drive motor of new energy vehicles is achieved, solving the problem of chaotic software development under different configurations and improving software compatibility and maintenance efficiency.

CN120762391AActive Publication Date: 2025-10-10ZHIXIN TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510891049.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-10
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

The existing MCU software development for the main drive motor of new energy vehicles requires developing different software for different configurations, which leads to confusion in software development and management and is prone to flashing errors.

Method used

Abstract: A method based on UDS diagnostic service and data storage is adopted to realize the abstract definition of the software function of the MCU main drive motor through the configuration word configuration unit, MCU software configuration unit and software logic switching unit. The configuration word is stored in NVM through the UDS protocol stack, and is read and written by the host computer to periodically switch the motor control logic.

Benefits of technology

It enables multiple motors to share one version of software, reducing development workload and version management costs, avoiding flashing errors, improving software compatibility and after-sales maintenance efficiency, and supporting rapid vehicle model iteration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120762391A_ABST
    Figure CN120762391A_ABST
Patent Text Reader

Abstract

The invention discloses a system and a method for realizing vehicle information configuration based on UDS diagnostic service and data storage. The method comprises the following steps: configuring configuration words according to different MCU main driving motors; a readable and writable data identifier is defined in a UDS protocol stack of MCU software; the configuration module is also used for defining a space with a specific length in an NVM (Non-Volatile Memory) of the MCU software to store the configuration word; the upper computer reads and writes the configuration word according to the data identifier by using UDS service; and periodically reading the configuration word from the NVM, and switching the corresponding main driving motor control logic module according to the configuration word. According to the invention, only one version of software needs to be developed for a plurality of motors with consistent main body functions through configuration words, so that the version management cost is reduced; a supplier of the main driving motor only needs to flash one version of basic software, so that flash errors caused by disordered software versions are avoided; one set of software is compatible with various motor configurations, and technical support is provided for rapid iteration of the software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of MCU software development for new energy vehicle power systems, and specifically relates to a system and method for implementing vehicle information configuration based on UDS diagnostic services and data storage. Background Art

[0002] New energy vehicle technology is evolving rapidly, and the selection and configuration of powertrain systems vary. The same model may have configurations such as pure electric four-wheel drive, four-wheel drive extended-range, and rear-wheel drive extended-range. Generally speaking, the main software functions of the main drive motors of different configurations of the same model are the same. Differences may appear in the calibration data content or some special functions for specific motors. Similarly, the main software functions of the main drive motors of different models developed on the same vehicle platform are also the same.

[0003] The existing MCU software development for the main drive motor of new energy vehicles is to develop a version of software for each main drive motor.

[0004] The existing software development model for the main drive motor MCU of new energy vehicles requires different software for different main drive motors. For example, three different versions of software are required for the three rear drive motors of the same vehicle: the pure electric four-wheel drive model, the four-wheel drive extended-range model, and the rear-wheel drive extended-range model. This creates confusion in software development and version management, as well as factory software flashing and management, and can easily lead to software flashing errors on the actual vehicle. Summary of the Invention

[0005] In order to solve the problems raised by the background technology, the present invention proposes a system and method for implementing vehicle information configuration based on UDS diagnostic services and data storage.

[0006] A system for implementing vehicle information configuration based on UDS diagnostic services and data storage to achieve one of the objectives of the present invention includes: Configuration word configuration unit: used to configure the configuration word according to different MCU main drive motors. The configuration word is a byte sequence with a specific length for different MCU main drive motors and is used to confirm different functional parts of the software; MCU software configuration unit: used to define a readable and writable data identifier in the MCU software UDS protocol stack; also used to define a specific length space in the MCU software NVM to store the configuration word; the host computer uses the UDS service to read and write the configuration word stored in the specific length space in the NVM according to this data identifier; Software logic switching unit: used to periodically read the configuration word from NVM through MCU software, and switch the corresponding main drive motor control logic module according to the configuration word.

[0007] The beneficial effects of the above system include: abstractly defining the software functions of different MCU main drive motors through configuration words, so that multiple motors with the same main functions only need to develop one version of software, reducing the software development workload and version management costs; and the main drive motor supplier only needs to flash one version of the basic software, and the OEM can adapt to different models through configuration words to avoid flashing errors caused by software version confusion; through the "configuration word + logic switching" architecture, a set of software can be compatible with multiple motor configurations, providing technical support for the rapid iteration of multiple models and multiple powertrains of new energy vehicles.

[0008] Furthermore, in the MCU software configuration unit, the host computer reads and writes the data identifier via the 2E and 22 services of the UDS diagnostic protocol; the host computer calls interface variables or functions related to NVM storage to trigger the storage and reading of NVM data. Beneficial effects include: UDS protocol-based services enable standardized reading and writing of configuration words between the host computer and the MCU, ensuring compatibility between different devices; triggering data storage and reading via NVM interface variables / functions ensures that configuration words are not lost after power failure, and supports automatic loading of preset configurations after the vehicle is restarted; and with the help of UDS diagnostic services, configuration words can be remotely modified when the vehicle is offline, undergoing maintenance, or being upgraded, without the need to physically replace the software, thereby improving after-sales maintenance efficiency.

[0009] Furthermore, the configuration word indicates the vehicle type, vehicle model, powertrain type, rear motor model and drive type, and resolver zero position. In the software logic switching unit, different main drive motor control logic modules are switched based on the read configuration word. The vehicle type represents the comprehensive technical characteristics of the vehicle's powertrain, including the energy source, energy conversion device, and drive type, and includes: fuel vehicle, pure electric vehicle, extended-range electric vehicle, hybrid electric vehicle, and hydrogen fuel vehicle. Powertrain types include EV (Electric Vehicle), PHEV (Plug-in Hybrid Electric Vehicle), and REV (Range-Extended Electric Vehicle). Rear motor models and drive types include: single-motor transverse rear-wheel drive, dual-motor transverse four-wheel drive, single-motor transverse rear-wheel drive, and dual-motor transverse four-wheel drive. Advantages include: the configuration word integrates key information such as vehicle type (fuel vehicle / pure electric), powertrain (EV / PHEV), and motor drive type, enabling the software to adapt to the differentiated needs of different models on the same platform. Based on the parameters of each dimension in the configuration word, the application layer can automatically match the corresponding control strategy. For example, it can adjust the torque output logic for the REV extended-range model to improve the efficiency of the power system. It can adapt to different motor models through software logic to avoid repeated software development due to hardware differences, thereby reducing the R&D cost of the entire vehicle.

[0010] Furthermore, the configuration word includes multiple bytes. Three bits in the first byte are used to indicate the vehicle type, and another three bits are used to indicate the vehicle model. The second byte indicates the vehicle powertrain, rear motor model, and drive type, with two bits used to indicate the powertrain and two bits indicating the combination of the rear motor model and drive type. The third byte is used to indicate the resolver zero position selection, with the upper two bits indicating the resolver zero position. Beneficial effects include: clarifying the functional assignment of each byte and bit of the configuration word (e.g., the first byte's three bits indicate the vehicle type, and the other three bits indicate the vehicle model), efficiently storing multi-dimensional configuration information within an 8-byte space, and saving NVM storage space; achieving precise switching of software functions through bit-level definition (e.g., the second byte's two bits distinguish the powertrain type), for example, simply adjusting the corresponding bit of "resolver zero position selection" can adapt to different motor installation scenarios; and unified bit allocation rules facilitate rapid understanding of the configuration word meaning by development, testing, and maintenance personnel, reducing communication costs for cross-team collaboration.

[0011] Furthermore, an array and a global variable are defined in the software logic switching unit. The MCU software periodically retrieves configuration words from the NVM and stores them in the array. It then retrieves vehicle configuration information from the array and stores it in the global variable. Beneficial effects include: Periodic tasks read configuration words from the NVM and store them in the array and global variables, ensuring that the application layer obtains the latest configuration in real time, avoiding logical errors caused by configuration lags; the layered design of arrays and global variables decouples configuration word parsing logic from application-layer logic, improving software maintainability; and a periodic refresh mechanism supports dynamic modification of configuration words during vehicle operation (such as switching driving modes), ensuring the real-time and stability of function switching.

[0012] Furthermore, when the MCU's application-layer software receives the values ​​in the array, it automatically switches the corresponding main drive motor control logic. Beneficial effects include: the application layer automatically switches control logic based on the configuration word values ​​in the array, eliminating the need for manual intervention or additional triggering instructions, reducing the risk of operational errors; and the automatic switching mechanism frees developers from worrying about the details of low-level configuration parsing, allowing them to focus on application-layer logic implementation, shortening the development cycle.

[0013] Furthermore, it also includes a multi-scenario software adaptation module: used to generate the corresponding main drive motor control logic module in the MCU software based on the main drive motor represented by the configuration word. Beneficial effects include: through the configuration word drive logic generation, it is guaranteed that all supported motor models and drive forms have corresponding control strategies, avoiding functional loss due to missing configuration; when adding new vehicle models or motor configurations, only the configuration word definition and corresponding logic module need to be expanded, without the need to reconstruct the underlying architecture, thus improving R&D iteration efficiency; during the development phase, all possible motor control logic is integrated into a single version of the software, avoiding the need to develop separate branches for different configurations, reducing code redundancy, and reducing subsequent maintenance costs.

[0014] A method for implementing vehicle information configuration based on UDS diagnostic services and data storage to achieve the second objective of the present invention includes: The configuration word is configured according to different MCU main drive motors. The configuration word is a byte sequence with a specific length for different MCU main drive motors and is used to confirm different functional parts of the software; A readable and writable data identifier is defined in the MCU software UDS protocol stack; it is also used to define a specific length space in the NVM of the MCU software to store the configuration word; the host computer uses the UDS service to read and write the configuration word stored in the specific length space in the NVM according to this data identifier; The configuration word is periodically read from the NVM by the MCU software, and the corresponding main drive motor control logic module is switched according to the configuration word.

[0015] A non-transitory computer-readable storage medium is provided to achieve the third purpose of the present invention, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for configuring vehicle information based on UDS diagnostic services and data storage are implemented.

[0016] A computer program product for achieving the fourth objective of the present invention includes a computer program / instruction, which, when executed by a processor, implements the steps of the method for implementing vehicle information configuration based on UDS diagnostic services and data storage.

[0017] The beneficial effects of the present invention include: 1. Compared with the existing software development model for the MCU software of the main drive motor of new energy vehicles, the present invention develops different software for different main drive motors. This technology only needs to develop one version of software for multiple MCU main drive motors with the same main functions, reducing the workload of software development. It also effectively avoids the phenomenon of chaotic software version management during the software development process. 2. When supplying to vehicle OEMs, the main drive motor supplier only needs to rewrite one version of basic software for the main drive motor with the same main function, reducing the confusion of parts management in the factory; 3. The present invention reduces the phenomenon of powertrain assembly errors in vehicle main manufacturers. When the main manufacturers assemble vehicles off the production line, the main drive motors with the same main functions do not need to be installed differently. Different configuration words need only be written according to the vehicle configuration to adapt to different models. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Schematic diagram of an embodiment of the method of the present invention. DETAILED DESCRIPTION

[0019] The following specific embodiments are provided to explain the technical solutions of the present invention so that those skilled in the art can understand the present invention. The scope of protection of the present invention is not limited to the specific implementation structures described below. Any implementation schemes created by those skilled in the art that include the technical solutions of the present invention but differ from the following specific implementation schemes are also within the scope of protection of the present invention.

[0020] A method for realizing vehicle information configuration based on UDS diagnostic service and data storage Step 1: Confirm the software configuration word and its content (1) The software configuration word confirmation is for multiple MCU main drive motors and different functional parts of the software. Table 1 below is the configuration word information in a development project in a certain embodiment. It can be seen that this configuration word is 8 bytes long and the default information of the configuration word is 0x1122={0x9,0xF,0x00,0x00,0x00,0x00,0x00,0x01} (converted into hexadecimal values ​​through the default configuration value column) Table 1 Configuration word information table (2) Confirmation of the configuration word content is to confirm the specific software content corresponding to the above configuration word. For example, the difference in the MCU software logic between the single-motor transverse rear drive and the two rear drive motors of the dual-motor transverse four-wheel drive in the 2nd and 3rd bits of Byte1 in 0x1122 is that the number of configuration parameters is different, or the number of parameters is the same but the value of each parameter is different. For example, some software has an anti-shake function, while some software does not need this function. Some software has a complex anti-shake function and therefore has more parameters, while some software has a simple anti-shake function and therefore has fewer parameters. Anti-shake parameters include: anti-shake start speed threshold 1 / 2 / 3, anti-shake start torque threshold high and low, anti-shake start feedback torque threshold, anti-shake start accelerator pedal threshold, anti-shake start speed threshold under low feedback capability, vehicle speed slip filter coefficient, etc.; it also includes the configuration of other parameters, such as: torque compensation parameters (torque compensation coefficient, speed compensation value, torque compensation limit, etc.); anti-slip calibration parameters (acceleration filter coefficient, anti-slip start acceleration upper and lower limits, anti-slip enable, anti-slip start count upper limit, anti-slip start torque limit coefficient, etc.); heating function, etc. The differences in software logic corresponding to other data in configuration word 0x1122 will not be described in detail. Configuration words can be used to switch software functions and parameters of software with similar functions.

[0021] Step 2: MCU software implements the configuration word identifier 0x1122 and data storage function.

[0022] When developing the UDS protocol stack for the MCU software, define a DID 0x1122 that supports both read and write operations. The host computer can write to this DID using the UDS 2E service and read the DID value using the UDS 22 service. Define an 8-byte storage space in the MCU's NVM to store the value of DID 0x1122. Calling these interface variables or functions related to NVM storage triggers the storage and reading of NVM data.

[0023] Step 3: Implement the development of different functional parts of multiple MCU main drive motor software.

[0024] The development of different software functionalities requires integrating logic for all supported main drive motors into the software. Taking the information in Table 1 as an example, the software's application layer requires five different logic options depending on vehicle type: fuel-powered, pure electric, extended-range, hybrid, and hydrogen-powered. Depending on vehicle model, the software needs to distinguish between Model 1, Model 2, and Model 3. Depending on the powertrain, the software needs to distinguish between EV, PHEV, and REV. Depending on the rear motor model and drive configuration, the software needs to distinguish between single-motor transverse rear-wheel drive (Supplier 1), dual-motor transverse all-wheel drive (Supplier 1), single-motor transverse rear-wheel drive (Supplier 2), and dual-motor transverse all-wheel drive (Supplier 2). Depending on the resolver zero position selection, the software needs to distinguish between Zero Position 1 and Zero Position 2. The resolver zero position is the reference position parameter of the resolver used to detect the motor's rotor position and is used to calibrate the zero point of the motor's initial rotor position. By selecting different resolver zero positions, the software can adapt to the rotor position calibration requirements of different motor models or installation scenarios, ensuring accurate motor control.

[0025] Step 4: Implement application layer software logic switching by writing data to the UDS service After implementing steps 1, 2, and 3, it is necessary to associate the change in the value of DID-0x1122 with the different logic of the application layer in step 3. Again, let's take the single-motor transverse rear-wheel drive and dual-motor transverse four-wheel drive configurations in bits 2-3 of Byte 2 in 0x1122 as an example.

[0026] Define an 8-byte array, Configurable_DataIdentifier_Read[8], and a global variable, Configurable_DataIdentifier_Read_toAPP. Set a periodic task (e.g., 10ms) in the software to periodically retrieve the value of DID-0x1122 from NVM and store it in the custom array Configurable_DataIdentifier_Read[], then retrieve the values ​​in bits 2-3 from the custom array Configurable_DataIdentifier_Read[] and store them in the custom global variable Configurable_DataIdentifier_Read_toAPP. In step 3, the application layer software automatically switches the logic for single-motor transverse rear-wheel drive or dual-motor transverse four-wheel drive after receiving the value of Configurable_DataIdentifier_Read_toAPP. For example, when the value is 0x8, the software logic switches to single-motor transverse rear-wheel drive (Vendor 2), and when the value is 0xC, the software logic switches to dual-motor transverse four-wheel drive (Vendor 2).

[0027] The implementation of other functions in the configuration word information table (Table 1) is similar to the above steps 1, 2, 3, and 4, and will not be listed here one by one.

[0028] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0029] An embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores a computer program. The computer program includes program instructions, which implement the various steps of the method described in the present invention when executed by a processor, and will not be repeated here.

[0030] The computer-readable storage medium may be the data transmission device provided in any of the aforementioned embodiments or an internal storage unit of a computer device, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., provided on the computer device.

[0031] Furthermore, the computer-readable storage medium may include both an internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data to be output or that has been output.

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

[0033] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts 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, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0034] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0035] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0036] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.

Claims

1. A system for implementing vehicle information configuration based on UDS diagnostic services and data storage, characterized in that: include: Configuration word configuration unit: used to configure the configuration word according to different MCU main drive motors. The configuration word is a byte sequence with a specific length for different MCU main drive motors and is used to confirm different functional parts of the software; MCU software configuration unit: used to define a readable and writable data identifier in the MCU software UDS protocol stack; also used to define a specific length space in the MCU software NVM to store the configuration word; the host computer uses the UDS service to read and write the configuration word stored in the specific length space in the NVM according to this data identifier; Software logic switching unit: used to periodically read the configuration word from NVM through MCU software, and switch the corresponding main drive motor control logic module according to the configuration word.

2. The system for implementing vehicle information configuration based on UDS diagnostic services and data storage as claimed in claim 1, characterized in that: In the MCU software configuration unit, the host computer reads and writes the data identifier through the service of the UDS diagnostic protocol; the host computer calls the interface variables or functions related to the NVM storage to trigger the storage and reading of the NVM data.

3. The system for implementing vehicle information configuration based on UDS diagnostic services and data storage as claimed in claim 1, characterized in that: The configuration word is used to indicate the vehicle type, vehicle model, powertrain type, rear motor model and drive form, and resolver zero position; in the software logic switching unit, different main drive motor control logic modules are switched according to the read configuration word.

4. The system for implementing vehicle information configuration based on UDS diagnostic services and data storage as claimed in claim 3, characterized in that: The configuration word includes multiple bytes, wherein 3 bits of the first byte are used to indicate the vehicle type, and the other 3 bits are used to indicate the vehicle model; the second byte indicates the vehicle powertrain, rear motor model, and drive type, wherein 2 bits are used to indicate the powertrain, and the other 2 bits indicate the combination of the rear motor model and the drive type; the third byte is used to indicate the resolver zero position selection, wherein 2 bits indicate the resolver zero position.

5. The system for implementing vehicle information configuration based on UDS diagnostic services and data storage as claimed in claim 3 or 4, characterized in that: In the software logic switching unit, the MCU software periodically takes out the configuration word from the NVM and stores it in an array, and then takes out the vehicle configuration information from the array and stores it in a global variable.

6. The system for implementing vehicle information configuration based on UDS diagnostic services and data storage as claimed in claim 4, characterized in that: When the MCU's application layer software receives the value in the array, it automatically switches the corresponding main drive motor control logic.

7. The system for implementing vehicle information configuration based on UDS diagnostic services and data storage as claimed in claim 1, characterized in that: It also includes a multi-scenario software adaptation module: used to generate the corresponding main drive motor control logic module in the MCU software according to the main drive motor represented by the configuration word.

8. A method for implementing vehicle information configuration based on UDS diagnostic services and data storage in the system of claim 1, characterized in that: include: The configuration word is configured according to different MCU main drive motors. The configuration word is a byte sequence with a specific length for different MCU main drive motors and is used to confirm different functional parts of the software; A readable and writable data identifier is defined in the MCU software UDS protocol stack; it is also used to define a specific length space in the NVM of the MCU software to store the configuration word; the host computer uses the UDS service to read and write the configuration word stored in the specific length space in the NVM according to this data identifier; The configuration word is periodically read from the NVM by the MCU software, and the corresponding main drive motor control logic module is switched according to the configuration word.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for implementing vehicle information configuration based on UDS diagnostic services and data storage as described in claim 8 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method for configuring vehicle information based on UDS diagnostic services and data storage as described in claim 8 are implemented.

Citation Information

Patent Citations

  • Vehicle configuration data implementation method and system

    CN114399316A

  • Interface configuration method and device of domain controller, computer equipment and storage medium

    CN116909949A

  • Method and device for configuring electric drive software on electric vehicle

    CN117472435A

  • Vehicle control unit software self-adaption method

    CN118113344A

  • Configuration information processing method and device, storage medium and program product

    CN119439942A