Method, apparatus, storage medium and electronic device for selecting update of entry

CN116860345BActive Publication Date: 2026-10-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310904614.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2026-10-20
Estimated Expiration
2043-07-21

AI Technical Summary

Technical Problem

[0005]本申请实施例提供了一种选择条目的更新方法、装置、存储介质及电子装置,以至少解决相关技术中对基本输入输出系统的选择条目的设置方式效率低的问题

Benefits of technology

[0019]通过本申请,由于根据目标对象的第一操作指令确定基本输入输出系统的第一选择条目,以及确定是否存在所述第一选择条目对应的目标更新规则,其中,所述第一操作指令用于指示目标对象对所述第一选择条目的搜索操作;当存在所述第一选择条目对应的目标更新规则时,根据第一选择条目对应的目标更新规则确定待更新的第二选择条目,以及确定所述第二选择条目对应的待更新的选择条目值,其中,所述第二操作指令用于指示目标对象对所述第一选择条目的编辑操作;将所述第二选择条目和所述第二选择条目对应的待更新的选择条目值存储至目标存储器,以使所述基本输入输出系统在所述目标存储器中获取所述第二选择条目和所述第二选择条目对应的待更新的选择条目值,并根据所述选择条目值对所述第二选择条目进行更新。因此,可以解决现有技术中对基本输入输出系统的选择条目的设置方式效率低的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860345B_ABST
    Figure CN116860345B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a selection entry updating method and device, a storage medium and an electronic device, wherein the method comprises: determining a first selection entry of a basic input output system according to a first operation instruction of a target object, determining whether a target updating rule corresponding to the first selection entry exists; if the target updating rule exists, determining a second selection entry to be updated according to the target updating rule and a second operation instruction, and determining a selection entry value to be updated corresponding to the second selection entry; storing the second selection entry and the selection entry value to be updated corresponding to the second selection entry to a target storage, so that the basic input output system acquires the second selection entry and the selection entry value to be updated corresponding to the second selection entry, and updates the second selection entry according to the selection entry value. Through the present application, the problem of low efficiency of the setting mode of the selection entry of the basic input output system in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a method, apparatus, storage medium, and electronic device for updating selected items. Background Technology

[0002] With the rapid development of the internet, the role of servers in the internet is irreplaceable. As part of the server system, the Basic Input / Output System (BIOS) is becoming increasingly important for the normal operation of the server, and its flexible settings and display functions are crucial. Currently, BIOS settings can be modified by sending Intelligent Platform Management Interface (IPMI) commands. This method maintains a table in the code and can only modify the contents of the table, which has significant limitations. Adding a new setting requires recompiling and releasing the new version, which is labor-intensive and inefficient. Another drawback of this method is that only one setting can be modified at a time. If multiple BIOS settings need to be updated, multiple IPMI commands need to be sent, and the result (success or failure) cannot be known after the setting is completed. A restart is required to check whether the setting was successful.

[0003] In related technologies, the method of restarting the computer and accessing the BIOS settings interface via KVM or an external monitor by pressing a hotkey overcomes some of the drawbacks of using IPMI commands to set BIOS options. However, this method also has its inherent limitations: First, if the computer is already powered on, a restart and pressing the hotkey to enter the settings interface are required. Second, the interface is relatively basic, with each setting option typically having many levels, making it difficult to pinpoint the specific level of the desired option. This necessitates navigating through numerous levels, a tedious process. Third, the interface only supports basic setting functions and does not support searching for setting names or custom rule settings. For example, when setting multiple option values, one must search for the target option within each category level, resulting in low efficiency.

[0004] Therefore, the problem of low efficiency in setting selection items for basic input / output systems in existing technologies has not been effectively solved. Summary of the Invention

[0005] This application provides a method, apparatus, storage medium, and electronic device for updating selection items, to at least solve the problem of low efficiency in setting selection items for basic input / output systems in related technologies.

[0006] According to one embodiment of this application, a method for updating a selection item is provided, comprising: determining a first selection item of a basic input / output system based on a first operation instruction of a target object, and determining whether a target update rule corresponding to the first selection item exists, wherein the first operation instruction is used to instruct the target object to perform a search operation on the first selection item; if a target update rule corresponding to the first selection item exists, determining a second selection item to be updated based on the target update rule and a second operation instruction, and determining a selection item value to be updated corresponding to the second selection item, wherein the second operation instruction is used to instruct the target object to perform an editing operation on the first selection item; storing the second selection item and the selection item value to be updated corresponding to the second selection item in a target memory, so that the basic input / output system obtains the second selection item and the selection item value to be updated corresponding to the second selection item in the target memory, and updates the second selection item according to the selection item value.

[0007] In an exemplary embodiment, determining a second selection item to be updated according to the target update rule and the second operation instruction, and determining the selection item value to be updated corresponding to the second selection item, includes: determining a first selection item and a first selection item value to be updated corresponding to the first selection item according to the second operation instruction, and determining a third selection item and a second selection item value to be updated corresponding to the third selection item according to the target update rule and the first selection item value, wherein the target update rule indicates that if the selection item value of the first selection item is updated to the first selection item value, the selection item value of the third selection item is updated to the second selection item value, and the second selection item includes: the first selection item and the third selection item.

[0008] In an exemplary embodiment, determining a second selection item to be updated according to the target update rule and the second operation instruction, and determining the selection item value to be updated corresponding to the second selection item, includes: determining a first selection item and a first selection item value to be updated corresponding to the first selection item according to the second operation instruction, and determining a fourth selection item according to the target update rule, wherein the target update rule indicates that the selection item value of the fourth selection item is updated when the selection item value of the first selection item is updated to the first selection item value, and the second selection item includes: the first selection item and the fourth selection item; receiving a third operation instruction from a target object, and determining the fourth selection item and a third selection item value to be updated corresponding to the fourth selection item according to the third operation instruction, wherein the third operation instruction is used to instruct the target object to perform an editing operation on the fourth selection item.

[0009] In an exemplary embodiment, determining a second selection item to be updated according to the target update rule and the second operation instruction, and determining the selection item value to be updated corresponding to the second selection item, includes: determining a first selection item and a first selection item value to be updated corresponding to the first selection item according to the second operation instruction, and determining a fifth selection item according to the target update rule, wherein the target update rule indicates that updating the selection item value of the fifth selection item is prohibited when the selection item value of the first selection item is updated to the first selection item value; receiving a fourth operation instruction from the target object, and determining a sixth selection item and a fourth selection item value to be updated corresponding to the sixth selection item according to the fourth operation instruction, wherein the fourth operation instruction is used to instruct the target object to perform an editing operation on the sixth selection item, and the second selection item includes: the first selection item and the sixth selection item.

[0010] In one exemplary embodiment, storing the second selection entry and its corresponding value to be updated in a target memory includes: writing the second selection entry and its value to a target format file, and writing a first character to the update flag bit of the target format file, wherein the first character indicates that the target format file has been updated; storing the target format file with the update flag in the target memory, so that the basic input / output system can retrieve the target format file from the target memory and update the second selection entry according to the selection entry value in the target format file; when the basic input / output system updates the second selection entry according to the update flag and the selection entry value in the target format file, obtaining a prompt message sent by the basic input / output system; when the prompt message indicates that the basic input / output system has successfully updated, writing a second character to the update flag bit of the target format file according to the prompt message, wherein the second character indicates that the target format file has not been updated; when the prompt message indicates that the basic input / output system has not successfully updated, prohibiting modification of the characters in the update flag bit of the target format file.

[0011] In one exemplary embodiment, before determining a first selection item of the basic input / output system based on a first operation instruction of the target object, the method further includes: acquiring historical update information of the basic input / output system; determining the update count of the updated selection item based on the historical update information; and determining a recommended updated selection item of the basic input / output system based on the update count.

[0012] In an exemplary embodiment, determining whether there exists a target update rule corresponding to the first selection item includes: obtaining a plurality of update rules containing the first selection item; determining a primary selection item corresponding to the plurality of update rules, and determining whether the primary selection item is consistent with the first selection item; if the primary selection item is consistent with the first selection item, taking the update rule that is consistent with the primary selection item as the target update rule.

[0013] According to another embodiment of this application, an update device for selecting entries is provided, comprising:

[0014] The first determining module is used to determine the first selection item of the basic input / output system according to the first operation instruction of the target object, and to determine whether there is a target update rule corresponding to the first selection item, wherein the first operation instruction is used to instruct the target object to perform a search operation on the first selection item;

[0015] The second determining module is used to determine the second selection item to be updated according to the target update rule and the second operation instruction when there is a target update rule corresponding to the first selection item, and to determine the value of the selection item to be updated corresponding to the second selection item, wherein the second operation instruction is used to instruct the target object to perform an editing operation on the first selection item;

[0016] A storage module is configured to store the second selection entry and the corresponding selection entry value to be updated to a target memory, so that the basic input / output system can obtain the second selection entry and the corresponding selection entry value to be updated from the target memory, and update the second selection entry according to the selection entry value.

[0017] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0018] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0019] This application solves the problem of low efficiency in setting selection items for basic input / output systems by determining a first selection item of the basic input / output system based on a first operation instruction from the target object, and determining whether a target update rule corresponding to the first selection item exists. The first operation instruction instructs the target object to perform a search operation on the first selection item. When a target update rule exists, a second selection item to be updated is determined based on the target update rule, and a selection item value to be updated corresponding to the second selection item is determined. The second operation instruction instructs the target object to perform an editing operation on the first selection item. The second selection item and its corresponding value are stored in a target memory, allowing the basic input / output system to retrieve the second selection item and its corresponding value from the target memory and update the second selection item based on the value. Therefore, the problem of low efficiency in setting selection items for basic input / output systems in the prior art can be solved. Attached Figure Description

[0020] Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of updating selected items according to an embodiment of this application;

[0021] Figure 2 This is a flowchart of a method for updating selected entries according to an embodiment of this application;

[0022] Figure 3 This is a schematic diagram of the structure of a BIOS option update system according to an embodiment of this application;

[0023] Figure 4 This is a flowchart of the rule matching module according to an embodiment of this application;

[0024] Figure 5 This is a structural block diagram of an item selection updating device according to an embodiment of this application. Detailed Implementation

[0025] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0027] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for an item selection update method according to an embodiment of this application. For example... Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0028] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the method for updating selection entries in this embodiment. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thus implementing the methods described above. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0029] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0030] Figure 2 This is a flowchart of a method for updating selected items according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0031] Step S202: Determine the first selection item of the basic input / output system according to the first operation instruction of the target object, and determine whether there is a target update rule corresponding to the first selection item, wherein the first operation instruction is used to instruct the target object to perform a search operation on the first selection item;

[0032] It should be noted that the selected item can be understood as an option. The first operation instruction determines the options to be updated in the basic input / output system. If the first selected item is set to a certain option value, it is determined whether there is a target update rule that executes that setting.

[0033] Step S204: If a target update rule exists corresponding to the first selected item, determine the second selected item to be updated according to the target update rule and the second operation instruction, and determine the value of the selected item to be updated corresponding to the second selected item, wherein the second operation instruction is used to instruct the target object to perform an editing operation on the first selected item;

[0034] It is understandable that the above selection item values ​​are equivalent to option values.

[0035] Step S206: Store the second selection entry and the corresponding selection entry value to be updated in the target memory, so that the basic input / output system can obtain the second selection entry and the corresponding selection entry value to be updated in the target memory, and update the second selection entry according to the selection entry value.

[0036] This application solves the problem of low efficiency in setting selection items for basic input / output systems by determining a first selection item of the basic input / output system based on a first operation instruction from the target object, and determining whether a target update rule corresponding to the first selection item exists. The first operation instruction instructs the target object to perform a search operation on the first selection item. When a target update rule exists, a second selection item to be updated is determined based on the target update rule, and a selection item value to be updated corresponding to the second selection item is determined. The second operation instruction instructs the target object to perform an editing operation on the first selection item. The second selection item and its corresponding value are stored in a target memory, allowing the basic input / output system to retrieve the second selection item and its corresponding value from the target memory and update the second selection item based on the value. Therefore, the problem of low efficiency in setting selection items for basic input / output systems in the prior art can be solved.

[0037] Optionally, step S204 above can be implemented in the following way:

[0038] 1) Determine the first selection item and the first selection item value to be updated corresponding to the first selection item according to the second operation instruction, and determine the third selection item and the second selection item value to be updated corresponding to the third selection item according to the target update rule and the first selection item value, wherein the target update rule indicates that when the selection item value of the first selection item is updated to the first selection item value, the selection item value of the third selection item is updated to the second selection item value, and the second selection item includes: the first selection item and the third selection item.

[0039] In other words, while the target update rule indicates the first selection entry value to be updated corresponding to the first selection entry, it is also necessary to update the selection entry value of the third selection entry to the second selection entry value. Therefore, when determining the first selection entry value to be updated corresponding to the first selection entry through the second operation instruction, the update rule determines that the selection entry value of the third selection entry should be updated to the second selection entry value.

[0040] For example, the update rule instructs that when option one's value is set to 1, options two and three should also be set to 1. Therefore, when option one's value is set to 1 according to the operation instruction, there's no need to modify options two and three. In other words, if you want options one, two, and three to undergo the same operation, you can set the rule so that only option one needs to be modified, and options two and three are simultaneously updated to the same value as option one.

[0041] Through the above embodiments, when modifying the value of the selection item to be updated corresponding to the selection item, the value of the selection item that depends on the selection item is determined to be updated to the preset selection item value according to the update rule, which reduces the setting time of the dependent selection item and improves the efficiency of the setting method of the selection item of the basic input / output system.

[0042] 2) Determine the first selection item and the corresponding first selection item value to be updated according to the second operation instruction, and determine the fourth selection item according to the target update rule, wherein the target update rule indicates that when the selection item value of the first selection item is updated to the first selection item value, the selection item value of the fourth selection item is updated, and the second selection item includes: the first selection item and the fourth selection item; receive the third operation instruction of the target object, and determine the fourth selection item and the corresponding third selection item value to be updated according to the third operation instruction, wherein the third operation instruction is used to instruct the target object to perform an editing operation on the fourth selection item.

[0043] In other words, the target update rule instructs that the selection value of the fourth selection item should be updated when the selection value of the first selection item is updated to the first selection item value; that is, the selection value of the fourth selection item should be set at the same time as the selection value of the first selection item. For example, when the selection value of option one needs to be set to 3, the selection values ​​of options two and three should also be set. The selection values ​​of options two and three are determined by the user's operation instructions. That is, when option one is changed, options two and three should also be displayed at the same time for customers or developers to set the change operation.

[0044] It should be noted that Option 1 may be changed to different option values ​​than Option 2 and Option 3. This is because Option 1 is changed to a certain option value, and then Option 2 and Option 3 are displayed. Option 2 and Option 3 can be changed to other option values.

[0045] Through the above embodiments, when modifying the value of the selection item to be updated corresponding to the selection item, the dependent selection item is determined according to the update rule and displayed on the terminal device, so that the target object can quickly set the selection item value of the dependent selection item, reducing the search time for the dependent selection item and improving the efficiency of the selection item setting method of the basic input / output system.

[0046] 3) Determine the first selection item and the corresponding first selection item value to be updated according to the second operation instruction, and determine the fifth selection item according to the target update rule, wherein the target update rule indicates that updating the selection item value of the fifth selection item is prohibited when the selection item value of the first selection item is updated to the first selection item value; receive the fourth operation instruction of the target object, and determine the sixth selection item and the corresponding fourth selection item value to be updated according to the fourth operation instruction, wherein the fourth operation instruction is used to instruct the target object to perform an editing operation on the sixth selection item, and the second selection item includes: the first selection item and the sixth selection item.

[0047] In other words, the target update rule indicates that if the selection value of the first selection item is updated to the first selection item value, updating the selection value of the fifth selection item is prohibited; that is, if the selection value of the first selection item changes, changing the selection value of the fifth selection item is prohibited. For example, if both the first and fifth selection item values ​​are 3 before the change, executing this update rule will update the first selection item value from 3 to 5, while the fifth selection item value will remain 3 and cannot be changed.

[0048] Optionally, storing the second selection entry and its corresponding value to be updated in a target memory includes: writing the second selection entry and its value into a target format file, and writing a first character into the update flag bit of the target format file, wherein the first character indicates that the target format file has been updated; storing the target format file with the update flag in the target memory, so that the basic input / output system can retrieve the target format file from the target memory and update the second selection entry according to the selection entry value in the target format file; when the basic input / output system updates the second selection entry according to the update flag and the selection entry value in the target format file, obtaining a prompt message sent by the basic input / output system; when the prompt message indicates that the basic input / output system has successfully updated, writing a second character into the update flag bit of the target format file according to the prompt message, wherein the second character indicates that the target format file has not been updated; when the prompt message indicates that the basic input / output system has not successfully updated, prohibiting modification of the characters in the update flag bit of the target format file.

[0049] It is understandable that the target format file can be a JSON file. When the second selection item and the corresponding second selection item value are generated after updating according to the preset rules, the above second selection item and its corresponding second selection item value are stored in the target storage. In other words, the options and option values ​​are written into the JSON file.

[0050] By setting an update flag for the target format file through the above embodiments, it is possible to quickly determine whether the target format file has been updated, thereby improving the update rate.

[0051] Furthermore, the JSON file can be used for backup. When an update fails, the contents of the JSON in the target storage can be read and the option values ​​updated again, avoiding the need to manually update the option values ​​again after one update fails, thus improving work efficiency.

[0052] Optionally, before determining the first selection item of the basic input / output system based on the first operation instruction of the target object, the method further includes: obtaining historical update information of the basic input / output system; determining the update count of the updated selection item based on the historical update information; and determining the recommended updated selection item of the basic input / output system based on the update count.

[0053] Understandably, obtaining historical update information and determining the number of times each option has been updated based on that information is crucial for recommending updated options based on user preferences.

[0054] Optionally, the recommended update selection item for the basic input / output system can be determined based on the update count in the following ways: 1) the selection item with the highest update count is selected as the recommended update selection item for the basic input / output system; 2) the selection item with the lowest update count is selected as the recommended update selection item for the basic input / output system; 3) the selection item with the median update count is selected as the recommended update selection item for the basic input / output system.

[0055] Alternatively, the recommended update selection items for the basic input / output system can be determined based on the number of updates by: obtaining a user profile of the target object, and determining the recommended update selection items for the basic input / output system based on the user profile and the number of updates.

[0056] Through the above embodiments, the recommended update selection items of the basic input / output system can be accurately determined. Since the recommended update selection items of the basic input / output system are more likely to be the selection items to be updated by the target object, and the recommended update selection items are displayed on the display device, the target object can quickly determine the selection items to be updated, thereby improving the efficiency of setting the selection items of the basic input / output system.

[0057] Optionally, determining whether there exists a target update rule corresponding to the first selection item includes: obtaining multiple update rules containing the first selection item; determining the main selection item corresponding to the multiple update rules, and determining whether the main selection item is consistent with the first selection item; if the main selection item is consistent with the first selection item, taking the update rule that is consistent with the first selection item as the target update rule.

[0058] Understandably, after saving the target update rule corresponding to the first selected item to a JSON file, when setting it again, it is necessary to first check whether the JSON file exists. If the JSON file exists and the set options are consistent with the main options of the update rule in the JSON file, the update rule in the JSON file will be used as the target update rule.

[0059] To better understand the process of the above request allocation method, the implementation flow of the above request allocation method will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.

[0060] In an optional embodiment, the BIOS (Basic Input / Output System) options are displayed directly through a web interface, eliminating the need to restart the computer and press a hotkey to enter the BIOS options settings interface, thus improving work efficiency.

[0061] In addition, the above method supports user search for option settings. Users can search for the BIOS option they want to set in the web page search box without having to click multiple times through different levels to find the option name. Furthermore, users can customize display and setting rules. For example, some business scenarios require that when BIOS option 1 is set to a certain value, options 2, 3, and 4 must also have a certain value. This way, after setting option 1, it is not necessary to set options 2, 3, and 4 one by one. In addition, there are business scenarios where options 2, 3, and 4 cannot be set after option 1 is set, or when a business scenario requires setting option 1, it is also necessary to set options 2, 3, and 4 to a certain value. In this case, the rule can be set so that when option 1 is set, options 2, 3, and 4 are also displayed simultaneously for customers or developers to set.

[0062] In one optional embodiment, it includes a display module, a rule matching module, a communication module, and a storage module. Figure 3 This is a schematic diagram of a BIOS option update system according to an embodiment of this application, as shown below. Figure 3 As shown, the system includes:

[0063] 1) Display module:

[0064] The display module has four functions:

[0065] (1) Display all BIOS option names and their corresponding values ​​via a web page;

[0066] (2) Customize the display and BIOS option settings rules. When setting rules, a primary option name will be selected, and the others will be secondary options and the actions to be set for the secondary options. When the primary option is set to a certain value, the secondary options need to perform corresponding actions. For example, when the primary option is set to a certain value, the secondary option can be set to a certain value, the secondary option can be set to become unconfigurable, or the secondary option name and its current value can be displayed immediately below the primary option.

[0067] (3) Displaying user-preferred BIOS options: Users can select frequently set options to display, improving search efficiency. In addition, users can customize the display of user-preferred BIOS options. The BMC (Baseboard Management Controller) has a built-in big data intelligent recommendation algorithm (collaborative filtering - recommending products of interest to users based on user behavior), which will prioritize displaying up to 30 frequently set BIOS options (users can customize the number of recommendations to be displayed) to update BIOS option values ​​faster.

[0068] (4) Users can search for options to make settings. Users can search for the BIOS option name that needs to be updated based on the BIOS option name, and can quickly locate the option name to be set.

[0069] 2) Rule matching module:

[0070] The main function of the rule matching module is to implement the corresponding rules customized in the display module. When the user sets option 1 to a certain value, it first checks whether a corresponding action rule exists for a secondary option when option 1 is set to that value. If it does, the rule matching module will execute the corresponding action according to the rule specified in the display module, such as: disabling selection, displaying the secondary option and its value, or setting the secondary option to a certain value. The rule matching module also checks whether the selected options all exist as secondary options of a rule in the rule file. If they all exist, it will prompt the user that this rule exists and ask if they want to set the main option to the value in the rule. If the user selects yes, the rule is executed; if the user selects no, the rule is not executed, and only the selected option is set. If only some options exist as secondary options or none exist as secondary options, no prompt is given, and only the selected option is set.

[0071] Figure 4 This is a flowchart of the rule matching module according to an embodiment of this application, such as... Figure 4 As shown:

[0072] Step S401: Determine the BIOS options to be updated;

[0073] Step S402: Determine if a rule file exists;

[0074] If a rule file exists, proceed to step S403;

[0075] If there is no rule file, proceed to step S405.

[0076] Step S403: Determine if there is a matching main option;

[0077] If a matching main option is found, proceed to step S404.

[0078] If no matching primary option is found, proceed to step S405.

[0079] Step S404: Update the content according to the rules.

[0080] Step S405: Update directly.

[0081] 3) Storage module:

[0082] The storage module primarily stores the storage rules set in the display module, as well as backups of the BIOS options configured. The rules set in the display module are stored in a file as JSON data. The next time settings are configured, the system first checks if the file exists. If the file exists and the option to be set is the primary option in the rule file, then the BIOS option settings and display are performed according to the rules in the file. If the file does not exist or the option to be set is not the primary option in the rule file, then no rules are set, and only this option is configured. Furthermore, before writing the BIOS option settings to the shared memory area, the content is first backed up to a JSON file. This is useful in scenarios where, during the writing of BIOS settings to shared memory, a power outage or BMC crash occurs. Upon recovery, the BMC starts a thread to search for the file in a specific directory. If the file exists, the BMC writes its contents to shared memory and sets the update flag to 1. This ensures that the BIOS is updated with the current BIOS option settings the next time it boots up.

[0083] 4) Communication module:

[0084] The communication module is responsible for communication between the BMC and the BIOS. Its main function is to pass user-defined BIOS option settings to the BIOS module. The BMC writes the user-defined BIOS option names and values ​​to shared memory and sets the update flag to 1. During BIOS startup, it first reads the contents of shared memory. If the update flag is 1, it reads the contents of the BIOS option setting area in shared memory and synchronizes these contents to update the current BIOS options. After the update is complete, the update flag is set to 0. Finally, the BIOS option display and setting rules section, which allows for custom rule settings, supports importing and exporting file settings. This means that the current BIOS option display and setting rules can be exported from one machine and imported into another, allowing both machines to use the same BIOS display and setting rules.

[0085] The beneficial effects that can be achieved through the above embodiments are as follows:

[0086] 1) When setting BIOS option values, you can directly change them from the WEB page without having to restart the computer and press the hotkey to enter the BIOS settings page, saving one boot time and improving setting efficiency.

[0087] 2) Users can customize the displayed and set BIOS options, avoiding the need to set dependent options or multiple values ​​at once in the BIOS settings interface. Instead, they can use the pre-defined rules to set all the necessary BIOS option values ​​at once.

[0088] 3) The BIOS and BMC communicate using shared memory and determine whether an update is needed based on the update flag, which improves communication efficiency.

[0089] 4) Provides a backup mechanism, which writes the BIOS option values ​​and names that need to be set into a JSON file for backup. When the update fails, the contents of the JSON file can be read and the BIOS option values ​​can be updated again, avoiding manual settings again and improving the efficiency and accuracy of setting scores.

[0090] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0091] This embodiment also provides an item update device for implementing the above embodiments and preferred embodiments, and details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0092] Figure 5 This is a structural block diagram of an item selection updating device according to an embodiment of this application, such as... Figure 5 As shown, the device includes:

[0093] The first determining module 502 is used to determine the first selection item of the basic input / output system according to the first operation instruction of the target object, and to determine whether there is a target update rule corresponding to the first selection item, wherein the first operation instruction is used to instruct the target object to perform a search operation on the first selection item;

[0094] The second determining module 504 is used to determine the second selection item to be updated according to the target update rule and the second operation instruction when there is a target update rule corresponding to the first selection item, and to determine the value of the selection item to be updated corresponding to the second selection item, wherein the second operation instruction is used to instruct the target object to perform an editing operation on the first selection item;

[0095] Storage module 506 is used to store the second selection entry and the corresponding selection entry value to be updated to the target memory, so that the basic input / output system can obtain the second selection entry and the corresponding selection entry value to be updated from the target memory, and update the second selection entry according to the selection entry value.

[0096] Through the aforementioned apparatus, a first selection item of the basic input / output system is determined based on a first operation instruction from the target object, and it is determined whether a target update rule corresponding to the first selection item exists. The first operation instruction instructs the target object to perform a search operation on the first selection item. When a target update rule corresponding to the first selection item exists, a second selection item to be updated is determined based on the target update rule, and a selection item value to be updated corresponding to the second selection item is determined. The second operation instruction instructs the target object to perform an editing operation on the first selection item. The second selection item and its corresponding value to be updated are stored in a target memory, enabling the basic input / output system to retrieve the second selection item and its corresponding value from the target memory and update the second selection item based on the selected item value. Therefore, the problem of low efficiency in setting selection items for the basic input / output system in the prior art can be solved.

[0097] In an optional embodiment, the second determining module 504 is further configured to determine the first selection item and the first selection item value to be updated corresponding to the first selection item according to the second operation instruction, and to determine the third selection item and the second selection item value to be updated corresponding to the third selection item according to the target update rule and the first selection item value, wherein the target update rule indicates that when the selection item value of the first selection item is updated to the first selection item value, the selection item value of the third selection item is updated to the second selection item value, and the second selection item includes: the first selection item and the third selection item.

[0098] In an optional embodiment, the second determining module 504 is further configured to determine the first selection item and the corresponding first selection item value to be updated according to the second operation instruction, and to determine the fourth selection item according to the target update rule, wherein the target update rule indicates that when the selection item value of the first selection item is updated to the first selection item value, the selection item value of the fourth selection item is updated, and the second selection item includes: the first selection item and the fourth selection item; receive a third operation instruction from the target object, and determine the fourth selection item and the corresponding third selection item value to be updated according to the third operation instruction, wherein the third operation instruction is used to instruct the target object to perform an editing operation on the fourth selection item.

[0099] In an optional embodiment, the second determining module 504 is further configured to determine the first selection item and the corresponding first selection item value to be updated according to the second operation instruction, and to determine the fifth selection item according to the target update rule, wherein the target update rule indicates that updating the selection item value of the fifth selection item is prohibited when the selection item value of the first selection item is updated to the first selection item value; receive a fourth operation instruction from the target object, and determine a sixth selection item and the corresponding fourth selection item value to be updated according to the fourth operation instruction, wherein the fourth operation instruction is used to instruct the target object to perform an editing operation on the sixth selection item, and the second selection item includes: the first selection item and the sixth selection item.

[0100] In an optional embodiment, the storage module 506 is further configured to write the second selection entry and the selection entry value into a target format file, and set an update identifier for the target format file; store the target format file with the update identifier in the target memory, so that the basic input / output system can obtain the target format file with the update identifier in the target memory, and update the second selection entry according to the update identifier and the selection entry value in the target format file.

[0101] In an optional embodiment, the apparatus further includes: a first acquisition module, configured to acquire historical update information of the basic input / output system; determine the update count of the updated selection item based on the historical update information; and determine the recommended update selection item of the basic input / output system based on the update count.

[0102] In an optional embodiment, the first determining module 502 is configured to acquire a plurality of update rules containing the first selection item; determine the primary selection item corresponding to the plurality of update rules, and determine whether the primary selection item is consistent with the first selection item; if the primary selection item is consistent with the first selection item, take the update rule that is consistent with the primary selection item as the target update rule.

[0103] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0104] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0105] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0106] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0107] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0108] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0109] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0110] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any updates, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for updating selected entries, characterized in that, Applications to baseboard management controllers include: The first selection item of the basic input / output system is determined according to the first operation instruction of the target object, and it is determined whether there is a target update rule corresponding to the first selection item, wherein the first operation instruction is used to instruct the target object to perform a search operation on the first selection item; If a target update rule exists corresponding to the first selected item, the second selected item to be updated is determined according to the target update rule and the second operation instruction, and the value of the selected item to be updated corresponding to the second selected item is determined, wherein the second operation instruction is used to instruct the target object to perform an editing operation on the first selected item; The second selection entry and its corresponding value to be updated are stored in the target memory, so that the basic input / output system can retrieve the second selection entry and its corresponding value to be updated from the target memory, and update the second selection entry according to the selection entry value; wherein, Storing the second selection entry and the corresponding selection entry value to be updated to the target memory includes: Write the second selection entry and the selection entry value into the target format file, and write a first character into the update flag bit of the target format file, wherein the first character is used to indicate that the target format file has been updated; The target format file with an update flag is stored in the target memory, so that the basic input / output system can retrieve the target format file from the target memory and update the second selection entry according to the selection entry value in the target format file; When the basic input / output system updates the second selection entry based on the update identifier and the selection entry value in the target format file, the system obtains the prompt information sent by the basic input / output system. If the prompt message indicates that the basic input / output system has been successfully updated, a second character is written into the update flag of the target format file according to the prompt message, wherein the second character is used to indicate that the target format file has not been updated; If the prompt message indicates that the basic input / output system has failed to update, modification of the characters in the update flag of the target format file is prohibited; wherein, the baseboard management controller communicates with the basic input / output system through a shared memory area, and the basic input / output system reads the target format file and update flag stored in the shared memory area at startup.

2. The method according to claim 1, characterized in that, Determining the second selection item to be updated based on the target update rule and the second operation instruction, and determining the corresponding selection item value to be updated, including: The first selection item and the corresponding first selection item value to be updated are determined according to the second operation instruction. The third selection entry and the corresponding second selection entry value to be updated are determined according to the target update rule and the first selection entry value. The target update rule indicates that if the selection entry value of the first selection entry is updated to the first selection entry value, the selection entry value of the third selection entry is updated to the second selection entry value. The second selection entry includes the first selection entry and the third selection entry.

3. The method according to claim 1, characterized in that, Determining the second selection item to be updated based on the target update rule and the second operation instruction, and determining the corresponding selection item value to be updated, including: The first selection item and the corresponding first selection item value to be updated are determined according to the second operation instruction, and the fourth selection item is determined according to the target update rule, wherein the target update rule indicates that the selection item value of the fourth selection item is updated when the selection item value of the first selection item is updated to the first selection item value, and the second selection item includes: the first selection item and the fourth selection item; The system receives a third operation instruction from the target object and determines the fourth selection item and the corresponding third selection item value to be updated based on the third operation instruction. The third operation instruction is used to instruct the target object to perform an editing operation on the fourth selection item.

4. The method according to claim 1, characterized in that, Determining the second selection item to be updated based on the target update rule and the second operation instruction, and determining the corresponding selection item value to be updated, including: The first selection item and the corresponding first selection item value to be updated are determined according to the second operation instruction, and the fifth selection item is determined according to the target update rule, wherein the target update rule indicates that updating the selection item value of the fifth selection item is prohibited when the selection item value of the first selection item is updated to the first selection item value; The system receives a fourth operation instruction from the target object and determines a sixth selection item and a corresponding fourth selection item value to be updated based on the fourth operation instruction. The fourth operation instruction is used to instruct the target object to perform an editing operation on the sixth selection item. The second selection item includes the first selection item and the sixth selection item.

5. The method according to claim 1, characterized in that, Before determining the first selection entry of the basic input / output system based on the first operation instruction of the target object, the method further includes: Obtain the historical update information of the basic input / output system; The number of times the selected item has been updated is determined based on the historical update information; The recommended update selection items for the basic input / output system are determined based on the number of updates.

6. The method according to claim 1, characterized in that, Determining whether a target update rule exists corresponding to the first selected entry includes: Obtain multiple update rules that contain the first selected entry; Determine the primary selection entry corresponding to the plurality of update rules, and determine whether the primary selection entry is consistent with the first selection entry; If the primary selection item is consistent with the first selection item, the update rule that is consistent with the primary selection item is taken as the target update rule.

7. An update device for selected entries, characterized in that, include: The first determining module is used to determine the first selection item of the basic input / output system according to the first operation instruction of the target object, and to determine whether there is a target update rule corresponding to the first selection item, wherein the first operation instruction is used to instruct the target object to perform a search operation on the first selection item; The second determining module is used to determine the second selection item to be updated according to the target update rule and the second operation instruction when there is a target update rule corresponding to the first selection item, and to determine the value of the selection item to be updated corresponding to the second selection item, wherein the second operation instruction is used to instruct the target object to perform an editing operation on the first selection item; A storage module is configured to store the second selection entry and its corresponding value to be updated in a target memory, so that the basic input / output system can retrieve the second selection entry and its corresponding value to be updated from the target memory, and update the second selection entry according to the selected entry value; wherein, The storage module is further configured to write the second selection entry and the selection entry value into a target format file, and write a first character into the update flag bit of the target format file, wherein the first character is used to indicate that the target format file has been updated; store the target format file with the update flag set into the target memory, so that the basic input / output system can obtain the target format file in the target memory and update the second selection entry according to the selection entry value in the target format file; when the basic input / output system updates the second selection entry according to the update flag and the selection entry value in the target format file, obtain a prompt message sent by the basic input / output system; when the prompt message indicates that the basic input / output system has successfully updated, write a second character into the update flag bit of the target format file according to the prompt message, wherein the second character is used to indicate that the target format file has not been updated; when the prompt message indicates that the basic input / output system has not successfully updated, prohibit modification of the character in the update flag bit of the target format file; wherein the baseboard management controller communicates with the basic input / output system through a shared memory area, and the basic input / output system reads the target format file and the update flag bit stored in the shared memory area when it starts up.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 6.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent terminals and list interface entry selecting methods therefor

    CN105589626A

  • Interface positioning method and device for BIOS configuration options, server and computer readable storage medium

    CN112083851A