Electronic device and signal processing method
By introducing a switching unit into an electronic device and using a controller to control its state switching, the problem of long BIOS upgrade time in the prior art is solved, and real-time upgrade and improved system stability are achieved.
Patent Information
- Application Number
- CN202510820184.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2045-06-18
AI Technical Summary
When the BIOS needs to be upgraded, in the prior art, two BIOS units need to be connected to the controller in sequence before upgrading, which results in a long restart time for the electronic device.
By introducing a switching unit into an electronic device, the controller can send a control instruction to the switching unit when detecting a target operation to control it to switch between a first conduction state and a second conduction state, so that the controller is always connected to a BIOS and the processor is also connected to a BIOS, thereby achieving real-time upgrades.
This allows BIOS to be upgraded without having to wait for electronic devices to be shut down, reducing reboot time and improving upgrade efficiency and system reliability.
Smart Images

Figure CN120336235B_ABST
Abstract
Description
Technical Field
[0001] The present 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, electronic devices are often designed with two Basic Input Output System (BIOS) units to improve their boot reliability. For example, a server motherboard might have two BIOS units connected to the central processing unit. If one BIOS unit is damaged, the other unit will be used to perform a hardware self-test and boot the operating system, preventing a server from failing to boot due to a single BIOS unit being damaged.
[0003] In the process of realizing the concept of this application, it was found that there are at least the following problems in the related technology: when the BIOS needs to be upgraded, the two BIOS units need to be connected to the controller in sequence and then upgraded, resulting in a long restart time for the electronic device. Summary of the Invention
[0004] In view of the above problems, the present application provides an electronic device and a signal processing method.
[0005] According to a first aspect of the present application, an electronic device is provided, 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, upon detecting a target operation for the electronic device, send a control instruction to the switching unit to control the switching unit to switch between a first conductive state and a second conductive state; wherein the first conductive 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; and the second conductive 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 the present application provides a signal processing method, including: when a controller detects a target operation on an electronic device, it sends a control instruction to a switching unit to control the switching unit to switch between a first conductive state and a second conductive state; wherein the first conductive state includes a first basic input-output system electrically connected to a processor, and a second basic input-output system electrically connected to the controller; the second conductive state includes the first basic input-output system electrically connected to the controller, and the second basic input-output system 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 conductive state and a second conductive state, the controller can always be connected to a BIOS, and the processor can always be connected to a BIOS, regardless of whether the state is the first conductive state or the second conductive state. When a BIOS upgrade is required, the controller can immediately upgrade the BIOS electrically connected to it, without having to wait until the electronic device is turned off, thus achieving real-time upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above contents and other objects, features and advantages of the present application will become more apparent through the following description of the embodiments of the present application with reference to the accompanying drawings, in which:
[0009] Figure 1 A schematic diagram of the architecture of an electronic device in the related art is shown;
[0010] Figure 2 A schematic diagram of the architecture of an electronic device according to an embodiment of the present application is shown;
[0011] Figure 3A A schematic diagram of an electronic device in which a switching unit is in a first conductive state according to an embodiment of the present application is shown;
[0012] Figure 3B A schematic diagram of an electronic device is shown in which a switching unit is in a second conductive state according to an embodiment of the present application.
[0013] Figure 4A A schematic diagram of an electronic device with a switching unit in a first conductive state according to another embodiment of the present application is shown;
[0014] Figure 4B A schematic diagram of an electronic device with a switching unit in a second conductive state according to another embodiment of the present application is shown;
[0015] Figure 5 A flowchart of starting an electronic device according to an embodiment of the present application is shown;
[0016] Figure 6 A flowchart of upgrading a basic input / output system according to an embodiment of the present application is shown;
[0017] Figure 7 A flowchart of upgrading a basic input / output system according to another embodiment of the present application is shown;
[0018] Figure 8 A flowchart of upgrading a basic input and output system according to another embodiment of the present application is shown;
[0019] Figure 9A flow chart of a signal processing method according to an embodiment of the present application is shown;
[0020] Figure 10 The figure shows a structural block diagram of a signal processing device according to an embodiment of the present application. DETAILED DESCRIPTION
[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 exemplary only and are not intended to limit the scope of the present application. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.
[0022] The terms used herein are only for describing specific embodiments and are not intended to limit this application. The terms "comprise," "include," etc. used herein indicate the presence of the 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] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with 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 A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0025] In the technical solution of this 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 used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0026] Explanation of terms:
[0027] The Basic Input / Output System (BIOS) is the low-level firmware that runs when a computer starts up. It is responsible for hardware initialization, system self-tests, and booting the operating system. It bridges the gap between the computer hardware and the operating system and is stored in 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 hardware work.
[0029] A baseboard management controller (BMC) is an embedded controller independent of the main system that is used to remotely monitor and manage server / workstation hardware.
[0030] 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 signal (CS).
[0033] Synchronous serial communication protocol (Inter-Integrated Circuit, i2c).
[0034] The BIOS is primarily responsible for self-testing and booting the system after the host is powered on. A damaged BIOS can prevent electronic devices from booting up, performing hardware self-tests, and ultimately preventing them from starting. Therefore, to prevent a single BIOS unit from failing to boot, the related art typically employs two BIOS units. If one BIOS unit is damaged, the other unit is activated to perform hardware self-tests and boot the operating system.
[0035] Figure 1 A schematic diagram of the architecture of an electronic device in the related art is shown.
[0036] An electronic device in the related art may include a processor, a switching unit, a first BIOS, and a second BIOS. Figure 1 In the example shown, the processor is a CPU.
[0037] like Figure 1 As shown, the CPU 110 is connected to the switching unit 120 , and the switching unit 120 is connected to the first BIOS 130 and the second BIOS 140 respectively.
[0038] The switching unit 120 is used to start the timer after detecting the power-on signal of the CPU 110, and electrically connect the CPU 110 with the first BIOS 130. After the CPU 110 is electrically connected to the first BIOS 130, it is used to send the first BIOS 130 started signal to the switching unit 120. The switching unit 120 is used to receive the first BIOS 130 started signal within the time limit.
[0039] The switching unit 120 is configured to electrically connect the CPU 110 to the second BIOS 140 when the switching unit 120 does not receive the first BIOS 130 startup signal within a time limit.
[0040] As described above, in the related art, CPU 110 is connected to two BIOSes (first BIOS 130 and second BIOS 140), and the BIOS to be used is selected by switching unit 120. At this point, the controller is not connected to either BIOS and therefore cannot see the BIOS. To update the BIOS, the electronic device must be shut down, and both BIOSes must be connected to the controller in turn before the update is performed. This results in a long reboot time for the electronic device.
[0041] In order 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 when a target operation for the electronic device is detected, so as to control the switching unit to switch between a first conductive state and a second conductive state; wherein the first conductive 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 conductive 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.
[0042] Figure 2 A schematic diagram of the architecture of an electronic device according to an embodiment of the present application is shown.
[0043] like Figure 2 As shown, the architecture diagram of the electronic device of 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 on the electronic device is detected; wherein the first conduction state includes the first BIOS 130 electrically connected to the processor 210, and the second BIOS 140 electrically connected to the controller 230; the second conduction state includes the first BIOS 130 electrically connected to the controller 230, and the second BIOS 140 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 a controller, and may also include a shutdown operation performed by a target object. The restart operation may include a restart operation performed by a target object.
[0046] It should be noted that, in the target state, only the shutdown operation and the restart operation performed by the target object are determined to be 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 and the controller may be a BMC.
[0048] According to an embodiment of the present application, by using a controller to control the switching unit to switch between a first conductive state and a second conductive state, the controller can always be connected to a BIOS, and the processor can always be connected to a BIOS, regardless of whether the state is the first conductive state or the second conductive state. When a BIOS upgrade is required, the controller can immediately upgrade the BIOS electrically connected to it, without having to wait until the electronic device is turned off, thus achieving real-time upgrade.
[0049] The following combination Figure 3A 、 Figure 3B 、 Figure 4A and Figure 4B right Figure 2 The first conductive state and the second conductive state of the electronic device shown are described in detail.
[0050] Figure 3A A schematic diagram of an electronic device is shown in which a switching unit is in a first conducting state according to an embodiment of the present application.
[0051] like Figure 3AAs shown, the processor 210 of the electronic device of 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 SPIIN1 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 on state, the first terminal SPI IN0 of the switching unit 220 is electrically connected to the third terminal SPI OUT0, and the second terminal SPI IN1 is electrically connected to the fourth terminal SPI OUT1. Simultaneously, the CS0 interface of the first BIOS 130 is connected to the CS interface of the processor 210; and 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 conductive state shown may be a default conductive state.
[0054] In addition, the controller 230 and the switching unit 220 can also communicate with each other via I2C.
[0055] Figure 3B A schematic diagram of an electronic device is shown in which a switching unit is in a second conductive state according to an embodiment of the present application.
[0056] like Figure 3B As shown, the connection relationship between the processor 210, the controller 230, the switching unit 220, the first BIOS 130 and the second BIOS 140 of the electronic device of this embodiment is similar to Figure 3A The electronic devices shown are identical, the only difference being that the conduction state inside the switching unit 220 is the second conduction state.
[0057] In the second on state, the first terminal SPI IN0 of the switching unit 220 is electrically connected to the fourth terminal SPI OUT1, and the second terminal SPI IN1 is electrically connected to the third terminal SPI OUT0. Simultaneously, the CS0 interface of the first BIOS 130 is connected to the CS interface of the controller 230; and 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, wherein the conduction state information represents a current conduction state of the switching unit. Specifically, the conduction state information may include a connection relationship between the first terminal SPI IN0, the second terminal SPI IN1, the third terminal SPI OUT0, and the fourth terminal SPI OUT1.
[0059] The conduction status information is directly stored inside the switching unit, and the switching logic does not need to rely on an external controller, reducing communication delays.
[0060] Furthermore, connectivity status information provides the controller with real-time status data, enabling it to automatically trigger switching operations based on pre-set logic (such as switching BIOS during an upgrade or boot-up exception). This is a key prerequisite for implementing the automated "detect status → determine logic → execute switch" process. Furthermore, by storing connectivity status, the system can restore the connection configuration based on historical status information after a reboot or power outage, avoiding connection confusion caused by lost status 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; and the processor is connected to the switching unit via the low pin count interface unit.
[0062] In this case, the first conductive state can 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 conductive state can 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 via the low pin count interface unit, which can reduce resource usage of the processor's SPI interface.
[0064] Figure 4A A schematic diagram of an electronic device with a switching unit in a first conductive state according to another embodiment of the present application is shown.
[0065] like Figure 4A As shown, the processor 210 of the electronic device of this embodiment can be connected to the low pin count interface unit 240, the low pin count interface unit 240 can be connected to the first end SPI IN0 of the switching unit 220 through the SPI interface, the controller 230 is connected to the second end SPI IN1 of the switching unit 220 through the SPI interface, the first BIOS 130 is connected to the switching unit 220 through the SPI0 interface and the CS0 interface, and the second BIOS 140 is connected to the switching unit 220 through the SPI1 interface and the CS1 interface.
[0066] In the first on state, the first terminal SPI IN0 of the switching unit 220 is electrically connected to the third terminal SPI OUT0, and the second terminal SPI IN1 is electrically connected to the fourth terminal SPI OUT1. Simultaneously, the CS0 interface of the first BIOS 130 is connected to the CS interface of the processor 210; and the CS1 interface of the second BIOS 140 is connected to the CS interface of the controller 230.
[0067] It should be noted that Figure 4A The first conductive state shown may be a default conductive state.
[0068] In addition, the controller 230 and the switching unit 220 can also communicate with each other via I2C.
[0069] Figure 4B A schematic diagram of an electronic device with a switching unit in a second conductive state according to another embodiment of the present application is shown.
[0070] like Figure 4B As shown, the connection relationship between 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 of this embodiment is similar to Figure 4A The electronic devices shown are identical, the only difference being that the conduction state inside the switching unit 220 is the second conduction state.
[0071] In the second on state, the first terminal SPI IN0 of the switching unit 220 is electrically connected to the fourth terminal SPI OUT1, and the second terminal SPI IN1 is electrically connected to the third terminal SPI OUT0. Simultaneously, the CS0 interface of the first BIOS 130 is connected to the CS interface of the controller 230; and 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 a first conduction state and a second conduction state, including: determining a target conduction state between the first conduction state and the second conduction state based on the current conduction state of the switching unit, wherein the target conduction state is different from the current conduction state; and 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 relationship among the first terminal SPI IN0 , the second terminal SPI IN1 , the third terminal SPI OUT0 , and the fourth terminal SPI OUT1 .
[0074] For example, when the connection relationship between the first terminal SPI IN0, the second terminal SPI IN1, the third terminal SPI OUT0 and the fourth terminal SPI OUT1 is that the first terminal SPI IN0 is electrically connected to the third terminal SPI OUT0, and the second terminal SPI IN1 is electrically connected to the fourth terminal 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 as follows: Figure 3A The first conductive state is shown.
[0075] For example, when the connection relationship between the first terminal SPI IN0, the second terminal SPI IN1, the third terminal SPI OUT0 and the fourth terminal SPI OUT1 is that the first terminal SPI IN0 is electrically connected to the fourth terminal SPI OUT1, and the second terminal SPI IN1 is electrically connected to the third terminal 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 follows Figure 3B The second conduction state is shown.
[0076] According to an embodiment of the present application, determining the target conduction state between the first conduction state and the second conduction state based on 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, the current conduction state is Figure 3A The first conduction state is shown, and the target conduction state is as follows Figure 3B The second conduction state shown in FIG. At this time, the control switching unit is Figure 3A The conduction state shown is switched as Figure 3B The on-state is shown.
[0078] For example, the current conduction state is Figure 3B The target conduction state can be as follows: Figure 3A The first conduction state shown in FIG. At this time, the control switching unit is Figure 3B The conduction state shown is switched as Figure 3A The on-state is shown.
[0079] According to an embodiment of the present application, the controller being configured to detect a target operation on the electronic device may include: detecting a shutdown operation performed by the controller on the electronic device.
[0080] For example, during the process of starting up an electronic device, when the current BIOS runs abnormally, the controller may execute a shutdown operation, and at this time, send a control instruction to the switching unit.
[0081] Specifically, the controller can detect operations performed by a target object on the electronic device. When it detects that the target object has performed a startup operation, such as pressing the power button, it starts a timer and runs the BIOS electrically connected to the processor. When it detects that the timer has timed out, it indicates that the BIOS is operating abnormally. At this point, the controller can execute a shutdown operation and send a control instruction to the switching unit to control the switching unit to switch between a first conductive state and a second conductive state. For example, if the current conductive state is the first conductive state, the switching unit is controlled to switch to the second conductive state. When it detects that the switching unit has completed the state switch, the electronic device startup process is retriggered.
[0082] Figure 5 A flowchart of starting an electronic device according to an embodiment of the present application is shown.
[0083] like Figure 5 As shown, the flowchart of starting the electronic device in this embodiment includes operations S501 to S510.
[0084] In operation S501 , after the user presses a power-on button, the controller detects a power-on signal.
[0085] In operation S502 , the controller starts a timer and controls the mainboard power module to power 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 on-state of the switching unit is as follows: Figure 3A In the first on state shown, the currently connected BIOS is the first BIOS.
[0087] During the execution of the startup process, the processor executes according to the preset execution stages and sends execution stage instructions to the controller after completing each execution stage.
[0088] In operation S504, after receiving the execution phase instruction, the controller determines whether the timer has timed out. If not, operation S505 is executed; if so, operation S508 is executed.
[0089] In operation S505, it is determined whether the startup is completed. If completed, operation S506 is executed; if not completed, operation S507 is executed.
[0090] In operation S506 , the timer is turned off.
[0091] In operation S507 , the timing is reset.
[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 is switched between the first conductive state and the second conductive state.
[0094] For example, the current conduction state of the switching unit is as follows Figure 3A The first conducting state shown in FIG, then the current conducting state of the switching unit is switched to Figure 3B For example, the current conduction state of the switching unit is as follows: Figure 3B The second conduction state shown in FIG, then the current conduction state of the switching unit is switched to Figure 3A The first conductive state is shown.
[0095] In operation S510 , after detecting that the switching of the switching unit is completed, the controller reloads the SPI driver and re-executes operation S501 .
[0096] During the electronic device's startup process, the present embodiment uses a timer to monitor the startup process. If a timeout occurs, it is determined that the startup is abnormal. In this case, the SPI driver is unloaded, the switching unit's conduction state is switched, the SPI driver is reloaded, and the system is restarted. This automatically switches the BIOS if a BIOS startup problem occurs, improving the startup success rate and enhancing system reliability. Furthermore, the controller determines the startup progress based on received execution phase instructions and the timer status, and systematically controls each step of the startup process to ensure that the startup process proceeds according to the preset logic.
[0097] According to an embodiment of the present application, the controller is configured to detect a target operation on the electronic device and may further include: in the target state, detecting a shutdown operation or a restart operation performed by the target object on the electronic device.
[0098] The target state may be a state where an upgrade instruction for the basic input / output system is received, or a state where upgrade of the target BIOS in the first BIOS and the second BIOS is completed.
[0099] For example, the controller can also be configured to detect the shutdown operation or restart operation performed by the target object on the electronic device when an upgrade instruction for the BIOS is received; or to detect the shutdown operation or restart operation performed by the target object on the electronic device when the target BIOS in the first BIOS and the second BIOS are both upgraded.
[0100] For example, when only the main BIOS, i.e., the BIOS connected to the processor, needs to be updated, because the controller is not connected to the running BIOS, the controller needs to wait for the electronic device to shut down or restart before sending a control instruction to the switching unit.
[0101] For example, when only the backup BIOS connected to the controller needs to be upgraded, the upgrade operation can be performed directly on the backup BIOS. After the upgrade is completed, when the electronic device needs to be shut down or restarted, a control instruction is sent to the switching unit.
[0102] For example, when both the first and second BIOS need to be updated, the controller can directly update the BIOS connected to it, such as the second BIOS. After the second BIOS update is complete, 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 the update operation on the first BIOS.
[0103] In the target state, such as after receiving an upgrade command or completing a single BIOS upgrade, user actions are monitored to implement a phased transition from "command receipt → waiting for shutdown / restart → state transition → subsequent upgrade," ensuring the logical coherence of the multi-step upgrade process. Furthermore, by only responding to shutdown or restart actions in the target state, the system prevents misoperations during normal system operation from triggering state transitions or driver uninstalls during the upgrade process, minimizing disruption to system operations 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 a basic input / output system, determine a target basic input / output system among the first basic input / output system and the second basic input / output system according to the upgrade instruction; and execute an upgrade process determined according to the conduction state and number 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 the BIOS information that needs to be upgraded. The BIOS information may include any information that can distinguish the BIOS, such as address information and identification information.
[0106] By determining the target BIOS based on the upgrade instructions, we can avoid accidentally upgrading other BIOSes, ensuring the targeted and accurate upgrade operation. Furthermore, by determining the upgrade process based on the on-state and number of target BIOSes, we can adapt to different hardware configurations, improving the flexibility and compatibility of the upgrade process.
[0107] Figure 6 A flow chart of upgrading a basic input / output system according to an embodiment of the present application is shown.
[0108] like Figure 6 As 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 may specifically include operations S601 to S605.
[0109] In operation S601 , in response to detecting an upgrade instruction for BIOS, a target BIOS among a first BIOS and a second BIOS is determined according to the upgrade instruction.
[0110] In operation S602 , in response to the on-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 upgrade operation being completed, an operation performed by the target object is 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 the first conductive state and the second conductive 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 switching, 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, the process ends after executing operation S606. If the controller detects that the operation performed by the target object is a restart operation, the controller needs to control the electronic device to restart.
[0116] According to the embodiments of the present application, when the target BIOS is electrically connected to the controller, it can be directly upgraded based on the image file, enabling fast and direct BIOS upgrades and improving upgrade efficiency. Furthermore, after the upgrade is complete, control instructions are sent to the switching unit based on the target's shutdown or restart operation, enabling correlated control of post-upgrade operations. This ensures that subsequent adjustments are made to the system at the appropriate time, safeguarding the stability and coordination of system operation.
[0117] According to an embodiment of the present application, the controller is further configured to: in response to the on-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; 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 the first on-state and the second on-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 contained in the upgrade instruction.
[0118] The target BIOS is disconnected from the controller, indicating that the target BIOS is not connected to the controller. It is necessary to wait for the electronic device to be shut down or restarted before switching to the on state and then 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 A flow chart of upgrading a basic input / output system according to another embodiment of the present application is shown.
[0120] like Figure 7 As 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 not connected to the controller, and may specifically include operations S701 to S707.
[0121] In operation S701 , in response to detecting an upgrade instruction for a BIOS, a target BIOS among a first BIOS and a second BIOS is determined according to the upgrade instruction.
[0122] In operation S702 , in response to the on-state of the target BIOS indicating that the target BIOS is disconnected from the controller, an operation performed by the target object on the electronic device is detected.
[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, the SPI driver is uninstalled and a control instruction is sent to the switching unit.
[0124] In operation S704, the switching unit is controlled to switch between the first conductive state and the second conductive state. For example, if the target BIOS is the first BIOS, the switching unit is controlled to electrically connect the first BIOS to the controller.
[0125] In operation S705, in response to the switching unit completing the state switching, the controller reloads the SPI driver, and the controller can now see the target BIOS.
[0126] In operation S706, an upgrade operation is performed on the target BIOS according to the image file included in the upgrade instruction.
[0127] In operation S707 , in response to the upgrade operation being completed, the controller uninstalls 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 scenarios where the target BIOS is not connected to the controller, the system automatically completes the entire process of "disconnect → switch connection → upgrade → restore connection" by detecting shutdown or restart operations, reducing manual intervention and improving the automation of upgrade operations.
[0129] In addition, by unloading or reloading the SPI driver and coordinating the switching unit to switch the conduction state, it is ensured that the target BIOS establishes a connection with the controller before the upgrade and restores the connection with 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 immediately upgrade the target BIOS connected to the controller, such as the first BIOS, when it is determined that the target BIOS is the first BIOS and the second BIOS; then, wait until the electronic device is shut down or restarted, switch the conduction state, and then upgrade another target BIOS, such as the second BIOS.
[0131] Specifically: when the target BIOS is the first BIOS and the second BIOS, the BIOS upgrade process may include: determining the first system to be upgraded and the second system to be upgraded according to the respective conduction states of the first BIOS and the second BIOS, wherein the first system to be upgraded is the target BIOS electrically connected to the controller in the first BIOS and the second BIOS, and the second system to be upgraded is the target BIOS connected to the processor in 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 the completion of the first upgrade operation, detecting that the operation performed by the target object on the electronic device 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 A flowchart of upgrading BIOS according to another embodiment of the present application is shown.
[0133] like Figure 8 As shown, the upgrade process of this embodiment is for the case where the target BIOS is determined to be the first BIOS and the second BIOS, and may specifically include operations S801 to S808.
[0134] In operation S801 , in response to detecting an upgrade instruction for a BIOS, it is determined that the target BIOS is a first BIOS and a second BIOS.
[0135] In operation S802, a first system to be upgraded and a second system to be upgraded are determined according to respective on-states of the first BIOS and the second BIOS. 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, a first upgrading operation is performed on the first system to be upgraded according to the image file included in the upgrading instruction.
[0137] In operation S804, in response to the first upgrade operation being completed, an operation performed by the target object is detected.
[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, the SPI driver is uninstalled and a control instruction is sent to the switching unit.
[0139] In operation S806 , the switching unit is controlled to switch between the first conductive state and the second conductive 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, and the controller can now see the second system to be upgraded.
[0141] In operation S808 , a second upgrade operation is performed on the second system to be upgraded according to the image file included in the upgrade instruction.
[0142] It should be noted that if the controller detects that the target object is performing a shutdown operation, operation S808 can be directly executed after executing operation S807. If the controller detects that the target object is performing a restart operation, the controller needs to control the electronic device to restart after executing operation S807, and then execute operation S808.
[0143] For scenarios where the target BIOS includes a first BIOS and a second BIOS, 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 switching the power-on state, can reduce repeated operation steps and improve the upgrade efficiency of the dual BIOS system.
[0144] In addition, based on the shutdown or restart operation performed by the target object, different upgrade connection logics are automatically matched, such as direct upgrade after shutdown or restart after restart and then upgrade, to ensure that the upgrade process is synchronized with the system status 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, the connection relationship between the dual BIOS and the controller and processor is dynamically managed to ensure that each BIOS has an exclusive communication channel during the upgrade, thereby ensuring the stability of hardware interaction.
[0146] According to an embodiment of the present application, a switching unit is added to an electronic device, such as a server system motherboard, to control which BIOS is used to boot the host system when the host system is powered on. At the same time, another BIOS is connected to a controller. The processor and controller can access both BIOSes 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 is powered on, the controller notifies the switching unit to switch to the second BIOS to boot the host system and connects the other BIOS to the controller. The entire switching process does not require manual intervention.
[0147] In addition, the technical solution of the present application can also realize the upgrade of two BIOS separately, and the upgrade process will not affect the other BIOS. At the same time, the backup BIOS can be upgraded immediately without waiting for shutdown.
[0148] Based on the above electronic device, this application also provides a signal processing method. Figure 9 The method is described in detail.
[0149] Figure 9 A flow chart of a signal processing method according to an embodiment of the present application is shown.
[0150] like Figure 9 As shown, the method includes operation S910.
[0151] In operation S910, when detecting a target operation for the electronic device, the controller sends a control instruction to the switching unit to control the switching unit to switch between a first conductive state and a second conductive state; wherein the first conductive state includes the first basic input and output system being electrically connected to the processor, and the second basic input and output system being electrically connected to the controller; the second conductive state includes the first basic input and output system being electrically connected to the controller, and the second basic input and output system being electrically connected to the processor.
[0152] According to an embodiment of the present application, when a controller detects a target operation on an electronic device, it sends a control instruction to the switching unit to control the switching unit to switch between a first conductive state and a second conductive state. This allows the controller to always be connected to one BIOS and the processor to always be connected to one BIOS, regardless of whether the device is in the first conductive state or the second conductive state. When a BIOS upgrade is required, the controller can immediately upgrade the BIOS electrically connected to it, without having to wait until the electronic device is shut down, thus achieving real-time upgrades.
[0153] Based on the above signal processing method, the present application also provides a signal processing device. Figure 10 The device is described in detail.
[0154] Figure 10 The figure shows a structural block diagram of a signal processing device according to an embodiment of the present application.
[0155] like Figure 10 As shown, the signal processing device 1000 of this embodiment includes a control module 1010 .
[0156] The control module 1010 is used for the controller to send a control instruction to the switching unit when detecting a target operation on the electronic device, so as to control the switching unit to switch between a first conductive state and a second conductive state; wherein the first conductive state includes the first basic input and output system being electrically connected to the processor, and the second basic input and output system being electrically connected to the controller; and the second conductive state includes the first basic input and output system being electrically connected to the controller, and the second basic input and output system being electrically connected to the processor.
[0157] According to embodiments of the present application, any multiple modules in the control module 1010 may be combined into a single module, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in a single module. According to embodiments of the present application, at least one of the control modules 1010 may 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 a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or may be implemented in hardware or firmware through any other reasonable means of circuit integration or packaging, or may be implemented in any one of the three implementation methods of software, hardware, and firmware, or any appropriate combination of any of these. Alternatively, at least one of the control modules 1010 may be at least partially implemented as a computer program module that, when executed, performs the corresponding functionality.
[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. The description of the protocol analysis device part specifically refers to the operation signal processing method part, which will not be repeated here.
[0159] This application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of this application is implemented.
[0160] According to an embodiment of the present application, a computer-readable storage medium may be a non-volatile computer-readable storage medium, such as, but not limited to, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that 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, a computer-readable storage medium may include the ROM and / or RAM described above and / or one or more memories other than ROM and RAM.
[0161] The embodiments of the present application also include a computer program product, which includes a computer program containing program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided in the embodiments of the present application.
[0162] When the computer program is executed by an electronic device, the above functions defined in the system / device of the embodiment of the present application are performed. According to the embodiment of the present application, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0163] In one embodiment, the computer program may be stored on a tangible storage medium, such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal over a network medium, downloaded and installed via a communication component, and / or installed from a removable medium. The program code contained in the computer program may be transmitted using any suitable network medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0164] In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion, and / or installed from a removable medium. When the computer program is executed by the electronic device, the above-mentioned functions defined in the system of the embodiment of the present application are performed. According to the embodiment of the present application, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.
[0165] According to an embodiment of the present application, the program code for executing the computer program provided by the embodiment of the present application can be written in any combination of one or more programming languages. Specifically, these computer 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, languages such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user 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 computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).
[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] Those skilled in the art will appreciate that the features described in the various embodiments of this application may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in this application. In particular, the features described in the various embodiments of this application may be combined and / or coupled in various ways without departing from the spirit and teachings of this application. All such combinations and / or couplings fall within the scope of this application.
[0168] The embodiments of the present application have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present application. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be advantageously used in combination. Without departing from the scope of the present application, those skilled in the art may make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present application.
Claims
1. An electronic device, characterized in that: include: exchange units, 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 the first conductive state and the second conductive state when a target operation on the electronic device is detected; The first conductive state includes the first basic input and output system being electrically connected to the processor, and the second basic input and output system being electrically connected to the controller; the second conductive state includes the first basic input and output system being electrically connected to the controller, and the second basic input and output system being electrically connected to the processor; The controller is configured to detect a target operation on the electronic device, including: detecting a shutdown operation performed by the controller on the electronic device; or In the target state, detecting a shutdown operation or a restart operation performed by a target object on the electronic device; The controller is further configured to: When the basic input output system is upgraded, the basic input output system connected to the controller is upgraded.
2. The electronic device according to claim 1, wherein The controller is configured to detect, in a target state, a shutdown operation or a restart operation performed by a target object on the electronic device, including: Upon receiving a basic input / output system upgrade instruction, detecting a shutdown operation or a restart operation performed by a target object on the electronic device; or When the target basic input and output systems in the first basic input and output system and the second basic input and output system are both upgraded, a shutdown operation or a restart operation performed by a target object on the electronic device is detected.
3. The electronic device according to claim 1, wherein The controller is configured to control the switching unit to switch between a first conductive state and a second conductive state, including: determining a target conductive state between the first conductive state and the second conductive state according to the current conductive state of the switching unit, wherein the target conductive state is different from the current conductive state; The switching unit is controlled to switch from a current conduction state to the target conduction state.
4. The electronic device according to claim 3, wherein: The controller is configured to determine, according to the current conduction state of the switching unit, a target conduction state between the first conduction state and the second conduction state, including: When the current conduction state is the first conduction state, determining the second conduction state as the target conduction state; In a case where the current conduction state is the second conduction state, the first conduction state is determined to be the target conduction state.
5. The electronic device according to claim 1, wherein The controller is further configured to: In response to detecting an upgrade instruction for a basic input / output system, determining a target basic input / output system among the first basic input / output system and the second basic input / output system according to the upgrade instruction; An upgrade process determined according to the on-state and quantity of the target basic input / output system is executed to perform an upgrade operation on the target basic input / output system.
6. The electronic device according to claim 5, characterized in that The controller is configured to, when determining that the target basic input and output system is the first basic input and output system or the second basic input and output system, In response to the on-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.
7. The electronic device according to claim 6, wherein: The controller is further configured to: In response to the upgrade operation being completed, detecting an 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, the control instruction is sent to the switching unit.
8. The electronic device according to claim 5, wherein: The controller is further configured to: In response to the on-state of the target basic input / output system indicating that the target basic input / output system is disconnected from the controller, detecting an operation performed by a 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, sending a control instruction to the switching unit to control the switching unit to switch between a first conductive state and a second conductive state; In response to the target basic input and output system being electrically connected to the controller, an upgrade operation is performed on the target basic input and output system according to the image file included in the upgrade instruction.
9. The electronic device according to claim 5, wherein: The controller is configured to, when determining that the target BIOS is the first BIOS and the second BIOS, determining a first system to be upgraded and a second system to be upgraded according to respective conduction states of the first basic input / output system and the second basic input / output system, wherein the first system to be upgraded is a 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 a target basic input / output system disconnected from the controller among the first basic input / output system and the second basic input / output system; 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, after the first upgrade operation is completed, that the operation performed by the target object on the electronic device includes a shutdown operation or a restart operation, sending 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, a second upgrade operation is performed on the second system to be upgraded according to the image file included in the upgrade instruction.
10. The electronic device according to claim 5, wherein: The controller is further configured to: In response to detecting an electronic device startup operation performed by a target object, starting a timer; In response to the timer timing out, performing a shutdown operation and sending a control instruction to the switching unit to control the switching unit to switch between a first conductive state and a second conductive state; In response to detecting that the switching unit completes the state switching, the electronic device startup process is re-triggered.
11. A signal processing method, applied to the electronic device according to any one of claims 1 to 10, characterized in that: The signal processing method comprises: When detecting a target operation on the electronic device, the controller sends a control instruction to the switching unit to control the switching unit to switch between the first conductive state and the second conductive state; The first conductive state includes the first basic input and output system being electrically connected to the processor, and the second basic input and output system being electrically connected to the controller; the second conductive state includes the first basic input and output system being electrically connected to the controller, and the second basic input and output system being 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