Electronic device and signal processing method

By introducing a switching mechanism between switching units and controllers in electronic devices, the problem of long BIOS upgrade time is solved, real-time upgrade and system stability improvement are achieved.

CN120336235AActive Publication Date: 2025-07-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510820184.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-18
Publication Date
2025-07-18
Estimated Expiration
2045-06-18

AI Technical Summary

Technical Problem

In the prior art, electronic devices need to connect two BIOS units to the controller in sequence when upgrading BIOS, resulting in a long restart time, affecting the device's startup reliability and efficiency.

Method used

By introducing a switching unit into the electronic device, the controller controls the switching unit to switch between the first on state and the second on state, so that the processor and the controller are always connected to a BIOS, real-time upgrade is achieved.

Benefits of technology

Real-time upgrade of BIOS is realized, reducing device restart time, improving startup reliability and efficiency, and ensuring system stability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120336235A_ABST
    Figure CN120336235A_ABST
Patent Text Reader

Abstract

The invention provides electronic equipment and a signal processing method, which can be applied to the technical field of signal processing. The electronic device includes: a switching unit; the controller, the processor, the first basic input and output system and the second basic input and output system are connected to the switching unit; the controller is configured to send a control instruction to the switching unit to control the switching unit to be switched between a first conduction state and a second conduction state under the condition that a target operation aiming at the electronic equipment is detected; wherein the first conduction state comprises that the first basic input and output system is electrically connected with the processor, and the second basic input and output system is electrically connected with the controller; in the second conduction state, the first basic input and output system is electrically connected with the controller, and the second basic input and output system is electrically connected with the processor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of signal processing, and in particular to an electronic device and a signal processing method. Background Art

[0002] With the continuous development of information technology, in order to improve the reliability of the startup of an electronic device, two Basic Input Output System (BIOS) units are usually designed on the electronic device. For example, two BIOS units are designed on the server motherboard, and both BIOS units are connected to the central processing unit. When one of the BIOS units is damaged, the other BIOS unit is switched to perform hardware self-check and boot the operating system, avoiding the situation where the server cannot start due to the damage of a single BIOS unit.

[0003] In the process of implementing the concept of this application, it is found that there are at least the following problems in the related art. When the BIOS needs to be upgraded, it is necessary to connect the two BIOS units to the controller in sequence and then perform the upgrade, resulting in a long restart time of the electronic device. Summary of the Invention

[0004] In view of the above problems, this application provides an electronic device and a signal processing method.

[0005] According to the first aspect of this application, an electronic device is provided, including: a switching unit, and; a controller, a processor, a first Basic Input Output System, and a second Basic Input Output System connected to the switching unit; the controller is configured to send a control instruction to the switching unit to control the switching unit to switch between a first conduction state and a second conduction state when detecting a target operation for the electronic device; wherein, the first conduction state includes the first Basic Input Output System being electrically connected to the processor, and the second Basic Input Output System being electrically connected to the controller; the second conduction state includes the first Basic Input Output System being electrically connected to the controller, and the second Basic Input Output System being electrically connected to the processor.

[0006] The second aspect of this application provides a signal processing method, including: when the controller detects a target operation for the electronic device, sending a control instruction to the switching unit to control the switching unit to switch between a first conduction state and a second conduction state; wherein, the first conduction state includes the first Basic Input Output System being electrically connected to the processor, and the second Basic Input Output System being electrically connected to the controller; the second conduction state includes the first Basic Input Output System being electrically connected to the controller, and the second Basic Input Output System being electrically connected to the processor.

[0007] According to an embodiment of the present application, by using a controller to control the switching unit to switch between a first conduction state and a second conduction state, no matter it is the first conduction state or the second conduction state, the controller can always be connected to a BIOS, and the processor can be connected to a BIOS. When the BIOS needs to be upgraded, the controller can immediately upgrade the BIOS electrically connected thereto without waiting until the electronic device is turned off, realizing real-time upgrade. Description of the Drawings

[0008] Through the following description of the embodiments of the present application with reference to the drawings, the above content and other objects, features, and advantages of the present application will become clearer. In the drawings:

[0009] Figure 1 Shows a schematic diagram of the architecture of an electronic device in the related art;

[0010] Figure 2 Shows a schematic diagram of the architecture of an electronic device according to an embodiment of the present application;

[0011] Figure 3A Shows a schematic diagram of an electronic device when the switching unit is in the first conduction state according to an embodiment of the present application;

[0012] Figure 3B Shows a schematic diagram of an electronic device when the switching unit is in the second conduction state according to an embodiment of the present application.

[0013] Figure 4A Shows a schematic diagram of an electronic device when the switching unit is in the first conduction state according to another embodiment of the present application;

[0014] Figure 4B Shows a schematic diagram of an electronic device when the switching unit is in the second conduction state according to another embodiment of the present application;

[0015] Figure 5 Shows a flowchart for starting an electronic device according to an embodiment of the present application;

[0016] Figure 6 Shows a flowchart for upgrading a basic input / output system according to an embodiment of the present application;

[0017] Figure 7 Shows a flowchart for upgrading a basic input / output system according to another embodiment of the present application;

[0018] Figure 8 Shows a flowchart for upgrading a basic input / output system according to yet another embodiment of the present application;

[0019] Figure 9The flowchart of the signal processing method according to an embodiment of the present application is shown;

[0020] Figure 10 The structural block diagram of the signal processing device according to an embodiment of the present application is shown. Detailed implementation manners

[0021] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present application. In the following detailed description, for the sake of explanation, many specific details are set forth in order to provide a comprehensive understanding of the embodiments of the present application. However, obviously, one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present application.

[0022] The terms used herein are merely for describing specific embodiments and are not intended to limit the present application. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0023] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0024] In the case of using expressions such as "at least one of A, B, and C", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0025] In the technical solution of the present application, the user information involved (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties. Moreover, the processing of relevant data, such as collection, storage, use, processing, transmission, provision, disclosure, and application, all comply with relevant laws, regulations, and standards, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0026] Term explanation:

[0027] The Basic Input / Output System (BIOS) is the underlying firmware that runs when the computer boots up. It is responsible for hardware initialization, system self-check, and booting the operating system. It serves as a bridge between the computer hardware and the operating system and is stored in the non-volatile memory on the motherboard.

[0028] The Central Processing Unit (CPU) is the "brain" of the computer, responsible for executing instructions, processing data, and coordinating the work of the hardware.

[0029] The Baseboard Management Controller (BMC) is an embedded controller independent of the main system, used for remote monitoring and management of server / workstation hardware.

[0030] The Serial Peripheral Interface (SPI) is a high-speed, full-duplex synchronous serial communication protocol that uses a master-slave architecture.

[0031] Low Pin Count (LPC) bus protocol.

[0032] Chip Select (CS) signal.

[0033] Inter-Integrated Circuit (I2C) synchronous serial communication protocol.

[0034] The BIOS is mainly responsible for the self-check and system boot after the host is powered on. When the BIOS is damaged, it will cause the electronic device to fail to power on and unable to perform hardware self-check, thus resulting in the inability to start the electronic device. Therefore, to avoid the situation where a single BIOS unit is damaged and the electronic device cannot start, related technologies generally design two BIOS units on the electronic device. When one BIOS unit is damaged, the other BIOS unit is enabled to perform hardware self-check and boot the operating system.

[0035] Figure 1 Shows the schematic diagram of the architecture of an electronic device in the related art.

[0036] The electronic device in the related art may include a processor, a switching unit, a first BIOS, and a second BIOS. Figure 1 In the related example shown, the processor is a CPU.

[0037] As Figure 1 shown, the CPU 110 is connected to the switching unit 120, and the switching unit 120 is respectively connected to the first BIOS 130 and the second BIOS 140.

[0038] The switching unit 120 is configured to turn on a timer after detecting a power-on signal of the CPU 110 and electrically connect the CPU 110 to the first BIOS 130. The CPU 110 is configured to send a signal indicating that the first BIOS 130 has been started to the switching unit 120 after being electrically connected to the first BIOS 130. The switching unit 120 is configured to receive the signal indicating that the first BIOS 130 has been started within a time limit.

[0039] The switching unit 120 is configured to electrically connect the CPU 110 to the second BIOS 140 when the signal indicating that the first BIOS 130 has been started is not received within the time limit.

[0040] As described above, in the related art, the CPU 110 is connected to two BIOSs (the first BIOS 130 and the second BIOS 140), and the switching unit 120 is used to select which BIOS to use. At this time, the controller is not connected to any of the BIOSs, so the controller cannot see the BIOS at this time. When the BIOS needs to be upgraded, the electronic device needs to be turned off, and the two BIOSs are respectively connected to the controller in sequence, and then the upgrade is performed, resulting in a long restart time of the electronic device.

[0041] To solve the above technical problems, the present application provides an electronic device, including: a switching unit, and; a controller, a processor, a first basic input / output system, and a second basic input / output system connected to the switching unit; the controller is configured to send a control instruction to the switching unit to control the switching unit to switch between a first conduction state and a second conduction state when detecting a target operation for the electronic device; wherein, the first conduction state includes that the first basic input / output system is electrically connected to the processor, and the second basic input / output system is electrically connected to the controller; the second conduction state includes that the first basic input / output system is electrically connected to the controller, and the second basic input / output system is electrically connected to the processor.

[0042] Figure 2 The architecture diagram of the electronic device according to an embodiment of the present application is shown.

[0043] As Figure 2 shown, the architecture diagram of the electronic device in this embodiment includes a switching unit 220, and a controller 230, a processor 210, a first BIOS 130, and a second BIOS 140 connected to the switching unit 220.

[0044] The controller 230 is configured to send a control instruction to the switching unit 220 to control the switching unit 220 to switch between a first conduction state and a second conduction state when a target operation for the electronic device is detected; wherein, the first conduction state includes that the first BIOS 130 is electrically connected to the processor 210, and the second BIOS 140 is electrically connected to the controller 230; the second conduction state includes that the first BIOS 130 is electrically connected to the controller 230, and the second BIOS 140 is electrically connected to the processor 210.

[0045] The target operation for the electronic device may include a shutdown operation or a restart operation. The shutdown operation may include a shutdown operation performed by the controller, and may also include a shutdown operation performed by the target object. The restart operation may include a restart operation performed by the target object.

[0046] It should be noted that, in the target state, the shutdown operation performed by the target object and the restart operation performed by the target object are determined as target operations. The target state may be, for example, that the electronic device is in an upgrade state.

[0047] In some examples, the processor may be a CPU. The controller may be a BMC.

[0048] According to the embodiments of the present application, by using the controller to control the switching unit to switch between the first conduction state and the second conduction state, it is ensured that in both the first conduction state and the second conduction state, the controller can always be connected to one BIOS, and the processor can be connected to one BIOS. When the BIOS needs to be upgraded, the controller can immediately upgrade the BIOS electrically connected to it without waiting until the electronic device is turned off, realizing real-time upgrade.

[0049] The following combines Figure 3A 、 Figure 3B 、 Figure 4A and Figure 4B to Figure 2 illustrate the first conduction state and the second conduction state of the electronic device shown in detail.

[0050] Figure 3A FIG. shows a schematic diagram of the electronic device when the switching unit is in the first conduction state according to an embodiment of the present application.

[0051] As Figure 3AAs shown, the processor 210 of the electronic device in this embodiment is connected to the first end SPI IN0 of the switching unit 220 through the SPI interface and the CS interface, the controller 230 is connected to the second end SPI IN1 of the switching unit 220 through the SPI interface and the CS interface, the first BIOS 130 is connected to the third end SPI OUT0 of the switching unit 220 through the SPI0 interface and the CS0 interface, and the second BIOS 140 is connected to the fourth end SPI OUT1 of the switching unit 220 through the SPI1 interface and the CS1 interface.

[0052] In the first conduction state, the first end SPI IN0 of the switching unit 220 is electrically connected to the third end SPI OUT0, and the second end SPI IN1 is electrically connected to the fourth end SPI OUT1. At the same time, the CS0 interface of the first BIOS 130 is connected to the CS interface of the processor 210; the CS1 interface of the second BIOS 140 is connected to the CS interface of the controller 230.

[0053] It should be noted that Figure 3A the first conduction state shown may be the default conduction state.

[0054] In addition, the controller 230 and the switching unit 220 can also communicate via I2C.

[0055] Figure 3B FIG. shows a schematic diagram of an electronic device when the switching unit is in the second conduction state according to an embodiment of the present application.

[0056] As Figure 3B shown, the connection relationship among the processor 210, the controller 230, the switching unit 220, the first BIOS 130, and the second BIOS 140 of the electronic device in this embodiment is the same as that of the electronic device shown in Figure 3A except that the conduction state inside the switching unit 220 is the second conduction state.

[0057] In the second conduction state, the first end SPI IN0 of the switching unit 220 is electrically connected to the fourth end SPI OUT1, and the second end SPI IN1 is electrically connected to the third end SPI OUT0. At the same time, the CS0 interface of the first BIOS 130 is connected to the CS interface of the controller 230; the CS1 interface of the second BIOS 140 is connected to the CS interface of the processor 210.

[0058] In some examples, the switching unit is configured to store conduction state information, where the conduction state information characterizes the current conduction state of the switching unit. Specifically, the conduction state information may include the connection relationship among the first end SPI IN0, the second end SPI IN1, the third end SPI OUT0, and the fourth end SPI OUT1.

[0059] The on - state information is directly stored inside the switching unit, and the switching logic does not need to rely on an external controller, reducing communication latency.

[0060] In addition, the on - state information can provide real - time status data for the controller, supporting it to automatically trigger a switching operation according to preset logic (such as switching the BIOS when upgrading or starting abnormally), which is the key prerequisite for realizing the automated process of "detecting status → judging logic → executing switching". Moreover, by storing the on - state, after the system restarts or loses power, it can restore the connection configuration based on historical status information, avoiding connection chaos caused by status loss and ensuring the continuity and stability of hardware interaction.

[0061] According to an embodiment of the present application, the electronic device may further include: a low - pin - count interface unit; the processor is connected to the switching unit via the low - pin - count interface unit.

[0062] In this case, the first on - state may be that the first BIOS is electrically connected to the low - pin - count interface unit, and the second BIOS is electrically connected to the controller; the second on - state may be that the first BIOS is electrically connected to the controller, and the second BIOS is electrically connected to the low - pin - count interface unit.

[0063] The low - pin - count interface unit may be an LPC. The processor is connected to the switching unit through the low - pin - count interface unit, which can reduce the resource occupation of the SPI interface of the processor.

[0064] Figure 4A FIG. shows a schematic diagram of an electronic device when the switching unit is in the first on - state according to another embodiment of the present application.

[0065] As Figure 4A shown, the processor 210 of the electronic device in this embodiment may be connected to the low - pin - count interface unit 240. The low - pin - count interface unit 240 may be connected to the first end SPI IN0 of the switching unit 220 through an SPI interface. The controller 230 is connected to the second end SPI IN1 of the switching unit 220 through an SPI interface. The first BIOS 130 is connected to the switching unit 220 through an SPI0 interface and a CS0 interface. The second BIOS 140 is connected to the switching unit 220 through an SPI1 interface and a CS1 interface.

[0066] In the first on - state, the first end SPI IN0 of the switching unit 220 is electrically connected to the third end SPI OUT0, and the second end SPI IN1 is electrically connected to the fourth end SPI OUT1. At the same time, the CS0 interface of the first BIOS 130 is connected to the CS interface of the processor 210; the CS1 interface of the second BIOS 140 is connected to the CS interface of the controller 230.

[0067] It should be noted thatFigure 4A The first conduction state shown may be the default conduction state.

[0068] In addition, I2C communication may also be possible between the controller 230 and the switching unit 220.

[0069] Figure 4B A schematic diagram of an electronic device when the switching unit is in the second conduction state according to another embodiment of the present application is shown.

[0070] Such as Figure 4B shown, the connection relationships among the processor 210, the low-pin-count interface unit 240, the controller 230, the switching unit 220, the first BIOS 130, and the second BIOS 140 of the electronic device in this embodiment are the same as those of the Figure 4A shown electronic device, except that the conduction state inside the switching unit 220 is the second conduction state.

[0071] In the second conduction state, the first end SPI IN0 of the switching unit 220 is electrically connected to the fourth end SPI OUT1, and the second end SPI IN1 is electrically connected to the third end SPI OUT0. At the same time, the CS0 interface of the first BIOS 130 is connected to the CS interface of the controller 230; the CS1 interface of the second BIOS 140 is connected to the CS interface of the processor 210.

[0072] According to an embodiment of the present application, the controller is configured to control the switching unit to switch between the first conduction state and the second conduction state, including: determining a target conduction state between the first conduction state and the second conduction state according to the current conduction state of the switching unit, where the target conduction state is different from the current conduction state; controlling the switching unit to switch from the current conduction state to the target conduction state.

[0073] The current conduction state of the switching unit may be determined according to the stored connection relationships among the first end SPI IN0, the second end SPI IN1, the third end SPI OUT0, and the fourth end SPI OUT1.

[0074] For example, when the connection relationships among the first end SPI IN0, the second end SPI IN1, the third end SPI OUT0, and the fourth end SPI OUT1 are that the first end SPI IN0 is electrically connected to the third end SPI OUT0, and the second end SPI IN1 is electrically connected to the fourth end SPI OUT1. At the same time, the CS0 interface of the first BIOS is connected to the CS interface of the processor; the CS1 interface of the second BIOS is connected to the CS interface of the controller, then the current conduction state is the first conduction state as Figure 3A shown.

[0075] For example, when the connection relationships among the first end SPI IN0, the second end SPI IN1, the third end SPI OUT0, and the fourth end SPI OUT1 are such that the first end SPI IN0 is electrically connected to the fourth end SPI OUT1, and the second end SPI IN1 is electrically connected to the third end SPI OUT0. At the same time, the CS0 interface of the first BIOS is connected to the CS interface of the controller; the CS1 interface of the second BIOS is connected to the CS interface of the processor. Then the current conduction state is as Figure 3B shown in the second conduction state.

[0076] According to an embodiment of the present application, determining the target conduction state among the first conduction state and the second conduction state according to the current conduction state of the switching unit may include: when the current conduction state is the first conduction state, determining the second conduction state as the target conduction state; when the current conduction state is the second conduction state, determining the first conduction state as the target conduction state.

[0077] For example, if the current conduction state is as Figure 3A shown in the first conduction state, then the target conduction state is as Figure 3B shown in the second conduction state. At this time, control the switching unit to change from the conduction state as Figure 3A shown to the conduction state as Figure 3B shown.

[0078] For example, if the current conduction state is as Figure 3B shown in the second conduction state, then the target conduction state may be as Figure 3A shown in the first conduction state. At this time, control the switching unit to change from the conduction state as Figure 3B shown to the conduction state as Figure 3A shown.

[0079] According to an embodiment of the present application, the controller being configured to detect a target operation for the electronic device may include: detecting a shutdown operation performed by the controller on the electronic device.

[0080] For example, during the startup process of the electronic device, when the current BIOS runs abnormally, the controller may perform a shutdown operation, and at this time, send a control instruction to the switching unit.

[0081] Specifically, the controller can detect the operations performed by the target object on the electronic device. When it detects that the target object performs a startup operation, such as pressing the power button, it starts a timer; runs the BIOS electrically connected to the processor; when it detects that the timer times out, it indicates that the BIOS runs abnormally. At this time, the controller can perform a shutdown operation and send a control instruction to the switching unit to control the switching of the switching unit between the first conduction state and the second conduction state. For example, if the current conduction state is the first conduction state, it controls the switching unit to switch to the second conduction state; when it detects that the switching unit completes the state switching, it re-triggers the startup process of the electronic device.

[0082] Figure 5 Fig. shows a flowchart for starting up an electronic device according to an embodiment of the present application.

[0083] As Figure 5 shown, the flowchart for starting up the electronic device in this embodiment includes operations S501 to S510.

[0084] In operation S501, after the user presses the power-on button, the controller detects the power-on signal.

[0085] In operation S502, the controller starts the timer and controls the main board power module to be powered on.

[0086] In operation S503, after the power is turned on, the processor reads the code of the currently connected BIOS and executes the startup process. For example, the current conduction state of the switching unit is the first conduction state as Figure 3A shown, and at this time, the currently connected BIOS is the first BIOS.

[0087] During the process of the processor executing the startup process, it executes according to the preset execution stages, and sends an execution stage instruction to the controller after completing each execution stage.

[0088] In operation S504, after the controller receives the execution stage instruction, it judges whether the timer times out. If it does not time out, it executes operation S505; if it times out, it executes operation S508.

[0089] In operation S505, it judges whether the startup is completed. If it is completed, it executes operation S506; if it is not completed, it executes operation S507.

[0090] In operation S506, the timer is turned off.

[0091] In operation S507, re-timing is performed.

[0092] In operation S508, the SPI driver is uninstalled, and a control instruction is sent to the switching unit.

[0093] In operation S509, the switching unit switches between the first conduction state and the second conduction state.

[0094] For example, if the current conduction state of the switching unit is the first conduction state as shown in Figure 3A , then switch the current conduction state of the switching unit to the second conduction state as shown in Figure 3B . For example, if the current conduction state of the switching unit is the second conduction state as shown in Figure 3B , then switch the current conduction state of the switching unit to the first conduction state as shown in Figure 3A .

[0095] In operation S510, after the controller detects that the switching of the switching unit is completed, it reloads the SPI driver and re-executes operation S501.

[0096] In the process of starting the electronic device according to the embodiment of the present application, the start process is monitored by a timer. If it times out, it is determined that the start is abnormal. At this time, the SPI driver is unloaded, the conduction state of the switching unit is switched, the SPI driver is reloaded and restarted, and the BIOS can be automatically switched when there is a problem in the BIOS start, improving the start success rate and enhancing the system reliability. In addition, the controller determines the start process based on the received execution stage instruction and the timer status, and orderly controls each link of the start process to ensure that the start process progresses according to the preset logic.

[0097] According to an embodiment of the present application, the controller configured to detect a target operation for the electronic device may further include: detecting a shutdown operation or a restart operation performed by the target object on the electronic device in a target state.

[0098] The target state may be a state of receiving an upgrade instruction for the basic input / output system, or a state in which the target BIOS in the first BIOS and the second BIOS is upgraded.

[0099] For example, the controller may further be configured to detect a shutdown operation or a restart operation performed by the target object on the electronic device when receiving an upgrade instruction for the BIOS; or detect a shutdown operation or a restart operation performed by the target object on the electronic device when the target BIOS in both the first BIOS and the second BIOS is upgraded.

[0100] For example, when only the main BIOS, i.e., the BIOS connected to the processor, needs to be upgraded, since the controller is not connected to the running BIOS, the controller needs to wait for the electronic device to shut down or restart and then send a control instruction to the switching unit.

[0101] For example, when only the backup BIOS, i.e., the BIOS connected to the controller, needs to be upgraded, the upgrade operation can be directly performed on the backup BIOS. After the upgrade is completed, it is necessary to wait for the electronic device to shut down or restart and then send a control instruction to the switching unit.

[0102] For example, when both the first BIOS and the second BIOS need to be upgraded, the controller can directly upgrade the BIOS connected to it, such as the second BIOS. After the second BIOS is upgraded, when the electronic device needs to be shut down or restarted, a control instruction is sent to the switching unit to control the switching unit to connect the first BIOS to the controller. At this time, the controller can perform an upgrade operation on the first BIOS.

[0103] In the target state, such as after receiving an upgrade instruction or after a single BIOS upgrade is completed, monitor the user's operations, which can achieve phased connection of "instruction reception → waiting for shutdown / restart → state switching → subsequent upgrade", ensuring the logical coherence of the multi-step upgrade process. In addition, only respond to the shutdown operation or restart operation in the target state, preventing the state switching or driver uninstallation in the upgrade process from being triggered by misoperation during normal system operation, reducing interference to system operation, and ensuring stability.

[0104] According to an embodiment of the present application, the controller is further configured to: in response to detecting an upgrade instruction for the basic input / output system, determine a target basic input / output system in the first basic input / output system and the second basic input / output system according to the upgrade instruction; execute an upgrade process determined according to the conduction state and quantity of the target basic input / output system, so as to perform an upgrade operation on the target basic input / output system.

[0105] The upgrade instruction may include an image file and BIOS information to be upgraded. The BIOS information may include any information capable of distinguishing BIOS, such as address information and identification information, etc.

[0106] By determining the target BIOS according to the upgrade instruction, it is possible to avoid mis-upgrading other BIOSs, ensuring the pertinence and accuracy of the upgrade operation. In addition, determining the upgrade process according to the conduction state and quantity of the target BIOS can adapt to different hardware configuration situations, improving the flexibility and compatibility of the upgrade process.

[0107] Figure 6 Shows a flowchart of upgrading the basic input / output system according to an embodiment of the present application.

[0108] As Figure 6 shown, the upgrade process of this embodiment is for the case where the target BIOS is the first BIOS or the second BIOS, and the target BIOS is electrically connected to the controller, and specifically may include operation S601 to operation S605.

[0109] In operation S601, in response to detecting an upgrade instruction for the BIOS, determine the target BIOS in the first BIOS and the second BIOS according to the upgrade instruction.

[0110] In operation S602, in response to the conduction state of the target BIOS indicating that the target BIOS is electrically connected to the controller, an upgrade operation is performed on the target BIOS according to the image file included in the upgrade instruction.

[0111] In operation S603, in response to the completion of the upgrade operation, the operations performed by the target object are detected.

[0112] In operation S604, in response to detecting that the operation performed by the target object is a shutdown operation or a restart operation, the SPI driver is uninstalled, and a control instruction is sent to the switching unit.

[0113] In operation S605, the switching unit is controlled to switch between a first conduction state and a second conduction state. For example, if the target BIOS is the first BIOS, the switching unit is controlled to electrically connect the second BIOS to the controller.

[0114] In operation S606, in response to the switching unit completing the state transition, the controller reloads the SPI driver. At this time, the controller can see another BIOS.

[0115] It should be noted that if the controller detects that the operation performed by the target object is a shutdown operation, it ends after performing operation S606. If the controller detects that the operation performed by the target object is a restart operation, the controller needs to re-control the electronic device to power on.

[0116] According to the embodiments of the present application, when the target BIOS is electrically connected to the controller, it can be directly upgraded according to the image file, realizing fast and direct BIOS upgrade operations and improving the upgrade efficiency. And after the upgrade is completed, a control instruction is sent to the switching unit according to the shutdown or restart operation of the target object, realizing the associated control of the post-upgrade operations, ensuring that the system makes subsequent adjustments at an appropriate time, and guaranteeing the stability and coordination of the system operation.

[0117] According to the embodiments of the present application, the controller is further configured to: in response to the conduction state of the target BIOS indicating that the target BIOS is disconnected from the controller, detect the operations performed by the target object on the electronic device; in response to detecting that the operations performed by the target object on the electronic device include a shutdown operation or a restart operation, send a control instruction to the switching unit to control the switching unit to switch between a first conduction state and a second conduction state; in response to the target BIOS being electrically connected to the controller, perform an upgrade operation on the target BIOS according to the image file included in the upgrade instruction.

[0118] The disconnection between the target BIOS and the controller indicates that the target BIOS is not connected to the controller. It is necessary to wait for the electronic device to power off or restart and then switch the conduction state before upgrading the target BIOS. At this time, it is necessary to detect the shutdown operation or restart operation performed by the target object on the electronic device.

[0119] Figure 7 Shows a flowchart for upgrading the basic input / output system according to another embodiment of the present application.

[0120] As Figure 7 shown, for the upgrade process of this embodiment, when the target BIOS is the first BIOS or the second BIOS and the target BIOS is not connected to the controller, it may specifically include operation S701 to operation S707.

[0121] In operation S701, in response to detecting an upgrade instruction for the BIOS, determine the target BIOS among the first BIOS and the second BIOS according to the upgrade instruction.

[0122] In operation S702, in response to the conduction state of the target BIOS indicating that the target BIOS is disconnected from the controller, detect the operation performed by the target object on the electronic device.

[0123] In operation S703, in response to detecting that the operation performed by the target object on the electronic device includes a shutdown operation or a restart operation, unload the SPI driver and send a control instruction to the switching unit.

[0124] In operation S704, control the switching unit to switch between the first conduction state and the second conduction state. For example, if the target BIOS is the first BIOS, control the switching unit to electrically connect the first BIOS to the controller.

[0125] In operation S705, in response to the switching unit completing the state transition, the controller reloads the SPI driver. At this time, the controller can see the target BIOS.

[0126] In operation S706, perform an upgrade operation on the target BIOS according to the image file included in the upgrade instruction.

[0127] In operation S707, in response to the completion of the upgrade operation, the controller unloads the SPI driver and controls the target BIOS to be electrically connected to the processor by sending a control instruction to the switching unit.

[0128] For the scenario where the target BIOS is not connected to the controller, by detecting the shutdown operation or the restart operation to trigger the state transition, the entire process of "disconnect → switch connection → upgrade → restore connection" is automatically completed, reducing manual intervention and improving the automation degree of the upgrade operation.

[0129] In addition, by unloading or reloading the SPI driver and cooperating with the switching unit to switch the conduction state, it is ensured that the target BIOS is connected to the controller before the upgrade and restored to be connected to the processor after the upgrade, avoiding system anomalies caused by connection conflicts and ensuring the stability of hardware interaction.

[0130] According to an embodiment of the present application, the controller is configured to, when determining that the target BIOS is the first BIOS and the second BIOS, immediately upgrade the target BIOS connected to the controller, such as the first BIOS; then, wait until the electronic device shuts down or restarts and the conduction state is switched, and then upgrade the other target BIOS, such as the second BIOS.

[0131] Specifically: when the target BIOS is the first BIOS and the second BIOS, the process of upgrading the BIOS may include: determining a first system to be upgraded and a second system to be upgraded according to the conduction states of the first BIOS and the second BIOS respectively, where the first system to be upgraded is the target BIOS electrically connected to the controller among the first BIOS and the second BIOS, and the second system to be upgraded is the target BIOS connected to the processor among the first BIOS and the second BIOS; performing a first upgrade operation on the first system to be upgraded according to the image file included in the upgrade instruction; in response to detecting that the operation performed by the target object on the electronic device after the first upgrade operation is completed includes a shutdown operation or a restart operation, sending a control instruction to the switching unit to control the switching unit to electrically connect the second system to be upgraded to the controller; in response to the second system to be upgraded being electrically connected to the controller, performing a second upgrade operation on the second system to be upgraded according to the image file included in the upgrade instruction.

[0132] Figure 8 The flowchart shows the process of upgrading the BIOS according to another embodiment of the present application.

[0133] As Figure 8 shown, for the case where the target BIOS is determined to be the first BIOS and the second BIOS, the upgrade process of this embodiment may specifically include operation S801 to operation S808.

[0134] In operation S801, in response to detecting an upgrade instruction for the BIOS, determine that the target BIOS is the first BIOS and the second BIOS.

[0135] In operation S802, determine the first system to be upgraded and the second system to be upgraded according to the conduction states of the first BIOS and the second BIOS respectively. For example, the first system to be upgraded is the first BIOS, and the second system to be upgraded is the second BIOS.

[0136] In operation S803, perform a first upgrade operation on the first system to be upgraded according to the image file included in the upgrade instruction.

[0137] In operation S804, in response to the completion of the first upgrade operation, detect the operation performed by the target object.

[0138] In operation S805, in response to detecting that the operation performed by the target object on the electronic device is a shutdown operation or a restart operation, unload the SPI driver and send a control instruction to the switching unit.

[0139] In operation S806, control the switching unit to switch between a first conduction state and a second conduction state to electrically connect the second system to be upgraded to the controller.

[0140] In operation S807, in response to the second system to be upgraded being electrically connected to the controller, the controller reloads the SPI driver. At this time, the controller can see the second system to be upgraded.

[0141] In operation S808, perform a second upgrade operation on the second system to be upgraded according to the image file included in the upgrade instruction.

[0142] It should be noted that when the controller detects that the operation performed by the target object is a shutdown operation, operation S808 can be directly executed after operation S807. When the controller detects that the operation performed by the target object is a restart operation, after operation S807, the controller needs to restart the electronic device and then execute operation S808.

[0143] For the scenario where the target BIOS includes a first BIOS and a second BIOS, by performing the upgrade operation in stages, that is, first upgrading the first system to be upgraded, and then upgrading the second system to be upgraded after the conduction state is switched, the repeated operation steps can be reduced and the upgrade efficiency of the dual BIOS system can be improved.

[0144] In addition, according to the shutdown operation or restart operation performed by the target object, automatically match different upgrade connection logics, such as directly upgrading after shutdown or restarting and then powering on again to upgrade, to ensure that the upgrade process is synchronized with the system state and avoid upgrade failures caused by operation interruptions.

[0145] In addition, by unloading or loading the SPI driver and switching the conduction state of the switching unit, dynamically manage the connection relationship between the dual BIOS and the controller and the processor, ensure that each BIOS monopolizes the communication channel during the upgrade, and guarantee the stability of the hardware interaction.

[0146] According to an embodiment of the present application, by adding a switching unit to an electronic device, such as a server system motherboard, to control the selection of which BIOS to use to boot the host system when the host system powers on, and at the same time connecting the other BIOS to a controller, the processor and the controller can access both BIOSs simultaneously, making full use of the dual BIOS. By default, the first BIOS is used to boot the host system. If the host system fails to boot successfully after the system powers on, the controller notifies the switching unit to switch to use the second BIOS to boot the host system and connect the other BIOS to the controller. The entire switching process requires no manual intervention.

[0147] In addition, the technical solution of the present application can also achieve independent upgrades of the two BIOSs, and the upgrade process will not affect the other BIOS. At the same time, it is possible to immediately upgrade the backup BIOS without waiting for shutdown.

[0148] Based on the above electronic device, the present application also provides a signal processing method. The following will be combined with Figure 9 to describe this method in detail.

[0149] Figure 9 The flowchart of the signal processing method according to an embodiment of the present application is shown.

[0150] As Figure 9 shown, this method includes operation S910.

[0151] In operation S910, when the controller detects a target operation for the electronic device, it sends a control instruction to the switching unit to control the switching of the switching unit between a first conduction state and a second conduction state; wherein, the first conduction state includes that the first basic input / output system is electrically connected to the processor, and the second basic input / output system is electrically connected to the controller; the second conduction state includes that the first basic input / output system is electrically connected to the controller, and the second basic input / output system is electrically connected to the processor.

[0152] According to an embodiment of the present application, when the controller detects a target operation for the electronic device, it sends a control instruction to the switching unit to control the switching of the switching unit between a first conduction state and a second conduction state. So that whether it is the first conduction state or the second conduction state, it can always make the controller always connect to one BIOS and the processor connect to one BIOS. When it is necessary to upgrade the BIOS, the controller can immediately upgrade the BIOS electrically connected to it without waiting until the electronic device is turned off, realizing real-time upgrade.

[0153] Based on the above signal processing method, the present application also provides a signal processing device. The following will be combined with Figure 10 to describe this device in detail.

[0154] Figure 10 The block diagram of the signal processing device according to an embodiment of the present application is shown.

[0155] As Figure 10 shown, the signal processing device 1000 of this embodiment includes a control module 1010.

[0156] The control module 1010 is configured to send a control instruction to the switching unit when the controller detects a target operation for the electronic device, so as to control the switching unit to switch between a first conduction state and a second conduction state; wherein, the first conduction state includes that the first basic input / output system is electrically connected to the processor, and the second basic input / output system is electrically connected to the controller; the second conduction state includes that the first basic input / output system is electrically connected to the controller, and the second basic input / output system is electrically connected to the processor.

[0157] According to an embodiment of the present application, any multiple modules in the control module 1010 can be combined and implemented in one module, or any one of them can be split into multiple modules. Or, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present application, at least one of the control modules 1010 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or can be implemented by any other reasonable way of integrating or packaging circuits and other hardware or firmware, or can be implemented in any one of the three implementation manners of software, hardware, and firmware or in any appropriate combination of several of them. Or, at least one of the control modules 1010 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding functions can be executed.

[0158] It should be noted that the signal processing device part in the embodiment of the present application corresponds to the signal processing method part in the embodiment of the present application. For the description of the protocol analysis device part, please refer to the operation signal processing method part specifically, and details will not be repeated here.

[0159] The present application also provides a computer-readable storage medium, which can be included in the device / device / system described in the above embodiment; or can exist alone without being assembled into the device / device / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present application is implemented.

[0160] According to an embodiment of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present application, the computer-readable storage medium may include one or more memories other than the ROM and / or RAM and / or ROM and RAM described above.

[0161] An embodiment of the present application further includes a computer program product, which includes a computer program that contains program code for executing the method shown in the flowchart. When the computer program product runs in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present application.

[0162] When the computer program is executed by an electronic device, it executes the above functions defined in the system / apparatus of the embodiment of the present application. According to an embodiment of the present application, the systems, apparatuses, modules, units, etc. described above can be implemented by computer program modules.

[0163] In one embodiment, the computer program can rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program can also be transmitted and distributed in the form of a signal on a network medium, and is downloaded and installed through the communication part, and / or installed from a removable medium. The program code included in the computer program can be transmitted by any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0164] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by an electronic device, it executes the above functions defined in the system of the embodiment of the present application. According to an embodiment of the present application, the systems, devices, apparatuses, modules, units, etc. described above can be implemented by computer program modules.

[0165] In accordance with embodiments of the present application, program code for executing the computer programs provided by the embodiments of the present application can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).

[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0167] Those skilled in the art can understand that the features described in the various embodiments of the present application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments of the present application can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present application.

[0168] The above describes the embodiments of the present application. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present application. Although the embodiments have been described separately above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Without departing from the scope of the present application, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present application.

Claims

1. An electronic device, characterized in that, Comprising: A switching unit, and; A controller, a processor, a first basic input / output system, and a second basic input / output system connected to the switching unit; The controller is configured to send a control instruction to the switching unit to control the switching of the switching unit between a first conduction state and a second conduction state when detecting a target operation for the electronic device; Wherein, the first conduction state includes the first basic input / output system being electrically connected to the processor, and the second basic input / output system being electrically connected to the controller; the second conduction state includes the first basic input / output system being electrically connected to the controller, and the second basic input / output system being electrically connected to the processor.

2. The electronic device according to claim 1, wherein The controller being configured to detect a target operation for the electronic device includes: Detecting a shutdown operation performed by the controller on the electronic device; or In a target state, detecting a shutdown operation or a restart operation performed by a target object on the electronic device.

3. The electronic device according to claim 2, wherein The controller being configured to detect a shutdown operation or a restart operation performed by a target object on the electronic device in a target state includes: Detecting a shutdown operation or a restart operation performed by a target object on the electronic device when receiving an upgrade instruction for the basic input / output system; or Detecting a shutdown operation or a restart operation performed by a target object on the electronic device when the target basic input / output system in both the first basic input / output system and the second basic input / output system has been upgraded.

4. The electronic device according to claim 1, wherein The controller being configured to control the switching of the switching unit between a first conduction state and a second conduction state includes: Determining a target conduction state between the first conduction state and the second conduction state according to the current conduction state of the switching unit, wherein the target conduction state is different from the current conduction state; Controlling the switching unit to switch from the current conduction state to the target conduction state.

5. The electronic device according to claim 4, wherein The controller being configured to determine a target conduction state between the first conduction state and the second conduction state according to the current conduction state of the switching unit includes: When the current conduction state is the first conduction state, determining the second conduction state as the target conduction state; When the current conduction state is the second conduction state, determining the first conduction state as the target conduction state.

6. The electronic device according to claim 1, wherein The controller is further configured to: In response to detecting an upgrade instruction for the basic input / output system, determining the target basic input / output system in the first basic input / output system and the second basic input / output system according to the upgrade instruction; Executing an upgrade process determined according to the conduction state and quantity of the target basic input / output system so as to perform an upgrade operation on the target basic input / output system.

7. The electronic device according to claim 6, wherein The controller being configured to, when determining that the target basic input / output system is the first basic input / output system or the second basic input / output system, In response to the conduction state of the target basic input / output system indicating that the target basic input / output system is electrically connected to the controller, an upgrade operation is performed on the target basic input / output system according to the image file included in the upgrade instruction.

8. The electronic device according to claim 7, characterized in that, The controller is further configured to: In response to the completion of the upgrade operation, detect the operation performed by the target object; In response to detecting that the operation performed by the target object is a shutdown operation or a restart operation, send the control instruction to the switching unit.

9. The electronic device according to claim 6, characterized in that The controller is further configured to: In response to the conduction state of the target basic input / output system indicating that the target basic input / output system is disconnected from the controller, detect the operation performed by the target object on the electronic device; In response to detecting that the operation performed by the target object on the electronic device includes a shutdown operation or a restart operation, send a control instruction to the switching unit to control the switching unit to switch between a first conduction state and a second conduction state; In response to the target basic input / output system being electrically connected to the controller, an upgrade operation is performed on the target basic input / output system according to the image file included in the upgrade instruction.

10. The electronic device according to claim 6, wherein The controller is configured to, when determining that the target basic input / output system is the first basic input / output system and the second basic input / output system, Determine a first system to be upgraded and a second system to be upgraded according to the conduction states of the first basic input / output system and the second basic input / output system respectively, where the first system to be upgraded is the target basic input / output system electrically connected to the controller among the first basic input / output system and the second basic input / output system, and the second system to be upgraded is the target basic input / output system disconnected from the controller among the first basic input / output system and the second basic input / output system; Perform a first upgrade operation on the first system to be upgraded according to the image file included in the upgrade instruction; In response to detecting that the operation performed by the target object on the electronic device includes a shutdown operation or a restart operation after the completion of the first upgrade operation, send the control instruction to the switching unit to control the switching unit to electrically connect the second system to be upgraded to the controller; In response to the second system to be upgraded being electrically connected to the controller, perform a second upgrade operation on the second system to be upgraded according to the image file included in the upgrade instruction.

11. The electronic device according to claim 6, wherein The controller is further configured to: In response to detecting the start operation of the electronic device performed by the target object, start a timer; In response to the timeout of the timer, perform a shutdown operation and send a control instruction to the switching unit to control the switching unit to switch between a first conduction state and a second conduction state; In response to detecting that the switching unit has completed the state switching, re-trigger the electronic device start process.

12. A signal processing method, applied to an electronic device according to any one of claims 1-11, characterized in that, The signal processing method includes: When the controller detects a target operation on the electronic device, send a control instruction to the switching unit to control the switching unit to switch between a first conduction state and a second conduction state; Wherein, the first conduction state includes that the first basic input / output system is electrically connected to the processor, and the second basic input / output system is electrically connected to the controller; the second conduction state includes that the first basic input / output system is electrically connected to the controller, and the second basic input / output system is electrically connected to the processor.

Citation Information

Patent Citations

  • Electric device, start method of electric and update method of BIOS

    CN101017441A

  • Computer system and update method of basic input-output system thereof

    CN103136012A

  • Server and BIOS communication management circuit thereof

    CN111858428A

  • Double-BIOS (Basic Input Output System) monitoring system of COMe board card

    CN111984296A

  • Basic input and output system firmware upgrading method, product, equipment and medium

    CN118567692A