Automobile, controller, function configuration method of controller and storage medium
By splitting and mapping the main modules and sub-module functional types of the automotive controller, the problems of increased code volume and high error rate in traditional controller configuration are solved, and efficient and simplified functional configuration is achieved.
Patent Information
- Application Number
- CN202510894443.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-10-03
AI Technical Summary
When faced with the compatibility requirements of diversified modules, traditional automotive controller function configuration solutions increase the amount of code, are inefficient, and are prone to errors, making them difficult to configure and modify efficiently.
By splitting the main module, sub-modules and the functional types of the sub-modules, creating the functional type information of the main module, and using the functional type mapping information and configuration information, the functional configuration process is simplified. Configuration can be achieved by only determining the main module and its functional type.
Significantly reduce the amount of code and error probability, improve configuration efficiency, simplify the operations of adding and modifying function configuration, and reduce logical errors.
Smart Images

Figure CN120743261A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile function configuration, and in particular to an automobile, a controller, a function configuration software method for the controller, and a storage medium. Background Art
[0002] With the diversification of intelligent vehicles, the same vehicle model (especially commercial vehicles) must adapt to different modules from different manufacturers. For example, different engine types (such as diesel / natural gas engines of varying brands, displacements, and emission standards), transmissions, and other equipment from different manufacturers are required. Because each module comes from different manufacturers and at different price points, functional differences exist between these products. This diversity poses significant challenges to the configuration and execution of corresponding functions by vehicle controllers.
[0003] The functional configuration scheme of traditional automotive controllers is generally as follows: when a configuration is determined, the corresponding functional logic is executed. During execution, a cascade test condition judgment structure is generally used to handle the situation. For example, the main module required for the configuration is determined, the required sub-modules are determined based on each main module, and then the functional type of each sub-module is determined, thus forming the functional configuration code of the configuration. As product cycles accelerate, automotive controllers must adapt to an increasing number of modules (added, deleted, and modified), leading to a corresponding increase in the number of configurations. In this case, the structure determination method based on the aforementioned cascade test conditions results in a significant increase in simple code (a single configuration requires a complete set of code, including main modules, submodules, and function types) and overlap (main modules, submodules, and function types are repeated across different configurations). This not only dramatically increases the amount of code and reduces work efficiency, but also requires modifying the entire code set when a specific function is changed or a new engine type is added, which is prone to errors and poses significant challenges to automotive controller software development and testing. Summary of the Invention
[0004] In view of the defects in the prior art, the present invention solves the technical problem of how to configure the functions of the automobile controller through a small amount of code while improving work efficiency and reducing the probability of error.
[0005] To achieve the above objectives, in the first aspect, an embodiment of the present application provides a method for configuring the function of a controller, which includes the following steps: creating function type information of the main module based on the function types available for each sub-module and the sub-modules required for each main module; forming function configuration information based on the main modules required for the function configuration and the function type information of each main module.
[0006] In combination with the first aspect, in one embodiment, the process of creating functional type information of the main module based on the functional types available to each sub-module and the sub-modules required by each main module includes: creating functional type mapping information of the sub-module based on the functional types available to each sub-module.
[0007] In combination with the first aspect, in one embodiment, the process of creating the functional type information of the main module based on the functional types available for each sub-module and the sub-modules required by each main module also includes: creating functional type mapping information of the main module based on the sub-modules required by the main module and the functional type mapping information of the sub-modules.
[0008] In combination with the first aspect, in one embodiment, the process of forming functional configuration information based on the main modules required for functional configuration and the functional type information of each main module includes: after determining the main modules required for functional configuration, determining the functional types required by each main module in the functional type mapping information of the main modules; forming functional configuration information based on the main modules required for functional configuration and the functional types required by each main module.
[0009] In a second aspect, an embodiment of the present application provides a computer-readable storage medium, on which a function configuration program of a controller is stored, and when the computer program is executed, the method provided in the first aspect is implemented.
[0010] In a third aspect, an embodiment of the present application provides an automobile controller, which is used to: create function type information of the main module based on the function types available for each sub-module and the sub-modules required for each main module; and form function configuration information based on the main modules required for the function configuration and the function type information of each main module.
[0011] In combination with the third aspect, in one embodiment, the controller includes a sub-module function mapping module, which is used to create sub-module function category mapping information according to the function categories available to each sub-module.
[0012] In combination with the third aspect, in one embodiment, the controller further includes a main module function mapping module, which is used to create function type mapping information of the main module based on the sub-modules required by the main module and the function type mapping information of the sub-modules.
[0013] In combination with the third aspect, in one embodiment, the controller also includes a function configuration module, which is used to: after determining the main module required for the function configuration, determine the function types required by each main module in the function type mapping information of the main module; and form function configuration information based on the main module required for the function configuration and the function types required by each main module.
[0014] In a fourth aspect, an embodiment of the present application provides a car, on which the car controller provided by the third aspect is provided.
[0015] Compared with the prior art, the advantages of the present invention are: (1) Before performing functional configuration, the present application separates the main module, submodule, and the functions required by the submodule, and then associates each main module with the function type it requires (creating function type information of the main module). In this case, when performing functional configuration, it is only necessary to determine the main module required for the configuration to obtain the function type required for each main module, and each required main module and its required function type can form functional configuration information. Therefore, compared with the prior art in which each functional configuration includes a full set of codes for each main module, the functional configuration information of the present application only includes the main module and the corresponding function, that is, it is only necessary to implement the function of the specific module, and there is no need to pay attention to the various complex relationships between the calibration items and the functions, as well as the functional associations that may exist between the various calibration items. This not only greatly reduces the amount of code and the probability of error, but also significantly improves configuration efficiency. In addition, when a new configuration is added and there are modules or function types that are not included in the new configuration, it is only necessary to add the corresponding modules or function types, which is simple and easy to operate.
[0016] (2) This application clearly and concisely implements complete functional configuration through the functional category mapping information of the submodules, the functional category mapping information of the main module, and the functional configuration information. At the same time, when adding functional configuration, main module, submodule, function or functional category: If the required function already exists, you can choose to match the specific logic in the existing function, that is, simply configure the mapping table information. There is no specific logic code change, and no logical errors will be introduced.
[0017] If the required function does not exist, or no matching type is found in the function, just add a new function or a new type of function, and then update the mapping information. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 This is a schematic diagram of the functional category mapping of submodules in an embodiment of the present application; Figure 2 This is a schematic diagram of the function type mapping information of the main module in an embodiment of the present application; Figure 3 This is a schematic diagram of the functional configuration information in an embodiment of the present application. DETAILED DESCRIPTION
[0020] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0021] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0022] In order to make the purpose, technical solutions and advantages of this application clearer, the basic logic of the configuration function of this application is first briefly described.
[0023] One configuration includes multiple main modules, each of which requires multiple sub-modules. Each sub-module has various functions, for example: The main module is the engine, and one of the required submodules is the engine water temperature regulation. The corresponding function types include water temperature regulation mode 1, 2, 3, 4, etc.
[0024] The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
[0025] In a first aspect, an embodiment of the present application provides a method for configuring the function of a controller, the steps of which include: creating function type information of the main module based on the function types available for each sub-module and the sub-modules required for each main module; and forming function configuration information based on the main modules required for the function configuration and the function type information of each main module.
[0026] It can be seen from this that before performing functional configuration, the present application splits the main module, sub-module, and the functions required by the sub-module, and then associates each main module with the type of function it requires (creating functional type information of the main module); in this case, when performing functional configuration, it is only necessary to determine the main module required for the configuration to obtain the type of function required for each main module, and each required main module and its required type of function can form functional configuration information. Therefore, compared with the prior art in which each functional configuration includes a full set of codes for each main module, the functional configuration information of the present application only includes the main module and the corresponding function, that is, it is only necessary to implement the function of the specific module, and there is no need to pay attention to the various complex relationships between the calibration items and the functions, as well as the functional associations that may exist between the various calibration items; this not only greatly reduces the amount of code and the probability of error, but also significantly improves configuration efficiency; and when a new configuration is added, and there are modules or functional types that do not exist in the new configuration, it is only necessary to add the corresponding modules or functional types, which is simple and easy to operate.
[0027] The applicant has tested and found that the time required to modify or add a new function configuration through the method of this application is less than 10% of the function configuration method in the existing technology.
[0028] In one embodiment, the process of creating the function type information of the main module according to the function types available for each submodule and the submodules required by each main module includes: Figure 1 As shown, the function category mapping information of the sub-modules is created according to the function categories available for each sub-module.
[0029] Furthermore, the above process of creating the function type information of the main module according to the function types available for each submodule and the submodules required by each main module also includes: Figure 2 As shown, the function type mapping information of the main module is created based on the sub-modules required by the main module and the function type mapping information of the sub-modules.
[0030] Furthermore, the process of forming the function configuration information according to the main modules required for the function configuration and the function type information of each main module includes: Figure 3 As shown, after determining the main modules required for the functional configuration, the function types required by each main module are determined in the function type mapping information of the main modules; functional configuration information is formed based on the main modules required for the functional configuration and the function types required by each main module.
[0031] It can be concluded that this application has clearly implemented a complete functional configuration through the functional category mapping information of the submodules, the functional category mapping information of the main module, and the functional configuration information. At the same time, when adding functional configuration, main module, submodule, function or functional category: If the required function already exists, you can choose to match the specific logic in the existing function, that is, simply configure the mapping table information. There is no specific logic code change, and no logical errors will be introduced.
[0032] If the required function does not exist, or no matching type is found in the function, just add a new function or a new type of function, and then update the mapping information.
[0033] In a second aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0034] The computer-readable storage medium of the present application stores a controller function configuration method program, wherein when the controller function configuration method program is executed by a processor, the steps of the controller function configuration method as described above are implemented.
[0035] Among them, the method implemented when the controller function configuration method program is executed can refer to the various embodiments of the controller function configuration method of this application, and will not be repeated here.
[0036] On the third aspect, an embodiment of the present application also provides an automobile controller, which is used to: create function type information of the main module based on the function types available for each sub-module and the sub-modules required for each main module; and form function configuration information based on the main modules required for the function configuration and the function type information of each main module.
[0037] In one embodiment, the controller includes a sub-module function mapping module, which is used to create sub-module function category mapping information according to the function categories available to each sub-module.
[0038] In one embodiment, the controller further includes a main module function mapping module, which is used to create function type mapping information of the main module according to the sub-modules required by the main module and the function type mapping information of the sub-modules.
[0039] In one embodiment, the controller also includes a function configuration module, which is used to: after determining the main module required for the function configuration, determine the function types required by each main module in the function type mapping information of the main module; and form function configuration information based on the main module required for the function configuration and the function types required by each main module.
[0040] In a fourth aspect, an embodiment of the present application further provides a car, which is provided with the car controller provided by the third aspect.
[0041] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0042] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of this application.
[0043] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.
[0044] In the description of the embodiments of this application, the words "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.
[0045] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0046] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.
[0047] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of this application.
[0048] The above are only specific implementations of the embodiments of the present invention, but the scope of protection of the embodiments of the present invention is not limited to them. Any person skilled in the art can easily conceive of various equivalent modifications or replacements within the technical scope disclosed in the embodiments of the present invention, and such modifications or replacements should be included in the scope of protection of the embodiments of the present invention. Therefore, the scope of protection of the embodiments of the present invention should be based on the scope of protection of the claims.
Claims
1. A controller function configuration method, characterized in that: The method includes the following steps: creating function type information of the main module according to the function types available for each submodule and the submodules required by each main module; forming function configuration information according to the main modules required for function configuration and the function type information of each main module.
2. The controller function configuration method according to claim 1, characterized in that: The process of creating function category information of the main module according to the function categories available for each submodule and the submodules required by each main module includes: creating function category mapping information of the submodule according to the function categories available for each submodule.
3. The controller function configuration method according to claim 2, characterized in that: The process of creating the function type information of the main module based on the function types available in each sub-module and the sub-modules required by each main module also includes: creating the function type mapping information of the main module based on the sub-modules required by the main module and the function type mapping information of the sub-modules.
4. The controller function configuration method according to claim 3, characterized in that: The process of forming functional configuration information based on the main modules required for functional configuration and the functional type information of each main module includes: after determining the main modules required for functional configuration, determining the functional types required by each main module in the functional type mapping information of the main modules; forming functional configuration information based on the main modules required for functional configuration and the functional types required by each main module.
5. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a function configuration program for the controller, wherein when the function configuration program for the controller is executed, the steps of the function configuration method for the controller according to any one of claims 1 to 4 are implemented.
6. An automobile controller, characterized in that: The controller is used to: create function type information of the main module according to the function types available in each submodule and the submodules required by each main module; and form function configuration information according to the main modules required for function configuration and the function type information of each main module.
7. The automobile controller according to claim 6, wherein: The controller includes a sub-module function mapping module, which is used to create sub-module function category mapping information according to the function categories available to each sub-module.
8. The automobile controller according to claim 7, wherein: The controller further comprises a main module function mapping module, which is used to create function category mapping information of the main module according to the sub-modules required by the main module and the function category mapping information of the sub-modules.
9. The automobile controller according to claim 7, wherein: The controller also includes a function configuration module, which is used to: after determining the main module required for the function configuration, determine the function types required by each main module in the function type mapping information of the main module; and form function configuration information based on the main module required for the function configuration and the function types required by each main module.
10. An automobile, characterized in that: The automobile is provided with the automobile controller according to any one of claims 6 to 9.