Controller power-on initialization method and device, computer equipment and readable storage medium

By using non-volatile memory to store calibration data of various configuration word combinations in the vehicle controller and updating the data in the random access memory upon power-up, the problem of vehicle controller initialization anomalies is solved, and an efficient and accurate initialization process is achieved.

CN120085923BActive Publication Date: 2025-11-25CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411394838.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-11-25
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

In existing technologies, vehicle controller initialization methods are prone to anomalies and cannot adapt to vehicles with different configurations and functions, leading to data and software mismatch issues.

Method used

By using non-volatile memory to store calibration data corresponding to various configuration word combinations in the vehicle controller, and upon receiving a power-on signal, obtaining the actual calibration data of the actual configuration word combination, updating the default calibration data in the random access memory, the controller is initialized upon power-on.

Benefits of technology

It improves the accuracy and efficiency of vehicle controller initialization, reduces software management difficulty, shortens development and testing cycles, and is applicable to various vehicle configurations and controller function configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120085923B_ABST
    Figure CN120085923B_ABST
Patent Text Reader

Abstract

The application relates to a controller power-on initialization method and device, equipment and a readable storage medium, and relates to the technical field of vehicle controllers. The method comprises the following steps: in the case that a controller of a current vehicle receives a power-on signal, an actual configuration word combination corresponding to the current vehicle and the controller is acquired, and default calibration data corresponding to a default configuration word combination in a non-volatile memory is copied into a random access memory; in the case that it is determined that the actual configuration word combination is different from the default configuration word combination, actual calibration data corresponding to the actual configuration word combination is acquired from the non-volatile memory, and the actual calibration data is used to reassign the default calibration data in the random access memory, so that the power-on initialization of the controller is realized based on the updated calibration data. The method can improve the accuracy of the initialization of the vehicle controller.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of automobile controller, and particularly relates to a controller power-on initialization method and device, computer equipment and a readable storage medium. BACKGROUND

[0002] In order to meet the performance requirements of the engine and the whole vehicle, the internal algorithm related parameters of the vehicle controller need to be modified, adjusted or optimized. However, in actual practice, due to the differences in configuration and functional configuration, the real vehicle calibration data of vehicles with different configurations and functional configurations are not completely the same. Even if the application layer software and the bottom layer software are platformized, it is still impossible to make a version of the writing software applicable to all configurations and functional vehicles. Therefore, when calibrating the data of the vehicle, the controller needs to be initialized in the electrical inspection link, and different software part numbers and software version numbers are needed to distinguish the software that needs to be written for vehicles with different configurations and functional configurations, and the situation of data and software not matching the version is prone to occur.

[0003] Therefore, the current vehicle controller initialization method has the problem of being prone to abnormality. SUMMARY

[0004] Therefore, it is necessary to provide a controller power-on initialization method, device, computer equipment, computer readable storage medium and computer program product capable of improving the accuracy of vehicle controller initialization.

[0005] In a first aspect, the present application provides a controller power-on initialization method, comprising:

[0006] In the case that the controller of the current vehicle receives a power-on signal, the actual configuration word combination corresponding to the current vehicle and the controller is obtained, and the default calibration data corresponding to the default configuration word combination in the non-volatile memory is copied to the random access memory;

[0007] In the case that the actual configuration word combination is determined to be different from the default configuration word combination, the actual calibration data corresponding to the actual configuration word combination is obtained from the non-volatile memory, and the actual calibration data is used to update the default calibration data in the random access memory, so as to realize the power-on initialization of the controller based on the updated calibration data;

[0008] The non-volatile memory comprises N calibration storage spaces, and the N calibration storage spaces correspond to N configuration word combinations one by one; each calibration storage space is used to store the calibration data corresponding to one configuration word combination, and each configuration word combination comprises a vehicle configuration feature word and a functional feature configuration word of the controller; N is an integer greater than or equal to 2;

[0009] The controller comprises embedded software, and the embedded software is compiled based on N calibration data files.

[0010] In one of the embodiments, the non-volatile memory is configured in the following manner:

[0011] The type of the vehicle configuration adapted to the controller is acquired, and the number n of vehicle configuration feature configuration words is determined based on the type of the vehicle configuration; n is an integer greater than or equal to 1;

[0012] The number N of configuration word combinations and the number N of calibration storage spaces in the non-volatile memory are determined according to the number n of vehicle configuration feature configuration words; N is an integer less than or equal to 2 n ;

[0013] The total calibration storage space of the non-volatile memory is divided into N calibration storage spaces according to the number N of calibration storage spaces.

[0014] In one of the embodiments, the method of the above-mentioned embodiments further comprises:

[0015] For each vehicle configuration feature configuration word, a group of function configuration words associated with the vehicle configuration feature configuration word is acquired, thereby constructing a configuration word combination;

[0016] The calibration data of the calibration amount corresponding to each configuration word combination is acquired, thereby obtaining the calibration data corresponding to each configuration word combination.

[0017] Based on the N configuration word combinations, N corresponding calibration data are obtained, and the N calibration data are respectively stored in the N calibration storage spaces.

[0018] In one of the embodiments, before the actual configuration word combination corresponding to the current vehicle and the controller is acquired in the case that the controller of the current vehicle receives a power-on signal, the method further comprises:

[0019] A pre-compiled flashable file is acquired, and the flashable file is flashed to the controller as the embedded software of the controller; the flashable file is compiled based on a pre-set application function file and N calibration data files; the application function file and the calibration data files both belong to application layer software, and the N calibration data files correspond to the N configuration word combinations one by one;

[0020] The power-on initialization of the controller is implemented based on the updated calibration data, comprising:

[0021] The power-on initialization of the controller is controlled based on the updated calibration data and the embedded software.

[0022] In one of the embodiments, the N configuration word combinations include one default configuration word combination and N-1 non-default configuration word combinations; the N calibration data files are compiled based on the following manner:

[0023] The application layer software is compiled according to the calibration data corresponding to the default configuration word combination and the calibration data corresponding to the N-1 non-default configuration word combinations, to obtain the application function file, the calibration data file corresponding to the one default configuration word combination, and the N-1 initial calibration data files corresponding to the N-1 non-default configuration word combinations;

[0024] For each initial calibration data file, an identifier corresponding to the non-default configuration word combination is added before the name of the calibration quantity in the file, to obtain the calibration data file corresponding to each non-default configuration word combination;

[0025] The N calibration data files are obtained according to the calibration data file corresponding to the one default configuration word combination and the N-1 calibration data files corresponding to the N-1 non-default configuration word combinations.

[0026] In one of the embodiments, the N calibration data are respectively stored in N calibration quantity storage spaces, including:

[0027] The default calibration data corresponding to the one default configuration word combination are stored in the calibration quantity storage space corresponding to the default configuration word combination;

[0028] The calibration data corresponding to the N-1 non-default configuration word combinations are stored in the N-1 calibration quantity storage spaces corresponding to the non-default configuration words; the identifier corresponding to the non-default configuration word combination is added before the name of the calibration quantity in the calibration data corresponding to the non-default configuration word combination;

[0029] The default calibration data and the non-default calibration data corresponding to the same calibration quantity in the N calibration quantity storage spaces have the same data attribute.

[0030] In one of the embodiments, in the case where it is determined that the actual configuration word combination is different from the default configuration word combination, the actual calibration data corresponding to the actual configuration word combination is obtained from the non-volatile memory, including:

[0031] In the case where it is determined that the actual configuration word combination is different from the default configuration word combination, the identifier corresponding to the actual configuration word combination is determined;

[0032] According to the identifier, the calibration quantity name corresponding to the identifier is determined from the non-volatile memory;

[0033] The calibration data stored in the calibration quantity storage space corresponding to the calibration quantity name are obtained as the actual calibration data.

[0034] In one of the embodiments, the default calibration data in the random access memory is updated with the actual calibration data, including:

[0035] According to the calibration quantity name in the actual calibration data, the default calibration data corresponding to the same calibration quantity is determined from the random access memory;

[0036] The default calibration data corresponding to the same calibration quantity is revalued according to the actual calibration data.

[0037] In the second aspect, the application further provides a controller power-on initialization device, including:

[0038] The configuration acquisition module is configured to, in the case that the controller of the current vehicle receives a power-on signal, acquire an actual configuration word combination corresponding to the current vehicle and the controller, and copy the default calibration data corresponding to a default configuration word combination in the non-volatile memory to the random access memory;

[0039] The data update module is configured to, in the case that the actual configuration word combination is determined to be different from the default configuration word combination, acquire actual calibration data corresponding to the actual configuration word combination from the non-volatile memory, and update the default calibration data in the random access memory with the actual calibration data, so as to realize the power-on initialization of the controller based on the updated calibration data.

[0040] The non-volatile memory includes N calibration quantity storage spaces, and the N calibration quantity storage spaces correspond to N configuration word combinations one by one; each calibration quantity storage space is configured to store calibration data corresponding to a configuration word combination, and each configuration word combination includes a vehicle configuration feature configuration word and a functional feature configuration word of the controller; N is an integer greater than or equal to 2.

[0041] The controller includes embedded software, and the embedded software is generated based on N calibration data files; the N calibration data files correspond to the N configuration word combinations one by one.

[0042] In the third aspect, the application further provides a new energy vehicle including a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:

[0043] In the case that the controller of the current vehicle receives a power-on signal, an actual configuration word combination corresponding to the current vehicle and the controller is acquired, and default calibration data corresponding to a default configuration word combination in the non-volatile memory is copied to the random access memory;

[0044] In a case where it is determined that the actual configuration word combination is different from the default configuration word combination, actual calibration data corresponding to the actual configuration word combination is obtained from the non-volatile memory, and the default calibration data in the random access memory is updated with the actual calibration data, so as to realize the power-on initialization of the controller based on the updated calibration data.

[0045] The non-volatile memory includes N calibration storage spaces, and the N calibration storage spaces correspond to the N configuration word combinations one by one; each calibration storage space is used for storing calibration data corresponding to one configuration word combination, and each configuration word combination includes a vehicle configuration feature configuration word and a functional feature configuration word of the controller; N is an integer greater than or equal to 2.

[0046] The controller includes embedded software, and the embedded software is compiled based on the N calibration data files; the N calibration data files correspond to the N configuration word combinations one by one.

[0047] In a fourth aspect, the present application further provides a computer readable storage medium, which has a computer program stored thereon, and the computer program is executed by a processor to implement the following steps:

[0048] In a case where the controller of the current vehicle receives the power-on signal, an actual configuration word combination corresponding to the current vehicle and the controller is obtained, and default calibration data corresponding to a default configuration word combination in the non-volatile memory is copied to the random access memory;

[0049] In a case where it is determined that the actual configuration word combination is different from the default configuration word combination, actual calibration data corresponding to the actual configuration word combination is obtained from the non-volatile memory, and the default calibration data in the random access memory is updated with the actual calibration data, so as to realize the power-on initialization of the controller based on the updated calibration data.

[0050] The non-volatile memory includes N calibration storage spaces, and the N calibration storage spaces correspond to the N configuration word combinations one by one; each calibration storage space is used for storing calibration data corresponding to one configuration word combination, and each configuration word combination includes a vehicle configuration feature configuration word and a functional feature configuration word of the controller; N is an integer greater than or equal to 2.

[0051] The controller includes embedded software, and the embedded software is compiled based on the N calibration data files; the N calibration data files correspond to the N configuration word combinations one by one.

[0052] The controller power-on initialization method, device, equipment and readable storage medium, by acquiring the actual configuration word combination corresponding to the current vehicle and the controller when the controller of the current vehicle receives the power-on signal, and copying the default calibration data corresponding to the default configuration word combination in the non-volatile memory to the random access memory for loading. When the vehicle controller receives the power-on signal for initialization, the default calibration data can be used for normal operation, avoiding the problem that the initialization process of the controller is temporarily suspended because the random access memory does not have calibration data that can be loaded, thereby improving the efficiency of the controller power-on initialization. In the case where the actual configuration word combination is different from the default configuration word combination, the actual calibration data corresponding to the actual configuration word combination is obtained from the non-volatile memory, and the actual calibration data is used to update the default calibration data in the random access memory, so as to realize the power-on initialization of the controller based on the updated calibration data. The non-volatile memory includes N calibration storage spaces, and the N calibration storage spaces correspond to N configuration word combinations; each calibration storage space is used to store calibration data corresponding to a configuration word combination, and each configuration word combination includes vehicle configuration feature configuration words and controller function feature configuration words; wherein N is an integer greater than or equal to 2. The calibration data corresponding to multiple configuration word combinations is stored in the non-volatile memory, and the embedded software included in the controller is compiled based on the files corresponding to the multiple configuration word combinations, so that the power-on initialization of the vehicle controller of multiple configurations can be realized by one version of software. It is not necessary to compile the flashable file including different calibration data in advance for vehicle controllers with different configurations and functions, thereby improving the accuracy of the power-on initialization of the vehicle controller, and improving the software management efficiency of the vehicle controller. BRIEF DESCRIPTION OF DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other related drawings without creative labor based on these drawings.

[0054] Figure 1 An application environment diagram for controller power-on initialization in an embodiment;

[0055] Figure 2 A flowchart of a controller power-on initialization method in an embodiment;

[0056] Figure 3 A flowchart of a configuration word combination construction step in an embodiment;

[0057] Figure 4A flowchart of a calibration data compiling step in one embodiment;

[0058] Figure 5 A flowchart of a feature configuration word extracting step in one embodiment;

[0059] Figure 6 A flowchart of an integrated compiling step of a flashable file in one embodiment;

[0060] Figure 7 A flowchart of a controller power-on initialization method in another embodiment;

[0061] Figure 8 A block diagram of a controller power-on initialization device in one embodiment;

[0062] Figure 9 An internal structure diagram of a new energy vehicle in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not used to limit the present application.

[0064] As described in the background, the existing vehicle controller initialization method has the problem of being prone to exceptions. The inventors have found that the reason for this problem is that, with the development of new energy vehicles, software-defined vehicles have become the mainstream strategy, and the software version iteration frequency of new energy vehicles is much higher than that of traditional fuel vehicles. In order to ensure the software quality applied to the vehicle controller, it is necessary to shorten the software development and testing cycle. Therefore, an embedded software is used to build an electrical platform. The embedded software is generally composed of application layer software and bottom layer software. For the same vehicle electrical platform, the ideal platformized software application layer software and bottom layer software are both platformized, and one version of software (i.e., one flashable file) can cover all vehicle configurations and controller function configurations. However, in actual practice, due to the differences in vehicle configurations and controller function configurations, the actual calibration data of vehicles with different vehicle configurations and controller function configurations are not completely the same. Even if the application layer software and the bottom layer software are both platformized, it is still impossible to adapt one version of software to all configurations of vehicles. For example, a vehicle model project has three vehicle configurations of extended-range two-wheel drive, pure electric two-wheel drive, and pure electric four-wheel drive. For the power domain controller of the vehicle, the application layer software and the bottom layer software logic are the same, and by integrating the differences between the actual calibration data of each configuration of vehicle and the corresponding controller, the three vehicle configurations and the controller power performance differences can be covered. However, because of the different calibration data, three flashable files need to be built for the three configurations of vehicles. If the three configurations of vehicles and the power domain controller hardware are completely the same, in order to avoid the problems of hardware installation error or software version mismatch with the vehicle configuration, the controller usually needs to be software flashed in the electrical inspection link, and different software part numbers and software version numbers are also needed to distinguish the software to be flashed for vehicles with different vehicle configurations and function configurations. This not only increases the time of the electrical inspection link, but also increases the difficulty of software version management, and the test work also needs to be divided into three times for different configurations. Therefore, the current controller initialization method has the problem of being prone to exceptions.

[0065] Based on the above reasons, the present application provides a controller power-on initialization scheme, which can improve the accuracy of vehicle controller initialization.

[0066] The controller power-on initialization method provided by the embodiments of the present application can be applied to Figure 1The application scenario is a new energy vehicle and a server 108, the new energy vehicle including a controller 102, a non-volatile memory 104, and a random access memory 106. The new energy vehicle and the server 108 can communicate through a network. The server 108 can be a physical server, a server cluster or a distributed system formed by multiple physical servers, or a cloud server providing cloud computing services. The server 108 pre-generates embedded software required for power-on initialization of the controller 102, and writes the embedded software to the controller 102 through a writing device.

[0067] Based on the above application scenario, the embodiment of the present application provides a controller power-on initialization method. When the controller 102 in the vehicle receives a power-on signal, the controller 102 can read the actual configuration word combination of the application scenario in which the controller 102 is located, and copy the default calibration data corresponding to the default configuration word combination in the non-volatile memory 104 to the random access memory 106. In the case where the controller 102 determines that the actual configuration word combination is different from the default configuration word combination, the actual calibration data corresponding to the actual configuration word combination is obtained from the storage space of the non-volatile memory 104, and the default calibration data in the random access memory 106 is updated with the actual calibration data, so as to realize the power-on initialization of the controller 102 based on the updated calibration data. The storage space of the non-volatile memory 104 stores calibration data corresponding to multiple configuration word combinations. Each configuration word combination represents a combination of a vehicle configuration feature word and a functional feature word of the controller 102. The embedded software contained in the controller is compiled based on files corresponding to the multiple configuration word combinations. Therefore, the power-on initialization of the controller of a vehicle of multiple configurations can be realized by one version of software.

[0068] In one embodiment, as Figure 2 shown, a controller power-on initialization method is provided. The embodiment takes the controller 102 in the new energy vehicle as an example. The method includes the following steps: Figure 1

[0069] Step S202, in the case where the controller of the current vehicle receives a power-on signal, the actual configuration word combination corresponding to the current vehicle and the controller is obtained, and the default calibration data corresponding to the default configuration word combination in the non-volatile memory is copied to the random access memory.

[0070] ​The controller can be an ECU (Electronic Control Unit) or a VCU (Vehicle Control Unit). The ECU is a computer system used by vehicles to control various functions, such as engine management, transmission control, air suspension, brake systems, body stability systems, etc. The VCU is the central control unit of a new energy vehicle and is the core of the entire control system. The VCU collects data from the motor and battery, as well as accelerator pedal signals, brake pedal signals, actuators and sensor signals. Based on the driver's intention, it makes comprehensive analysis and makes corresponding decisions. It monitors the actions of the lower-level component controllers, and is responsible for normal driving, braking energy feedback, energy management of the vehicle driving system and power battery, network management, fault diagnosis and processing, vehicle state monitoring, etc., thereby ensuring the normal and stable operation of the vehicle under good power, high economy and reliability.

[0071] In the embodiments of the present application, the controller contains embedded software, which is compiled based on N calibration data files; the N calibration data files and N configuration word combinations are one-to-one corresponding.

[0072] The power-on signal can be a voltage signal used to start the internal circuit of the controller. This signal is generally from the vehicle's power supply system, such as the ignition switch or battery.

[0073] The configuration word combination can be a correlation table obtained by combining the vehicle configuration feature configuration corresponding to the vehicle configuration of the vehicle and the function configuration of the controller. Generally, one vehicle configuration feature corresponds to a group of function configurations of the controller. In the embodiments, the actual configuration word combination can be the configuration word combination corresponding to the actual vehicle model feature and function configuration of the current vehicle and controller. The default configuration word combination is one selected from multiple configuration word combinations, which can be the factory configuration word combination set for the controller before initialization. The vehicle configuration feature configuration word can be the name of the vehicle configuration, such as extended four-wheel drive, pure electric four-wheel drive, etc. The function feature configuration word can be the function configuration name of the vehicle controller, such as vehicle speed threshold.

[0074] The calibration data can be a series of data generated during the production process of the vehicle, which adjusts various parameters of the vehicle according to different vehicle configurations, configurations and manufacturing standards to match the design requirements. These data include but are not limited to power system parameters, brake system parameters, suspension system parameters, lighting system parameters, etc., to ensure that the vehicle achieves the best performance and safety in actual use.

[0075] The non-volatile memory can be a Flash, which has the characteristic that the stored data will not be lost even after power failure. It is commonly used to store firmware, programs, data and other content that needs to be persisted. In a vehicle controller, the non-volatile memory can be used to store control algorithms and configuration settings. In the embodiment, the non-volatile memory stores the calibration data corresponding to the plurality of configuration word combinations.

[0076] The random access memory can be a RAM (Random Access Memory), which has the characteristic that the data stored in the RAM will disappear after power failure. It is used to temporarily store data and program operations during execution. For example, in a vehicle controller, the RAM is used to process data in real time, temporarily store sensor inputs and calculation results.

[0077] Optionally, in the case that the controller of the current vehicle receives the power-on signal, the vehicle controller obtains the actual configuration word combination corresponding to the actual vehicle configuration and the actual function configuration of the current vehicle and the controller, and copies the calibration data corresponding to the default configuration word combination in the non-volatile memory to the random access memory for loading. So that when the vehicle controller receives the power-on signal for initialization, it can operate normally according to the default calibration data, avoiding the problem that the initialization process of the controller is temporarily suspended because the random access memory does not have calibration data that can be loaded after receiving the power-on signal, thereby improving the efficiency of the controller power-on initialization.

[0078] Step S204, in the case that the actual configuration word combination is determined to be different from the default configuration word combination, obtaining actual calibration data corresponding to the actual configuration word combination from the non-volatile memory, and updating the default calibration data in the random access memory with the actual calibration data, to realize the power-on initialization of the controller based on the updated calibration data.

[0079] The non-volatile memory includes N calibration quantity storage spaces, and the N calibration quantity storage spaces correspond to the N configuration word combinations one by one; each calibration quantity storage space is used to store calibration data corresponding to a configuration word combination, and each configuration word combination includes a vehicle configuration feature configuration word and a function feature configuration word of the controller; N is an integer greater than or equal to 2.

[0080] The calibration quantity storage space can be a storage space used to store calibration data corresponding to a calibration quantity. The calibration quantity can be a function configuration parameter name of the vehicle controller.

[0081] Optionally, the vehicle controller obtains actual calibration data corresponding to the actual configuration word combination from the non-volatile memory and updates the values of the default calibration data in the random access memory with the values of the actual calibration data to implement power-on initialization of the controller based on the updated calibration data in the case where it is determined that the actual configuration word combination is different from the default configuration word combination. In the initialization stage, the power-on signal activates the power supply chip, the power supply supplies power to the chips of the controller, and hardware self-checking is performed.

[0082] In other embodiments, the vehicle controller implements power-on initialization of the controller based on the calibration data of the default configuration word combination in the case where it is determined that the actual configuration word combination is the same as the default configuration word combination.

[0083] In the above controller power-on initialization method, in the case where the controller of the current vehicle receives a power-on signal, the actual configuration word combination corresponding to the current vehicle and the controller is obtained, and the default calibration data corresponding to the default configuration word combination in the non-volatile memory is copied to the random access memory for loading. This makes it possible for the vehicle controller to read data from the non-volatile memory again and backtrack to the data corresponding to the default configuration word combination to improve the robustness of the system in the case where there is a failure in writing calibration data when the vehicle controller receives a power-on signal for initialization. In the case where it is determined that the actual configuration word combination is different from the default configuration word combination, actual calibration data corresponding to the actual configuration word combination is obtained from the non-volatile memory, and the default calibration data in the random access memory is updated with the actual calibration data to implement power-on initialization of the controller based on the updated calibration data. The non-volatile memory includes N calibration storage spaces, and the N calibration storage spaces correspond to N configuration word combinations one-to-one. Each calibration storage space is used to store calibration data corresponding to a configuration word combination. Each configuration word combination includes a vehicle configuration feature configuration word and a functional feature configuration word of the controller. N is an integer greater than or equal to 2. Calibration data corresponding to multiple configuration word combinations is stored in the non-volatile memory, thereby making it possible to implement controller power-on initialization for multiple vehicle configurations and controller function configurations. It is not necessary to compile flashable files including different calibration data for vehicles with different configurations and functions, thereby improving the accuracy of power-on initialization of the vehicle controller and improving the software management efficiency of the vehicle controller.

[0084] In an exemplary embodiment, the non-volatile memory is configured based on the following manner:

[0085] acquiring a kind of vehicle configuration adapted to the controller, determining the number n of vehicle configuration feature configuration words based on the kind of vehicle configuration, determining the number N of configuration word combinations according to the number n of vehicle configuration feature configuration words, and determining the number N of calibration quantity storage spaces in the non-volatile memory; and dividing the total calibration quantity storage space of the non-volatile memory according to the number N of calibration quantity storage spaces to obtain N calibration quantity storage spaces.

[0086] wherein N is an integer less than or equal to 2 n , wherein n is an integer greater than or less than 1.

[0087] wherein the vehicle configuration can be the design and construction mode of the vehicle, including the body structure, power system, suspension system, vehicle interior space layout and other factors.

[0088] Optionally, the calibration system acquires the kind of all vehicle configurations adapted to the controller, determines the number n of vehicle configuration feature configuration words based on the number of vehicle configuration kinds, determines that at least N feature configuration word combinations can cover all vehicle configurations according to the number n of vehicle configuration feature configuration words, N is an integer less than or equal to 2 n , and is an integer greater than or equal to 2. Each configuration word combination needs a corresponding calibration quantity storage space, so as to determine that the calibration quantity storage space in the non-volatile memory is N, and each calibration quantity storage space corresponds to each configuration word combination. The total calibration quantity storage space of the non-volatile memory is divided according to the number of calibration quantity storage spaces to obtain N calibration quantity storage spaces.

[0089] In the embodiment, by acquiring the kind of all vehicle configurations, a plurality of corresponding configuration word combinations are determined to ensure that the configuration word combinations cover the calibration data of the vehicle of each vehicle configuration, and the total calibration quantity storage space of the non-volatile memory is divided according to the number of feature configuration word combinations to store the calibration data corresponding to the calibration quantity of each configuration word combination, which lays the foundation for subsequent controller power-on initialization to read the calibration data corresponding to the feature configuration word combination to initialize or reassign the controller.

[0090] In an exemplary embodiment, as Figure 3 shown, the controller power-on initialization method described in the above embodiment further comprises:

[0091] Step S302, for each vehicle configuration feature configuration word, acquiring a group of function configuration words associated with the vehicle configuration feature configuration word, thereby constructing a configuration word combination.

[0092] Optionally, the calibration system obtains a feature configuration word for each vehicle configuration, obtains a set of function configuration words associated with the feature configuration word of the vehicle configuration, and constructs a corresponding configuration word combination according to the feature configuration word and the set of function configuration words associated therewith. For example, the vehicle configuration category is pure electric two-wheel drive and extended range two-wheel drive, the vehicle configuration feature configuration word is determined to be power feature, and the number is 1, so that the configuration word combination is determined to be 2. The set of function configuration words associated with the pure electric two-wheel drive and the set of function configuration words associated with the extended range two-wheel drive constitute a configuration word combination. As shown in Table 1, an example of the configuration word combination is provided:

[0093] Table 1

[0094]

[0095] Wherein, “●” indicates that the vehicle of the vehicle configuration has the function corresponding to the symbol, and “●” can be the numerical value of the calibration data corresponding to the function. “--” indicates that the vehicle of the vehicle configuration does not have the function corresponding to the symbol.

[0096] Step S304, obtaining calibration data of a calibration quantity corresponding to each configuration word combination to obtain calibration data corresponding to each configuration word combination.

[0097] Optionally, the calibration system further queries the pre-constructed association relationship among the vehicle configuration, the function configuration word and the calibration data, obtains the calibration data of the calibration quantity corresponding to each configuration word combination, and obtains the calibration data corresponding to each configuration word combination. The construction method of the association relationship can be that the staff enters the calibration data corresponding to the controller function for each vehicle configuration and the controller function corresponding thereto, and establishes the association relationship among the vehicle configuration, the function configuration word and the calibration data.

[0098] Step S306, based on N configuration word combinations, N corresponding calibration data are obtained, and the N calibration data are respectively stored in N calibration quantity storage spaces.

[0099] Optionally, the calibration system obtains N corresponding calibration data based on N configuration word combinations, and stores the N calibration data in N corresponding calibration quantity storage spaces in the non-volatile memory, which is used as the basis for subsequent initialization of the controller of the corresponding vehicle configuration.

[0100] In this embodiment, the corresponding configuration word combination is constructed by each vehicle configuration feature configuration word and the associated set of function configuration words, and the calibration data corresponding to the configuration word combination is obtained, and the calibration data corresponding to each configuration word combination is stored in the N calibration quantity storage space of the non-volatile memory, so as to lay the foundation for the controller initialization or reassignment after the controller initialization of reading the calibration data corresponding to the feature configuration word combination.

[0101] In an exemplary embodiment, before the actual configuration word combination corresponding to the current vehicle and the controller is obtained in the case that the controller of the current vehicle receives the power-on signal, step S202 further includes:

[0102] The pre-compiled flashable file is obtained, and the controller is flashed with the flashable file as the embedded software of the controller.

[0103] The flashable file can be a programmable file or a rewritable file, which means a file that can be modified and updated on a device or storage medium. System or application updates are usually provided in the form of flashable files, and users can directly overwrite the old version of the system or application according to the flashable file. The update file of the firmware of the hardware device is also flashable. The flashable file is compiled and generated based on the pre-set application function file and N calibration data files. In the embedded software, the application function file generated after the application layer software is compiled is usually referred to as an executable file. The executable file is a type of file format that runs a piece of code or starts a software program when executed. The specific type and format of the executable file may vary depending on the architecture and platform of the embedded system.

[0104] The embedded software can be a special software built into modern cars. The embedded software can monitor and control microprocessors and other hardware packaged in electronic control units (ECUs) to provide braking, navigation, safety protection, and other critical automotive systems. The embedded software includes underlying platform software and application layer platform software. The application function file and the calibration data file belong to the application layer software, and the N calibration data files correspond to the N configuration word combinations. The underlying code of the underlying platform software is compatible with all configurations, function configurations, and other functional requirements of the vehicle, such as data acquisition, signal transmission, and driving. The non-volatile memory is set in the underlying platform software.

[0105] Optionally, the calibration system obtains a pre-compiled flashable file based on the embedded software platform, flashes the controller with the flashable file as the embedded software of the controller, and the embedded software can perform the function configuration operation of the controller during subsequent controller power-on initialization.

[0106] The step S204 implements the power-on initialization of the controller based on the updated calibration data, including: based on the updated calibration data and the embedded software, controlling the power-on initialization of the controller.

[0107] Optionally, based on the updated calibration data and the embedded software, the controller downloads the updated calibration data into the random access memory, erases the old software, writes the embedded software into the corresponding storage area of the controller to run, and implements the power-on initialization of the controller.

[0108] In the embodiment, the flashable file compiled based on the pre-set application function file and the N calibration data files can be used to flash the vehicle with multiple configurations and controller function configurations. The difficulty of software version management is reduced, the development, test and verification period and the time of controller electrical inspection are shortened, the accuracy of controller initialization is improved, and the vehicle development cost is reduced. The platformized embedded software is used for vehicle controller software development, which further shortens the development and test period.

[0109] In one exemplary embodiment, as shown in FIG. 1, Figure 4 The N calibration data files are compiled based on the following manner:

[0110] In step S402, the application layer software is compiled according to the calibration data corresponding to the default configuration word combination and the calibration data corresponding to the N-1 non-default configuration word combinations, to obtain the application function file, the calibration data file corresponding to the one default configuration word combination, and the N-1 initial calibration data files corresponding to the N-1 non-default configuration word combinations.

[0111] The non-default configuration word combination can be a configuration word combination corresponding to a vehicle configuration and a controller function configuration different from the vehicle factory configuration.

[0112] Optionally, the calibration system compiles the application layer software according to the calibration data corresponding to the one default configuration word combination and the calibration data corresponding to the N-1 non-default configuration word combinations, to obtain the application function file, the calibration data file corresponding to the one default configuration word combination, and the initial calibration data files corresponding to the N-1 non-default configuration word combinations.

[0113] In step S404, for each initial calibration data file, an identifier corresponding to the non-default configuration word combination is added before the file name and the calibration quantity name in the file, to obtain the calibration data file corresponding to each non-default configuration word combination.

[0114] The file name can be a file name named according to a certain naming specification, used to distinguish different files. The identifier is a name used to uniquely identify a certain element in the program, and is an important part of the program, usually composed of letters, numbers and underscores, and the naming rules and specific requirements may vary depending on the programming language. In this embodiment, the identifier is used to identify the calibration quantity belonging to the same non-default configuration word combination, can be the prefix of the file name, and can be named by adding an underscore to the name abbreviation of the non-default configuration word.

[0115] Optionally, the calibration system adds, for each initial calibration data file, an identifier corresponding to the non-default configuration word combination as a prefix before the file name of each initial calibration data file and the calibration quantity name included in the initial calibration data file, and saves to obtain a calibration data file corresponding to each non-default configuration word combination. For example, the application layer software is compiled to generate application function App.c / .h files and initial calibration data.c / .h files. There should be N initial calibration data.c / .h files, 1 CalParaFile.c / .h file corresponding to the default configuration word combination and N-1 FCn_CalParaFile.c / .h (n=2……N) files corresponding to the non-default configuration word combination. The calibration quantity name in the calibration data.c / .h of the FCn_CalParaFile.c / .h file should be able to identify the non-feature configuration word combination to which it belongs. An identifier "FCn_" is added before the calibration quantity name and the file name. For example, if the calibration quantity name in CalParaFile.c / .h is VehSpdThd (vehicle speed threshold), the calibration quantity name corresponding to FCn_CalParaFile.c / .h should be FCn_VehSpdThd.

[0116] Step S406, according to the 1 default configuration word combination corresponding to the calibration data file and N-1 non-default configuration word combination corresponding to N-1 calibration data files, N calibration data files are obtained.

[0117] Optionally, the calibration system obtains N calibration data files according to the 1 default configuration word combination corresponding to the calibration data file and N-1 non-default configuration word combination corresponding to N-1 calibration data files, and the N calibration data files are used as the basis for generating subsequent flashable files.

[0118] In this embodiment, the configuration word combination is divided into a default configuration word combination and a non-default configuration word combination, which facilitates the classification and organization and management of the calibration data by the system. The naming of each calibration data file and the calibration quantity in the file contains an identifier of the non-default configuration word combination, which can better perform version management and quickly identify the specific function configuration of each version, and is helpful for rollback and comparison of differences between different configuration word combinations.

[0119] In an exemplary embodiment, step S306 stores the N kinds of calibration data into N calibration quantity storage spaces respectively, including:

[0120] The default calibration data corresponding to the one kind of default configuration word combination is stored into the calibration quantity storage space corresponding to the default configuration word combination, and the calibration data corresponding to the N-1 kinds of non-default configuration word combinations is stored into the N-1 calibration quantity storage spaces corresponding to the non-default configuration words.

[0121] The calibration quantity name corresponding to the non-default configuration word combination is added with the identifier corresponding to the non-default configuration word combination. In the N calibration quantity storage spaces of the non-volatile memory, the data attributes of the default calibration data and the non-default calibration data corresponding to the same calibration quantity are the same, so that the assignment failure of the calibration data can be avoided when the default calibration data in the RAM is updated with the non-default calibration data.

[0122] Optionally, the calibration system stores the default calibration data corresponding to the one kind of default configuration word combination into the calibration quantity storage space corresponding to the default configuration word combination in the non-volatile memory, and stores the calibration data corresponding to the N-1 kinds of non-default configuration word combinations into the N-1 calibration quantity storage spaces corresponding to the non-default configuration word combinations in the non-volatile memory.

[0123] Step S304, in the case where it is determined that the actual configuration word combination is different from the default configuration word combination, acquiring actual calibration data corresponding to the actual configuration word combination from the non-volatile memory, including:

[0124] In the case where it is determined that the actual configuration word combination is different from the default configuration word combination, determining an identifier corresponding to the actual configuration word combination; according to the identifier, determining a calibration quantity name containing the identifier from the non-volatile memory; and acquiring calibration data stored in the calibration quantity storage space corresponding to the calibration quantity name as actual calibration data.

[0125] The data attributes of the default calibration data and the actual calibration data are the same. The data attributes can be variables or features describing the characteristics and properties of the data, used to define the content, structure and behavior of the data, such as data type, precision, offset, maximum value, minimum value and dimension, etc.

[0126] Optionally, the vehicle controller determines the identifier corresponding to the actual configuration word combination in the case where it is determined that the actual configuration word combination corresponding to the actual configuration of the current vehicle and the actual function configuration of the controller is different from the default configuration word combination. According to the identifier, the calibration quantity name containing the identifier as a prefix is retrieved from the non-volatile memory. The calibration data stored in the calibration quantity storage space corresponding to the calibration quantity name is acquired as the actual calibration data of the current vehicle, which is used as the basis for the power-on initialization of the controller of the current vehicle.

[0127] In the embodiment, the calibration data corresponding to the default configuration word combination and the non-default configuration word combination are respectively stored in the corresponding calibration storage space in the non-volatile memory. The non-volatile memory stores the calibration data of the configuration word combination according to the type of the configuration word combination, so as to realize classified storage and independent storage of the data, facilitate version control and traceability. Further, in the power-on initialization process of the controller, the actual configuration word combination of the current vehicle is determined, and the actual calibration data of the current vehicle is obtained from the non-volatile memory according to the identifier corresponding to the actual configuration word combination, so as to improve the accuracy of determining the calibration data and the efficiency of retrieving and obtaining the calibration data.

[0128] In an exemplary embodiment, step S204, updating the default calibration data in the random access memory with the actual calibration data, comprises:

[0129] According to the calibration quantity name in the actual calibration data, the default calibration data corresponding to the same calibration quantity is determined from the random access memory; and the default calibration data corresponding to the same calibration quantity is revalued according to the actual calibration data.

[0130] Optionally, the vehicle controller determines the target calibration quantity name in the default configuration word combination according to the calibration quantity name corresponding to the read actual calibration data from the random access memory, and the part after the identifier of the calibration quantity name of the actual calibration data is the same as the target calibration quantity name. For example, if the calibration quantity name of the actual calibration data is "FC2_VehSpdThd" and the identifier is "FC2_", the determined target calibration quantity name is "VehSpdThd". The default calibration data under the target calibration quantity name is erased, and the default calibration data is revalued according to the data value of the actual calibration data. In addition to the naming of the calibration quantity name and the value of the actual calibration data, the data type, precision, offset, maximum value, minimum value and dimension of the default calibration data and the actual calibration data are the same, so as to ensure the consistency of the data and facilitate the management of the calibration data.

[0131] In the embodiment, the actual calibration data is read by the identifier, and the target calibration quantity and the corresponding default calibration data to be updated are located by the calibration quantity name of the actual calibration data. The automatic data updating mechanism reduces the errors caused by manual input, ensures the consistency and accuracy of the calibration data, and improves the reliability of the power-on initialization of the vehicle controller.

[0132] In an exemplary embodiment, another controller power-on initialization method is provided, which specifically comprises:

[0133] Step 1: The calibration system extracts feature configuration words (corresponding to the vehicle configuration feature configuration words in the above embodiment) based on the project configuration and functional differences analysis results. For example... Figure 5 The diagram illustrates the feature configuration word extraction process. Assuming the number of feature configuration words is n, the result of feature configuration word combinations (corresponding to the configuration word combinations in the above embodiment) is N(2^n). n If there are ≥N≥2 types, then at least N versions of calibration data are actually needed to cover all vehicle configurations and controller function differences. Therefore, the number of bottom-soft calibration storage spaces (calibration storage spaces in non-volatile memory) is N.

[0134] Step 2: Develop the application layer platform software for the embedded software of the calibration system. The application layer platform software development adopts a "configuration word + calibration data" approach. The configuration word includes feature configuration words and function configuration words. The input / output interfaces of the application layer are configured to include all interfaces required for all vehicle configurations and controller function configurations, and the functional algorithm logic can also cover all configurations and functional requirements. The application layer algorithm logic uses configuration words to distinguish the differences between feature configuration words and function configuration words; other differences are distinguished using calibration words. The underlying code of the embedded software is compatible with the acquisition, signal transmission, and driving functional requirements of all vehicle configurations and controller function configurations. The configuration words can be stored in flash memory, which can support N calibration storage spaces. One calibration storage space is used to store the calibration data corresponding to the default feature configuration word combination, and the remaining N-1 calibration storage spaces are used to store the calibration data corresponding to non-default feature configuration word combinations.

[0135] Step 3, optionally, the calibration system compiles the application layer software based on N combinations of feature configuration words and their corresponding calibration data, generating application function App.c / .h files and calibration data.c / .h files. There should be N copies of the calibration data.c / .h files: one CalParaFile.c / .h file corresponding to a default feature configuration word combination and N-1 non-default feature configuration word combinations. n _CalParaFile.c / .h (n=2...N). FC n The calibration data in _CalParaFile.c / .h should be recognizable by the combination of feature configuration words to which it belongs. In this embodiment, the prefix "FC" is directly added before both the calibration data and the file name. n For example, if there is a standard value named VehSpdThd in CalParaFile.c / .h, then in FC... n The standardization name corresponding to _CalParaFile.c / .h should be FC. n _VehSpdThd. When reassigning a value to RAM, the FC is... nThe value of VehSpdThd is assigned to VehSpdThd. VehSpdThd and FC n _ VehSpdThd two calibration quantities except the name on the difference "FC n _ " and the value can not be the same, other data types, precision, offset, maximum value, minimum value, dimension, etc. Attributes are exactly the same.

[0136] Step 4, as Figure 6 shown, provides an integrated compilation process diagram of the flashable file. The calibration system loads all application layer functions and calibration data.c / .h files and underlying code.c / .h files into the compiler for integrated compilation to generate a flashable file. After the flashable file is flashed to a vehicle controller of different configurations and functional configurations, only the configuration operation needs to be written, and after the controller is powered on, the target program with the real vehicle calibration data of the configuration and functional configuration is run in the controller (corresponding to the embedded software in the above embodiment).

[0137] Step 5, as Figure 7 shown, provides a flowchart of controller power-on initialization. In the vehicle controller, before the vehicle software is written, the default calibration data in the calibration quantity space combined with the default configuration word is used by default, and each time the controller is awakened by receiving power-on information, the calibration data in the calibration quantity storage space corresponding to the default feature configuration word in the flash is copied to the RAM. According to the value of EvCfg (Electric Vehicle Configuration), the default calibration data loaded in the RAM is revalued with the calibration data in the adaptive calibration quantity storage space during the main program loading process of copying the flash data to the RAM each time the controller is awakened.

[0138] In this embodiment, the application software platform is realized by configuring words + calibration quantities, which can reduce the unit test time of the application layer software of different configurations and configuration general function modules. By identifying the feature configuration word, the underlying calibration quantity storage space is divided into multiple spaces, each of which stores the real vehicle calibration data of a feature configuration word combination. Then, in the controller power-on initialization process, by identifying the feature configuration word, the default calibration data loaded in the RAM is revalued with the calibration data in the adaptive calibration quantity storage space, so that one version of the flashable file can adapt to all vehicles of different configurations and different configurations of a vehicle project, so as to reduce the difficulty of software version management, shorten the development and test verification period, shorten the electrical inspection period, and ultimately achieve the purpose of saving the development cost of the vehicle project.

[0139] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of the steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.

[0140] Based on the same inventive concept, the embodiments of the present application also provide a controller power-on initialization device for implementing the above-mentioned controller power-on initialization method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more controller power-on initialization device embodiments provided below can refer to the limitations of the controller power-on initialization method in the above text, which will not be repeated here.

[0141] In one exemplary embodiment, as shown in Figure 8 A controller power-on initialization device 800 is provided, comprising: a configuration acquisition module 802 and a data updating module 804, wherein:

[0142] The configuration acquisition module 802 is configured to, in a case where the controller of the current vehicle receives a power-on signal, acquire an actual configuration word combination corresponding to the current vehicle and the controller, and copy default calibration data corresponding to a default configuration word combination in the non-volatile memory to the random access memory.

[0143] The data updating module 704 is configured to, in a case where it is determined that the actual configuration word combination is different from the default configuration word combination, acquire actual calibration data corresponding to the actual configuration word combination from the non-volatile memory, and update the default calibration data in the random access memory with the actual calibration data, to implement power-on initialization of the controller based on the updated calibration data.

[0144] The non-volatile memory includes N calibration storage spaces, and the N calibration storage spaces correspond one-to-one to N configuration word combinations; each calibration storage space is configured to store calibration data corresponding to a configuration word combination, and each configuration word combination includes a vehicle configuration feature configuration word and a functional feature configuration word of the controller; N is an integer greater than or equal to 2.

[0145] Further, in one embodiment, the controller power-on initialization apparatus 800 further comprises a flashable file generation module, configured to acquire a kind of vehicle configuration adapted to the controller, determine a number n of vehicle configuration feature configuration words based on the kind of vehicle configuration; n is an integer greater than or equal to 1; determine a number N of configuration word combinations and a number N of calibration quantity storage spaces in the non-volatile memory according to the number n of vehicle configuration feature configuration words; wherein N is an integer less than or equal to 2 n According to the number N of calibration quantity storage spaces, divide the total calibration quantity storage space of the non-volatile memory to obtain N calibration quantity storage spaces.

[0146] Further, in one embodiment, the flashable file generation module is further configured to, for each vehicle configuration feature configuration word, acquire a group of function configuration words associated with the vehicle configuration feature configuration word, thereby constructing a configuration word combination; acquire calibration data of a calibration quantity corresponding to each configuration word combination to obtain calibration data corresponding to each configuration word combination; based on N configuration word combinations, obtain N corresponding calibration data, and store the N calibration data in the N calibration quantity storage spaces respectively.

[0147] Further, in one embodiment, the configuration acquisition module 802 is further configured to acquire a pre-compiled flashable file, and flash the flashable file to the controller as embedded software of the controller; wherein the flashable file is compiled and generated based on a pre-set application function file and N calibration data files; the application function file and the calibration data files both belong to application layer software, and the N calibration data files correspond to the N configuration word combinations one by one; the data updating module 804 is further configured to control the power-on initialization of the controller based on the updated calibration data and the embedded software.

[0148] Further, in one embodiment, the flashable file generation module is further configured to compile the application layer software according to the calibration data corresponding to the default configuration word combination and the calibration quantity data corresponding to N-1 non-default configuration word combinations to obtain an application function file, a calibration data file corresponding to one default configuration word combination, and N-1 initial calibration data files corresponding to N-1 non-default configuration word combinations; for each initial calibration data file, add an identifier corresponding to the non-default configuration word combination before the file name and the calibration quantity name in the file respectively to obtain a calibration data file corresponding to each non-default configuration word combination; and obtain N calibration data files according to the calibration data file corresponding to one default configuration word combination and the N-1 calibration data files corresponding to N-1 non-default configuration word combinations.

[0149] Further, in an embodiment, the flashable file generation module is further configured to store the default configuration word combination corresponding default calibration data into a default calibration data storage space corresponding to the default configuration word combination; and store N-1 non-default configuration word combination corresponding calibration data into N-1 calibration data storage spaces corresponding to the N-1 non-default configuration words, wherein the calibration data corresponding to the non-default configuration word combination has an identifier corresponding to the non-default configuration word combination added before a calibration quantity name in the calibration data; and the data updating module 804 is further configured to, in a case where the actual configuration word combination is determined to be different from the default configuration word combination, determine an identifier corresponding to the actual configuration word combination; determine a calibration quantity name corresponding to the identifier from the non-volatile memory according to the identifier; obtain calibration data stored in a calibration data storage space corresponding to the calibration quantity name as actual calibration data; and the default calibration data and the actual calibration data have the same data attribute.

[0150] Further, in an embodiment, the data updating module 804 is further configured to determine default calibration data corresponding to the same calibration quantity from the random access memory according to a calibration quantity name in the actual calibration data; and reassign the default calibration data corresponding to the same calibration quantity according to the actual calibration data.

[0151] The above-mentioned modules in the controller power-on initialization apparatus 800 can be implemented by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in a computer device in software form, so as to be called and executed by a processor to perform operations corresponding to the above-mentioned modules.

[0152] In an embodiment, a new energy vehicle is also provided, which has an internal structure as shown in Figure 9 The computer program is stored in the memory and executed by the processor to implement the steps in the above-mentioned method embodiments.

[0153] In an embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the steps in the above-mentioned method embodiments.

[0154] In an embodiment, a computer program product is provided, which includes a computer program, and the computer program is executed by a processor to implement the steps in the above-mentioned method embodiments.

[0155] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.

[0156] The technical features of the above embodiments can be combined in any manner. To make the description concise, all possible combinations of the technical features in the above embodiments are not described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.

[0157] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.

Claims

1. A controller power-on initialization method, comprising: The method comprises: In the case that the controller of the current vehicle receives a power-on signal, an actual configuration word combination corresponding to the current vehicle and the controller is acquired, and default calibration data corresponding to a default configuration word combination in a non-volatile memory is copied into a random access memory; In the case that the actual configuration word combination is determined to be different from the default configuration word combination, actual calibration data corresponding to the actual configuration word combination is acquired from the non-volatile memory, and the default calibration data in the random access memory is updated with the actual calibration data, so that power-on initialization of the controller is implemented based on the updated calibration data; The non-volatile memory comprises N calibration quantity storage spaces, and the N calibration quantity storage spaces correspond to N configuration word combinations one by one; each calibration quantity storage space is used for storing calibration data corresponding to one configuration word combination, and each configuration word combination comprises a vehicle configuration feature configuration word and a functional feature configuration word of the controller; N is an integer greater than or equal to 2. The controller comprises embedded software, and the embedded software is generated based on N calibration data files; the N calibration data files correspond to the N configuration word combinations one by one.

2. The method of claim 1, wherein, The non-volatile memory is configured in the following manner: The types of vehicle configurations adapted to the controller are acquired, and the number n of vehicle configuration feature configuration words is determined based on the types of vehicle configurations; n is an integer greater than or equal to 1; According to the number n of the vehicle configuration features, the number N of the configuration word combinations is determined, and the number N of the calibration amount storage spaces in the non-volatile memory is determined; wherein N is an integer less than or equal to 2 n . The total calibration quantity storage space of the non-volatile memory is divided according to the number N of calibration quantity storage spaces, to obtain the N calibration quantity storage spaces.

3. The method of claim 2, wherein, Further comprising: For each vehicle configuration feature configuration word, a group of functional configuration words associated with the vehicle configuration feature configuration word is acquired, thereby constructing one configuration word combination; The calibration quantity of calibration data corresponding to each configuration word combination is acquired, to obtain calibration data corresponding to each configuration word combination; Based on the N configuration word combinations, N corresponding calibration data are obtained, and the N calibration data are respectively stored in the N calibration quantity storage spaces.

4. The method of claim 2, wherein, Before acquiring the actual configuration word combination corresponding to the current vehicle and the controller in the case that the controller of the current vehicle receives a power-on signal, the method further comprises: A pre-compiled flashable file is acquired, and the flashable file is flashed to the controller as embedded software of the controller; the flashable file is generated based on a pre-set application function file and N calibration data files; the application function file and the calibration data files both belong to application layer software, and the N calibration data files correspond to the N configuration word combinations one by one; The power-on initialization of the controller based on the updated calibration data comprises: The power-on initialization of the controller is controlled based on the updated calibration data and the embedded software.

5. The method of claim 4, wherein, The N configuration word combinations comprise one default configuration word combination and N-1 non-default configuration word combinations; the N calibration data files are compiled in the following manner: ​ According to the default configuration word combination corresponding to the calibration data and N-1 non-default configuration word combination corresponding to the calibration data, the application layer software is compiled to obtain 1 default configuration word combination corresponding to the calibration data file and N-1 non-default configuration word combination corresponding to N-1 initial calibration data files; For each initial calibration data file, an identifier corresponding to the non-default configuration word combination is added before the file name and the calibration quantity name in the file to obtain the calibration data file corresponding to each non-default configuration word combination; According to the 1 default configuration word combination corresponding to the calibration data file and N-1 non-default configuration word combination corresponding to N-1 calibration data files, N calibration data files are obtained.

6. The method of claim 3, wherein, The N calibration data are respectively stored in N calibration quantity storage spaces, including: The default calibration data corresponding to 1 default configuration word combination are stored in the calibration quantity storage space corresponding to the default configuration word combination; The non-default calibration data corresponding to N-1 non-default configuration word combinations are stored in N-1 calibration quantity storage spaces corresponding to the non-default configuration word; the calibration data corresponding to the non-default configuration word combination is added with the identifier corresponding to the non-default configuration word combination before the calibration quantity name; The data attributes of the default calibration data and the non-default calibration data corresponding to the same calibration quantity in the N calibration quantity storage spaces are the same.

7. The method of claim 6, wherein, In the case that the actual configuration word combination is determined to be different from the default configuration word combination, the actual calibration data corresponding to the actual configuration word combination is obtained from the non-volatile memory, including: In the case that the actual configuration word combination is determined to be different from the default configuration word combination, the identifier corresponding to the actual configuration word combination is determined; According to the identifier, the calibration quantity name containing the identifier is determined from the non-volatile memory; The calibration data stored in the calibration quantity storage space corresponding to the calibration quantity name is obtained as the actual calibration data; The default calibration data in the random access memory is updated with the actual calibration data, including: According to the calibration quantity name in the actual calibration data, the default calibration data corresponding to the same calibration quantity is determined from the random access memory; The default calibration data corresponding to the same calibration quantity is re-assigned according to the actual calibration data.

8. A controller power-on initialization apparatus, comprising: The device includes: The configuration acquisition module is configured to, in the case that the controller of the current vehicle receives a power-on signal, acquire the actual configuration word combination corresponding to the current vehicle and the controller, and copy the default calibration data corresponding to the default configuration word combination in the non-volatile memory to the random access memory; The data update module is configured to, in the case that the actual configuration word combination is determined to be different from the default configuration word combination, acquire the actual calibration data corresponding to the actual configuration word combination from the non-volatile memory, and update the default calibration data in the random access memory with the actual calibration data, so as to realize the power-on initialization of the controller based on the updated calibration data; The device includes: The configuration acquisition module is configured to, in the case that the controller of the current vehicle receives a power-on signal, acquire the actual configuration word combination corresponding to the current vehicle and the controller, and copy the default calibration data corresponding to the default configuration word combination in the non-volatile memory to the random access memory; The data update module is configured to, in the case that the actual configuration word combination is determined to be different from the default configuration word combination, acquire the actual calibration data corresponding to the actual configuration word combination from the non-volatile memory, and update the default calibration data in the random access memory with the actual calibration data, so as to realize the power-on initialization of the controller based on the updated calibration data; The non-volatile memory comprises N calibration storage spaces, and the N calibration storage spaces correspond to N configuration word combinations one by one; each calibration storage space is used for storing calibration data corresponding to a configuration word combination, and each configuration word combination comprises a vehicle configuration feature configuration word and a function feature configuration word of the controller; N is an integer greater than or equal to 2; The controller comprises embedded software, and the embedded software is compiled based on N calibration data files; the N calibration data files correspond to the N configuration word combinations one by one. 9.A new energy vehicle, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program comprises the following steps of: The processor executes the computer program to implement the steps of the method in any one of claims 1 to 7.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Variable parameter initialization method and device for part controller

    CN106200423A

  • Software configuration method and system adaptive to multiple functions

    CN113220357A