Motherboard version updating method, electronic device, and storage medium
Patent Information
- Application Number
- CN202610636687.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-09
- Publication Date
- 2026-09-01
AI Technical Summary
相关技术中,通常通过人工从海量的版本信息中筛选相应的版本变更,不仅效率低下,对于一些特殊的服务器主板,特别是包含主卡和副卡的组合卡架构主板,该组合卡架构主板中的主卡和副卡通常被当作独立的部分分开处理,忽略了主副卡版本更新之间的强关联性,存在一定的准确性问题
[0014]本申请中,获取待调整主板当前的总版本信息,其中,待调整主板包括第一板卡和第二板卡,总版本信息包括第一板卡的第一版本信息和第二板卡的第二版本信息;第一版本信息包括第一前缀信息和第一后缀信息,第二版本信息包括第二前缀信息和第二后缀信息;基于第一前缀信息、第二前缀信息、第一后缀信息和第二后缀信息,从预先设定的版本更新信息集中筛选与待调整主板适配的目标更新信息;基于目标更新信息,对待调整主板进行版本更新。与相关技术相比,本申请将待调整主板的第一板卡和第二板卡看作统一的整体同步进行目标更新信息的确定,而不是将第一板卡和第二板卡看作独立的两部分分别进行数据处理,能够保持两个板卡之间的强关联性,降低数据处理难度,提高数据处理的准确性。除此之外,本申请不需要借助人工进行目标更新信息的手动筛选,而是通过两个板卡的前后缀信息自动化进行筛选,能够提高整体的工作效率。
Smart Images

Figure CN122672811A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more particularly to a method for updating a motherboard version, an electronic device, and a storage medium. Background Technology
[0002] To improve server motherboard quality, factories typically perform multiple version updates periodically. For motherboards already manufactured, it's crucial to accurately identify all applicable version changes since the motherboard's production and then upgrade it to the latest version. Currently, related technologies often involve manually sifting through massive amounts of version information to find the relevant changes. This is not only inefficient, but also problematic for some specialized server motherboards, particularly those with a combined card architecture (primary and secondary cards). In these cases, the primary and secondary cards are often treated as independent components, ignoring the strong correlation between their version updates and leading to accuracy issues. Summary of the Invention
[0003] This application provides a method for updating a motherboard version, an electronic device, and a storage medium to at least solve the above-mentioned technical problems existing in the prior art.
[0004] A first aspect of this application provides a method for updating a motherboard version, the method comprising: Obtain the current total version information of the motherboard to be adjusted. The motherboard to be adjusted includes a first board and a second board. The total version information includes the first version information of the first board and the second version information of the second board. The first version information includes the first prefix information and the first suffix information. The second version information includes the second prefix information and the second suffix information. Based on the first prefix information, the second prefix information, the first suffix information, and the second suffix information, target update information that is compatible with the motherboard to be adjusted is filtered from a pre-set set of version update information. Based on the target update information, update the version of the motherboard to be adjusted.
[0005] In one possible implementation, based on the first prefix information, the second prefix information, the first suffix information, and the second suffix information, target update information compatible with the motherboard to be adjusted is filtered from a pre-defined set of version update information, including: Based on the first and second prefix information, candidate update information is filtered from the version update information set; Based on the first suffix information and the second suffix information, the target update information is filtered from the candidate update information.
[0006] In one possible implementation, after updating the motherboard to be adjusted based on the target update information, the method further includes: Based on a variety of preset test cases, the performance of the motherboard to be adjusted after the version update is tested. In response to the performance test results indicating an anomaly in the motherboard to be adjusted, the anomaly type of the motherboard to be adjusted is determined based on the category of the test cases that detected the anomaly, and the performance of the motherboard to be adjusted is adjusted based on the anomaly type.
[0007] In one possible implementation, each pre-defined version update information includes a third prefix; based on the first prefix and the second prefix, candidate update information is filtered from the version update information set, including: The third prefix information of each version update information is compared with the first prefix information and the second prefix information respectively. When the third prefix information is consistent with the first prefix information, the version update information corresponding to the third prefix information is taken as the first update information. When the third prefix information is the same as the second prefix information, the version update information corresponding to the third prefix information is used as the second update information; The union of the first update information and the second update information is taken as the candidate update information in the version update information.
[0008] In one possible implementation, each candidate update information includes a third suffix; based on the first and second suffix information, the target update information is filtered from the candidate update information, including: Determine the information types of the first suffix information, the second suffix information, and each third suffix information respectively; When the information type represents a character type, the corresponding suffix information is converted into the target encoding; Based on the target encoding, the target update information is determined from the candidate update information.
[0009] In one possible implementation, determining the target update information from the candidate update information based on the target encoding includes: Determine the multi-base value of the target code corresponding to each suffix information; The multi-base value corresponding to the third suffix information of each candidate update information is compared with the multi-base value corresponding to the first suffix information and the multi-base value corresponding to the second suffix information respectively. When the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the first suffix information, the candidate update information corresponding to the third suffix information is taken as the third update information. When the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the second suffix information, the candidate update information corresponding to the third suffix information is used as the fourth update information. The union of the third and fourth update information is taken as the target update information.
[0010] In one possible implementation, the update information for each target includes the update date, update location, update part number, and update action; Based on the target update information, the motherboard to be adjusted will be updated, including: For each update part number at each update position, the update actions for the update part number at each update position are traversed in ascending order of update date. When there are two update actions with adjacent traversal order that are inverse operations of each other, the inverse update actions are deleted to obtain the target operation set for the update part number at the update position. Based on the target operation set for updating part numbers at each update location, the motherboard to be adjusted is updated.
[0011] In one possible implementation, the inverse update actions are as follows: when the current state of the updated part number after performing the first action and the second action is the same as the initial state of the updated part number before performing the first action and the second action, the first action and the second action are inverse operations.
[0012] According to a second aspect of this application, an electronic device is provided, comprising: At least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by at least one processor, which enables the at least one processor to perform the method of this application.
[0013] According to a third aspect of this application, a non-transitory computer-readable storage medium is provided that stores computer instructions for causing a computer to execute the method of this application.
[0014] In this application, the current total version information of the motherboard to be adjusted is obtained. The motherboard to be adjusted includes a first board and a second board. The total version information includes the first version information of the first board and the second version information of the second board. The first version information includes a first prefix and a first suffix, and the second version information includes a second prefix and a second suffix. Based on the first prefix, second prefix, first suffix, and second suffix, target update information compatible with the motherboard to be adjusted is filtered from a pre-defined set of version update information. Based on the target update information, the motherboard to be adjusted is updated. Compared with related technologies, this application treats the first and second boards of the motherboard to be adjusted as a unified whole and synchronously determines the target update information, rather than treating the first and second boards as two independent parts for separate data processing. This maintains a strong correlation between the two boards, reduces the difficulty of data processing, and improves the accuracy of data processing. Furthermore, this application eliminates the need for manual filtering of target update information; instead, it automates the filtering using the prefix and suffix information of the two boards, improving overall work efficiency.
[0015] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description
[0016] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of this application are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
[0017] Figure 1 A schematic diagram illustrating the implementation flow of the motherboard version update method according to an embodiment of this application is shown; Figure 2 This illustration shows a flowchart of the process for determining target update information according to an embodiment of this application; Figure 3 This paper shows a schematic diagram of the composition structure of the motherboard version update device according to an embodiment of this application; Figure 4 A schematic diagram of the composition structure of an electronic device according to an embodiment of this application is shown. Detailed Implementation
[0018] To make the objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] This application provides a method for updating a motherboard version. This method can be applied to electronic devices, such as PCs, servers, etc. Figure 1 , Figure 2 As shown, the method includes: S101: The electronic device obtains the current total version information of the motherboard to be adjusted, wherein the motherboard to be adjusted includes a first board and a second board, the total version information includes the first version information of the first board and the second version information of the second board; the first version information includes the first prefix information and the first suffix information, and the second version information includes the second prefix information and the second suffix information; In this embodiment, the motherboard to be adjusted is a combined card architecture motherboard, which includes a main card (i.e., the first board) and a secondary card (i.e., the second board). The system reads the total version information of the motherboard to be adjusted, which includes both the first version information of the first board and the second version information of the second board. The version information of both the first and second boards consists of a prefix and a suffix. The prefix information includes the product number, and the suffix information includes the version number. For example, if the product number of the first board is 001 and the version number is 003, it means that the current version of the first board with the product number 001 is the third version.
[0020] S102: The electronic device filters target update information that is compatible with the motherboard to be adjusted from a pre-set set of version update information based on the first prefix information, the second prefix information, the first suffix information, and the second suffix information. This step retrieves pre-defined version update information for the motherboard from the factory's version update records. This information comprises a vast amount of update data for all motherboards in the factory, including the motherboard to be adjusted. The version update information specifically includes the update time, the updated version (e.g., V1, V2), and the update content (e.g., changes, additions, or deletions of motherboard components). The motherboard to be adjusted is the one requiring a version update.
[0021] Specifically, based on the first prefix information and the second prefix information, version update information of the same series as the motherboard to be adjusted can be determined from the pre-set version update information. Then, based on the first suffix information and the second suffix information, version update information with a version number higher than the current version of the motherboard to be adjusted can be determined from the version update information of the same series, and this version update information can be used as the final target update information.
[0022] S103: The electronic device updates the motherboard to be adjusted based on the target update information.
[0023] In this step, after determining the target update information, the motherboard to be adjusted is updated according to the update data included in the target update information. Both the first and second motherboard boards are upgraded to the corresponding latest versions, resulting in an updated motherboard. For example, if the current version of the first motherboard board is version 3, and its latest version is version 5, and there are two target update information entries: one for updates from version 3 to version 4, and the other for updates from version 4 to version 5, then the first motherboard board is first upgraded from version 3 to version 4, and then from version 4 to version 5, based on the target update information.
[0024] In the scheme shown in steps S101-S103, the current total version information of the motherboard to be adjusted is obtained. The motherboard to be adjusted includes a first board and a second board. The total version information includes the first version information of the first board and the second version information of the second board. The first version information includes a first prefix and a first suffix, and the second version information includes a second prefix and a second suffix. Based on the first prefix, second prefix, first suffix, and second suffix, target update information compatible with the motherboard to be adjusted is filtered from a pre-set set of version update information. Based on the target update information, the motherboard to be adjusted is updated. Compared with related technologies, this application treats the first and second boards of the motherboard to be adjusted as a unified whole and synchronously determines the target update information, rather than treating the first and second boards as two independent parts for separate data processing. This maintains a strong correlation between the two boards, reduces the difficulty of data processing, and improves the accuracy of data processing. Furthermore, this application eliminates the need for manual filtering of target update information; instead, it automatically filters using the prefix and suffix information of the two boards, improving overall work efficiency.
[0025] In some optional solutions, based on the first prefix information, the second prefix information, the first suffix information, and the second suffix information, target update information compatible with the motherboard to be adjusted is filtered from a pre-defined set of version update information, including: Based on the first and second prefix information, candidate update information is filtered from the version update information set; Based on the first suffix information and the second suffix information, the target update information is filtered from the candidate update information.
[0026] In this application, to determine suitable update information for the motherboard to be adjusted from a massive amount of version update information, one optional solution is to filter update information that is related to the first and second boards of the motherboard to be adjusted using first and second prefix information as candidate update information. Specifically, "related to the same origin" can be understood as "from the same series." Update information from the massive amount of version update information that is from the same series as the first and second boards can be determined separately. For example, information containing the first prefix information of the first board can be used as candidate update information, and information containing the second prefix information of the second board can be used as candidate update information.
[0027] It is understandable that the obtained candidate update information is information from the same source as the first and second motherboards to be adjusted. However, the candidate update information includes all version change information for the first and second motherboards. In other words, the candidate update information includes both versions lower than the current versions of the first and second motherboards, and versions equal to or higher than the current versions of the first and second motherboards. For example, the candidate update information includes update information for the first motherboard from version 1 to version 7, while the current version of the first motherboard is version 3. Version 3 is a version that has been optimized and iterated from versions 1 and 2. Therefore, there is invalid update information in the candidate update information. The target update information is the valid update information in the candidate update information. Specifically, the target update information is the information in the candidate update information whose version number is higher than the version represented by the suffix information of the current first motherboard and the version represented by the suffix information of the second motherboard.
[0028] In some alternative solutions, after updating the motherboard to be adjusted based on the target update information, the method also includes: Based on a variety of preset test cases, the performance of the motherboard to be adjusted after the version update is tested. In response to the performance test results indicating an anomaly in the motherboard to be adjusted, the anomaly type of the motherboard to be adjusted is determined based on the category of the test cases that detected the anomaly, and the performance of the motherboard to be adjusted is adjusted based on the anomaly type.
[0029] In this application, upgrading the motherboard to the latest version overcomes performance issues caused by outdated versions. Then, various pre-prepared test cases for motherboard performance testing are loaded, including load stress tests, power consumption tests, temperature tests, etc. Executing these test cases performs performance testing on the motherboard. If a test fails during execution, it indicates a potential motherboard anomaly. The type of anomaly is determined by the type of the failed test case, such as load stress anomaly, power consumption anomaly, temperature anomaly, etc. Based on different anomaly types, corresponding adjustment strategies are loaded to adjust the motherboard's performance and ensure it functions correctly.
[0030] In this application, the motherboard's anomaly type depends on the test type of the abnormal test cases. For example, multiple types of test cases are used to test the motherboard, including load stress testing, power consumption testing, and temperature testing. By executing each type of test case sequentially or in parallel, when a test case fails during testing, the test type corresponding to that test case is the motherboard's anomaly type. The motherboard may have one or multiple anomaly types. For example, if both power consumption and temperature test cases fail during testing, the motherboard's anomaly type is the power consumption test anomaly type and the temperature test anomaly type. By establishing a direct mapping relationship between the motherboard's anomaly type and the test case type, accurate and automatic determination of the motherboard's anomaly type can be achieved. This allows for fault root cause localization without manual intervention, significantly improving the efficiency, accuracy, and comprehensiveness of fault diagnosis, and providing clear improvement directions for subsequent repairs or design optimizations.
[0031] In some optional schemes, each pre-defined version update information includes a third prefix; based on the first and second prefix information, candidate update information is filtered from the version update information set, including: The third prefix information of each version update information is compared with the first prefix information and the second prefix information respectively. When the third prefix information is consistent with the first prefix information, the version update information corresponding to the third prefix information is taken as the first update information. When the third prefix information is the same as the second prefix information, the version update information corresponding to the third prefix information is used as the second update information; The union of the first update information and the second update information is taken as the candidate update information in the version update information.
[0032] Combination Figure 2As shown, in this application, each version update information also includes (third) prefix information and (third) suffix information. To filter out suitable candidate update information for the motherboard to be adjusted from a massive amount of version update information, this embodiment compares the third prefix information of all version update information with the first prefix information. If the third prefix information matches the first prefix information, the version update information corresponding to the third prefix information is used as the first update information for the first board. Simultaneously, the third prefix information of all version update information is compared with the second prefix information. If the third prefix information matches the second prefix information, the version update information corresponding to the third prefix information is used as the second update information for the second board. That is, the first update information is the version update information corresponding to the first board, and the second update information is the version update information corresponding to the second board. The union of the first update information and the second update information is used as the candidate update information for the motherboard to be adjusted. This embodiment utilizes prefix matching to quickly filter out useless information in version update information, rapidly locating target information that is related to the first and second boards from a massive amount of version update information. It transforms global search into targeted filtering, significantly reducing the amount of data processing. Furthermore, by integrating the first and second update information through union operation, it can obtain a set of candidate update information for multiple boards at once, improving efficiency while maintaining the strong correlation between the first and second boards to ensure accuracy.
[0033] In some alternative schemes, each candidate update information includes a third suffix; based on the first and second suffix information, the target update information is filtered from the candidate update information, including: Determine the information types of the first suffix information, the second suffix information, and each third suffix information respectively; When the information type represents a character type, the corresponding suffix information is converted into the target encoding; Based on the target encoding, the target update information is determined from the candidate update information.
[0034] Combination Figure 2As shown in the preceding description, the candidate update information in this application only filters out update information for the first and second boards, which may include some invalid information. Therefore, this embodiment further filters out invalid information from the candidate update information using suffix information to obtain the target update information for the motherboard to be adjusted. Specifically, each suffix information is parsed and identified. If the identification result indicates that the suffix information is a character type, the characters in the suffix information are uniformly converted into target codes, specifically ASCII codes, for easy filtering. The target update information is then determined from the candidate update information based on the ASCII codes corresponding to each character. This eliminates calculation errors caused by differences in character case, special symbols, and other formatting, facilitating rapid comparison calculations through numerical encoding and improving filtering efficiency. For the specific process of determining the target update information based on the target code, please refer to the detailed description in the relevant sections below, which will not be repeated here.
[0035] In some alternative schemes, the target update information in the candidate update information is determined based on the target encoding, including: Determine the multi-base value of the target code corresponding to each suffix information; The multi-base value corresponding to the third suffix information of each candidate update information is compared with the multi-base value corresponding to the first suffix information and the multi-base value corresponding to the second suffix information respectively. When the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the first suffix information, the candidate update information corresponding to the third suffix information is taken as the third update information. When the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the second suffix information, the candidate update information corresponding to the third suffix information is used as the fourth update information. The union of the third and fourth update information is taken as the target update information.
[0036] Combination Figure 2As shown in this application, the target codes, such as the aforementioned ASCII codes, all have corresponding multi-base values, such as decimal values. Since the suffix information may include two or more target codes, this embodiment uses the sum of the decimal values corresponding to each target code in the suffix information as the decimal value corresponding to that suffix information. The decimal values corresponding to each third suffix information are compared with the decimal values corresponding to the first suffix information and the second suffix information, respectively. The candidate update information corresponding to the third suffix information whose decimal value is greater than the decimal value of the first suffix information is used as the update information for the first board, i.e., the third update information. The candidate update information corresponding to the third suffix information whose decimal value is greater than the decimal value of the second suffix information is used as the update information for the second board, i.e., the fourth update information. The union of the third update information and the fourth update information constitutes the target update information. This embodiment utilizes the summation of ASCII decimal values to convert character suffixes into quantifiable and comparable numerical forms. This allows the system to automatically filter out applicable update content for the motherboard to be adjusted through simple numerical comparison. Simultaneously, for scenarios where the primary and secondary cards work collaboratively in a combo card architecture, the suffix values of candidate update information are independently compared with the first suffix information of the primary card and the second suffix information of the secondary card to generate corresponding third and fourth update information. A union operation is then used to form a unified target update information set. This ensures the accuracy of version tracing for both the primary and secondary cards while achieving holistic information integration of the combo card as a unified maintenance unit. This avoids the information fragmentation problem caused by traditional separate processing and improves the accuracy of data processing.
[0037] In some optional solutions, the update information for each target includes the update date, update location, update part number, and update action; Based on the target update information, the motherboard to be adjusted will be updated, including: For each update part number at each update position, the update actions for the update part number at each update position are traversed in ascending order of update date. When there are two update actions with adjacent traversal order that are inverse operations of each other, the inverse update actions are deleted to obtain the target operation set for the update part number at the update position. Based on the target operation set for updating part numbers at each update location, the motherboard to be adjusted is updated.
[0038] Furthermore, in some alternative schemes, the inverse update actions are as follows: when the current state of the updated part number after performing the first action and the second action is the same as the initial state of the updated part number before performing the first action and the second action, the first action and the second action are inverse operations.
[0039] In this embodiment, the target update information includes the update date, update location, update part number, and update action. For example, the target update information could be: Update Date: March 11, 2019; Update Location: Mainboard Location A; Update Part Number: 005; Update Action: Add. This target update information indicates that a component with part number 005 was added to location A on the mainboard on March 11, 2019. Considering that in multiple target update messages, there might be inverse update actions for the same component at the same location on the mainboard, such as the previous update adding a component with part number 005 at location A, but the next update deleting a component with part number 005 at location A, it's equivalent to location A not having a component with part number 005 after the two executions, remaining the same as the initial state before the update, which is equivalent to two invalid operations.
[0040] Considering that updating the motherboard to be adjusted sequentially according to each target update information might result in multiple invalid and redundant operations, this embodiment records each target update information independently in the form of update date-update location-update part number-update action. Grouping is done using update location-update part number as the unique key, with each group including all update operations performed on the same material at the same location. For each group, i.e., the update part number at each update location, the update actions for the update part number at each update location are traversed sequentially in ascending order of update date. When two adjacent update actions in the traversal order are inverse operations, they are deleted, resulting in the target operation set for the update part number at each update location. This means that for each part number at each location, two adjacent inverse update actions can cancel each other out and have no impact on the final state, so they can be removed. The remaining update actions are those that can cause a state change, constituting the target operation set for each update part number at each update location. The target operation set is to compress the lengthy operation history into the shortest set of operations pointing to the final state, thereby avoiding invalid operations and improving overall efficiency.
[0041] This application also provides a motherboard version update device, such as... Figure 3 As shown, the device includes: The first acquisition unit 301 is used to acquire the current total version information of the motherboard to be adjusted. The motherboard to be adjusted includes a first board and a second board. The total version information includes the first version information of the first board and the second version information of the second board. The first version information includes the first prefix information and the first suffix information. The second version information includes the second prefix information and the second suffix information. The second acquisition unit 302 is used to filter target update information that is compatible with the motherboard to be adjusted from a pre-set set of version update information based on the first prefix information, the second prefix information, the first suffix information and the second suffix information. The third acquisition unit 303 is used to update the version of the motherboard to be adjusted based on the target update information.
[0042] In some alternative schemes, the second acquisition unit 302 is used to filter candidate update information from the version update information set based on the first prefix information and the second prefix information; and to filter target update information from the candidate update information based on the first suffix information and the second suffix information.
[0043] In some alternative solutions, the device also includes: The adjustment unit is used to perform performance testing on the motherboard to be adjusted after the version update based on multiple preset test cases; in response to the performance test results indicating that there is an anomaly on the motherboard to be adjusted, it determines the anomaly type of the motherboard to be adjusted based on the category of the test cases that detected the anomaly, and adjusts the performance of the motherboard to be adjusted based on the anomaly type.
[0044] In some optional schemes, each pre-set version update information includes a third prefix information; the second acquisition unit 302 is used to compare the third prefix information of each version update information with the first prefix information and the second prefix information respectively. When the third prefix information is consistent with the first prefix information, the version update information corresponding to the third prefix information is taken as the first update information; when the third prefix information is consistent with the second prefix information, the version update information corresponding to the third prefix information is taken as the second update information; the union of the first update information and the second update information is taken as the candidate update information in the version update information.
[0045] In some alternative schemes, each candidate update information includes a third suffix information; the second acquisition unit 302 is used to determine the information type of the first suffix information, the second suffix information and each third suffix information respectively; when the information type represents a character type, the corresponding suffix information is converted into a target code; based on the target code, the target update information in the candidate update information is determined.
[0046] In some optional schemes, the second acquisition unit 302 is used to determine the multi-base value of the target code corresponding to each suffix information; compare the multi-base value corresponding to the third suffix information of each candidate update information with the multi-base value corresponding to the first suffix information and the multi-base value corresponding to the second suffix information respectively; when the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the first suffix information, the candidate update information corresponding to the third suffix information is taken as the third update information; when the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the second suffix information, the candidate update information corresponding to the third suffix information is taken as the fourth update information; and the union of the third update information and the fourth update information is taken as the target update information.
[0047] In some optional solutions, the update information for each target includes the update date, update location, update part number, and update action; The third acquisition unit 303 is used to iterate through the update actions for the update part numbers at each update position in ascending order of update date. When there are two update actions with adjacent traversal orders that are inverse operations, the inverse update actions are deleted to obtain the target operation set for the update part numbers at each update position. Based on the target operation set for the update part numbers at each update position, the motherboard to be adjusted is updated.
[0048] In some alternative schemes, the inverse update actions are as follows: when the current state of the updated part number after performing the first action and the second action is the same as the initial state of the updated part number before performing the first action and the second action, the first action and the second action are inverse operations.
[0049] It should be noted that the motherboard version update device in this application embodiment solves the problem in a similar way to the aforementioned motherboard version update method. Therefore, the implementation process, implementation principle, and beneficial effects of the motherboard version update device can be found in the description of the implementation process, implementation principle, and beneficial effects of the aforementioned method, and will not be repeated.
[0050] According to embodiments of this application, this application also provides an electronic device and a readable storage medium.
[0051] Figure 4 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of this application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0052] like Figure 4As shown, device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.
[0053] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0054] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as a motherboard version update method. For example, in some embodiments, the motherboard version update method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the motherboard version update method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the motherboard version update method by any other suitable means (e.g., by means of firmware).
[0055] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0056] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0057] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0058] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0059] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0060] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0061] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.
[0062] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0063] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for updating a motherboard version, characterized in that, The method includes: Obtain the current total version information of the motherboard to be adjusted, wherein the motherboard to be adjusted includes a first board and a second board, and the total version information includes the first version information of the first board and the second version information of the second board; the first version information includes a first prefix information and a first suffix information, and the second version information includes a second prefix information and a second suffix information; Based on the first prefix information, the second prefix information, the first suffix information, and the second suffix information, target update information that is compatible with the motherboard to be adjusted is filtered from a pre-set set of version update information. Based on the target update information, the motherboard to be adjusted is updated.
2. The motherboard version update method according to claim 1, characterized in that, The step of filtering target update information compatible with the motherboard to be adjusted from a pre-defined set of version update information based on the first prefix information, the second prefix information, the first suffix information, and the second suffix information includes: Based on the first prefix information and the second prefix information, candidate update information is filtered from the version update information set; Based on the first suffix information and the second suffix information, target update information is filtered from candidate update information.
3. The motherboard version update method according to claim 1, characterized in that, After updating the motherboard to be adjusted based on the target update information, the method further includes: Based on a variety of preset test cases, the performance of the motherboard to be adjusted after the version update is tested. In response to the performance test results indicating an anomaly in the motherboard to be adjusted, the anomaly type of the motherboard to be adjusted is determined based on the category of the test cases that detected the anomaly, and the performance of the motherboard to be adjusted is adjusted based on the anomaly type.
4. The motherboard version update method according to claim 2, characterized in that, Each pre-defined version update information includes a third prefix; the step of filtering candidate update information from the version update information set based on the first prefix information and the second prefix information includes: The third prefix information of each version update information is compared with the first prefix information and the second prefix information respectively. When the third prefix information is consistent with the first prefix information, the version update information corresponding to the third prefix information is taken as the first update information. When the third prefix information is consistent with the second prefix information, the version update information corresponding to the third prefix information is used as the second update information; The union of the first update information and the second update information is taken as the candidate update information in the version update information.
5. The motherboard version update method according to claim 2 or 4, characterized in that, Each candidate update information includes a third suffix; the step of filtering target update information from candidate update information based on the first suffix information and the second suffix information includes: Determine the information types of the first suffix information, the second suffix information, and each third suffix information respectively; When the information type represents a character type, the corresponding suffix information is converted into the target encoding; Based on the target encoding, the target update information is determined from the candidate update information.
6. The motherboard version update method according to claim 5, characterized in that, The step of determining the target update information from the candidate update information based on the target encoding includes: Determine the multi-base value of the target code corresponding to each suffix information; The multi-base value corresponding to the third suffix information of each candidate update information is compared with the multi-base value corresponding to the first suffix information and the multi-base value corresponding to the second suffix information. When the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the first suffix information, the candidate update information corresponding to the third suffix information is taken as the third update information. When the multi-base value corresponding to the third suffix information is greater than the multi-base value corresponding to the second suffix information, the candidate update information corresponding to the third suffix information is used as the fourth update information. The union of the third and fourth update information is taken as the target update information.
7. The motherboard version update method according to claim 1, characterized in that, The update information for each target includes the update date, update location, update part number, and update action; The step of updating the motherboard to be adjusted based on the target update information includes: For each updated part number at each updated position, the update actions for the updated part number at each updated position are traversed in ascending order of update date. When there are two update actions with adjacent traversal orders that are inverse operations of each other, the inverse update actions are deleted to obtain the target operation set for the updated part number at the updated position. Based on the target operation set for updating part numbers at each update location, the motherboard to be adjusted is updated.
8. The motherboard version update method according to claim 7, characterized in that, The inverse update actions are as follows: when the current state of the updated part number after performing the first action and the second action is the same as the initial state of the updated part number before performing the first action and the second action, the first action and the second action are inverse operations.
9. An electronic device, characterized in that, include: At least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-8.