A vehicle configuration word flashing method, device, vehicle controller and vehicle

By dividing storage modules in the vehicle controller, matching the required configuration words and configuring corresponding functions, the problem of flexible configuration and data backup of the vehicle controller is solved, and the complete decoupling of hardware and software and user experience is achieved.

CN118170398BActive Publication Date: 2024-12-24SHANGHAI NASN AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410330098.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2024-12-24
Estimated Expiration
2044-03-21

AI Technical Summary

Technical Problem

The existing technology is difficult to realize the flexible functional configuration and data backup of the vehicle controller, resulting in incomplete decoupling of hardware and software, deviations in interaction between modules, and poor user experience in using the vehicle.

Method used

By dividing the storage module into external memory and virtual memory in the vehicle controller, the vehicle configuration words and configuration information are generated and stored, and the vehicle configuration words are matched when the vehicle is powered on, and the corresponding functions are configured to avoid data loss and interaction between modules. deviation.

Benefits of technology

It realizes flexible functional configuration of the vehicle controller, avoids data loss and interactive deviations between modules, improves users' car use experience, and shortens project development cycle and development management costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118170398B_ABST
    Figure CN118170398B_ABST
Patent Text Reader

Abstract

The present application discloses a method for flashing vehicle configuration words, including: obtaining the vehicle configuration words of the vehicle, storing the vehicle configuration words in the storage module of the vehicle; generating configuration information corresponding to the vehicle according to the vehicle configuration words, and storing the configuration information in the storage module; when the vehicle is powered on, obtaining the required configuration words, and determining whether the vehicle configuration words in the storage module match the required configuration words; if so, configuring the vehicle with corresponding vehicle functions according to the configuration information corresponding to the vehicle configuration words in the storage module, and writing the vehicle configuration words into the electronic control unit of the vehicle. The present application also provides a device, a vehicle controller, and a vehicle corresponding to the vehicle configuration word flashing method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of automobile technology and relates to a method and device for flashing configuration characters of a whole vehicle, a whole vehicle controller and a vehicle. Background Art

[0002] Many OEMs now have the need for ECU function configuration, that is, after a vehicle controller is flashed with the same version of software, different vehicle configuration codes can be written on the production line or after-sales through external equipment (such as a diagnostic instrument) to meet the actual functional configuration requirements of the vehicle. This can achieve the decoupling of hardware and software, enhance portability, and enable OEMs and parts suppliers to shorten the project development cycle and project development control costs, and make the assembly and coordination of controllers and vehicles more flexible.

[0003] Therefore, it is necessary to provide an improved technical solution to overcome the above technical problems existing in the prior art. Summary of the invention

[0004] The purpose of this application is to provide a method, device, vehicle controller and vehicle for flashing vehicle configuration words, which can read, store and back up vehicle model configuration words, detect the validity of vehicle model configuration words, configure different software functions according to the vehicle model configuration requirements of the OEM, and verify the adaptability of multiple software modules used to flash the vehicle configuration words.

[0005] To achieve the above objectives:

[0006] In a first aspect, the present invention provides a method for flashing configuration characters of a vehicle, comprising:

[0007] Acquire a vehicle configuration word of the vehicle, and store the vehicle configuration word in a storage module of the vehicle;

[0008] Generating configuration information corresponding to the vehicle according to the vehicle configuration word, and storing the configuration information in the storage module;

[0009] When the vehicle is powered on, obtaining a required configuration word, and determining whether the vehicle configuration word in the storage module matches the required configuration word;

[0010] If so, the corresponding vehicle functions are configured for the vehicle according to the configuration information corresponding to the whole vehicle configuration word in the storage module, and the whole vehicle configuration word is written into the electronic control unit of the vehicle.

[0011] In one embodiment, the method further includes dividing the storage module into an external memory and a virtual memory, storing the vehicle configuration word and the configuration information in the external memory, and backing them up in the virtual memory.

[0012] In one embodiment, determining whether the vehicle configuration word matches the required configuration word includes:

[0013] Determining whether the first vehicle configuration word in the external memory matches the required configuration word;

[0014] If not, it is determined whether the second vehicle configuration word in the virtual memory matches the required configuration word.

[0015] In one embodiment, after determining whether the vehicle configuration word in the storage module matches the required configuration word, the method further includes:

[0016] If the first vehicle configuration word in the external memory and the second vehicle configuration word in the virtual memory do not match the required configuration word, a preset first fault information is reported.

[0017] In one embodiment, configuring the vehicle with a corresponding vehicle function according to the configuration information corresponding to the vehicle configuration word in the storage module includes:

[0018] Storing the functional configuration requirements corresponding to the vehicle configuration word into the configuration information corresponding to the vehicle configuration word;

[0019] Turn on or off corresponding vehicle functions according to the functional configuration requirements in the configuration information.

[0020] In one embodiment, the method further comprises:

[0021] When the required configuration word is modified, it is detected whether the version information of the multiple flash software modules on the electronic control unit is consistent.

[0022] In one embodiment, the method also includes dividing the multiple flash software modules into a definition software module and a communication software module, defining version information through the definition software module, and reporting preset second fault information after determining that the version information of the definition software module is inconsistent with that of the communication software module.

[0023] In a second aspect, the present application provides a vehicle configuration character flashing device, comprising:

[0024] A storage module, used to store the vehicle configuration word, and generate and store configuration information corresponding to the vehicle according to the vehicle configuration word;

[0025] A matching judgment module, used to obtain a required configuration word when the vehicle is powered on, and determine whether the vehicle configuration word in the storage module matches the required configuration word;

[0026] An execution module is used to configure corresponding vehicle functions for the vehicle according to the configuration information corresponding to the whole vehicle configuration word in the storage module when the whole vehicle configuration word matches the required configuration word, and write the whole vehicle configuration word into the electronic control unit of the vehicle.

[0027] In one embodiment, the storage module is specifically used for:

[0028] It is divided into an external memory and a virtual memory, and the vehicle configuration word and the configuration information are stored in the external memory and backed up and stored in the virtual memory.

[0029] In one implementation, the matching judgment module is specifically used to:

[0030] Determining whether the first vehicle configuration word in the external memory matches the required configuration word;

[0031] If not, it is determined whether the second vehicle configuration word in the virtual memory matches the required configuration word.

[0032] In one implementation, the execution module is specifically configured to:

[0033] Storing the functional configuration requirements corresponding to the vehicle configuration word into the configuration information corresponding to the vehicle configuration word;

[0034] Turn on or off corresponding vehicle functions according to the functional configuration requirements in the configuration information.

[0035] In one embodiment, the device further includes a version verification module, which is specifically configured to:

[0036] The version information is defined by the definition software module, and after determining that the version information of the definition software module is inconsistent with that of the communication software module, the preset second fault information is reported.

[0037] In a third aspect, the present application provides a vehicle controller, including:

[0038] A memory for storing a control program;

[0039] The processor is used to execute the steps of the vehicle configuration word flashing method as described in the first aspect when processing the control program.

[0040] In a fourth aspect, the present application provides a vehicle, comprising a vehicle controller as described in the third aspect.

[0041] The vehicle configuration word flashing method provided by the present application includes: obtaining the vehicle configuration word of the vehicle, storing the vehicle configuration word in the storage module of the vehicle; generating configuration information corresponding to the vehicle according to the vehicle configuration word, and storing the configuration information in the storage module; when the vehicle is powered on, obtaining the required configuration word, and determining whether the vehicle configuration word in the storage module matches the required configuration word; if so, configuring the corresponding vehicle function for the vehicle according to the configuration information corresponding to the vehicle configuration word in the storage module, and writing the vehicle configuration word into the electronic control unit of the vehicle. Through the above method, it is possible to avoid the loss of data of this configuration information in the external memory under abnormal working conditions of the vehicle, detect whether the vehicle model configuration data is abnormal, and configure different functions according to different functional configuration requirements, and also avoid the interaction deviation between modules, thereby improving the user's car experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 A schematic diagram of a process for flashing vehicle configuration characters provided by an embodiment of the present invention;

[0044] Figure 2 A schematic diagram of the structure of a vehicle configuration character flashing device provided by an embodiment of the present invention;

[0045] Figure 3 A schematic diagram of the working process of the vehicle configuration character flashing device provided by an embodiment of the present invention;

[0046] Figure 4 A schematic diagram of the structure of a vehicle controller provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of systems and methods consistent with some aspects of the present application as detailed in the appended claims.

[0048] It should be noted that, in this article, step codes such as S110, S120, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step codes, those skilled in the art may execute S120 first and then S110, etc., but these should all be within the scope of protection of this application.

[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] The present application provides a method for flashing vehicle configuration characters, see Figure 1 , the method comprising:

[0051] Step S110, obtaining the vehicle configuration word of the vehicle, and storing the vehicle configuration word in a storage module of the vehicle.

[0052] It can be understood that the corresponding configuration word is stored in the external memory (EEPROM), and at the same time, it is backed up in the internal analog storage space (NVM non-volatile storage area) to avoid the loss of data of this configuration information in the external memory under abnormal operating conditions of the vehicle.

[0053] Furthermore, there is external E2 hardware in the OneBox hardware. This component can store some data that you do not want to be initialized when the power is on and off. The configuration word information can be stored in this area. In addition, there is a virtual memory used to simulate the external E2 and store the backup configuration word information in this area. These two areas have no effect on each other. Therefore, if the hardware is reset due to some abnormal working conditions, we can still read the backup configuration word information.

[0054] Step S120, generating configuration information corresponding to the vehicle according to the vehicle configuration word, and storing the configuration information in the storage module.

[0055] In one embodiment, it further comprises:

[0056] The storage module is divided into an external memory and a virtual memory, the vehicle configuration word and the configuration information are stored in the external memory, and backed up and stored in the virtual memory.

[0057] Specifically, the configuration information stores functional configuration requirement information. Common functional configuration requirement information includes automatic parking function, electronic stability system, hill control system, electronic parking brake system, adaptive cruise control system on or off, as well as wheel speed sensor, tire type, and motor parameter configuration.

[0058] It is understandable that different OEMs will have different functional configuration requirements. Specific configuration words are written through the DID of the 2E service, as well as configuration information written in advance. Based on the configuration information, the corresponding functions and switch configurations are enabled or disabled. During the initialization phase, it is determined whether the configuration words are valid. If valid, the required functions are switched on and off according to the stored functions and switch configuration information.

[0059] Step S130, when the vehicle is powered on, obtaining a required configuration word, and determining whether the vehicle configuration word in the storage module matches the required configuration word.

[0060] In one embodiment, determining whether the vehicle configuration word matches the required configuration word includes:

[0061] Determine whether the first vehicle configuration word in the external memory matches the required configuration word; if not, determine whether the second vehicle configuration word in the virtual memory matches the required configuration word.

[0062] In one embodiment, after determining whether the vehicle configuration word in the storage module matches the required configuration word, the method further includes:

[0063] If the first vehicle configuration word in the external memory and the second vehicle configuration word in the virtual memory do not match the required configuration word, a preset first fault information is reported.

[0064] It can be understood that the function determines whether the configuration word is valid during the power-on initialization phase, thereby determining whether to enable the function and report a fault.

[0065] Specifically, this function is used to obtain the current configuration word number, which is generally used for diagnostic services to read back the current configuration word information. When the configuration word is valid, it should be consistent with the written configuration word. When invalid, a unified fault code should be responded to.

[0066] Step S140: If yes, then configure the corresponding vehicle functions for the vehicle according to the configuration information corresponding to the vehicle configuration word in the storage module, and write the vehicle configuration word into the electronic control unit of the vehicle.

[0067] In one embodiment, configuring the vehicle with a corresponding vehicle function according to the configuration information corresponding to the vehicle configuration word in the storage module includes:

[0068] The functional configuration requirements corresponding to the vehicle configuration word are stored in the configuration information corresponding to the vehicle configuration word; and the corresponding vehicle functions are turned on or off according to the functional configuration requirements in the configuration information.

[0069] Preferably, when the required configuration word is modified, it is detected whether the version information of multiple flash software modules on the electronic control unit are consistent.

[0070] Furthermore, the multiple flash software modules are divided into a definition software module and a communication software module, the version information is defined by the definition software module, and after determining that the version information of the definition software module is inconsistent with that of the communication software module, the preset second fault information is reported.

[0071] It is understandable that since the vehicle configuration function is not a function that can be controlled by a single module, but requires multiple modules to jointly realize its function, if the OEM changes the vehicle configuration requirements (such as adding or reducing the number of configuration words that the software needs to support, adding or deleting configuration items that the software needs to support), resulting in version differences between modules, there will be interaction deviations that fail to meet customer needs.

[0072] Specifically, the version content is defined in the form of a macro in the vehicle configuration module. A script is written through a compile switch in the code of other modules that interact with it to determine whether the version information has been modified. If the vehicle configuration module has been modified, but the compile switch code in the corresponding module has not been modified, an error will be reported when the code is compiled, thereby reminding the person in charge of the module to check whether the modification of the vehicle configuration module has any impact on its own module. After the check, the version information in the compile switch needs to be updated to be consistent with the vehicle configuration module. After this operation, the problem of interaction deviation between modules can be avoided.

[0073] Through the above method, the decoupling of hardware and software can be achieved, and portability can be enhanced, so that OEMs and parts suppliers can shorten the project development cycle and project development management costs, and the assembly and coordination of the controller and the whole vehicle can be more flexible, thereby avoiding the loss of data of this configuration information in the external memory under abnormal working conditions of the whole vehicle, and detecting whether the vehicle model configuration data is abnormal. At the same time, different functions are configured according to different functional configuration requirements, and the interaction deviation between modules is avoided, thereby improving the user's car experience.

[0074] Based on the same inventive concept as the above embodiments, the present application provides a vehicle configuration word flashing device. Figure 2 , is a vehicle configuration word flashing device provided in an embodiment of the present application, and the vehicle configuration word flashing device can be implemented in software and / or hardware, such as electronic devices such as vehicle terminals and vehicle controllers. The device includes:

[0075] The storage module 11 is used to store the whole vehicle configuration word, and generate and store the configuration information corresponding to the vehicle according to the whole vehicle configuration word.

[0076] The matching judgment module 12 is used to obtain the required configuration word when the vehicle is powered on, and determine whether the vehicle configuration word in the storage module matches the required configuration word.

[0077] The execution module 13 is used to configure the corresponding vehicle function for the vehicle according to the configuration information corresponding to the whole vehicle configuration word in the storage module when the whole vehicle configuration word matches the required configuration word, and write the whole vehicle configuration word into the electronic control unit of the vehicle.

[0078] In one implementation, the storage module 11 is specifically used for:

[0079] It is divided into an external memory and a virtual memory, and the vehicle configuration word and the configuration information are stored in the external memory and backed up and stored in the virtual memory.

[0080] In one implementation, the matching determination module 12 is specifically configured to:

[0081] Determining whether the first vehicle configuration word in the external memory matches the required configuration word;

[0082] If not, it is determined whether the second vehicle configuration word in the virtual memory matches the required configuration word.

[0083] In one implementation, the execution module 13 is specifically configured to:

[0084] Storing the functional configuration requirements corresponding to the vehicle configuration word into the configuration information corresponding to the vehicle configuration word;

[0085] Turn on or off corresponding vehicle functions according to the functional configuration requirements in the configuration information.

[0086] In one embodiment, the device further includes a version verification module, which is specifically configured to:

[0087] The version information is defined by the definition software module, and after determining that the version information of the definition software module is inconsistent with that of the communication software module, the preset second fault information is reported.

[0088] Based on the above invention concept, the working process of the device is described in detail below. Figure 3 , which is a schematic diagram of the working process of the vehicle configuration character flashing device provided in an embodiment of the present invention.

[0089] like Figure 3As shown, step S210, obtain the vehicle configuration word of the vehicle, store the vehicle configuration word in the storage module 11 of the vehicle, and then continue to execute step S220; step S220, generate configuration information corresponding to the vehicle according to the vehicle configuration word, store the configuration information in the storage module 11, and then continue to execute step S230; step S230, when the vehicle is powered on, obtain the required configuration word, and determine whether the vehicle configuration word in the storage module 11 matches the required configuration word, if so, continue to execute step S240, if not, execute step S250; step S240, configure the corresponding vehicle function for the vehicle according to the configuration information corresponding to the vehicle configuration word in the storage module 11, and write the vehicle configuration word into the electronic control unit of the vehicle; step S250, report the preset first fault information.

[0090] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. Figure 1 In step S140, Figure 3 It is specifically implemented through step S240 and step S250.

[0091] This device can decouple hardware and software and enhance portability, allowing OEMs and parts suppliers to shorten project development cycles and project development management costs, and make the assembly and coordination of controllers and vehicles more flexible, thereby avoiding the loss of configuration information in external memory under abnormal vehicle conditions, and detecting whether the vehicle configuration data is abnormal. At the same time, different functions are configured according to different functional configuration requirements, avoiding interaction deviations between modules, and improving the user experience.

[0092] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a vehicle controller 20, see Figure 4 , the vehicle controller 20 includes:

[0093] The memory 21 is used to store the control program.

[0094] The processor 22 is used to execute the steps of the vehicle configuration word flashing method as described in the above embodiment when processing the control program.

[0095] In this embodiment, the structure and connection relationship between the memory 21 and the processor 22 may refer to the prior art, and this embodiment does not specifically limit this.

[0096] The vehicle controller 20 can achieve decoupling of hardware and software and enhance portability by adopting the vehicle configuration word flashing method provided by the embodiment of the present invention, so that the main engine manufacturer and parts suppliers can shorten the project development cycle and project development management cost, and the assembly and coordination of the controller and the whole vehicle are more flexible, thereby avoiding the loss of data of this configuration information in the external memory under abnormal working conditions of the whole vehicle, and detecting whether the vehicle model configuration data is abnormal. At the same time, different functions are configured according to different functional configuration requirements, and the interaction deviation between modules is avoided, thereby improving the user's vehicle experience.

[0097] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a vehicle, including the vehicle controller 20 described in the above-mentioned embodiment.

[0098] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0099] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for flashing vehicle configuration characters, characterized in that: The method comprises: Acquire a vehicle configuration word of the vehicle, and store the vehicle configuration word in a storage module of the vehicle; Generating configuration information corresponding to the vehicle according to the vehicle configuration word, and storing the configuration information in the storage module; Wherein, the storage module is divided into an external memory and a virtual memory, the vehicle configuration word and the configuration information are stored in the external memory, and backed up and stored in the virtual memory; When the vehicle is powered on, obtaining a required configuration word, and determining whether the vehicle configuration word in the storage module matches the required configuration word; If yes, configuring the corresponding vehicle function for the vehicle according to the configuration information corresponding to the vehicle configuration word in the storage module, and writing the vehicle configuration word into the electronic control unit of the vehicle; If not, detecting whether the version information of the multiple flash software modules on the electronic control unit is consistent; The multiple flash software modules are divided into a definition software module and a communication software module, the version information is defined by the definition software module, and after determining that the version information of the definition software module is inconsistent with that of the communication software module, the preset second fault information is reported.

2. The method according to claim 1, characterized in that: Determining whether the vehicle configuration word matches the required configuration word includes: Determining whether the first vehicle configuration word in the external memory matches the required configuration word; If not, it is determined whether the second vehicle configuration word in the virtual memory matches the required configuration word.

3. The method according to claim 2, characterized in that After determining whether the vehicle configuration word in the storage module matches the required configuration word, the method further includes: If the first vehicle configuration word in the external memory and the second vehicle configuration word in the virtual memory do not match the required configuration word, a preset first fault information is reported.

4. The method according to claim 3, characterized in that Configuring the vehicle with the corresponding vehicle function according to the configuration information corresponding to the vehicle configuration word in the storage module includes: Storing the functional configuration requirements corresponding to the vehicle configuration word into the configuration information corresponding to the vehicle configuration word; Turn on or off corresponding vehicle functions according to the functional configuration requirements in the configuration information.

5. A vehicle configuration character flashing device, characterized in that: include: A storage module, used to store the vehicle configuration word of the vehicle, and generate and store configuration information corresponding to the vehicle according to the vehicle configuration word; wherein the storage module is divided into an external memory and a virtual memory, the vehicle configuration word and the configuration information are stored in the external memory, and backed up and stored in the virtual memory; A matching judgment module, used to obtain a required configuration word when the vehicle is powered on, and determine whether the vehicle configuration word in the storage module matches the required configuration word; an execution module, configured to configure corresponding vehicle functions for the vehicle according to the configuration information corresponding to the vehicle configuration word in the storage module when the vehicle configuration word matches the required configuration word, and write the vehicle configuration word into the electronic control unit of the vehicle; A version detection module is used to detect whether the version information of multiple flash software modules on the electronic control unit is consistent when the vehicle configuration word does not match the required configuration word; wherein the multiple flash software modules are divided into definition software modules and communication software modules, the version information is defined by the definition software module, and after determining that the version information of the definition software module is inconsistent with the communication software module, a preset second fault information is reported.

6. A vehicle controller, characterized in that: include: A memory for storing a control program; A processor, used to execute the steps of the vehicle configuration character flashing method as described in any one of claims 1-4 when processing the control program.

7. A vehicle, characterized in that: Including the vehicle controller as claimed in claim 6.