Basic input and output system upgrade method and device, and storage medium

By deploying a baseboard management controller in the server to detect and store current operating parameters, it solves the problem that parameters cannot be retained after BIOS upgrades, achieves stability and consistency of operating parameters, and improves the stability of server performance.

CN118349262BActive Publication Date: 2024-10-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410784073.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

In the existing technology, after the basic input and output system (BIOS) is upgraded, the server operating parameters cannot be retained, causing the modified parameters to revert to the default state, affecting the performance stability of the server.

Method used

Deploy a baseboard management controller (BMC) in the server, and by detecting the current server operating parameters and storing them in the BMC when the BIOS version is upgraded, ensure that the parameter configuration remains consistent after the upgrade.

Benefits of technology

It effectively reduces the impact of BIOS upgrade on server operating parameters, ensures the stability and consistency of parameters, and avoids the problem of default parameter restoration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349262B_ABST
    Figure CN118349262B_ABST
Patent Text Reader

Abstract

The present application discloses a basic input / output system upgrade method, device and storage medium. The basic input / output system upgrade method comprises: during the operation of the basic input / output system, detecting the parameter status of the server operation parameters currently used by the basic input / output system; in the case where it is detected that the parameter status indicates that the server operation parameters have been modified to the current server operation parameters, controlling a baseboard management controller to store the current server operation parameters; in the case where the basic input / output system performs a system version upgrade, controlling the basic input / output system to configure the used server operation parameters to the server operation parameters last stored in the baseboard management controller. The above technical solution is adopted to solve the problem that the upgrade of the basic input / output system has a great influence on the currently used server operation parameters in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a basic input / output system upgrade method and device, and a storage medium. Background Art

[0002] Currently, in order to meet different business needs such as AI (Artificial Intelligence), data storage, computing intensive and search, servers need to be configured with corresponding components, such as GPU (Graphics Processing Unit), storage devices, DPU (Data Processing Unit) cards and multiple network cards. The performance of the core CPU (Central Processing Unit) processor and its BIOS (Basic Input Output System) configuration are crucial to server performance. However, since servers need to be oriented to multiple customers, it is impossible to modify the operating parameters of the currently used server for shipment to meet the needs of a single customer, which limits personalized tuning.

[0003] In the prior art, the server operating parameters can be modified under the operating system through the AMI SCE tool, but only the modification is effective for the first time. When the BIOS is subsequently upgraded, the modified server operating parameters cannot be retained, and the previously modified server operating parameters will be restored to the default server operating parameters. The problem of changing the server operating parameters due to the BIOS version upgrade occurs.

[0004] In view of the problem in the related technology that the upgrade of the basic input and output system has a significant impact on the operating parameters of the currently used server, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a basic input / output system upgrade method, device, and storage medium to at least solve the problem in the related art that the upgrade of the basic input / output system has a significant impact on the operating parameters of the currently used server.

[0006] According to an embodiment of the present application, a basic input / output system upgrade method is provided, a baseboard management controller and a server processor are deployed in a server, the baseboard management controller is connected to the server processor, a basic input / output system is run in the server processor, the method is applied to the server processor, and the method includes:

[0007] During the operation of the basic input and output system, detecting the parameter status of the server operation parameters currently used by the basic input and output system, wherein the server operation parameters are used to control the operation mode of the hardware in the server and the startup mode of the server;

[0008] In a case where it is detected that the parameter state is used to indicate that the server operating parameter has been modified to the current server operating parameter, controlling the baseboard management controller to store the current server operating parameter;

[0009] When the basic input and output system is upgrading its system version, the basic input and output system is controlled to configure the server operating parameters used as the server operating parameters last stored in the baseboard management controller.

[0010] Optionally, controlling the baseboard management controller to store the current server operating parameters includes:

[0011] Detecting whether the basic input and output system currently meets the target sending condition;

[0012] When it is detected that the basic input / output system meets the target sending condition, the basic input / output system is controlled to send the current server operating parameters to the baseboard management controller, wherein the baseboard management controller is used to store the received current server operating parameters.

[0013] Optionally, the detecting whether the basic input / output system currently meets a target sending condition includes:

[0014] Detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operating parameters to be sent to the baseboard management controller;

[0015] In the case where it is detected that the basic input output system is in the target synchronization mode, it is determined that the basic input output system currently meets the target sending condition.

[0016] Optionally, the detecting whether the basic input / output system currently meets a target sending condition includes:

[0017] Detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operating parameters to be sent to the baseboard management controller;

[0018] In the case of detecting that the basic input and output system is in the target synchronization mode, detecting a current flag bit state of a target flag bit in the baseboard management controller, wherein the flag bit state is used to indicate whether the current server operating parameters need to be stored in the baseboard management controller;

[0019] When it is detected that the current flag state of the target flag is the target flag state, it is determined that the basic input and output system currently meets the target sending condition, wherein the target flag state is used to indicate that the current server operating parameters need to be stored in the baseboard management controller.

[0020] Optionally, the detecting whether the basic input and output system is in a target synchronization mode includes:

[0021] Detecting whether the basic input and output system is currently being subjected to a target interrupt operation;

[0022] After detecting that the target interrupt operation is currently executed on the basic input output system, determining whether the basic input output system is in a target synchronization mode, wherein the basic input output system enters the target synchronization mode when the target interrupt operation is executed.

[0023] Optionally, a target communication interface is deployed on the baseboard management controller, the baseboard management controller is connected to the server processor through the target communication interface, the baseboard management controller allows communication with the basic input and output system through the target communication interface, and the controlling the basic input and output system to send the current server operation parameters to the baseboard management controller includes:

[0024] The basic input and output system is controlled to send the current server operation parameter to the target communication interface on the baseboard management controller.

[0025] Optionally, after controlling the basic input and output system to send the current server operating parameters to the target communication interface on the baseboard management controller, the method further includes:

[0026] Controlling the baseboard management controller to receive the current server operation parameter from the target communication interface;

[0027] When the baseboard management controller completes receiving the current server operating parameters, the baseboard management controller is controlled to store the current server operating parameters into a target configuration file.

[0028] Optionally, controlling the baseboard management controller to store the current server operating parameters in a target configuration file includes one of the following:

[0029] Controlling the baseboard management controller to store the current server operating parameters and the parameter modification time corresponding to the current server operating parameters into the target configuration file, wherein the parameter modification time is the time when the server operating parameters are modified to the current server operating parameters;

[0030] The baseboard management controller is controlled to clear the server operation parameters currently stored in the target configuration file, and store the current server operation parameters in the target configuration file.

[0031] Optionally, before controlling the baseboard management controller to store the current server operating parameters, the method further includes:

[0032] Detecting whether the basic input / output system meets a target upgrade condition, wherein the target upgrade condition is a condition that the basic input / output system needs to meet for performing a system version upgrade;

[0033] When it is detected that the basic input and output system meets the target upgrade condition, controlling the baseboard management controller to store the current server operation parameter;

[0034] Control the basic input and output system to upgrade the system version.

[0035] Optionally, the detecting whether the basic input / output system meets a target upgrade condition includes:

[0036] Detecting whether the basic input / output system has target upgrade resources required to perform a version upgrade operation, wherein the version upgrade operation is an operation of upgrading the system version of the basic input / output system;

[0037] In the case where it is detected that the basic input / output system has the target upgrade resource, it is determined that it is detected that the basic input / output system meets the target upgrade condition.

[0038] Optionally, the detecting the parameter status of the server operation parameters currently used by the basic input and output system includes:

[0039] Detecting whether a target modification operation has been performed on the server operation parameters currently used by the basic input and output system;

[0040] In the case where it is detected that the target modification operation is performed on the server operating parameter currently used by the basic input and output system, the parameter state is determined to indicate that the server operating parameter has been modified to the current server operating parameter.

[0041] Optionally, the detecting whether a target modification operation has been performed on the server operating parameters currently used by the basic input / output system includes:

[0042] Detecting whether the basic input and output system is currently connected to a target modification tool, wherein the target modification tool is a tool capable of modifying server operating parameters currently used by the basic input and output system;

[0043] In the case where it is detected that the basic input and output system is currently connected to the target modification tool, detecting whether the server operation parameters currently used by the basic input and output system are changed;

[0044] In the case where it is detected that the server operating parameters currently used by the basic input and output system are changed, it is determined that it is detected that the target modification operation is performed on the server operating parameters currently used by the basic input and output system.

[0045] Optionally, controlling the basic input / output system to configure the used server operating parameters as the server operating parameters last stored in the baseboard management controller includes:

[0046] calling the baseboard management controller to send the last stored server operation parameter to the basic input and output system;

[0047] The basic input and output system is controlled to configure the used server operating parameters to the received last stored server operating parameters.

[0048] According to another embodiment of the embodiment of the present application, a basic input / output system upgrade device is further provided. A baseboard management controller and a server processor are deployed in a server, the baseboard management controller is connected to the server processor, a basic input / output system is run in the server processor, and the basic input / output system upgrade device is applied to the server processor, and the basic input / output system upgrade device includes:

[0049] A first detection module is used to detect the parameter status of the server operation parameters currently used by the basic input and output system during the operation of the basic input and output system, wherein the server operation parameters are used to control the operation mode of the hardware in the server and the startup mode of the server;

[0050] A first control module, configured to control the baseboard management controller to store the current server operating parameter when detecting that the parameter state indicates that the server operating parameter has been modified to the current server operating parameter;

[0051] The second control module is used to control the basic input and output system to configure the used server operating parameters as the server operating parameters last stored in the baseboard management controller when the basic input and output system is upgrading the system version.

[0052] According to another embodiment of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to perform the steps in any of the above method embodiments.

[0053] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0054] According to another embodiment of the present application, an electronic device is 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 execute the steps in any one of the above method embodiments.

[0055] In an embodiment of the present application, a basic input / output system upgrade method is proposed, a baseboard management controller and a server processor are deployed in a server, the baseboard management controller is connected to the server processor, a basic input / output system is run in the server processor, and the method is applied to the server processor, and the method includes: in the process of the basic input / output system running, detecting the parameter state of the server operation parameter currently used by the basic input / output system, and in the case of detecting that the parameter state is used to indicate that the server operation parameter has been modified to the current server operation parameter, controlling the baseboard management controller to store the current server operation parameter, wherein the server operation parameter is used to control the operation mode of the hardware in the server and the startup mode of the server; and then, in the case of the basic input / output system performing a system version upgrade, the basic input / output system can be controlled to configure the used server operation parameter to the server operation parameter last stored in the baseboard management controller, in this way, the baseboard management controller is controlled to store the current server operation parameter in advance, and when the basic input / output system performs a system version upgrade, the basic input / output system is controlled to configure the used server operation parameter to the server operation parameter last stored in the baseboard management controller, that is, the pre-stored current server operation parameter. In this way, the problem that the previously modified server operation parameter will be restored to the default server operation parameter due to the system version upgrade of the relevant basic input / output system can be avoided. The above technical solution solves the problem in the related technology that the upgrade of the basic input and output system has a significant impact on the operating parameters of the currently used server, and achieves the technical effect of reducing the impact of the upgrade of the basic input and output system on the operating parameters of the currently used server. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a hardware structure block diagram of a computer device of a basic input and output system upgrade method according to an embodiment of the present application;

[0057] Figure 2 is a flow chart of a basic input and output system upgrade method according to an embodiment of the present application;

[0058] Figure 3 is a schematic diagram of a server hardware architecture according to an embodiment of the present application;

[0059] Figure 4 is a schematic diagram of a target communication interface according to an embodiment of the present application;

[0060] Figure 5 is a schematic diagram of a basic input and output system upgrade method process according to an embodiment of the present application;

[0061] Figure 6 It is a swim lane diagram of a basic input and output system upgrade method process according to an embodiment of the present application;

[0062] Figure 7 is a structural block diagram of a basic input and output system upgrade device according to an embodiment of the present application;

[0063] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0064] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

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

[0066] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a computer device in accordance with a basic input / output system upgrade method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0067] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the upgrade method of the basic input and output system in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0068] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0069] In this embodiment, a basic input and output system upgrade method is provided. Figure 2 is a flowchart of a basic input and output system upgrade method according to an embodiment of the present application, such as Figure 2 As shown, a baseboard management controller and a server processor are deployed in the server, the baseboard management controller is connected to the server processor, a basic input and output system is run in the server processor, the method is applied to the server processor, and the process includes the following steps:

[0070] Step S12, during the operation of the basic input and output system, detecting the parameter status of the server operation parameters currently used by the basic input and output system, wherein the server operation parameters are used to control the operation mode of the hardware in the server and the startup mode of the server;

[0071] Step S14, when it is detected that the parameter state is used to indicate that the server operating parameter has been modified to the current server operating parameter, controlling the baseboard management controller to store the current server operating parameter;

[0072] Step S16, when the basic input and output system is performing a system version upgrade, controlling the basic input and output system to configure the used server operating parameters as the server operating parameters last stored in the baseboard management controller.

[0073] Optionally, in this embodiment, the server operating parameters may be, but are not limited to, BIOS options of a basic input and output system BIOS, and the BIOS options may control the operating mode of the hardware in the server and the startup mode of the server.

[0074] Optionally, in this embodiment, Figure 3 is a schematic diagram of a server hardware architecture according to an embodiment of the present application, such as Figure 3 As shown, a baseboard management controller BMC and a server processor CPU2 are deployed in the server, the baseboard management controller is connected to the server processor CPU2, a basic input output system BIOS is run in the server processor CPU2, and an upgrade method of the basic input output system is applied to the server processor CPU0 (or CPU1).

[0075] in, Figure 3 It is shown that the server processor running the basic input and output system BIOS is CPU2, and the basic input and output system upgrade method is applied to the server processor CPU0 (or CPU1), that is, the server processor is a general concept. The server processor running the basic input and output system BIOS and the server processor applying the basic input and output system upgrade method can be different server processors, or different processing cores in multiple processing cores of the same server processor. In this way, the operation of the basic input and output system BIOS and the execution of the basic input and output system upgrade method can be avoided from affecting each other, thereby improving the stability of the server operation.

[0076] As an optional solution, controlling the baseboard management controller to store the current server operating parameters further includes:

[0077] S21, detecting whether the basic input and output system currently meets the target sending condition;

[0078] S22, when it is detected that the basic input and output system meets the target sending condition, controlling the basic input and output system to send the current server operating parameters to the baseboard management controller, wherein the baseboard management controller is used to store the received current server operating parameters.

[0079] Optionally, in this embodiment, the method of controlling the baseboard management controller to store the current server operating parameters may be but is not limited to controlling the basic input / output system to send the current server operating parameters to the baseboard management controller, and before controlling the basic input / output system to send the current server operating parameters to the baseboard management controller, it is necessary to ensure that the basic input / output system currently meets the target sending conditions.

[0080] As an optional solution, the detecting whether the basic input / output system currently meets the target sending condition includes:

[0081] S32, detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operation parameters to be sent to the baseboard management controller;

[0082] S33: When it is detected that the basic input / output system is in the target synchronization mode, determine that the basic input / output system currently meets the target sending condition.

[0083] Optionally, in this embodiment, the method of detecting whether the basic input / output system currently meets the target sending condition may be, but is not limited to, detecting whether the basic input / output system is in a target synchronization mode. The target synchronization mode may be, but is not limited to, an SMM mode (System Management Mode) of a BIOS. When it is detected that the basic input / output system is in the SMM mode, it is determined that the basic input / output system currently meets the target sending condition.

[0084] As an optional solution, the detecting whether the basic input / output system currently meets the target sending condition includes:

[0085] S41, detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operation parameters to be sent to the baseboard management controller;

[0086] S42, when it is detected that the basic input and output system is in the target synchronization mode, detecting a current flag bit state of a target flag bit in the baseboard management controller, wherein the flag bit state is used to indicate whether the current server operation parameters need to be stored in the baseboard management controller;

[0087] S43, when it is detected that the current flag state of the target flag is the target flag state, determining that the basic input and output system currently meets the target sending condition, wherein the target flag state is used to indicate that the current server operating parameters need to be stored in the baseboard management controller.

[0088] Optionally, in this embodiment, the above-mentioned method of detecting whether the basic input-output system currently meets the target sending condition may be, but is not limited to, detecting whether the basic input-output system is in the target synchronization mode. In addition, the current flag state of the target flag in the baseboard management controller may be further detected, and the flag state may indicate whether the current server operating parameters need to be stored in the baseboard management controller. When it is detected that the current flag state of the target flag is the target flag state, for example, the target flag position is detected to be 1, it is determined that the basic input-output system currently meets the target sending condition.

[0089] As an optional solution, the detecting whether the basic input and output system is in the target synchronization mode includes:

[0090] S51, detecting whether the basic input and output system is currently being subjected to a target interrupt operation;

[0091] S52, after detecting that the target interrupt operation is currently executed on the basic input output system, determining whether the basic input output system is in a target synchronization mode, wherein the basic input output system enters the target synchronization mode when the target interrupt operation is executed.

[0092] Optionally, in this embodiment, the method of detecting whether the basic input output system is in the target synchronization mode may be but is not limited to detecting whether the basic input output system is currently being executed the target interrupt operation, wherein the target interrupt operation may be but is not limited to an SMI interrupt.

[0093] The triggering method of the SMI interrupt may include, but is not limited to: adding the / NI parameter through an external AMI SCE tool to trigger the SMI interrupt on the BIOS side.

[0094] As an optional solution, a target communication interface is deployed on the baseboard management controller, the baseboard management controller is connected to the server processor through the target communication interface, the baseboard management controller allows communication with the basic input and output system through the target communication interface, and the controlling the basic input and output system to send the current server operation parameters to the baseboard management controller includes:

[0095] S61, controlling the basic input and output system to send the current server operation parameters to the target communication interface on the baseboard management controller.

[0096] Optionally, in this embodiment, Figure 4 is a schematic diagram of a target communication interface according to an embodiment of the present application, such as Figure 4 As shown, the target communication interface may be, but is not limited to, an SMM KCS IPMI interface. The baseboard management controller BMC is connected to the server processor CPU2 via the target communication interface SMM KCS IPMI, and the baseboard management controller BMC allows communication with the basic input and output system BIOS via the target communication interface SMM KCS IPMI.

[0097] The basic input and output system is controlled to send the current server operation parameters to the baseboard management controller, that is, to the SMM KCS IPMI interface of the baseboard management controller.

[0098] As an optional solution, after controlling the basic input and output system to send the current server operation parameters to the target communication interface on the baseboard management controller, the method further includes:

[0099] S71, controlling the baseboard management controller to receive the current server operation parameters from the target communication interface;

[0100] S72, when the baseboard management controller completes receiving the current server operating parameters, controlling the baseboard management controller to store the current server operating parameters into a target configuration file.

[0101] Optionally, in this embodiment, after receiving the current server operating parameters (i.e., the modified BIOS options), the baseboard management controller BMC controls the baseboard management controller to store the current server operating parameters in a target configuration file, wherein the target configuration file may be, but is not limited to, a JSON file in the BMC.

[0102] As an optional solution, controlling the baseboard management controller to store the current server operating parameters in a target configuration file includes one of the following:

[0103] S81, controlling the baseboard management controller to store the current server operating parameters and the parameter modification time corresponding to the current server operating parameters into the target configuration file, wherein the parameter modification time is the time when the server operating parameters are modified to the current server operating parameters;

[0104] S82, controlling the baseboard management controller to clear the server operating parameters currently stored in the target configuration file, and storing the current server operating parameters in the target configuration file.

[0105] Optionally, in this embodiment, the method of controlling the baseboard management controller to store the current server operating parameters into the target configuration file may be, but is not limited to, the above two methods. One method is non-overwriting storage, that is, storing the current server operating parameters and parameter modification time with corresponding relationships into the target configuration file. The other method is overwriting storage, that is, storing the latest current server operating parameters into the target configuration file. The previous server operating parameters are cleared.

[0106] As an optional solution, before controlling the baseboard management controller to store the current server operating parameters, the method further includes:

[0107] S91, detecting whether the basic input / output system meets a target upgrade condition, wherein the target upgrade condition is a condition that the basic input / output system needs to meet for performing a system version upgrade;

[0108] S92, when it is detected that the basic input and output system meets the target upgrade condition, controlling the baseboard management controller to store the current server operation parameter;

[0109] S93, controlling the basic input and output system to upgrade the system version.

[0110] Optionally, in this embodiment, before controlling the baseboard management controller to store the current server operating parameters (modified BIOS options), it is also possible to pre-determine whether the BIOS meets the conditions for upgrading. If so, the modified BIOS options are sent. This method can reduce the frequency of sending BIOS options. The BIOS options during the period when the BIOS is not upgraded may not be sent to the BMC first, thereby reducing the waste of storage resources.

[0111] As an optional solution, detecting whether the basic input and output system meets the target upgrade condition includes:

[0112] S101, detecting whether the basic input / output system has target upgrade resources required to perform a version upgrade operation, wherein the version upgrade operation is an operation of upgrading the system version of the basic input / output system;

[0113] S102: When it is detected that the basic input / output system has the target upgrade resource, it is determined that the basic input / output system meets the target upgrade condition.

[0114] Optionally, in this embodiment, the method of detecting whether the basic input / output system meets the target upgrade condition is to detect whether the basic input / output system has the target upgrade resources required to perform the version upgrade operation. The target upgrade resources may be, but are not limited to, the resources of the BIOS itself, and may also include storage resources, processor resources, etc. required to assist in the BIOS upgrade.

[0115] As an optional solution, the detecting the parameter status of the server operation parameter currently used by the basic input and output system includes:

[0116] S111, detecting whether a target modification operation has been performed on the server operating parameters currently used by the basic input and output system;

[0117] S112: When it is detected that the target modification operation has been performed on the server operating parameters currently used by the basic input and output system, determining that the parameter state is used to indicate that the server operating parameters have been modified to current server operating parameters.

[0118] Optionally, in this embodiment, detecting the parameter state of the server operating parameter currently used by the basic input and output system is essentially detecting whether the server operating parameter currently used has been modified. When it is detected that the server operating parameter currently used by the basic input and output system has been subjected to the target modification operation, determining the parameter state is used to indicate that the server operating parameter has been modified to the current server operating parameter.

[0119] As an optional solution, the detecting whether the server operation parameters currently used by the basic input and output system have been subjected to a target modification operation includes:

[0120] S121, detecting whether the basic input and output system is currently connected to a target modification tool, wherein the target modification tool is a tool capable of modifying server operating parameters currently used by the basic input and output system;

[0121] S122, in the case where it is detected that the basic input and output system is currently connected to the target modification tool, detecting whether the server operation parameters currently used by the basic input and output system are changed;

[0122] S123, when it is detected that the server operating parameters currently used by the basic input and output system are changed, determining that it is detected that the target modification operation is performed on the server operating parameters currently used by the basic input and output system.

[0123] Optionally, in this embodiment, the method of modifying the currently used server operating parameters (BIOS options) may include but is not limited to using an SCE tool provided by the AMI to modify, and the target modification tool may be but is not limited to an SCE tool.

[0124] As an optional solution, controlling the basic input and output system to configure the used server operating parameters as the server operating parameters last stored in the baseboard management controller includes:

[0125] S131, calling the baseboard management controller to send the last stored server operation parameter to the basic input and output system;

[0126] S132, controlling the basic input and output system to configure the used server operating parameters to the last received and stored server operating parameters.

[0127] Optionally, in this embodiment, the server operating parameters stored last may be, but are not limited to, actively sent by the BMC to the BIOS during the restart process after the BIOS version is upgraded, or actively read by the BIOS from the BMC.

[0128] Optionally, in this embodiment, in order to better understand the process of the basic input and output system upgrade method, the basic input and output system upgrade method process is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0129] In this embodiment, a basic input and output system upgrade method is provided. Figure 5 is a schematic diagram of a basic input / output system upgrade method process according to an embodiment of the present application, such as Figure 5 As shown, it mainly includes the following steps:

[0130] Step S501: Power on the server;

[0131] Step S502: The server starts and enters the operating system;

[0132] Step S503: The system modifies the default value of the BIOS option through the IPMI command of the BMC;

[0133] Step S504: triggering SMI interrupt SMM function in BIOS system;

[0134] Step S505: The BMC receives the SMI interrupt function of the BIOS, and modifies the default value setting of the IPMI command BIOS option of the BIOS through the SMM KCS IPMI function;

[0135] Step S506: The BMC has completed the modification of the BIOS option default value by the IPMI command of the BIOS;

[0136] Step S507: the system uses the SCE tool of AMI to add the / NI parameter, trigger the SMI interrupt function of the BIOS end, and set the flag bit of the BIOS end updating the JSON file of the BMC end to 1;

[0137] Step S508: The system executes a restart action through an IPMI command, a restart command, or a BMC interface restart command;

[0138] Step S509: During the server restart process, at the startup stage, the BIOS checks whether the JSON file update file flag is set to 1. If the flag is set to 1, the process proceeds to step S510. If the flag is not set to 1, the process proceeds to step S502.

[0139] Step S510: the BIOS segment synchronously transmits the currently modified BIOS option default value to the BMC end through the Redfish protocol;

[0140] Step S511: The BMC receives the JSON file transmitted by the BIOS, and stores the latest default value of the BIOS in the JSON file on the BMC;

[0141] Step S512: the server starts and enters the operating system;

[0142] Step S513: The BMC interface sets the BIOS option to be kept and the BIOS image to be updated;

[0143] Step S514: After the BMC update is completed, the server is restarted;

[0144] Step S515: During the server startup phase, the BMC actively transmits the JSON file of the BMC through the Redfish protocol;

[0145] Step S5160: After receiving the JSON file from the BMC, the BIOS updates the BIOS option settings to the default value of the BIOS options by parsing the JSON file;

[0146] Step S517: After the BIOS setting is completed, the server is restarted.

[0147] Figure 6 is a swim lane diagram of a basic input / output system upgrade method process according to an embodiment of the present application, such as Figure 6 As shown, each of the above steps 501 to 517 can be, but is not limited to, executed by different parts of the server.

[0148] In the related technology, there are three methods for BIOS and BMC to synchronize BIOS options. One is that BIOS actively sends the changes on the BIOS side to the BMC side through the Redfish protocol; the other is to modify the BIOS options through IPMI commands. This method modifies the storage area on the BMC side. When BIOS starts, it is synchronized from the BMC side, but cannot be updated to the JSON file; the last one is to use the SCE tool provided by the AMI manufacturer to modify the BIOS options. This part of the options only modifies the settings on the BIOS side and will not be synchronized to the BMC side.

[0149] In view of the above problems existing in the related art, the basic input and output system upgrade method proposed in this application adds an SMM KCS IPMI interface on the BMC side, supporting the BIOS side to modify the BIOS option default value settings stored on the BMC side through IPMI commands. At the same time, the / NI parameter is added through the SCE tool of the AMI manufacturer under the system to trigger the SMI interrupt on the BIOS side to update the current flag status of the target flag bit that triggers the BIOS to synchronize the BMC side JSON file.

[0150] In the solution mentioned in this application, when the system is restarted after the BIOS options are modified using SCE, the BIOS will check whether the JSON file on the BMC side needs to be synchronized at startup. If the flag is set to 1, the BIOS side will actively send the BIOS change and default value option information to the BMC side through the Redfish protocol to store the current BIOS option default value settings on the BMC side.

[0151] In this way, when the BIOS is updated by retaining the configuration in the BMC interface, when the BIOS is started after the update is completed, the BMC will actively send the previously modified BIOS option default value settings and update them to the current BIOS version, solving the problem that the function of the modified options cannot be retained due to the SCE modification options under the system.

[0152] In the solution of the present application, the BIOS options modified by the IPMI command method, the JSON file method, and the SCE method can be retained by the BMC to update the BIOS default values, including modifications by these three methods.

[0153] This application uses SMI interrupts and SMM functions on the BIOS and BMC to synchronously modify the default values ​​of BIOS options on the BIOS and BMC, and notify the BIOS and BMC. At the same time, the JSON file update flag of the BMC reserved parameters is set on the BIOS side through the SMM function to achieve the purpose of synchronously updating the JSON file of the BIOS and BMC.

[0154] The solution proposed in this application completely solves the technical problem that the modified BIOS default values ​​cannot be retained when the BIOS firmware is updated in the BMC interface. It is suitable for mainstream X86 architecture servers and therefore needs to be protected.

[0155] The solution proposed in this application has beneficial effects and technical advantages in that, by adding the function of SCE tool parameters on the BIOS side, adding the SMI interrupt SMM function function on the BIOS, and adding the SMM KCS IPMI function on the BMC side, the technical problem that the default values ​​of BIOS options cannot be retained by updating the BIOS through the BMC interface is solved.

[0156] The solution proposed in this application enriches the method of retaining configuration upgrades for BIOS options, is conducive to timely saving the latest option information, avoids the problem of not being able to retain default values ​​in time due to subsequent modifications to BIOS options, and highlights the beneficial effects and technical advantages.

[0157] The solution proposed in this application is highly replicable and extensible. By adding SCE tool / NI parameters on the BIOS side and updating the JSON file flag information through SMI interrupt SMM function on the BIOS side, the problem that BIOS and BMC cannot save and modify the default values ​​of BIOS options through IPMI commands and AMI manufacturer's SCE tool is completely solved.

[0158] Finally, by triggering the JSON file, the three methods of modifying the default values ​​of BIOS options can realize the function of retaining the configuration and updating the BIOS image on the BMC interface, which improves the reliability of the server and provides guarantees for the stability, security and reliability of the server. It reduces the labor cost of customer operation and maintenance personnel and improves the operation and maintenance efficiency, providing a great beneficial measure.

[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0160] In the present embodiment, a basic input / output system upgrade device is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the description has been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented with software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0161] Figure 7 is a structural block diagram of a basic input and output system upgrade device according to an embodiment of the present application; Figure 7 As shown, a baseboard management controller and a server processor are deployed in the server, the baseboard management controller is connected to the server processor, a basic input and output system is run in the server processor, an upgrade device of the basic input and output system is applied to the server processor, and the upgrade device of the basic input and output system includes:

[0162] The first detection module 702 is used to detect the parameter status of the server operation parameters currently used by the basic input and output system during the operation of the basic input and output system, wherein the server operation parameters are used to control the operation mode of the hardware in the server and the startup mode of the server;

[0163] A first control module 704 is configured to control the baseboard management controller to store the current server operating parameter when it is detected that the parameter state indicates that the server operating parameter has been modified to the current server operating parameter;

[0164] The second control module 706 is used to control the basic input and output system to configure the server operating parameters used as the server operating parameters last stored in the baseboard management controller when the basic input and output system is performing a system version upgrade.

[0165] In an exemplary embodiment, the first control module includes:

[0166] A first detection unit, used to detect whether the basic input and output system currently meets the target sending condition;

[0167] The first control unit is used to control the basic input and output system to send the current server operating parameters to the baseboard management controller when it is detected that the basic input and output system meets the target sending condition, wherein the baseboard management controller is used to store the received current server operating parameters.

[0168] In an exemplary embodiment, the first detection unit is further configured to:

[0169] Detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operation parameters to be sent to the baseboard management controller;

[0170] In the case where it is detected that the basic input output system is in the target synchronization mode, it is determined that the basic input output system currently meets the target sending condition.

[0171] In an exemplary embodiment, the first detection unit is used to:

[0172] Detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operation parameters to be sent to the baseboard management controller;

[0173] In the case of detecting that the basic input and output system is in the target synchronization mode, detecting a current flag bit state of a target flag bit in the baseboard management controller, wherein the flag bit state is used to indicate whether the current server operation parameters need to be stored in the baseboard management controller;

[0174] When it is detected that the current flag state of the target flag is the target flag state, it is determined that the basic input and output system currently meets the target sending condition, wherein the target flag state is used to indicate that the current server operating parameters need to be stored in the baseboard management controller.

[0175] In an exemplary embodiment, the first detection unit is used to:

[0176] Detecting whether the basic input and output system is currently being subjected to a target interrupt operation;

[0177] After detecting that the target interrupt operation is currently executed on the basic input output system, determining whether the basic input output system is in a target synchronization mode, wherein the basic input output system enters the target synchronization mode when the target interrupt operation is executed.

[0178] In an exemplary embodiment, a target communication interface is deployed on the baseboard management controller, the baseboard management controller is connected to the server processor through the target communication interface, the baseboard management controller allows communication with the basic input and output system through the target communication interface, and the first control unit is further used to:

[0179] The basic input and output system is controlled to send the current server operation parameter to the target communication interface on the baseboard management controller.

[0180] In an exemplary embodiment, the apparatus further comprises:

[0181] A third control module, configured to control the baseboard management controller to receive the current server operating parameters from the target communication interface after controlling the basic input and output system to send the current server operating parameters to the target communication interface on the baseboard management controller;

[0182] The fourth control module is used to control the baseboard management controller to store the current server operating parameters into a target configuration file when the baseboard management controller completes receiving the current server operating parameters.

[0183] In an exemplary embodiment, the fourth control module includes one of the following:

[0184] a second control unit, configured to control the baseboard management controller to store the current server operating parameters and the parameter modification time corresponding to the current server operating parameters into the target configuration file, wherein the parameter modification time is the time when the server operating parameters are modified to the current server operating parameters;

[0185] The third control unit is used to control the baseboard management controller to clear the server operation parameters currently stored in the target configuration file, and store the current server operation parameters in the target configuration file.

[0186] In an exemplary embodiment, the apparatus further comprises:

[0187] A second detection module is used to detect whether the basic input and output system meets a target upgrade condition before controlling the baseboard management controller to store the current server operation parameters, wherein the target upgrade condition is a condition that the basic input and output system needs to meet for performing a system version upgrade;

[0188] A fifth control module, configured to control the baseboard management controller to store the current server operation parameters when detecting that the basic input and output system meets the target upgrade condition;

[0189] The sixth control module is used to control the basic input and output system to upgrade the system version.

[0190] In an exemplary embodiment, the second detection module includes:

[0191] A second detection unit is used to detect whether the basic input and output system has a target upgrade resource required to perform a version upgrade operation, wherein the version upgrade operation is an operation of upgrading the system version of the basic input and output system;

[0192] The first determining unit is configured to determine that the basic input / output system meets the target upgrade condition when it is detected that the basic input / output system has the target upgrade resource.

[0193] In an exemplary embodiment, the first detection module includes:

[0194] A third detection unit, used for detecting whether a target modification operation has been performed on the server operation parameters currently used by the basic input and output system;

[0195] The second determining unit is configured to, when detecting that the target modification operation has been performed on the server operating parameter currently used by the basic input / output system, determine that the parameter state indicates that the server operating parameter has been modified to the current server operating parameter.

[0196] In an exemplary embodiment, the third detection unit is further used for:

[0197] Detecting whether the basic input and output system is currently connected to a target modification tool, wherein the target modification tool is a tool capable of modifying server operating parameters currently used by the basic input and output system;

[0198] In the case where it is detected that the basic input and output system is currently connected to the target modification tool, detecting whether the server operation parameters currently used by the basic input and output system are changed;

[0199] In the case where it is detected that the server operating parameters currently used by the basic input and output system are changed, it is determined that it is detected that the target modification operation is performed on the server operating parameters currently used by the basic input and output system.

[0200] In an exemplary embodiment, the second control module comprises:

[0201] A calling unit, configured to call the baseboard management controller to send the last stored server operation parameter to the basic input and output system;

[0202] The fourth control unit is used to control the basic input and output system to configure the used server operating parameters to the last stored server operating parameters received.

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

[0204] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in each embodiment of the present application; the computer program product also includes a non-volatile computer-readable storage medium, which stores the computer program, and when executed by a processor, implements the steps of the method described in each embodiment of the present application.

[0205] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0206] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0207] An embodiment of the present application further provides an electronic device, Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present application, such as Figure 8 As shown, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0208] In an 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.

[0209] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0210] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0211] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A basic input and output system upgrade method, characterized in that: A baseboard management controller and a server processor are deployed in the server, the baseboard management controller is connected to the server processor, a basic input and output system is run in the server processor, and the method is applied to the server processor. The method comprises: During the operation of the basic input and output system, detecting the parameter status of the server operation parameters currently used by the basic input and output system, wherein the server operation parameters are used to control the operation mode of the hardware in the server and the startup mode of the server; In a case where it is detected that the parameter state is used to indicate that the server operating parameter has been modified to the current server operating parameter, controlling the baseboard management controller to store the current server operating parameter; When the basic input and output system is upgrading the system version, controlling the basic input and output system to configure the used server operating parameters as the server operating parameters last stored in the baseboard management controller; The step of detecting the parameter status of the server operation parameters currently used by the basic input / output system includes: Detecting whether a target modification operation has been performed on the server operation parameters currently used by the basic input and output system; In the case where it is detected that the target modification operation is performed on the server operating parameter currently used by the basic input and output system, the parameter state is determined to indicate that the server operating parameter has been modified to the current server operating parameter.

2. The method according to claim 1, characterized in that The controlling the baseboard management controller to store the current server operation parameters includes: Detecting whether the basic input and output system currently meets the target sending condition; When it is detected that the basic input / output system meets the target sending condition, the basic input / output system is controlled to send the current server operating parameters to the baseboard management controller, wherein the baseboard management controller is used to store the received current server operating parameters.

3. The method according to claim 2, characterized in that The detecting whether the basic input and output system currently meets the target sending condition includes: Detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operating parameters to be sent to the baseboard management controller; In the case where it is detected that the basic input output system is in the target synchronization mode, it is determined that the basic input output system currently meets the target sending condition.

4. The method according to claim 2, characterized in that: The detecting whether the basic input and output system currently meets the target sending condition includes: Detecting whether the basic input and output system is in a target synchronization mode, wherein the target synchronization mode is a mode in which the basic input and output system allows the current server operating parameters to be sent to the baseboard management controller; In the case of detecting that the basic input and output system is in the target synchronization mode, detecting a current flag bit state of a target flag bit in the baseboard management controller, wherein the flag bit state is used to indicate whether the current server operating parameters need to be stored in the baseboard management controller; When it is detected that the current flag state of the target flag is the target flag state, it is determined that the basic input and output system currently meets the target sending condition, wherein the target flag state is used to indicate that the current server operating parameters need to be stored in the baseboard management controller.

5. The method according to claim 3 or 4, characterized in that: The detecting whether the basic input and output system is in a target synchronization mode comprises: Detecting whether the basic input and output system is currently being subjected to a target interrupt operation; After detecting that the target interrupt operation is currently executed on the basic input output system, determining whether the basic input output system is in a target synchronization mode, wherein the basic input output system enters the target synchronization mode when the target interrupt operation is executed.

6. The method according to claim 2, characterized in that The baseboard management controller is provided with a target communication interface, the baseboard management controller is connected to the server processor through the target communication interface, the baseboard management controller allows communication with the basic input and output system through the target communication interface, and the basic input and output system is controlled to send the current server operation parameters to the baseboard management controller, including: The basic input and output system is controlled to send the current server operation parameter to the target communication interface on the baseboard management controller.

7. The method according to claim 6, characterized in that After controlling the basic input and output system to send the current server operation parameters to the target communication interface on the baseboard management controller, the method further includes: Controlling the baseboard management controller to receive the current server operation parameter from the target communication interface; When the baseboard management controller completes receiving the current server operating parameters, the baseboard management controller is controlled to store the current server operating parameters into a target configuration file.

8. The method according to claim 7, characterized in that The controlling the baseboard management controller to store the current server operation parameters into a target configuration file comprises one of the following: Controlling the baseboard management controller to store the current server operating parameters and the parameter modification time corresponding to the current server operating parameters into the target configuration file, wherein the parameter modification time is the time when the server operating parameters are modified to the current server operating parameters; The baseboard management controller is controlled to clear the server operation parameters currently stored in the target configuration file, and store the current server operation parameters in the target configuration file.

9. The method according to claim 1, characterized in that: Before controlling the baseboard management controller to store the current server operating parameters, the method further includes: Detecting whether the basic input / output system meets a target upgrade condition, wherein the target upgrade condition is a condition that the basic input / output system needs to meet for performing a system version upgrade; When it is detected that the basic input and output system meets the target upgrade condition, controlling the baseboard management controller to store the current server operation parameter; Control the basic input and output system to upgrade the system version.

10. The method according to claim 9, characterized in that The detecting whether the basic input and output system meets the target upgrade condition includes: Detecting whether the basic input / output system has target upgrade resources required to perform a version upgrade operation, wherein the version upgrade operation is an operation of upgrading the system version of the basic input / output system; In the case where it is detected that the basic input / output system has the target upgrade resource, it is determined that it is detected that the basic input / output system meets the target upgrade condition.

11. The method according to claim 1, characterized in that: The detecting whether the server operation parameters currently used by the basic input and output system have been subjected to a target modification operation includes: Detecting whether the basic input and output system is currently connected to a target modification tool, wherein the target modification tool is a tool capable of modifying server operating parameters currently used by the basic input and output system; In the case where it is detected that the basic input and output system is currently connected to the target modification tool, detecting whether the server operation parameters currently used by the basic input and output system are changed; In the case where it is detected that the server operating parameters currently used by the basic input and output system are changed, it is determined that it is detected that the target modification operation is performed on the server operating parameters currently used by the basic input and output system.

12. The method according to claim 1, characterized in that The controlling the basic input and output system to configure the used server operating parameters as the server operating parameters last stored in the baseboard management controller includes: calling the baseboard management controller to send the last stored server operation parameter to the basic input and output system; The basic input and output system is controlled to configure the used server operating parameters to the received last stored server operating parameters.

13. A basic input and output system upgrade device, characterized in that: A baseboard management controller and a server processor are deployed in the server, the baseboard management controller is connected to the server processor, a basic input and output system is run in the server processor, and an upgrade device of the basic input and output system is applied to the server processor, The basic input and output system upgrade device comprises: A first detection module is used to detect the parameter status of the server operation parameters currently used by the basic input and output system during the operation of the basic input and output system, wherein the server operation parameters are used to control the operation mode of the hardware in the server and the startup mode of the server; A first control module, configured to control the baseboard management controller to store the current server operating parameter when detecting that the parameter state indicates that the server operating parameter has been modified to the current server operating parameter; A second control module is used to control the basic input and output system to configure the server operating parameters used as the server operating parameters last stored in the baseboard management controller when the basic input and output system is performing a system version upgrade; Wherein, the first detection module includes: A third detection unit, used for detecting whether a target modification operation has been performed on the server operation parameters currently used by the basic input and output system; The second determining unit is used to, when it is detected that the target modification operation has been performed on the server operating parameter currently used by the basic input and output system, determine that the parameter state indicates that the server operating parameter has been modified to the current server operating parameter.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

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

16. 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, the steps of the method described in any one of claims 1 to 12 are implemented.