Mainboard startup and shutdown method, system and equipment based on ESP8266 and medium
By working in conjunction with the X86 motherboard through the ESP8266 module, intelligent remote power-on and power-off control with multi-protocol support is realized, solving the problems of high power consumption, low compatibility and misoperation of traditional wake-up solutions, and providing a better remote power-on and power-off experience.
Patent Information
- Application Number
- CN202511645484.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-11
- Publication Date
- 2026-02-06
AI Technical Summary
The existing remote wake-up methods of computer terminal x86 motherboards are limited and cannot work in a completely power-off state. In addition, traditional wake-up solutions have high power consumption, poor compatibility, are prone to misoperation, and do not fully consider the deep collaboration between low-cost MCUs and x86 motherboard BIOS/EC.
It uses the ESP8266 module to work in conjunction with the BIOS firmware and power management components of the X86 motherboard to achieve intelligent remote power on/off control through wireless network, Ethernet, RTC signal, infrared and voice signals. Combined with Light Sleep mode to reduce power consumption, it supports multiple protocols and real-time status detection.
It achieves intelligent remote power on/off control with low power consumption and high compatibility, avoiding accidental operation and improving user experience and system stability.
Smart Images

Figure CN121478098A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The embodiment of the application relates to the technical field of computers, in particular to a mainboard startup and shutdown method, system and device based on ESP8266 and a medium. BACKGROUND
[0002] At present, remote wakeup of an X86 mainboard of a computer terminal depends on a Wake-on-LAN function of a wired network card, the wakeup mode is single, and the X86 mainboard cannot work in a complete power-off (S5 state), and although there is a scheme for realizing mainboard wakeup through an external microcontroller (MCU), the wakeup scheme is usually single in function, and deep cooperation of the low-cost MCU with BIOS / EC of the X86 mainboard is not fully considered, the overall power consumption is high, the compatibility is poor, and there is a problem of misoperation in actual application, and the reliability is insufficient. SUMMARY
[0003] The application provides a mainboard startup and shutdown method, system and device based on ESP8266 and a medium, and aims to solve the problems of high power consumption, poor compatibility and easy misoperation of an existing mainboard wakeup scheme.
[0004] In a first aspect, the embodiment of the application provides a mainboard startup and shutdown method based on ESP8266, which comprises the following steps: if a power control request is received, reading a state register of BIOS of an X86 mainboard to obtain a current power state of the X86 mainboard; configuring a target PWRBTN# signal according to the current power state, wherein the target PWRBTN# signal is configured as a first level state or a second level state; and sending the target PWRBTN# signal to a power management component of the X86 mainboard.
[0005] Further, the power control request is sent in the form of a wireless network signal, an Ethernet signal, an RTC signal, an infrared response signal or a voice response signal.
[0006] Further, before the power control request is received, the method further comprises the following steps: synchronizing wireless network configuration of the X86 mainboard, calibrating a clock and initializing a protocol stack.
[0007] Further, the target PWRBTN# signal is configured according to the current power state, and the method further comprises the following steps: determining whether the power control request is a power-on request, if the power control request is the power-on request, determining whether the current power state is an S5 state or an S0-S4 state, if the current power state is the S5 state, configuring the target PWRBTN# signal as low level first and then high level, if the current power state is the S0-S4 state, ignoring the power control request, and sending a repeated power-on prompt to a sending end of the power control request.
[0008] Further, the configuring the target PWRBTN# signal according to the current power state comprises: determining whether the power control request is a power-off request, if the power control request is the power-off request, determining whether the current power state is an S0 state or an S5 state, if the current power state is the S0 state, configuring the target PWRBTN# signal as high level first for a first preset time and then low level, if the current power state is the S5 state, ignoring the power control request, and sending a repeated power-off prompt to a sending end of the power control request.
[0009] Further, the method further comprises: if no power control request is received, reading a state register of the X86 motherboard BIOS to obtain a current power state of the X86 motherboard, determining whether the current power state is an S5 state, and if the current power state is the S5 state, entering a Light Sleep mode.
[0010] In a second aspect, the present application further provides a motherboard power-on / off system based on an ESP8266, which is used to execute the method in the first aspect, and the system comprises: an X86 motherboard provided with a BIOS firmware and a power management component; an ESP8266 module connected to the BIOS firmware and the power management component; and a signal response module connected to the ESP8266 module and used to respond to a first signal to generate a power control request; wherein the ESP8266 module is used to receive the power control request sent through the signal response module or a wireless network or an Ethernet network or an RTC, and control the power management component to power on or off the X86 motherboard according to the power control request.
[0011] Further, the first signal comprises an infrared signal and a voice signal.
[0012] In a third aspect, the present application further provides a computer device, which comprises a memory and a processor, the memory is stored with a computer program, and the processor implements the method in the first aspect when executing the computer program.
[0013] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program can implement the method of the first aspect when executed by a processor.
[0014] The application provides a mainboard power-on and power-off method, system, device and medium based on ESP8266. The method comprises the following steps: if a power control request is received, reading a state register of an X86 mainboard BIOS to obtain a current power state of the X86 mainboard; configuring a target PWRBTN# signal according to the current power state, wherein the target PWRBTN# signal is configured as a first level state or a second level state; and sending the target PWRBTN# signal to a power management component of the X86 mainboard. The method solves the problems of inherent misoperation, high power consumption and low compatibility of the traditional mainboard wake-up scheme, realizes intelligent remote power-on and power-off control of the mainboard, and provides better remote power-on and power-off experience for users. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0016] Figure 1 The system provided by the embodiments of the present application is shown in the schematic block diagram. Figure 2 The system framework diagram of the system provided by the embodiments of the present application is shown. Figure 3 The step flowchart of the method provided by the embodiments of the present application is shown. Figure 4 The sub-step flowchart of the method provided by the embodiments of the present application is shown. Figure 5 The sub-step flowchart of the method provided by the embodiments of the present application is shown. Figure 6 The step flowchart of the method provided by the embodiments of the present application is shown. Figure 7 The schematic block diagram of the computer device provided by the embodiments of the present application is shown. DETAILED DESCRIPTION
[0017] With reference to the drawings and the embodiments of the application described below, the technical solutions in the embodiments of the application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments of the application, all other embodiments obtained by a person of ordinary skill in the art without creative effort are within the protection scope of the application.
[0018] It should be understood that the terms "comprise" and "include" as used in the specification and the appended claims indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0019] It should also be understood that the terms used in the present application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the present application specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0020] It should be further understood that the term "and / or" as used in the present application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations thereof, and includes these combinations.
[0021] As used in the present application specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if [a described condition or event] is detected" can be interpreted to mean "upon determining", or "in response to determining", or "upon detecting [the described condition or event]", or "in response to detecting [the described condition or event]", depending on the context.
[0022] In order to facilitate the understanding of the present application, first, the said ESP8266-based motherboard power-on / off system is described. Referring to Figure 1 and Figure 2 , the present application is an ESP8266-based motherboard power-on / off system, which can be used to perform the method described in the embodiments below. Figure 1 is a schematic block diagram of the system, Figure 2 is a system framework diagram of the system, such as Figure 1As shown, the ESP8266-based motherboard switching system comprises an X86 motherboard provided with a BIOS firmware and a power management component; an ESP8266 module connected to the BIOS firmware and the power management component; and a signal response module connected to the ESP8266 module and configured to generate a power control request in response to a first signal; wherein the ESP8266 module is configured to receive the power control request sent through the signal response module or a wireless network or an Ethernet network or an RTC, and control the power management component to switch on or off the X86 motherboard according to the power control request.
[0023] In specific embodiments, the X86 motherboard is provided with a BIOS firmware, a power management component, and can further be provided with a CPU, a chipset and various other motherboard components. The BIOS firmware is a bottom-layer firmware for starting and running the motherboard, and is responsible for hardware initialization, self-checking and booting an operating system when the computer starts. The power management component can be a power management chip, such as a Super I / O chip, or an embedded controller (EC). The power management component has a PWRBTN# signal interface and a PS_ON# signal interface, and is used for power management control of the motherboard, mainly for on-off control of the motherboard. The BIOS firmware exposes a status register that can be accessed through an SMBus (System Management Bus), I2C or GPIO, and is used to indicate the ACPI power state of the X86 motherboard. The ACPI power state has S0-S5 states, i.e. S0, S1, S2, S3, S4 and S5 states. The S0 state represents the normal working state of the X86 motherboard, and the device is fully powered on. The S1 state is a standby state, and the device is partially powered off (such as screen and hard disk stop working), but the memory and CPU are still powered on. The S2 state is an energy-saving mode, which adds CPU power-off based on S1. The S3 and S4 states represent the sleep mode of the X86 motherboard. The S3 state only powers on the memory, and the system data is saved in the memory. The S4 state saves the data to the hard disk, and the device is completely powered off. The S5 state represents the off state of the X86 motherboard, and the computer can be started through a physical button.
[0024] The ESP8266 module is a low-cost, low-power SoC that integrates a processor and Wi-Fi functionality. The ESP8266 module serves as the intelligent hub of the system. The ESP8266 module can communicate with the BIOS firmware of the X86 motherboard through the I2C protocol, and connect with components such as the CPU on the X86 motherboard through its GPIO. Specifically, the ESP8266 module can be connected to the PWRBTN# signal of the power management component on the X86 motherboard through one of its GPIOs to simulate the PWRBTN# signal of the X86 motherboard. The PWRBTN# signal is a signal used by the X86 motherboard to detect the state of the power button press, and the PWRBTN# signal can be processed by the power management component on the X86 motherboard to trigger the power on / off of the X86 motherboard. The ESP8266 module can be connected to the PS_ON# signal (Power Supply On) or similar signal interface of the power management component on the X86 motherboard through another GPIO, which can be used to force power down. The ESP8266 module can be connected to the SMBus (System Management Bus) of the X86 motherboard through a set of I2C interfaces, such as I2C or GPIO, to access the BIOS firmware, so that the ESP8266 module can read the ACPI power state of the motherboard in real time. The signal response module is connected to the GPIO of the ESP8266 module to generate a power control request in response to the first signal. The signal response module can be a voice module or an infrared probe module, and the first signal can be an infrared signal, a voice signal, etc. The power control request generated by the signal response module is a power-on request or a power-off request, which is sent to the ESP8266 module and processed by the ESP8266 module to perform the corresponding action.
[0025] As shown in Figure 2 The ESP8266 module can receive the power control request sent by the signal response module, for example, the signal response module generates a power control request and sends it to the ESP8266 module in response to receiving an infrared signal or a voice signal. The ESP8266 module also receives power control requests sent through wireless networks and Ethernet networks, for example, a user can connect to a wireless network through a mobile phone APP to send a power control request directly to the ESP8266 module, or connect to an Ethernet network through an X86 motherboard to send a power control request to the ESP8266 module. The ESP8266 module has a built-in software stack that can monitor network (MQTT / HTTP) and signal response module power control requests in real time, and through protocol analysis, power state reading, and logic control, the ESP8266 module can control the PWRBTN# and PS_ON# signals of the power management component on the X86 motherboard to achieve power on / off control of the X86 motherboard.
[0026] In addition, as shown in Figure 2 The ESP8266 module also accepts the power control request sent by the RTC (Real-Time Clock), and the BIOS of the X86 motherboard communicates with the ESP8266 module through the I2C protocol, synchronizes the wake-up time or shutdown time to the ESP8266 module as the power control request, and the ESP8266 module compares the current time in the loop, and after the time matches, the X86 motherboard can be turned on or off by controlling the power management component PWRBTN# signal and PS_ON# signal on the X86 motherboard.
[0027] Further, if the power control request is sent wirelessly, the key of the ESP8266 module needs to be written into the APP through a control terminal (such as a mobile phone), and then a packet is sent to the wireless network through the APP to send the power control request to the ESP8266 module. If the power control request is sent by infrared, the signal response module is an infrared receiving module, the infrared receiving module receives the infrared signal, triggers the interrupt of the ESP8266 module, and at this time the ESP8266 module decodes the infrared signal and performs the wake-up or shutdown operation after the decoding is successful. If the power control request is sent by the Ethernet network, the network port of the Ethernet is not powered when the normal X86 motherboard is in the G3 state (only the RTC power is kept) to the S5 state (shutdown state), and the signal sent to the network port cannot normally wake up the motherboard. At this time, the ESP8266 module receives the signal and responds to the signal to wake up the X86 motherboard.
[0028] In addition, in the case where no power control request is received, the ESP8266 module reads the state register of the BIOS of the X86 motherboard to obtain the current power state of the X86 motherboard, and if the motherboard is in the shutdown state, i.e., the current power state is S5 state, the ESP8266 module can enter the Light Sleep mode. The Light-sleep mode is one of the low-power sleep modes of the ESP8266 module, and the ESP8266 module only retains the network wake-up function in this mode, thereby reducing the overall power consumption of the system.
[0029] In summary, the system of the application utilizes the low-cost and high-integration ESP8266 module X86 motherboard BIOS deep collaborative design, has the advantages of real-time state detection, multi-protocol support, and low-power standby, and has high compatibility, and can realize diversified on-off control.
[0030] Please refer to Figure 3 The application provides a motherboard on-off method based on an ESP8266, Figure 3A flowchart of the steps of the method is shown. The method can be applied to the ESP8266-based motherboard power-on / off system described in the above embodiments. Since the system has been described in detail in the above embodiments, for the sake of brevity of the description, it will not be described again here. The method will be described in detail below. As shown in Figure 1 The method includes the following steps: S110-S130.
[0031] S110, if a power control request is received, read the status register of the X86 motherboard BIOS to obtain the current power state of the X86 motherboard.
[0032] In a specific implementation, the power control request can include a power-on request and a power-off request. After the ESP8266 module receives the power control request, the ESP8266 module reads the status register of the X86 motherboard BIOS through I2C / SMBus to query the ACPI power state of the X86 motherboard, thereby obtaining the current power state of the X86 motherboard. The current power state of the X86 motherboard includes S0-S5 states, wherein S0 state represents that the X86 motherboard is in a normal working state, S3 and S4 states represent that the X86 motherboard is in a sleep state, and S5 represents that the X86 motherboard is in a powered-off state.
[0033] In an embodiment, the power control request is sent in the form of a wireless network signal, an Ethernet signal, an RTC signal, an infrared response signal, or a voice response signal.
[0034] In a specific implementation, the ESP8266 module can receive the power control request sent in the form of a wireless network signal, an Ethernet signal, an RTC signal, an infrared response signal, or a voice response signal. The power control request in the form of a wireless network signal can be sent by a mobile phone APP connected to a wireless network to the ESP8266 module; the power control request in the form of an Ethernet signal can be sent to the ESP8266 module through an Ethernet network connected to the X86 motherboard; the power control request in the form of an RTC signal is an internal real-time clock signal of the ESP8266 module; the power control requests in the form of an infrared response signal and a voice response signal are both generated by the response of a signal response module.
[0035] In an embodiment, before the power control request is received, the method includes synchronizing the wireless network configuration of the X86 motherboard, calibrating the clock, and initializing the protocol stack.
[0036] In a specific implementation, after the system is powered on, the ESP8266 module starts first, completes Wi-Fi connection and protocol stack initialization, the BIOS performs handshake with the ESP8266 module through the I2C protocol, after the handshake is successful, the ESP8266 module synchronizes wireless network configuration, initializes the protocol stack, and calibrates the clock. Specifically, in the process of synchronizing the wireless network configuration and calibrating the clock, the BIOS of the X86 mainboard synchronizes the account password of the wireless network and the RTC configuration to the ESP8266 module, after the ESP8266 module receives the configuration information, the ESP8266 module performs wireless network connection and automatic time calibration, and then initializes the protocol stack, and then can receive the power control request, thereby controlling the X86 mainboard to turn on or off.
[0037] S120, configuring a target PWRBTN# signal according to the current power state, wherein the target PWRBTN# signal is configured to be in a first level state or a second level state.
[0038] After the ESP8266 module reads the ACPI power state and determines the current power state of the X86 mainboard, the ESP8266 module configures the target PWRBTN# signal according to the current power state, the target PWRBTN# signal acts on the power management component of the X86 mainboard, and the target PWRBTN# signal is configured to be in a first level state or a second level state, wherein the first level state can be low first and then high, and the second level state can be high first for a first preset time and then low, and the first preset time can be set to 5 seconds. The first level state can be used to simulate the process of manually pressing the key to turn on the X86 mainboard, that is, short press to turn on / soft shutdown, so that the X86 mainboard enters the S0 state from the S5 state, and the second level state can be used to simulate the process of manually pressing the key to turn off the X86 mainboard, that is, long press to forcibly turn off, so that the X86 mainboard enters the S5 state from the S0 state. After the ESP8266 module configures the target PWRBTN# signal, the ESP8266 module can wake up the X86 mainboard or control the X86 mainboard to turn off by sending the target PWRBTN# signal to the power management component of the X86 mainboard.
[0039] In an embodiment, as shown in Figure 3 The step of configuring a target PWRBTN# signal according to the current power state includes steps S121-S122.
[0040] S121, determining whether the power control request is a turn-on request, if the power control request is the turn-on request, determining whether the current power state is the S5 state or the S0-S4 state.
[0041] In a specific implementation, when the user performs the power-on wakeup operation, the ESP8266 module configures the target PWRBTN# signal according to the current power state of the X86 motherboard. Specifically, the ESP8266 module first determines whether the power control request is a power-on request. If it is determined that the power control request is a power-on request, it indicates that the user's purpose is to perform the power-on wakeup operation. At this time, the ESP8266 module further determines whether the current power state is an S5 state or an S0-S4 state. The S5 state indicates that the X86 motherboard is currently in a shutdown state, and the S0-S4 state includes S0, S1, S2, S3, and S4 states, all of which indicate that the X86 motherboard is currently in a non-shutdown state (including working, standby, sleep, and energy-saving states), wherein the S0 state indicates a working state. By determining the current power state, it can be ensured that the user's power-on operation is performed when the X86 motherboard is in a non-power-on state, avoiding repeated user operations.
[0042] S122, if the current power state is an S5 state, the target PWRBTN# signal is configured to be low first and then high.
[0043] In a specific implementation, the ESP8266 module determines that the current power state of the X86 motherboard is an S5 state, indicating that the X86 motherboard is currently in a shutdown state and can be powered on. At this time, the ESP8266 module configures the target PWRBTN# signal to be low first and then high, i.e., a first level state, thereby simulating a short press of the power-on button and controlling the X86 motherboard to power on.
[0044] S123, if the current power state is an S0-S4 state, the power control request is ignored, and a repeated power-on reminder is sent to the sending end of the power control request.
[0045] In a specific implementation, if the ESP8266 module determines that the current power state is an S0-S4 state, it indicates that the X86 motherboard is currently in a non-shutdown state. At this time, the ESP8266 module ignores the power control request and does not control the PWRBTN# signal of the X86 motherboard. At this time, the X86 motherboard is controlled by the BIOS, and the user can wake up the X86 motherboard to enter an S0 state by manipulating the mouse or keyboard. At the same time, the ESP8266 module sends a repeated power-on reminder to the sending end of the power control request. For example, when the sending end is a mobile phone APP, the ESP8266 module can send a repeated power-on reminder to the mobile phone APP through a wireless network. The repeated power-on reminder can be a message "powered on, please do not repeat the operation", reminding the user to avoid repeated power-on operations when the X86 motherboard is already powered on, effectively preventing misoperations and improving user experience and system stability.
[0046] In an embodiment, as Figure 5As shown, the step S120 includes steps: S124-S126.
[0047] S124, determine whether the power control request is a shutdown request, if the power control request is the shutdown request, determine whether the current power state is S0 state or S5 state.
[0048] In specific implementation, in case that the user performs shutdown operation, the ESP8266 module configures the target PWRBTN# signal according to the current power state of the X86 mainboard, specifically, the ESP8266 module first determines whether the power control request is the shutdown request, if it is determined that the power control request is the shutdown request, it indicates that the user's purpose is to perform shutdown operation, at this time, the ESP8266 module further determines whether the current power state is S0 state or S5 state, S5 state indicates that the X86 mainboard is currently in shutdown state, and S0 state indicates working state. By determining the current power state, it can be ensured that the user's shutdown operation is performed in the case that the X86 mainboard is in shutdown state and working state, so as to avoid repeated operation of the user.
[0049] S125, if the current power state is S0 state, the target PWRBTN# signal is configured to be high level first for a first preset time and then low level.
[0050] In specific implementation, the ESP8266 module determines that the current power state of the X86 mainboard is S0 state, which indicates that the X86 mainboard is currently in non-shutdown state and working state, and can normally perform shutdown, at this time, the ESP8266 module configures the target PWRBTN# signal to be high level first for a first preset time and then low level, i.e. second level state, and the first preset time can be set to 5 seconds, so as to simulate long-press shutdown of the key, thereby the X86 mainboard can be controlled to shutdown, if it is determined that the current power state is S2-S4 state, the BIOS needs to be controlled to switch to S0 state, and then the shutdown can be performed.
[0051] S126, if the current power state is S5 state, the power control request is ignored, and a repeated shutdown reminder is sent to the sending end of the power control request.
[0052] In a specific implementation, if the ESP8266 module determines that the current power state is S5 state, it indicates that the X86 mainboard is currently in a powered-off state. At this time, the ESP8266 module will ignore the power control request and not control the PWRBTN# signal of the X86 mainboard. Meanwhile, the ESP8266 module will send a repeated power-off reminder to the sending end of the power control request. For example, when the sending end is a mobile phone APP, the ESP8266 module can send a repeated power-off reminder to the mobile phone APP through a wireless network. The repeated power-off reminder can be a message of "powered off, please do not repeat the operation", thereby reminding the user to avoid repeated power-off operations in the case that the X86 mainboard is powered off, effectively preventing misoperations and improving user experience and system stability.
[0053] S130, sending the target PWRBTN# signal to the power management component of the X86 mainboard.
[0054] In a specific implementation, after the ESP8266 module configures the target PWRBTN# signal, the target PWRBTN# signal is sent to the power management component of the X86 mainboard to wake up the X86 mainboard or control the X86 mainboard to power off. Specifically, when the target PWRBTN# signal is configured as a first low level and then a high level, i.e., a first level state, at this time, the target PWRBTN# signal serves as an analog power-on signal. The ESP8266 module sends the target PWRBTN# signal to the power management component of the X86 mainboard to simulate manual key power-on, thereby controlling the X86 mainboard to realize X86 mainboard power-on. When the target PWRBTN# signal is configured as a first high level for a first preset time and then a low level, i.e., a second level state, at this time, the target PWRBTN# signal serves as an analog power-off signal. The ESP8266 module sends the target PWRBTN# signal to the power management component of the X86 mainboard to simulate manual key power-off, thereby controlling the X86 mainboard to realize X86 mainboard power-off.
[0055] In an embodiment, as shown in Figure 6 the method further includes steps S140-S150.
[0056] S140, if no power control request is received, reading the status register of the BIOS of the X86 mainboard to obtain the current power state of the X86 mainboard; S50, determining whether the current power state is S5 state, if the current power state is S5 state, entering Light Sleep mode.
[0057] In a specific implementation, after power-on, the ESP8266 module reads the status register of the X86 mainboard BIOS to obtain the current power state of the X86 mainboard without receiving a power control request, and determines whether the current power state is S5 state. The S5 state indicates that the X86 mainboard is in a shutdown state. If the ESP8266 module determines that the current power state is S5 state, it means that the X86 mainboard is currently in a shutdown state. At this time, the ESP8266 module can enter the Light Sleep mode. The Light-sleep mode is one of the low-power sleep modes of the ESP8266 module. The ESP8266 module only retains the network wake-up function in this mode and does not consume too much system power, thereby reducing the overall power consumption of the system.
[0058] In summary, the method of the present application solves the problems of inherent misoperation, high power consumption and low compatibility of the traditional mainboard wake-up scheme, realizes intelligent remote power-on and power-off control of the mainboard, and provides better remote power-on and power-off experience for users.
[0059] Please refer to Figure 7 , Figure 7 is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 500 can be a terminal.
[0060] Please refer to Figure 7 , the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504.
[0061] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions which, when executed, can cause the processor 502 to execute an ESP8266 mainboard remote power-on and power-off method.
[0062] The processor 502 is configured to provide computing and control capabilities to support the operation of the entire computer device 500.
[0063] The internal memory 504 provides an environment for the running of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute an ESP8266 mainboard remote power-on and power-off method.
[0064] The network interface 505 is configured to perform network communication with other devices. Those skilled in the art can understand that Figure 7The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 500 to which the scheme of the present application is applied. Specifically, the computer device 500 can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0065] The processor 502 is configured to run the computer program 5032 stored in the memory to implement the steps of the above method.
[0066] It should be understood that, in the embodiments of the present application, the processor 502 can be a central processing unit (CPU), and the processor 502 can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0067] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned method embodiments can be completed by a computer program instructing related hardware. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the above-mentioned method embodiments.
[0068] Therefore, the present application also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The program instructions are executed by the processor to make the processor execute the steps of the above-mentioned method.
[0069] The storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various computer-readable storage media that can store program codes.
[0070] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description in a general manner. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0071] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0072] The steps in the method embodiments of the present application can be adjusted, combined and deleted in sequence according to actual needs. The units in the device embodiments of the present application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.
[0073] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device to execute all or part of the steps of the methods described in each embodiment of the present application.
[0074] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0075] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, these modifications and variations of the present application are intended to be included within the scope of the present application claims and their equivalent technologies. Therefore, the present application is also intended to include these modifications and variations.
[0076] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any skilled person in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements shall be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A motherboard power-on / off method based on ESP8266, characterized in that, include: If a power control request is received, the current power status of the X86 motherboard is obtained by reading the status register of the X86 motherboard BIOS. Configure the target PWRBTN# signal according to the current power state, wherein the target PWRBTN# signal is configured to a first level state or a second level state; Send the target PWRBTN# signal to the power management component of the x86 motherboard.
2. The method according to claim 1, characterized in that, The power control request is sent via wireless network signal, Ethernet signal, RTC signal, infrared response signal, or voice response signal.
3. The method according to claim 1, characterized in that, Before receiving a power control request, the following is included: Synchronize the wireless network configuration of the X86 motherboard, calibrate the clock, and initialize the protocol stack.
4. The method according to any one of claims 1-3, characterized in that, The step of configuring the target PWRBTN# signal according to the current power state includes: Determine whether the power control request is a power-on request. If the power control request is a power-on request, then determine whether the current power state is S5 state or S0~S4 state. If the current power state is S5, then the target PWRBTN# signal is configured to be low level first and then high level; If the current power state is S0~S4, then the power control request is ignored, and a repeated power-on reminder is sent to the sending end of the power control request.
5. The method according to any one of claims 1-3, characterized in that, The step of configuring the target PWRBTN# signal according to the current power state includes: Determine whether the power control request is a power-off request. If the power control request is a power-off request, then determine whether the current power state is S0 or S5. If the current power state is S0, then the target PWRBTN# signal is configured to be high for a first preset time and then low. If the current power state is S5, then the power control request is ignored, and a repeated shutdown reminder is sent to the sending end of the power control request.
6. The method according to any one of claims 1-3, characterized in that, The method further includes: If no power control request is received, the status register of the X86 motherboard BIOS is read to obtain the current power status of the X86 motherboard. Determine if the current power state is S5. If the current power state is S5, then enter LightSleep mode.
7. A motherboard power-on / off system based on ESP8266, used to execute the method according to any one of claims 1-6, characterized in that, The system includes: X86 motherboards include BIOS firmware and power management components; The ESP8266 module connects the BIOS firmware and the power management component; A signal response module, connected to the ESP8266 module, is used to respond to a first signal to generate a power control request; The ESP8266 module is used to receive power control requests sent through the signal response module, wireless network, Ethernet network, or RTC, and control the power management component to power on and off the X86 motherboard according to the power control requests.
8. The system according to claim 7, characterized in that, The first signal includes an infrared signal and a voice signal.
9. A computer device, characterized in that, The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Method for remotely controlling power failure of mainboard
CN110109525A
OPS computer control method and device of all-in-one machine equipment and storage medium
CN112181502A