System management method, domain controller mainboard and storage medium
By automatically updating the main version number and sub-version number of the system, the error-prone problem of manually updating the version number in the existing technology is solved, and the security performance and stability of the system are improved.
Patent Information
- Application Number
- CN202310165012.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-08-27
AI Technical Summary
When existing systems update or upgrade sub-software, they need to manually update the main software version number, which is prone to errors and affects the security performance of the system.
By obtaining the code base and code base change records of each sub-module in the system, the major version number is automatically updated, and the consistency of the first major version number and the second major version number is compared to determine whether to perform integrated compilation to avoid manual version updates. Number.
It improves the security performance of the system, avoids unexpected situations during integrated compilation, and ensures the correctness and stability of the system.
Smart Images

Figure CN118550574A
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a system management method, a domain controller mainboard and a storage medium. Background Art
[0002] The software version number refers to the version number set for the software. It is an important attribute of the software. The software version number can intuitively show the current iteration version of the software and the specific functions of the version.
[0003] In the prior art, the main software corresponding to a system includes multiple sub-softwares. If there is a sub-software update or upgrade, a new version of the main software needs to be reintegrated, and the corresponding sub-software version numbers and main software version numbers need to be manually updated in the code, which is prone to errors. In view of this, how to improve the security performance of the system has become an urgent problem to be solved. Summary of the invention
[0004] The main technical problem solved by the present application is to provide a system management method, a domain controller mainboard and a storage medium.
[0005] In order to solve the above technical problems, the first aspect of the present application provides a system management method, including: obtaining the code library and code library change record of each sub-module in the system; updating the current main version number of the system based on the code library change record of each sub-module in the system to obtain the first main version number of the system, and updating the current main version number of the system based on the code library of each sub-module in the system to obtain the second main version number of the system; based on whether the first main version number is consistent with the second main version number, determining whether to perform integrated compilation based on the code library of each sub-module in the system.
[0006] In order to solve the above technical problems, the second aspect of the present application provides a domain controller mainboard, which is integrated with electronic control units for respectively running different sub-modules in the system, and the domain controller mainboard is used to implement the system management method in the above first aspect.
[0007] In order to solve the above technical problem, the third aspect of the present application provides a computer-readable storage medium storing program instructions that can be executed by a processor, and the program instructions are used to implement the system management method of the first aspect.
[0008] The above scheme obtains the code base and corresponding code base change records of each sub-module in the system respectively, updates the main version number of the current system based on the code base change records of each sub-module to obtain the first main version number, and updates the main version number of the current system based on the code base of each sub-module to obtain the second main version number. By comparing whether the first main version number and the second main version number are consistent, it is determined whether to perform integrated compilation based on the code base of each sub-module in the system, thereby avoiding unexpected situations during system integrated compilation, and automatically generates the corresponding first main version number and second main version number based on the code base and code base change record of the sub-module, thereby avoiding manual updating of the version number, thereby improving the security performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a flowchart of an embodiment of the system management method of the present application;
[0010] Figure 2 It is a schematic diagram of the framework of an embodiment of the system management device of the present application;
[0011] Figure 3 This is a schematic diagram of the framework of an embodiment of a domain controller mainboard of the present application;
[0012] Figure 4 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0013] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0014] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. 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, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.
[0015] See also Figure 1 , Figure 1 It is a flowchart of an embodiment of the system management method of the present application.
[0016] Specifically, the following steps may be included:
[0017] Step S10: Obtain the code base and code base change records of each sub-module in the system.
[0018] In the disclosed embodiment, the system includes multiple submodules. When any one or more submodules are updated, the system needs to be re-integrated and compiled to complete the overall update of the system. Similarly, when any one or more submodules are upgraded, the system also needs to be upgraded synchronously. The code base of each submodule in the system is the code file to be integrated and compiled, and the code base change record stores the change point of the submodule code, the corresponding submodule version nature and the project stage.
[0019] Step S20: Update the current major version number of the system based on the code library change records of each sub-module in the system to obtain the first major version number of the system, and update the current major version number of the system based on the code library of each sub-module in the system to obtain the second major version number of the system.
[0020] In the disclosed embodiment, the version number is an identification number of the version. Each operating system or, in a broad sense, each software has a corresponding version number. The version number enables users to understand whether the operating system they are using is the latest version and the functions and facilities it provides. When a system includes multiple submodules, the version number can be divided into two parts: the corresponding main version number and the sub-version number.
[0021] In one implementation scenario, the sub-version number of the sub-module includes at least one of the project phase, version nature, and compilation times of the sub-module. The project phase is used to characterize the performance of the sub-module, and the version nature includes any one of a temporary version, a formal version, and a R&D test version.
[0022] In a specific implementation scenario, the corresponding project stage and version nature in the sub-version number of the sub-module can be represented by specific characters. Specifically, A, B, and C are used to represent the corresponding project stages, respectively, and A represents the weakest performance of the sub-module, B represents the medium performance of the sub-module, and C represents the strongest performance of the sub-module. Alpha is used to represent the R&D test version, Beta represents the temporary version, and RC represents the official version. The sub-version number can be represented by connecting the project stage, version nature, and compilation count of the sub-module by a connector. Specifically, a sub-module with a project stage of A, a temporary version, and a compilation count of 1, the corresponding sub-version number can be "A-Beta-1".
[0023] In an implementation scenario, based on the code base change record of the sub-module, it is possible to identify whether there is a change in the corresponding sub-module. Specifically, the change record can identify the number of compilations of the sub-module before and after the current update. By comparing whether the number of compilations has changed, it is possible to determine whether the corresponding sub-module has been updated. When the number of compilations has changed, it indicates that the sub-module has been updated. The change point in the change record and the corresponding attributes such as the project stage and version nature after the update are obtained, and a comparison is made based on the project stage and version nature before the update to determine whether to update the sub-version number corresponding to the current sub-module. For example, the current sub-version number of a sub-module is "A-Beta-1". According to the code base change record of this sub-module, it is identified that the current compilation number of this sub-module is 2, the project stage is "A", and the version nature is "Alpha". It is determined that the sub-version number corresponding to the current sub-module is updated to "A-Alpha-1". After obtaining the sub-version number corresponding to each sub-module, determine whether to update the current main version number based on whether each sub-module has changed. When the sub-version numbers corresponding to all sub-modules have not changed, the main version number will not be updated. When the sub-version numbers of one or more sub-modules have changed, the main version number needs to be updated, and the corresponding first main version number is obtained after the update. Through the above method, it is possible to identify whether a sub-module has changed based on the code library change record corresponding to the sub-module, and obtain the sub-version number corresponding to each sub-module based on the change situation, and then obtain the first main version number of the system based on each sub-version number, thereby avoiding manual update of the version number, and thus improving the security performance of the system.
[0024] In another implementation scenario, the code base of each submodule is obtained to identify whether the corresponding submodule has changed. When the submodule has been updated, the corresponding submodule code base will have corresponding changes. When the submodule has not been updated, the corresponding submodule code base has not changed. Through the change content of the submodule corresponding code, the relevant properties of the current submodule can be obtained, such as the project stage, version nature, number of compilations, etc. When the code base of the submodule changes, the corresponding sub-version number needs to be updated synchronously, and then the second main version number of the system is obtained based on the sub-version number corresponding to each submodule. Through the above method, it is identified whether the submodule has changed based on the code base corresponding to the submodule, and the sub-version number corresponding to each submodule is obtained based on the change situation, and then the second main version number of the system is obtained based on each sub-version number, so as to avoid manual update of the version number, so as to improve the security performance of the system.
[0025] In an implementation scenario, the main version number also includes at least one of the system's project phase, version nature, and compilation times. The compilation times in the main version number represent the number of times the system is integrated and compiled, and the system's project phase is the project phase corresponding to the lowest performance in the sub-version numbers of each sub-module. Specifically, a system contains three sub-modules, and the corresponding project phases in the sub-version numbers of the three sub-modules are "A", "B", and "B", respectively. A represents low performance of the sub-module, and B represents high performance of the sub-module. Then the corresponding project phase in the main version number of the corresponding system is "A".
[0026] In one implementation scenario, the version nature of the system is determined based on the sub-version numbers of each sub-module. When there is a sub-module with a temporary version nature among the sub-version numbers of each sub-module, the version nature of the corresponding main version is a temporary version. When the version nature of the sub-version numbers of all sub-modules is a formal version, the version nature of the corresponding main version number is a formal version. When the version nature of the sub-version numbers of each sub-module does not include a temporary version and there is a sub-module with a development and test version nature, the version nature of the corresponding main version number is a development and test version.
[0027] In a specific implementation scenario, a first condition and a second condition are set to determine the version nature in the main version number of the system, the first condition is that the version nature in the sub-version number of at least one submodule is a temporary version, and the second condition is that the version nature in the sub-version number of each submodule in the system is a formal version. In response to the version nature in the sub-version number of the submodule in the system satisfying the first condition, the version nature of the system is determined to be a temporary version; in response to the version nature in the sub-version number of the submodule in the system satisfying the second condition, the version nature of the system is determined to be a formal version; in response to the version nature in the sub-version number of the submodule in the system not satisfying the first condition or the second condition, the version nature of the system is determined to be a research and development test version. In the above manner, the version nature in the main version number of the system is determined based on the version nature in each sub-version number, and manual update of the version number is avoided, so the security performance of the system can be improved.
[0028] In a specific implementation scenario, the version properties in the sub-version numbers of each sub-module are traversed. When a temporary version is detected, the detection step is jumped and the version property of the system main version number is determined to be a temporary version. If all the sub-module sub-version numbers traversed do not include temporary versions and a R&D test version exists, the version property of the system main version number is determined to be a R&D test version. If all the sub-module sub-version numbers traversed do not include temporary versions and a R&D test version does not exist, the version property of the system main version number is determined to be a formal version.
[0029] In a specific implementation scenario, the system main version number includes the system project phase, version nature, compilation times, and sub-version numbers corresponding to all sub-modules. Specifically, a system contains three sub-modules. Based on the corresponding sub-module code base change records, the sub-version numbers of the three sub-modules are "A-Beta-3", "B-Alpha-2", and "B-RC-5". Alpha represents the R&D test version, Beta represents the temporary version, and RC represents the official version. A represents the low performance of the sub-module, and B represents the high performance of the sub-module. The system has been integrated and compiled twice, and this is the third integration compilation. Then the corresponding first main version number is "A-Beta-3-(A-Beta-3)-(B-Alpha-2)-(B-RC-5)". Through the above method, the main version number of the system is automatically generated based on the sub-version numbers of each sub-module. The upgrade status of each sub-version number can be reflected through the main version number, which can solve the problem of chaotic system management, so as to improve the security performance of the system.
[0030] Step S30: Based on whether the first major version number is consistent with the second major version number, determine whether to perform integrated compilation based on the code base of each sub-module in the system.
[0031] In one implementation scenario, when the first major version number is consistent with the second major version number, it indicates that the sub-module code base is consistent with the code base change record, and it is determined to perform integrated compilation based on the code base of each sub-module in the system, and use the first major version number or the second major version number as the current latest major version number of the system.
[0032] In another implementation scenario, when the first major version number is inconsistent with the second major version number, it indicates that the sub-module code base is inconsistent with the code base change record. At this time, integrated compilation is not performed on the code base of each sub-module, the current major version number is not updated, and the current major version number is maintained.
[0033] In a specific implementation scenario, when the first major version number is inconsistent with the second major version number, the integrated compilation process is stopped, and the generated first major version number and second major version number are cleared, and a prompt message is popped up in the form of a pop-up window to prompt relevant personnel that the process has an error, so as to prevent unexpected status of the integrated compilation and ensure the correctness of the system.
[0034] The above scheme obtains the code base and corresponding code base change records of each sub-module in the system respectively, updates the main version number of the current system based on the code base change records of each sub-module to obtain the first main version number, and updates the main version number of the current system based on the code base of each sub-module to obtain the second main version number. By comparing whether the first main version number and the second main version number are consistent, it is determined whether to perform integrated compilation based on the code base of each sub-module in the system, thereby avoiding unexpected situations during system integrated compilation, and automatically generates the corresponding first main version number and second main version number based on the code base and code base change record of the sub-module, thereby avoiding manual updating of the version number, thereby improving the security performance of the system.
[0035] See also Figure 2 , Figure 2 2 is a schematic diagram of a framework of an embodiment of the system management device 20 of the present application. Figure 2 As shown, the system management device 20 includes: a system acquisition module 21, an update acquisition module 22 and an integrated compilation module 23, wherein the system acquisition module 21 is used to obtain the code library and code library change records of each sub-module in the system; the update acquisition module 22 is used to update the current main version number of the system based on the code library change records of each sub-module in the system to obtain the first main version number of the system, and update the current main version number of the system based on the code library of each sub-module in the system to obtain the second main version number of the system; the integrated compilation module 23 is used to determine whether to perform integrated compilation based on the code library of each sub-module in the system based on whether the first main version number is consistent with the second main version number.
[0036] Therefore, by respectively obtaining the code base and the corresponding code base change record of each sub-module in the system, the main version number of the current system is updated based on the code base change record of each sub-module to obtain the first main version number, and the main version number of the current system is updated based on the code base of each sub-module to obtain the second main version number. By comparing whether the first main version number and the second main version number are consistent, it is determined whether to perform integrated compilation based on the code base of each sub-module in the system, thereby avoiding unexpected situations during system integrated compilation, and automatically generating the corresponding first main version number and second main version number based on the code base and code base change record of the sub-module, thereby avoiding manual updating of the version number, and thus improving the security performance of the system.
[0037] In some disclosed embodiments, the update acquisition module 22 also includes a first main version number acquisition sub-module, which is used to identify whether there are changes in the corresponding sub-module based on the code library change record of the sub-module; based on whether there are changes in each sub-module, determine whether to update the sub-version number of the corresponding sub-module in the current main version number to obtain the first main version number.
[0038] Therefore, based on the code library change record corresponding to the sub-module, it is identified whether the sub-module has been changed, and the sub-version number corresponding to each sub-module is obtained based on the change situation, and then the first main version number of the system is obtained based on each sub-version number, avoiding manual updating of the version number, thereby improving the security performance of the system.
[0039] In some disclosed embodiments, the update acquisition module 22 also includes a second main version number acquisition sub-module, which is used to identify whether there are changes to the corresponding sub-module based on the code library of the sub-module; and determine whether to update the sub-version number of the corresponding sub-module in the current main version number based on whether there are changes to each sub-module, so as to obtain the second main version number.
[0040] Therefore, based on the code library corresponding to the sub-module, it is identified whether there is any change in the sub-module, and based on the change situation, the sub-version number corresponding to each sub-module is obtained, and then the second main version number of the system is obtained based on each sub-version number, avoiding manual updating of the version number, thereby improving the security performance of the system.
[0041] In some disclosed embodiments, the update acquisition module 22 also includes a main version number determination submodule, which is used to determine the item stage and version property corresponding to the main version number based on the project stage and version property in the sub-version numbers of each sub-module, the project stage of the system is the project stage corresponding to the lowest performance in the sub-version numbers of each sub-module, and the version property of the system is determined based on the sub-version numbers of each sub-module; in response to the version property in the sub-version number of the sub-module in the system satisfying the first condition, the version property of the system is determined to be a temporary version; in response to the version property in the sub-version number of the sub-module in the system satisfying the second condition, the version property of the system is determined to be a formal version; in response to the version property in the sub-version number of the sub-module in the system satisfying neither the first condition nor the second condition, the version property of the system is determined to be a research and development test version; wherein the first condition includes: the version property in the sub-version number of at least one sub-module is a temporary version, and the second condition includes: the version property in the sub-version number of each sub-module in the system is a formal version.
[0042] Therefore, the version properties in the system main version number are determined based on the version properties in each sub-version number, avoiding manual updating of the version number, thereby improving the security performance of the system.
[0043] In some disclosed embodiments, the integrated compilation module 23 also includes a major version number update submodule, which is used to, in response to the first major version number and the second major version number being consistent, use the first major version number or the second major version number as the current latest major version number of the system; or in response to the first major version number and the second major version number being inconsistent, maintain the current major version number.
[0044] Therefore, the corresponding first major version number and second major version number are automatically generated based on the code base and code base change record of the sub-module, avoiding manual update of the version number, thereby improving the security performance of the system.
[0045] See also Figure 3 , Figure 3 The schematic diagram is a schematic diagram of a framework of an embodiment of a domain controller mainboard 30 of the present application. The domain controller mainboard 30 is integrated with an electronic control unit 31 for respectively running different submodules in the system, and the domain controller mainboard is used to implement the steps in any of the above system management method embodiments.
[0046] Specifically, the electronic control unit 31 is used to control itself to implement the steps in any of the above-mentioned system management method embodiments. The electronic control unit 31 may be an integrated circuit chip with signal processing capabilities. The electronic control unit 31 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. In addition, the electronic control unit 31 may be implemented by integrated circuit chips.
[0047] In one implementation scenario, a domain controller mainboard 30 integrates multiple electronic control units 31 (ECU, Electronic Control Unit). For example, in the automotive field, a domain controller 30 can simultaneously integrate VCU (Vehicular Communication Unit, vehicle-mounted communication device), BMS (Battery Management System, battery management system), MCU (Microcontroller Unit, micro control unit), etc.
[0048] In the above scheme, the domain controller mainboard 30 obtains the code base of each sub-module in the system and the corresponding code base change record respectively, updates the main version number of the current system based on the code base change record of each sub-module to obtain the first main version number, and updates the main version number of the current system based on the code base of each sub-module to obtain the second main version number, and determines whether to perform integrated compilation based on the code base of each sub-module in the system by comparing whether the first main version number and the second main version number are consistent, thereby avoiding unexpected situations during system integrated compilation, and automatically generates the corresponding first main version number and second main version number based on the code base of the sub-module and the code base change record, thereby avoiding manual update of the version number, thereby improving the security performance of the system.
[0049] See also Figure 4 , Figure 4 The figure is a schematic diagram of a framework of an embodiment of a computer-readable storage medium 40 of the present application. The computer-readable storage medium 40 stores program instructions 41 that can be executed by a processor, and the program instructions 41 are used to implement the steps in any of the above system management method embodiments.
[0050] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0051] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0052] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0053] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0054] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0055] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
Claims
1. A system management method, characterized in that: include: Get the code base and code base change records of each submodule in the system; The current major version number of the system is updated based on the code library change record of each submodule in the system to obtain the first major version number of the system, and the current major version number of the system is updated based on the code library of each submodule in the system to obtain the second major version number of the system; Based on whether the first major version number is consistent with the second major version number, it is determined whether to perform integrated compilation based on the code bases of the various sub-modules in the system.
2. The method according to claim 1, characterized in that The main version number at least includes the sub-version number of each sub-module, and the sub-version number of the sub-module is updated based on either the code base change record or the code base of the sub-module.
3. The method according to claim 2, characterized in that The sub-version number of the sub-module includes at least one of the project phase, version nature, and compilation times of the sub-module; The project stage represents the performance of the submodule, and the version nature is any one of a temporary version, a formal version, and a R&D test version.
4. The method according to claim 2 or 3, characterized in that: The updating of the current major version number of the system based on the code library change records of each of the submodules in the system to obtain the first major version number of the system includes: Based on the code base change record of the submodule, identifying whether there is a change corresponding to the submodule; Based on whether each submodule has been changed, it is determined whether to update the subversion number corresponding to the submodule in the current main version number to obtain the first main version number.
5. The method according to claim 2 or 3, characterized in that: The updating of the current major version number of the system based on the code base of each of the submodules in the system to obtain the second major version number of the system includes: Based on the code base of the submodule, identifying whether there is a change corresponding to the submodule; Based on whether each submodule has been changed, it is determined whether to update the subversion number corresponding to the submodule in the current main version number to obtain the second main version number.
6. The method according to claim 1 or 2, characterized in that: The major version number also includes at least one of the project phase, version nature, and compilation times of the system; The project stage of the system is the project stage corresponding to the lowest performance among the sub-version numbers of the sub-modules, and the version nature of the system is determined based on the sub-version numbers of the sub-modules.
7. The method according to claim 6, characterized in that The steps of determining the version property of the system include: In response to the version property in the sub-version number of the sub-module in the system satisfying a first condition, determining that the version property of the system is a temporary version; In response to the version property in the sub-version number of the sub-module in the system satisfying a second condition, determining that the version property of the system is a formal version; In response to the version property in the sub-version number of the sub-module in the system satisfying neither the first condition nor the second condition, determining that the version property of the system is a development test version; Among them, the first condition includes: the version nature in the sub-version number of at least one of the sub-modules is a temporary version, and the second condition includes: the version nature in the sub-version number of each of the sub-modules in the system is a formal version.
8. The method according to claim 1, characterized in that After determining whether to perform integrated compilation based on the code bases of the various submodules in the system based on whether the first major version number is consistent with the second major version number, the method further includes at least one of the following: In response to the first major version number being consistent with the second major version number, using the first major version number or the second major version number as the current latest major version number of the system; In response to the first major version number being inconsistent with the second major version number, maintaining the current major version number.
9. A domain controller mainboard, characterized in that: An electronic control unit is integrated for respectively operating different sub-modules in the system, and the domain controller mainboard is used to implement the system management method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and the computer program can be executed by a processor to implement the system management method according to any one of claims 1 to 8.
