WO2023216790A9 - 基于输入输出系统bios的升级方法和终端设备 - Google Patents
基于输入输出系统bios的升级方法和终端设备 Download PDFInfo
- Publication number
- WO2023216790A9 WO2023216790A9 PCT/CN2023/087368 CN2023087368W WO2023216790A9 WO 2023216790 A9 WO2023216790 A9 WO 2023216790A9 CN 2023087368 W CN2023087368 W CN 2023087368W WO 2023216790 A9 WO2023216790 A9 WO 2023216790A9
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal device
- power
- upgrade
- power button
- bios
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 157
- 230000008569 process Effects 0.000 claims abstract description 66
- 230000015654 memory Effects 0.000 claims description 53
- 238000012545 processing Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 12
- 230000008439 repair process Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000013021 overheating Methods 0.000 description 3
- 230000007958 sleep Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000006266 hibernation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Definitions
- the present application relates to the field of terminal technology, and in particular, to an upgrade method and terminal equipment based on the input and output system BIOS.
- the basic input output system can be understood as a set of programs that run during the startup process of the terminal device.
- the BIOS in the terminal device needs to be updated.
- a program failure (bug) in the BIOS of the old version
- the terminal device needs to upgrade the BIOS of the old version to the BIOS of the new version.
- An example of a terminal device is a personal computer (PC).
- BIOS upgrade process of a personal computer (PC)
- PC personal computer
- This application provides an upgrade method and terminal device based on the input and output system BIOS, which can improve the BIOS upgrade rate.
- an upgrade method based on the input and output system BIOS including: downloading the target version BIOS of the terminal device from the server; restarting the terminal device; and obtaining the status of the power button of the terminal device during the startup process of the terminal device; If the power button is pressed and the pressing time exceeds the preset time, the upgrade will be suspended; if the power button is not pressed or the power button is pressed for less than the preset time, the terminal device will be upgraded according to the target version of the BIOS.
- the target version BIOS can be understood as a new version of BIOS.
- the terminal device detects that a new version of BIOS is released, it can be downloaded from the server.
- the terminal device After the terminal device obtains the target version BIOS from the server and is ready to upgrade, the terminal device can be restarted and upgraded during the boot process. When the boot is completed, the user can use the target version BIOS.
- the terminal device can upgrade the terminal device according to the target version BIOS. If the power button is pressed for longer than the preset time without pausing the upgrade, the upgrade will be forcibly interrupted, the upgrade will fail, and the software or hardware of the terminal device will be damaged. Therefore, in this application, the terminal device is in progress with the power button.
- pausing the upgrade can avoid forced interruption of the upgrade and help improve the BIOS upgrade rate.
- the preset duration may be 10 seconds, but the application is not limited to this.
- the terminal device if the power button is not in a pressed state or the power button If the source button is pressed and the pressing time does not exceed the preset time, the terminal device will be upgraded according to the target version BIOS, including: if the power button is not pressed, detect whether the terminal device is connected to the power adapter; if the terminal device is connected to the power adapter, If the battery power in the terminal device meets the first condition, the terminal device is upgraded according to the target version BIOS.
- the first condition may be that the battery power is greater than the preset power, for example, the first preset power is 30%.
- the upgrade process of the terminal device when the power button is not pressed, it determines whether the upgrade conditions are met (the power adapter is connected and the battery power meets the first condition). If so, the upgrade is performed, which helps prevent the upgrade process. In the event that the upgrade fails due to insufficient power, the BIOS upgrade rate can be improved.
- the above method further includes: if the power button is in a pressed state, displaying prompt information, and the prompt information is used to prompt the user that the power button is in a pressed state.
- the terminal device can display prompt information to remind the user that the power button has been touched. If the user accidentally presses the power button, he or she can check the prompt message to cancel the operation of pressing the power button.
- the terminal device includes a cover; during the booting process of the terminal device, obtaining the status of the power key of the terminal device includes: during the booting process of the terminal device, obtaining The status of the cover; if the cover is closed, pause the upgrade; if the cover is open, get the status of the power button.
- the status of the cover Before obtaining the status of the power button, you can first determine the status of the cover. When the status of the cover is closed, suspend the upgrade, which can avoid overheating due to the upgrade and reduce the probability of upgrade failure. When the cover is open, the status of the power button can be obtained, and based on the status of the power button, it can be determined whether to upgrade.
- the terminal device if the power button is not pressed or the pressing time of the power button does not exceed the preset time, the terminal device is upgraded according to the target version BIOS, including: if the power button If the pressing time of the key does not exceed the preset time, the terminal device is connected to the power adapter, and the battery power in the terminal device meets the first condition, the status of the power key is obtained; if the power key is pressed, the upgrade is suspended; if the power key is pressed status and the pressing time does not exceed the preset time, upgrade the terminal device according to the target version BIOS.
- the terminal device can also obtain the status of the power button and judge again. Is it possible to upgrade. If the power button is pressed and the pressing time does not exceed the preset time, the terminal device is upgraded according to the target version of the BIOS.
- the pressing time of the power button does not exceed the preset time.
- the status of the power button is obtained again to determine whether the upgrade can be performed.
- the status of the power button is obtained multiple times to determine whether the upgrade is possible. This helps avoid forced interruption during the upgrade process, causing the upgrade to fail, and helps improve the BIOS upgrade rate.
- the first condition is that the battery power is greater than the preset power quantity.
- the method further includes: if the terminal device is not connected to the power adapter and the battery power in the terminal device does not meet the second condition, suspending the upgrade, and the first condition and the second condition are met. The two conditions are different.
- the second condition may be that the battery power is greater than the second preset power.
- the first condition and the second condition are different.
- the first preset power level may be 30%
- the second preset power level may be 5%.
- the terminal device If the terminal device is not connected to the power adapter and the battery power in the terminal device does not meet the second condition, at this time, the battery power is insufficient to support the upgrade, and the terminal device can suspend the upgrade.
- the method further includes: if the terminal device is not connected to the power adapter and the battery power in the terminal device meets the second condition, obtaining the status of the power key; if the power key If the terminal is not in a pressed state or the pressing time of the power button does not exceed the preset time, continue to detect whether the battery power in the terminal device meets the second condition; or, if the pressing time of the power button exceeds the preset time, pause the upgrade.
- the terminal device If the power button is not pressed or the pressing time of the power button does not exceed the preset time, at this time, the terminal device is in a state of suppressing power consumption, and the terminal device continues to detect whether the battery power in the terminal device still meets the second condition.
- the terminal device can pause the upgrade to prevent the terminal device from being abnormal due to upgrade failure.
- the method further includes: if the power button is in a pressed state and the pressed time exceeds a preset time, recording the long press event and the upgrade status.
- the method also Including: statistics of long press events and upgrade status to analyze the reasons for upgrade failure.
- a terminal device including: a processing module and an acquisition module.
- the processing module is used to: download the target version BIOS of the terminal device from the server; restart the terminal device; the acquisition module is used to: during the startup process of the terminal device, obtain the status of the power button of the terminal device; the processing module is also used to: if If the power button is pressed and the pressing time exceeds the preset time, the upgrade will be suspended; if the power button is not pressed or the power button is pressed for less than the preset time, the terminal device will be upgraded according to the target version of the BIOS.
- the processing module is also used to: if the power button is not in a pressed state, detect whether the terminal device is connected to the power adapter; if the terminal device is connected to the power adapter, and the If the battery power meets the first condition, the terminal device will be upgraded according to the target version BIOS.
- the terminal device further includes a display module; the display module is also used to: if the power button is pressed, display prompt information, and the prompt information is used to prompt the user that the power button is pressed. state.
- the terminal device includes a cover; the acquisition module is also used to: during the startup process of the terminal device, acquire the status of the cover; the processing module is also used to: if the cover If the cover is closed, the upgrade is suspended; the acquisition module is also used to: if the cover is open, obtain the status of the power button.
- the acquisition module is also used to: if the pressing time of the power button does not exceed the preset time, the terminal device is connected to the power adapter, and the battery power in the terminal device meets the first condition, obtain the status of the power button; the processing module is also used to: if the power button is pressed, pause the upgrade; if the power button is pressed and the pressing time does not exceed the preset time, upgrade the terminal device according to the target version of the BIOS.
- the first condition is that the battery power is greater than the preset power.
- the processing module is also used to: if the terminal device is not connected to the power adapter and the battery power in the terminal device does not meet the second condition, suspend the upgrade.
- the first condition It is different from the second condition.
- the acquisition module is also used to: if the terminal device is not connected to the power adapter and the battery power in the terminal device meets the second condition, obtain the status of the power key; process The module is also used to: if the power button is not pressed or the pressing time of the power button does not exceed the preset time, continue to detect whether the battery power in the terminal device meets the second condition; or, if the power button is pressed for longer than the preset time , pause the upgrade.
- the processing module is also used to: if the power button is in a pressed state and the pressing time exceeds a preset time, record the long press event and the upgrade status.
- the processing module is also used to: count long press events and upgrade status to analyze the reasons for upgrade failure.
- this application provides a terminal device, including a processor and a memory.
- the processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any of the possible implementations of the first aspect.
- processors there are one or more processors and one or more memories.
- the memory may be integrated with the processor, or the memory may be provided separately from the processor.
- the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be set in different On the chip, the embodiment of the present application does not limit the type of memory and the arrangement of the memory and the processor.
- ROM read-only memory
- sending instruction information may be a process of outputting instruction information from the processor
- receiving capability information may be a process of the processor receiving input capability information.
- the data output by the processing can be output to the transmitter, and the input data received by the processor can come from the receiver.
- the transmitter and receiver can be collectively called a transceiver.
- the terminal device in the above third aspect can be a chip, and the processor can be implemented by hardware or software.
- the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software,
- the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory.
- the memory can be integrated in the processor, or can be located outside the processor and exist independently.
- a computer-readable storage medium has a computer program (which may also be called a code, or an instruction) that when run on a computer causes the computer to execute the above-described first aspect. method in any of the possible implementations.
- a computer program product includes: a computer program (which may also be called a code, or an instruction).
- a computer program which may also be called a code, or an instruction.
- the computer program When the computer program is run, it causes the computer to execute any of the possible implementations of the first aspect. method within the method.
- Figure 1 is a schematic diagram of a BIOS upgrade failure
- Figure 2 is a schematic flow chart of a BIOS upgrade method
- Figure 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- Figure 4 is a software structure block diagram of a terminal device provided by an embodiment of the present application.
- Figure 5 is a schematic flow chart of an upgrade method based on the input and output system BIOS provided by an embodiment of the present application
- Figure 6 is a schematic flow chart of another upgrade method based on the input and output system BIOS provided by an embodiment of the present application.
- Figure 7 is a schematic block diagram of a terminal device provided by an embodiment of the present application.
- Figure 8 is a schematic block diagram of another terminal device provided by an embodiment of the present application.
- BIOS The basic input output system
- BIOS stores the most important basic input and output programs of the terminal device, system setting information, self-test programs after power-on, and system self-starting programs.
- BIOS can also read and write parameters on the motherboard for settings.
- BIOS can provide the lowest level and most direct hardware settings and control for the terminal.
- BIOS is the first program loaded when the terminal device is turned on.
- the settings of the BIOS are directly related to whether the terminal can start normally and affect the subsequent use efficiency of the terminal device.
- the Windows operating system also works under the guidance of BIOS.
- the BIOS can be regarded as a set of programs. If there is a program fault (bug) in the old version of the BIOS, the terminal device needs to upgrade the old version of the BIOS to the new version of the BIOS to repair the old version of the BIOS. Bugs in the BIOS ensure that the terminal device boots smoothly or the Windows system works normally.
- program fault bug
- the power key may also be called a shutdown key, which is not limited in the embodiments of the present application.
- Figure 1 shows a schematic diagram of a BIOS upgrade failure.
- the upgrade progress bar can be displayed on the interface.
- the progress bar is used to display the upgrade progress and can also display the text "Upgrading firmware, please wait.” This text is used to inform the user that an upgrade is in progress.
- the PC can also display a prompt message on the interface "Please do not press the power button and make sure the power adapter is connected, otherwise it may cause the computer to fail to boot.” This prompt message is used to remind the user not to press the power button to prevent upgrades caused by pressing the power button. fail.
- the PC needs to ensure that the battery power is sufficient during the upgrade process. "Please do not remove the AC adapter" can be displayed on the interface to remind the user not to remove the power adapter.
- the upgrade will fail and interface b in Figure 1 will be displayed.
- interface b in Figure 1 when the BIOS upgrade fails, the PC interface is a black screen.
- the PC detects the user's boot operation, it repairs the BIOS upgrade process. Only after the PC upgrade is successful can the PC be used normally. If the BIOS upgrade fails and causes software damage, the PC can repair the BIOS upgrade process, and the repair may be successful. If the BIOS upgrade fails and causes hardware damage, the PC cannot repair the BIOS upgrade process and requires maintenance personnel to repair it, affecting the normal use of the user.
- FIG. 2 shows a schematic flow chart of a BIOS upgrade method 200. As shown in Figure 2, the method 200 may include the following steps:
- BIOS upgrade needs to be performed during the PC boot process. Therefore, when the PC determines that the BIOS needs to be upgraded (that is, when a new version of BIOS is detected), the PC restarts to boot, and the PC upgrades the BIOS during the boot process. It should be understood that BIOS upgrade is from the perspective of BIOS, BIOS is upgraded to a new version of BIOS, and PC upgrade BIOS is from the perspective of PC, PC upgrades BIOS to a new version of BIOS, but no matter from which perspective Generally speaking, the BIOS is upgraded from the old version to the new version.
- PC restart includes the process of shutting down the PC and restarting it.
- the BIOS needs to be upgraded, in order to ensure the smooth upgrade of the BIOS, it is necessary to detect the battery power of the PC and whether the PC is connected to the power adapter to avoid shutting down the PC due to low battery power. , causing the BIOS upgrade to be interrupted.
- the PC can execute S208. If the battery power of the PC is less than or equal to 30% and/or the PC is not connected to the power adapter, the PC can execute S203.
- a prompt message is displayed.
- the prompt message is used to prompt the user to connect the PC to the power adapter.
- the PC When the PC's battery power is less than or equal to 30% and/or the PC is not connected to the power adapter, the PC does not meet the conditions for BIOS upgrade. Therefore, in order to increase the BIOS upgrade rate, the PC can display prompt information on the interface. Among them, the prompt information is used to prompt the user to connect the PC to the power adapter so that the external power supply can charge the PC through the power adapter, thereby making the PC meet the conditions for BIOS upgrade for BIOS upgrade.
- the PC detects whether the user has connected the power adapter to the PC because of the prompt message.
- the PC can detect that the power adapter is connected and can execute S205. If the user does not connect the PC to the power adapter, the PC can detect that the power adapter is not connected and can execute S206.
- the PC also detects whether the battery power is greater than 30%. If the battery power is greater than or equal to 30% and meets the BIOS upgrade requirement, the BIOS upgrade can continue, that is, S208 can be executed. If the battery power is less than or equal to 30% and does not meet the requirements for BIOS upgrade, you need to continue to detect whether the battery power is greater than 30%. At this time, the power adapter is charging until it detects that the battery power is greater than 30%.
- BIOS upgrade If it is detected that the power adapter is not connected and the PC has been in a power-consuming state and does not meet the requirements for BIOS upgrade, you can check whether the battery power is greater than 0, that is, whether it can support operation. If the battery power is greater than 0, the PC can support operation, but it is not sufficient. upgrade, the upgrade fails.
- the upgrade flag (flag) is used to indicate an upgrade.
- the PC detects that there is an upgrade mark and can upgrade the BIOS.
- the preset time period may be 10 seconds, but this is not limited in the embodiment of the present application.
- the PC detects that the power button is pressed and determines whether the pressing time exceeds the preset time. If it exceeds the preset time, S207 can be executed, that is, the upgrade fails. If the preset time period is not exceeded, S210 can be executed.
- the PC can upgrade the BIOS and determine whether the upgrade is successful, that is, whether to upgrade the BIOS to a new version of the BIOS.
- the PC can execute S211. Otherwise, the PC executes S207, which means the upgrade fails.
- the embodiment of the present application also found that if the user closes the computer cover of the PC during the BIOS upgrade process, the PC will not stop the upgrade. If the user puts the PC into the computer bag, the PC will be damaged due to the upgrade. When overheating occurs, the PC detects that the temperature is too high and will stop the upgrade, causing the upgrade to fail and reducing the BIOS upgrade rate.
- embodiments of the present application provide an upgrade method and terminal device based on the input and output system BIOS, which can improve the BIOS upgrade rate.
- the method provided by the embodiments of the present application may be applied to terminal devices, such as the above-mentioned PC, but the embodiments of the present application are not limited thereto.
- the terminal device can also be a wearable terminal device such as a mobile phone, a tablet, a smart watch, or various teaching aids (such as a learning machine, an early education machine), smart toys, portable robots, personal computers, etc.
- PDA personal digital assistant
- AR augmented reality
- VR virtual reality
- FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- the terminal device 300 may include an embedded controller (EC) 301, a charging chip 302, a battery 303, a cover 304, a power button 305, and a read-only memory (ROM) 306 , a central processing unit (CPU) 307 and a display screen 308.
- EC embedded controller
- ROM read-only memory
- CPU central processing unit
- EC 301 is respectively connected with the charging chip 302, battery 303, cover 304, power button 305, ROM 306, CPU 307 and display screen 308.
- EC 301 can be replaced with other types of controllers, such as Micro controller unit (MCU), or an integrated IC module of MCU chip and EC.
- MCU Micro controller unit
- the EC 301 and the battery 303 may be connected through a system management bus (SMBUS).
- the EC 301 is connected to the CPU 307 through a general purpose input/output port (GPIO) port on the one hand, and can also be connected to the CPU 307 through a platform environment control interface (PECI) on the other hand. ) is connected to the CPU 307.
- GPIO general purpose input/output port
- PECI platform environment control interface
- the charging chip 302 is connected to the EC 301.
- the charging chip 302 and the EC 301 can be connected through a system management bus (SMBUS).
- the charging chip 302 may also be called a charger chip or charger IC.
- the charging chip 302 may also include a photodiode (Photo-Diode, PD) chip.
- the PD chip is used by the EC301 to obtain the power of the external power supply and adjust the charging voltage and current from the external power supply according to the charging strategy to realize the external power supply.
- the battery 303 is charged, or provides power to the EC 301 and the CPU 307.
- the terminal device 300 can be connected to the power adapter through the charging chip 302, thereby allowing the terminal to connect to an external power supply.
- Battery 303 used to power EC 301 and CPU 307.
- the cover 304 is used to prevent dust, prevent the keyboard from being hit, and can also be used to put the terminal device in sleep, hibernation or shutdown state.
- the cover 304 can also be used to put the terminal device in sleep, hibernation or shutdown state.
- the cover 304 and the display screen 308 are usually integrated together.
- the cover is buckled, the display screen goes out and the PC or notebook goes into sleep. state, if the cover is open, the display will light up and the PC or notebook will exit the sleep state.
- the power key 305 is used to control the power on and off key, that is, used to turn off or turn on the terminal device.
- ROM 306. For example, it can be BIOS ROM. Among them, ROM 306 can be connected to EC 301 and CPU 307 respectively.
- CPU 307 may include one or more processing units. Among them, different processing units can be independent devices or integrated in one or more processors. Memory can also be set in the CPU 307 to store instructions and data.
- the display screen 308 can be connected to the EC 301 and the CPU 307 respectively.
- the display screen 308 may be a liquid crystal display (LCD), but this is not limited in the embodiment of the present application.
- the display screen 308 is used to display images, videos, etc.
- Display 308 may include a display panel.
- the terminal device 300 may further include a first sensor and a second sensor.
- the first sensor can be connected with the EC 302 and the second sensor can be connected with the CPU 307 .
- the first sensor may include but is not limited to: a temperature sensor.
- the second sensor includes but is not limited to: pressure sensor, gyroscope sensor, Acceleration sensor, etc., the second sensor will not be described in detail in the embodiment of this application.
- the terminal device 300 may further include a first memory and a second memory.
- the first memory is connected to the EC 301, and the second memory is connected to the CPU 307.
- the first memory may include: flash memory.
- the first memory can be set independently of the EC 301 and connected to the EC 301.
- the first memory is set in the EC 301.
- the setting method of the first memory in the embodiment of the present application is No restrictions.
- the first memory is used to store one or more computer programs, so that the EC can implement the operations of the EC in the embodiment of the present application based on the one or more computer programs.
- the second memory may be used to store one or more computer programs including instructions.
- the second memory may include a program storage area and a data storage area.
- the stored program area can store the operating system; the stored program area can also store one or more application programs (such as gallery, contacts, etc.).
- the storage data area can store data created during the use of the electronic device, etc.
- the second memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
- the second memory may be a solid state disk (SSD).
- SSD solid state disk
- SSD SSD can be used to store new versions of BIOS. It should be understood that the SSD is not shown in Figure 3.
- the first memory and the second memory may be represented by memories, and the memories are not shown in FIG. 3 .
- Figure 4 is a software structure block diagram of a terminal device applicable to the embodiment of the present application.
- the software system of the terminal device may adopt a layered architecture.
- the embodiment of this application takes the PC system architecture of the terminal device (such as a PC) as an example to illustrate the software structure of the terminal device.
- the layered architecture can divide the software system of the terminal device into several layers. Each layer has a clear role and division of labor, and the layers communicate through software interfaces.
- the PC system can be divided into four layers, namely application layer (applications), system layer, driver layer and hardware layer.
- application layer applications
- the modules included in each layer in the following embodiments are modules involved in the embodiments of this application.
- the modules included in each layer below do not limit the structure of the terminal device.
- the upgrade status recording module can be deployed in the application. It can also be deployed in the PC Manager APP of the system layer or in the Windows service of the system layer.
- the following introduction is based on the deployment of the upgrade status recording module at the system layer.
- the modules shown in Figure 4 can be deployed individually, or several modules can be deployed together.
- the division of modules in Figure 4 is an example.
- the names of the modules shown in Figure 4 are examples.
- the application layer may include application packages.
- the application layer may include: camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message and other application packages.
- Figure 4 takes the application layer including a PC housekeeper application (application, APP) as an example for explanation.
- PC Butler APP is used to download a new version of BIOS from an over-the-air technology (OTA) server and transmit the new version of BIOS to the OTA upgrade service module at the system layer.
- the new version of the BIOS may be an image file or an executable file.
- the embodiment of the present application does not limit the file form of the new version of the BIOS.
- PC Butler APP can also receive the long press event of the power button from the upgrade status recording module at the system layer and the upgrade status during the upgrade process.
- the system layer may include: an upgrade status recording module and an OTA upgrade service. service module.
- the upgrade status recording module is used to transmit the long press event of the power button and the upgrade status during the upgrade process to the PC Butler APP.
- the upgrade status recording module is also used for data interaction with the Windows Management Interface (WMI) module of the driver layer.
- the OTA upgrade service module is used to transmit the new version of BIOS (image file) from PC Butler APP, verify it, and save the successfully verified BIOS for subsequent upgrades.
- the driver layer at least includes hardware drivers, which are used to drive the hardware.
- the driver layer includes: sensor driver, display driver (display driver), graphics processor driver (graphics processing unit driver, GPU driver), etc., and the embodiments of this application do not limit this.
- the display driver is used to drive the display screen of the hardware layer to display the interface of the terminal. It should be understood that the driving modules of each hardware are not shown in FIG. 4 .
- the driver layer may also include: a Windows management interface (windows management interface, WMI) module and an upgrade module.
- WMI window management interface
- the WMI module is used to realize data interaction between EC and upgrade status recording module.
- the upgrade module is used to write the new version of BIOS into BIOS ROM to achieve BIOS upgrade.
- the hardware layer includes hardware devices, such as EC, display, central processing unit (CPU), battery, charging point chip, cover, power button, BIOS ROM, etc., as shown in Figure 3, the hardware structure of the terminal , will not be described in detail here. It should be understood that the hardware layer in Figure 4 shows the EC, battery, charging chip, charging point chip, cover plate, power button and BIOS ROM involved in the embodiment of the present application.
- hardware devices such as EC, display, central processing unit (CPU), battery, charging point chip, cover, power button, BIOS ROM, etc.
- the EC may include an acquisition unit and a control unit.
- the acquisition unit can be used to detect the battery to obtain the battery power. It can also be used to detect the charging point chip to determine whether the power adapter is connected. It can also be used to detect the cover to obtain the opening of the cover. In the closed state, the power button can also be detected to detect whether the power button is pressed (or pressed).
- the control unit can be used to record the long press event of the power button, and can also be used to record the upgrade status during the upgrade process. It can also be used to pause or resume the upgrade status during the upgrade process. It can also be used to notify the user that the power button is pressed.
- the terminal may include more or fewer components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently.
- the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
- words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not limit the number and execution order.
- At least one means one or more
- plural means two or more.
- “And/or” describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. Character The symbol “/” generally indicates that the related objects are an “or” relationship. "At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
- At least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
- FIG. 5 shows a schematic flow chart of an upgrade method 500 based on the input and output system BIOS.
- the method 500 may be executed by a terminal device, for example, the above-mentioned PC.
- the hardware structure diagram of the terminal device may be as shown in Figure 3, and the software structure diagram of the terminal device may be as shown in Figure 4, but the embodiments of the present application are not limited thereto.
- the method 500 may include the following steps:
- the terminal device determines whether the status of the lid (lid) is open.
- the PC determines whether the PC lid is open.
- the terminal device determines whether the power button is pressed by the user, that is, whether the power button is pressed. If the power button is in the pressed state, the terminal device executes S504. If the power button is not pressed, the terminal device executes S508.
- a prompt message can be displayed on the interface to prompt the user that the power button is pressed.
- the prompt information can disappear when the terminal device detects that the power button is not pressed.
- the terminal device when the terminal device displays prompt information, it can display a close option, and when the terminal device detects that the user clicks on the close option, the prompt information disappears.
- the terminal device may execute S506. If the pressing time of the power button does not exceed the preset time, the terminal device can execute S509.
- the terminal device records the long press event of the power button.
- the terminal device can record the time of the long press event.
- Pause the upgrade that is, temporarily stop the upgrade. If the pressing time of the power button exceeds the preset time, the terminal device can be shut down. When the terminal device detects the user's power-on operation, the terminal device restarts and continues to perform the above S502.
- the terminal device can pause the upgrade. Prevent terminal device abnormalities caused by upgrade failure.
- This implementation method before BIOS upgrade, first determines whether the cover status and power button status meet the conditions. If the conditions are not met, the upgrade is suspended, which can avoid failures during the upgrade process and is conducive to improving BIOS upgrade. Rate.
- the terminal device can periodically prompt the user whether to upgrade the BIOS, or the terminal device detects the user's power-on operation and performs a BIOS upgrade during the restart process.
- the terminal device detects whether the BIOS upgrade conditions are met.
- BIOS upgrade conditions For specific implementation methods, please refer to the above-mentioned S202, which will not be described again here.
- the terminal device can execute S509. If the terminal device is not connected to the power adapter and/or detects that the battery power is less than or equal to 30%, the terminal device can perform the above S203-S207.
- the terminal device can execute S510. If the power button is not pressed, the terminal device can execute S516.
- the power button may be pressed accidentally by the user.
- the terminal device can pause the BIOS upgrade first to reduce the risk of upgrade failure.
- the terminal device may execute S513. If the pressing time of the power button does not exceed the preset time, the terminal device can execute S515.
- the power button is pressed for longer than the preset time, it means that the user wants to shut down the phone, and the upgrade fails.
- the BIOS upgrade during the BIOS upgrade process, if it is detected that the power button is pressed, the BIOS upgrade will stop. If the power button is pressed for longer than the preset time, the upgrade fails. At this time, the BIOS upgrade is in a suspended state, and the terminal device Shutdown has little impact on the terminal device.
- the terminal device detects the user's power-on operation, the terminal device can be upgraded normally, which can avoid failures during the upgrade process and help improve the BIOS upgrade rate.
- the terminal device can periodically prompt the user whether to upgrade the BIOS, or the terminal device detects the user's power-on operation and performs a BIOS upgrade during the restart process.
- the terminal device can count the number of long press events, time and other information during the upgrade process, but the embodiment of the present application is not limited to this.
- the upgrade status may be upgrade success or upgrade failure, which is not limited in the embodiments of the present application.
- the terminal device can count the long press events generated during the upgrade process and record the upgrade status during the upgrade process. For example, the terminal device experienced three long press events and two failed upgrades before the upgrade was successful.
- the terminal device can also record the reasons for success or failure of the upgrade, so as to facilitate subsequent summary and propose a more reasonable upgrade method to improve the success rate of BIOS upgrade.
- BIOS-based upgrade method before upgrading the BIOS, it is first determined whether the cover status and the power button status meet the conditions. If the conditions are met, the upgrade is performed. If the conditions are not met, the upgrade is suspended. , can be upgraded under optimal conditions, which is conducive to improving the BIOS upgrade rate. In addition, during the BIOS upgrade process, if the power button is detected to be pressed during the BIOS upgrade process, the BIOS upgrade will be stopped. If the power button is pressed for longer than the preset time, although the upgrade fails, the BIOS upgrade will be in a suspended state. The impact of the upgrade failure It is small, and if the user's power-on operation is detected, it can be upgraded normally, which is beneficial to protecting the terminal equipment. In addition, this method can also count the long press events and upgrade status during the upgrade process after the upgrade, which is conducive to analysis and summary and subsequent improvement of the upgrade method.
- Figure 6 shows a schematic flow chart of a BIOS-based upgrade method 600.
- the method 600 can be executed by a terminal device, for example, the above-mentioned PC.
- the hardware structure diagram of the terminal device may be as shown in Figure 3, and the software structure diagram of the terminal device may be as shown in Figure 4, but the embodiments of the present application are not limited thereto.
- the method 600 may include the following steps:
- the terminal device can perform the above S201 to S205. If the battery power is greater than 30%, the terminal device can perform the above S208 or perform S509, which is not limited in the embodiment of the present application.
- the terminal device may execute S502 to S507 in the above method 500.
- the terminal device can execute S602. If the battery power is less than or equal to 5%, the terminal device can execute S606.
- 5% is only an example, and the embodiments of the present application are not limited thereto. 5% can be replaced by any value less than 30% and greater than 0%.
- S602. Determine whether the power button is in a pressed state.
- the terminal device can execute S603. If the power button is not pressed, the terminal device can execute S601, that is, continue to detect whether the battery power is greater than 5%.
- the terminal device can execute S605. If the pressing time of the power button does not exceed the preset time, the terminal device can execute S601, that is, continue to detect whether the battery power is greater than 5%.
- the terminal device can pause the upgrade to prevent the terminal device from being abnormal due to upgrade failure.
- the BIOS-based upgrade method provided by the embodiment of this application can automatically suspend the BIOS upgrade when it is detected that the power adapter is not connected and the battery power is less than or equal to 5%, which can avoid upgrade failure due to insufficient battery power and reduce the upgrade failure rate. .
- the battery power is greater than 5%, but it is detected that the power button is pressed for longer than the preset time, the long press event will be recorded and the BIOS upgrade will be automatically suspended. This can avoid upgrade failures caused by long presses of the power button and reduce the upgrade failure rate.
- the size of the serial numbers of the above processes does not mean the order of execution.
- the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
- FIG. 7 shows a schematic block diagram of a terminal device 700 provided by an embodiment of the present application.
- the device 700 includes: a processing module 710 and an acquisition module 720.
- the processing module 710 is used to: download the target version BIOS of the terminal device from the server; restart the terminal device; the acquisition module 720 is used to: during the startup process of the terminal device, obtain the status of the power key of the terminal device; the processing module 710 also uses In: If the power button is pressed and the pressing time exceeds the preset time, the upgrade will be suspended; if the power button is not pressed or the power button is pressed for less than the preset time, the terminal device will be upgraded according to the target version of the BIOS.
- the processing module 710 is also used to: if the power button is not in a pressed state, detect whether the terminal device is connected to the power adapter; if the terminal device is connected to the power adapter and the battery power in the terminal device meets the first condition, then according to the target version BIOS upgrades the terminal device.
- the terminal device further includes a display module; the display module is further configured to: if the power key is in a pressed state, display prompt information, and the prompt information is used to prompt the user that the power key is in a pressed state.
- the terminal device includes a cover; the acquisition module 720 is also used to: during the startup process of the terminal device, acquire the status of the cover; the processing module 710 is also used to: if the cover is in a closed state, suspend the upgrade; the acquisition module 720 is also used to obtain the status of the power button if the cover is open.
- the acquisition module 720 is also used to: if the pressing time of the power button does not exceed the preset time, the terminal device is connected to the power adapter, and the battery power in the terminal device meets the first condition, acquire the status of the power button; the processing module 710 is also used to: pause the upgrade if the power button is pressed; if the power button is pressed and the pressing time does not exceed the preset time, upgrade the terminal device according to the target version BIOS.
- the first condition is that the battery power is greater than the preset power.
- the processing module 710 is also configured to suspend the upgrade if the terminal device is not connected to the power adapter and the battery power in the terminal device does not meet the second condition, and the first condition and the second condition are different.
- the acquisition module 720 is also configured to: if the terminal device is not connected to the power adapter and the battery power in the terminal device meets the second condition, acquire the status of the power key; the processing module 710 is also configured to: if the power key If the terminal is not in a pressed state or the pressing time of the power button does not exceed the preset time, continue to detect whether the battery power in the terminal device meets the second condition; or, if the pressing time of the power button exceeds the preset time, pause the upgrade.
- the processing module 710 is also configured to: if the power button is in a pressed state and the pressed time exceeds a preset time, record the long press event and upgrade status.
- processing module 710 is also configured to: collect statistics on long press events and upgrade status to analyze the reasons for upgrade failure.
- the terminal device 700 here is embodied in the form of a functional module.
- module may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor, or a group of processors) used to execute one or more software or firmware programs. processor, etc.) and memory, merged logic circuitry, and/or other suitable components to support the described functionality.
- ASIC application specific integrated circuit
- processor such as a shared processor, a proprietary processor, or a group of processors
- memory merged logic circuitry, and/or other suitable components to support the described functionality.
- the terminal device 700 can be specifically the terminal device in the above method embodiment, or the functions of the terminal device in the above method embodiment can be integrated into the terminal device 700.
- the device 700 may be used to perform various processes and/or steps corresponding to the terminal device in the above method embodiments, which will not be described again to avoid duplication.
- the above-mentioned terminal device 700 has the function of implementing the corresponding steps performed by the terminal device in the above-mentioned method embodiment; the above-mentioned functions can be realized by hardware, or can also be realized by hardware executing corresponding software.
- the hardware or software includes one or more modules corresponding to the above functions.
- the terminal device 700 in Figure 7 may also be a chip or a chip system, such as a system on chip (SoC).
- SoC system on chip
- FIG 8 is a schematic block diagram of another terminal device 800 provided by an embodiment of the present application.
- the terminal device 800 includes a processor 810, a communication interface 820 and a memory 830.
- the processor 810, the communication interface 820 and the memory 830 communicate with each other through internal connection channels.
- the memory 830 is used to store instructions, and the processor 820 is used to execute the instructions stored in the memory 830 to control the communication interface 820 to send signals and /or receive a signal.
- the terminal device 800 can be specifically the terminal device in the above method embodiment, or the functions of the terminal device in the above method embodiment can be integrated in the terminal device 800, and the terminal device 800 can be used to perform the steps in the above method embodiment.
- the memory 830 may include read-only memory and random access memory and provide instructions and data to the processor.
- a portion of the memory may also include non-volatile random access memory.
- the memory may also store device type information.
- the processor 810 can be used to execute instructions stored in the memory, and when the processor executes the instructions, the processor can execute various steps and/or processes corresponding to the terminal device in the above method embodiment.
- the processor 810 may be a central processing unit (CPU).
- the processor may also be other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (CPUs).
- DSP digital signal processors
- CPUs application-specific integrated circuits
- ASIC field programmable gate array
- FPGA field programmable gate array
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
- each step of the above method can be implemented through the integrated logic circuit of the hardware in the processor or Completion of instructions in software form.
- the steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
- the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
- the storage medium is located in the memory, and the processor executes the instructions in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
- This application also provides a computer-readable storage medium.
- the computer-readable storage medium is used to store a computer program.
- the computer program is used to implement the method corresponding to the terminal device in the above method embodiment.
- This application also provides a chip system, which is used to support the terminal device in the above method embodiment to implement the functions shown in the embodiment of this application.
- the computer program product includes a computer program (which can also be called a code, or an instruction).
- a computer program which can also be called a code, or an instruction.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of modules is only a logical function division. In actual implementation, there may be other division methods.
- multiple modules or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
- the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.
- modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
- the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
- the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Power Sources (AREA)
Abstract
本申请提供了一种基于输入输出系统BIOS的升级方法和终端设备,可以提高BIOS升级率。该方法包括:从服务器下载终端设备的目标版本BIOS;重启终端设备;在终端设备的开机过程中,获取终端设备的电源键的状态;若电源键处于按压状态且按压时间超过预设时长,则暂停升级;若电源键未处于按压状态或者电源键的按压时间未超过预设时长,则根据目标版本BIOS对终端设备进行升级。本申请在电源键处于按压状态且按压时间超过预设时长的情况下,暂停升级,可以防止升级过程被强制终端,降低BIOS升级率。
Description
本申请要求于2022年05月13日提交中国国家知识产权局、申请号为202210521958.X、申请名称为“基于输入输出系统BIOS的升级方法和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端技术领域,尤其涉及一种基于输入输出系统BIOS的升级方法和终端设备。
基本输入输出系统(basic input output system,BIOS)可以理解为在终端设备开机过程中运行的一组程序。终端设备中的BIOS需要进行版本更新。作为示例,若旧版本的BIOS存在程序故障(bug),则终端设备需要将旧版本的BIOS升级至新版本的BIOS。终端设备的一种示例为个人计算机(personal computer,PC)。
目前,在个人计算机(personal computer,PC)进行BIOS升级过程中,经常会出现用户按压电源键导致BIOS升级失败的现象,降低了BIOS升级率。若BIOS升级失败,PC无法正常使用,会影响PC开机的成功率和效率。
发明内容
本申请提供一种基于输入输出系统BIOS的升级方法和终端设备,可以提高BIOS升级率。
第一方面,提供了一种基于输入输出系统BIOS的升级方法,包括:从服务器下载终端设备的目标版本BIOS;重启终端设备;在终端设备的开机过程中,获取终端设备的电源键的状态;若电源键处于按压状态且按压时间超过预设时长,则暂停升级;若电源键未处于按压状态或者电源键的按压时间未超过预设时长,则根据目标版本BIOS对终端设备进行升级。
目标版本BIOS可以理解为新版本的BIOS,当终端设备检测到存在新版本的BIOS发布时,可以从服务器下载。
终端设备从服务器获取目标版本BIOS后,准备升级,可以重启终端设备,在开机过程中进行升级,当开机完成后,用户可以使用目标版本BIOS。
终端设备在升级过程中,若电源键未处于按压状态或者电源键的按压时间未超过预设时长,则终端设备可以根据目标版本BIOS对终端设备进行升级。若电源键被按压的时间超过预设时长,不暂停升级,则会使升级强制中断,升级失败,终端设备的软件或者硬件会出现损伤的现象,故本申请中,终端设备在进行在电源键处于按压状态且按压时间超过预设时长的情况下,暂停升级,可以避免强制中断升级,有利于提高BIOS升级率。其中,预设时长可以为10秒,但本申请并不限于此。
结合第一方面,在第一方面的某些实现方式中,若电源键未处于按压状态或者电
源键处于按压状态且按压时间未超过预设时长,则根据目标版本BIOS对终端设备进行升级,包括:若电源键未处于按压状态,检测终端设备是否连接电源适配器;若终端设备连接电源适配器,且终端设备中的电池电量满足第一条件,则根据目标版本BIOS对终端设备进行升级。
第一条件可以为电池电量大于预设电量,例如,第一预设电量为30%。
终端设备在升级前,可以先检测电源键是否处于按压状态,然后在电源键未处于按压状态时,检测终端设备是否连接电源适配器,电池电量是否满足第一条件,在连接电源适配器,且电池电量满足第一条件的情况下,进行升级。
终端设备在升级过程中,在电源键未处于按压状态的情况下,判断是否满足升级的条件(连接电源适配器,且电池电量满足第一条件),若满足,则进行升级,有利于防止升级过程中因电量不足而导致升级失败的情况,可以提高BIOS升级率。
结合第一方面,在第一方面的某些实现方式中,上述方法还包括:若电源键处于按压状态,显示提示信息,提示信息用于提示用户电源键处于按压状态。
电源键处于按压状态,终端设备可以显示提示信息,以便于提醒用户其触碰了电源键。若用户是误触,可以通过查看提示信息而解除按压电源键的操作。
结合第一方面,在第一方面的某些实现方式中,终端设备包括盖板;在终端设备的开机过程中,获取终端设备的电源键的状态,包括:在终端设备的开机过程中,获取盖板的状态;若盖板处于关闭状态,暂停升级;若盖板处于打开状态,获取电源键的状态。
在获取电源键的状态之前,可以先判断盖板的状态,当盖板的状态为关闭状态时,暂停升级,可以避免因升级而发生过热的现象,可以降低升级失败的概率。当盖板的状态为打开状态时,可以再获取电源键的状态,根据电源键的状态,进而确定是否升级。
结合第一方面,在第一方面的某些实现方式中,若电源键未处于按压状态或者电源键的按压时间未超过预设时长,则根据目标版本BIOS对终端设备进行升级,包括:若电源键的按压时间未超过预设时长,终端设备连接电源适配器,且终端设备中的电池电量满足第一条件,则获取电源键的状态;若电源键处于按压状态,暂停升级;若电源键处于按压状态且按压时间未超过预设时长,根据目标版本BIOS对终端设备进行升级。
电源键处于按压状态且按压时间未超过预设时长,且终端设备满足升级条件(连接电源适配器,且终端设备中的电池电量满足第一条件),终端设备还可以获取电源键的状态,再次判断是否可以进行升级。若电源键处于按压状态且按压时间未超过预设时长,根据目标版本BIOS对终端设备进行升级。
本申请实施例提供的基于BIOS的升级方法,在判断是否满足升级条件之前,电源键的按压时间未超过预设时长,在满足升级条件之后,再次获取电源键的状态,判断是否可以进行升级,在整个升级过程中,多次获取电源键的状态进行判断是否可以升级,有利于避免在升级过程中被强制中断,导致升级失败,有利于提高BIOS升级率。
结合第一方面,在第一方面的某些实现方式中,第一条件为电池电量大于预设电
量。
结合第一方面,在第一方面的某些实现方式中,方法还包括:若终端设备未连接电源适配器,且终端设备中的电池电量不满足第二条件,则暂停升级,第一条件和第二条件不同。
若第一条件为电池电量大于第一预设电量,第二条件可以为电池电量大于第二预设电量。第一条件和第二条件不同。例如,第一预设电量可以为30%,第二预设电量可以为5%。
若终端设备未连接电源适配器,且终端设备中的电池电量不满足第二条件,此时,电池电量不足以支持升级,终端设备可以暂停升级。
在这种实现方式中,可以避免电池电量过低导致的升级失败,可以提高BIOS升级率。
结合第一方面,在第一方面的某些实现方式中,方法还包括:若终端设备未连接电源适配器,且终端设备中的电池电量满足第二条件,则获取电源键的状态;若电源键未处于按压状态或者电源键的按压时间未超过预设时长,继续检测终端设备中的电池电量是否满足第二条件;或者,若电源键的按压时间超过预设时长,暂停升级。
若电源键未处于按压状态或者电源键的按压时间未超过预设时长,此时,终端设备处于抑制耗电的状态,终端设备继续检测终端设备中的电池电量是否仍满足第二条件。
若电源键的按压时间超过预设时长,则可以说明用户不想要进行升级,终端设备可以暂停升级,防止因为升级失败导致终端设备异常。
结合第一方面,在第一方面的某些实现方式中,方法还包括:若电源键处于按压状态且按压时间超过预设时长,记录长按事件和升级状态。
结合第一方面,在第一方面的某些实现方式中,在若电源键未处于按压状态或者电源键的按压时间未超过预设时长,则根据目标版本BIOS对终端设备进行升级之后,方法还包括:统计长按事件和升级状态以分析升级失败的原因。
第二方面,提供了一种终端设备,包括:处理模块和获取模块。其中,处理模块用于:从服务器下载终端设备的目标版本BIOS;重启终端设备;获取模块用于:在终端设备的开机过程中,获取终端设备的电源键的状态;处理模块还用于:若电源键处于按压状态且按压时间超过预设时长,则暂停升级;若电源键未处于按压状态或者电源键的按压时间未超过预设时长,则根据目标版本BIOS对终端设备进行升级。
结合第二方面,在第二方面的某些实现方式中,处理模块还用于:若电源键未处于按压状态,检测终端设备是否连接电源适配器;若终端设备连接电源适配器,且终端设备中的电池电量满足第一条件,则根据目标版本BIOS对终端设备进行升级。
结合第二方面,在第二方面的某些实现方式中,终端设备还包括显示模块;显示模块还用于:若电源键处于按压状态,显示提示信息,提示信息用于提示用户电源键处于按压状态。
结合第二方面,在第二方面的某些实现方式中,终端设备包括盖板;获取模块还用于:在终端设备的开机过程中,获取盖板的状态;处理模块还用于:若盖板处于关闭状态,暂停升级;获取模块还用于:若盖板处于打开状态,获取电源键的状态。
结合第二方面,在第二方面的某些实现方式中,获取模块还用于:若电源键的按压时间未超过预设时长,终端设备连接电源适配器,且终端设备中的电池电量满足第一条件,则获取电源键的状态;处理模块还用于:若电源键处于按压状态,暂停升级;若电源键处于按压状态且按压时间未超过预设时长,根据目标版本BIOS对终端设备进行升级。
结合第二方面,在第二方面的某些实现方式中,第一条件为电池电量大于预设电量。
结合第二方面,在第二方面的某些实现方式中,处理模块还用于:若终端设备未连接电源适配器,且终端设备中的电池电量不满足第二条件,则暂停升级,第一条件和第二条件不同。
结合第二方面,在第二方面的某些实现方式中,获取模块还用于:若终端设备未连接电源适配器,且终端设备中的电池电量满足第二条件,则获取电源键的状态;处理模块还用于:若电源键未处于按压状态或者电源键的按压时间未超过预设时长,继续检测终端设备中的电池电量是否满足第二条件;或者,若电源键的按压时间超过预设时长,暂停升级。
结合第二方面,在第二方面的某些实现方式中,处理模块还用于:若电源键处于按压状态且按压时间超过预设时长,记录长按事件和升级状态。
结合第二方面,在第二方面的某些实现方式中,处理模块还用于:统计长按事件和升级状态以分析升级失败的原因。
第三方面,本申请提供了一种终端设备,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过接收器接收信号,通过发射器发射信号,以执行上述第一方面中任一种可能实现方式中的方法。
可选地,处理器为一个或多个,存储器为一个或多个。
可选地,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。
应理解,相关的数据交互过程例如发送指示信息可以为从处理器输出指示信息的过程,接收能力信息可以为处理器接收输入能力信息的过程。具体地,处理输出的数据可以输出给发射器,处理器接收的输入数据可以来自接收器。其中,发射器和接收器可以统称为收发器。
上述第三方面中的终端设备可以是一个芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。
第五方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。
上述第二方面至第五方面的各可能的实现方式,其有益效果可以参见上述第一方面所带来的有益效果,在此不加赘述。
图1是一种BIOS升级失败的示意图;
图2是一种BIOS升级方法的示意性流程图;
图3是本申请实施例提供的一种终端设备的结构示意图;
图4是本申请实施例提供的一种终端设备的软件结构框图;
图5是本申请实施例提供的一种基于输入输出系统BIOS的升级方法的示意性流程图;
图6是本申请实施例提供的另一种基于输入输出系统BIOS的升级方法的示意性流程图;
图7是本申请实施例提供的一种终端设备的示意性框图;
图8是本申请实施例提供的另一种终端设备的示意性框图。
下面将结合附图,对本申请中的技术方案进行描述。
基本输入输出系统(basic input output system,BIOS)是一组固化到终端主板上的程序。BIOS中保存着终端设备最重要的基本输入输出的程序、系统设置信息、开机后自检程序以及系统自启动程序,另外,BIOS还可以读写主板上的参数以进行设置。也就是说,BIOS可以为终端提供最底层的、最直接的硬件设置和控制。简单来说,BIOS是终端设备开机过程中加载的第一个程序,BIOS的设置直接关系到终端是否可以正常启动,并影响之后终端设备的使用效率。Windows操作系统,也是在BIOS的引导下进行工作的。
在一种实施例中,可以将BIOS看作一组程序,若旧版本的BIOS中存在程序故障(bug),则终端设备需要将旧版本的BIOS升级至新版本的BIOS,以修复旧版本的BIOS中的bug,进而保证终端设备顺利开机,或者是Windows系统正常工作。
目前,在个人计算机(personal computer,PC)进行BIOS升级过程中,经常会出现用户触摸电源键导致BIOS升级失败的现象,降低了BIOS升级率。若BIOS升级失败,PC无法正常使用,会影响PC开机的成功率和效率。其中,电源键也可以称为关机键,本申请实施例对此不作限定。
示例性地,图1示出了一种BIOS升级失败的示意图。如图1中的a界面所示,PC在进行BIOS升级过程中,可以在界面上显示升级的进度条,进度条用于显示升级进度,还可以显示文字“正在升级固件,请稍后”,该文字用于告知用户正在升级。PC还可以在界面上显示提示信息“请不要按电源键,确保电源适配器连接,否则可能导致无法开机”,该提示信息用于提示用户不要按电源键,防止由于电源键被按压导致升级
失败。PC在升级过程中需要保证电池电量充足,可以在界面上显示“Please do not remove the AC adapter”用于提醒用户不用移除电源适配器。
若用户未关注到界面的提示信息,对电源键进行了长按,或者,用户误操作,对电源键进行了长按,PC被强制断电,会导致升级失败,显示图1中的b界面。如图1中的b界面所示,当BIOS升级失败时,PC的界面为黑屏。当PC检测到用户的开机操作时,对BIOS升级过程进行修复,当PC升级成功后,PC才可以正常使用。若BIOS升级失败造成软件损伤,PC可以对BIOS升级过程进行修复,有可能修复成功。若BIOS升级失败造成硬件损伤,PC无法对BIOS升级过程进行修复,需要维修人员进行修复,影响用户的正常使用。
为了研究BIOS升级失败的原因,本申请实施例研究了现有技术中BIOS升级的过程。
图2示出了一种BIOS升级方法200的示意性流程图。如图2所示,该方法200可以包括如下步骤:
S201、当确定BIOS需要升级时,重启。
BIOS升级需要在PC开机过程中进行,因此,PC确定BIOS需要升级(即检测到新版本的BIOS时)时,PC重启实现开机,进而PC在开机过程中升级BIOS。应理解的是,BIOS升级是从BIOS的角度来讲,BIOS升级至新版本的BIOS,PC升级BIOS是从PC的角度来讲,PC将BIOS升级至新版本的BIOS,但无论从什么角度来讲,BIOS均是从旧版本升级至新版本。
S202、检测是否连接电源适配器,且检测电池电量是否大于30%。
PC重启包括PC进行关机的过程,以及进行重新开机的过程。现有技术中,在PC重新开机过程中,因为要进行BIOS的升级,为了保证BIOS顺利升级,因此需要对PC的电池电量以及PC是否连接电源适配器进行检测,以避免因为电池电量低导致PC关机,进而导致BIOS升级中断。
现有技术中,在PC重启的开机过程中,需要检测PC的电池电量是否大于30%,以及检测PC是否连接电源适配器。其中,当PC的电池电量大于30%,以及PC连接电源适配器时,BIOS可以进行升级,当PC的电池电量小于或等于30%和/或PC未连接电源适配器时,BIOS不进行升级。
若PC的电池电量大于30%,以及PC连接电源适配器,则PC可以执行S208。若PC的电池电量小于或等于30%和/或PC未连接电源适配器,则PC可以执行S203。
S203、若PC的电池电量小于或等于30%和/或PC未连接电源适配器,显示提示信息,该提示信息用于提示用户将PC连接电源适配器。
当PC的电池电量小于或等于30%和/或PC未连接电源适配器时,PC未满足BIOS升级的条件,因此为了提高BIOS的升级率,PC可以在界面上显示提示信息。其中,该提示信息用于提示用户将PC连接电源适配器,以便于外接电源通过电源适配器为PC充电,进而使得PC满足BIOS升级的条件,以进行BIOS升级。
S204、检测是否连接电源适配器。
PC检测用户是否因为看到了提示信息而使PC连接了电源适配器。
若用户使PC连接了电源适配器,PC可以检测到连接了电源适配器,可以执行S205。
若用户未使PC连接电源适配器,PC可以检测到未连接电源适配器,可以执行S206。
S205、若检测到连接了电源适配器,检测电池电量是否大于30%。
若检测到连接了电源适配器,PC还检测电池电量是否大于30%,若电池电量大于或等于30%,满足BIOS升级,则可以继续进行BIOS升级,即可以执行S208。若电池电量小于或等于30%,不满足BIOS升级,则需要继续检测电池电量是否大于30%。此时,电源适配器在充电,直到检测到电池电量大于30%。
S206、若检测到未连接电源适配器,检测电池电量是否大于0。
若检测到未连接电源适配器,PC一直处于耗电状态,不满足BIOS升级,可以检测电池电量是否大于0,即是否可以支持运行,若电池电量大于0,则PC可以支持运行,但不足以支持升级,则升级失败。
若电池电量等于0,PC无法支持运行,则升级被异常终止。
S207、若电池电量大于0,则升级失败。
升级失败是指BIOS未从旧版本升级至新版本。
S208、若PC的电池电量大于30%,以及PC连接电源适配器,则设置升级标识,并进行BIOS升级。
升级标识(flag)用于指示进行升级。PC检测到存在升级标识,可以进行BIOS升级。
S209、检测电源键的按压时间是否超过预设时长。
预设时长可以为10s,但本申请实施例对此不作限定。
PC在进行BIOS升级的过程中,检测到电源键被按压,判断按压时间是否超过预设时长,若超过预设时长,则可以执行S207,即升级失败。若未超过预设时长,则可以执行S210。
S210、若电源键的按压时间未超过预设时长,判断是否升级成功。
若电源键的按压时间未超过预设时长,PC可以进行BIOS升级,并判断是否升级成功,即判断是否将BIOS升级至新版本的BIOS。
若升级成功,PC可以执行S211,否则,执行S207,即升级失败。
S211、若升级成功,清除升级标识。
不存在升级标识,则PC检测不到存在升级标识,可以不进行BIOS升级。
S212、重启进入操作系统(operating system,OS)。
在上述方法200中可以看出,PC在进行BIOS升级过程中,若检测到用户长按电源键的操作,则中断升级,导致升级失败,降低BIOS升级率。
另外,本申请实施例还发现,PC在进行BIOS升级过程中,若用户将PC的电脑盖合上,PC并不会停止升级,若用户将PC存在入电脑包中,会导致PC因升级而发生过热的现象,PC检测到温度过高,会停止升级,导致升级失败,降低BIOS升级率。
有鉴于此,本申请实施例提供一种基于输入输出系统BIOS的升级方法和终端设备,可以提高BIOS升级率。
本申请实施例提供的方法可以适用于终端设备,例如上述PC,但本申请实施例并不限于此。例如,终端设备还可以是手机、平板电脑、智能手表等可穿戴终端设备,还可以是各种教学辅助工具(例如学习机、早教机)、智能玩具、便携式机器人、个
人数字助理(personal digital assistant,PDA)、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备等。
为了更好的理解本申请实施例,下面对本申请实施例的终端设备的硬件结构进行介绍。示例性地,图3为本申请实施例提供的一种终端设备的结构示意图。
如图3所示,终端设备300可以包括嵌入式控制器(embedded controller,EC)301、充电芯片302、电池303、盖板304、电源键305、只读存储器(read-only memory,ROM)306、中央处理器(central processing unit,CPU)307以及显示屏308。
其中,EC 301分别与充电芯片302、电池303、盖板304、电源键305、ROM 306、CPU 307以及显示屏308,在一种实施例中,EC 301可以替换为其他类型的控制器,如微控制单元(micro controller unit,MCU),或MCU芯片与EC的集成IC模组。
在一种实施例中,EC 301与电池303可以通过系统管理总线(system management bus,SMBUS)连接。在一种实施例中,EC 301一方面通过通用输入输出端口(general purpose input/output port,GPIO)端口与CPU 307连接,另一方面还可以通过平台环境式控制接口(platform environment control interface,PECI)与CPU 307连接。
充电芯片302与EC 301连接,在一种实施例中,充电芯片302与EC 301可以通过系统管理总线(system management bus,SMBUS)连接。在一种实施例中,充电芯片302还可以称为charger芯片或charger IC。充电芯片302,其中还可以包括光电二极管(Photo-Diode,PD)芯片,PD芯片用于EC301获取外接电源的功率,根据充电的策略来调节来自外接电源的充电电压和电流,以实现外接电源为电池303充电,或者为EC 301以及CPU 307供电。在一种实施例中,终端设备300可以通过充电芯片302与电源适配器连接,进而使得终端连接外接电源。
电池303,用于为EC 301和CPU 307供电。
盖板304用于防灰尘,还可以防止键盘被撞击,也可以用于使终端设备处于睡眠、休眠或者关机状态。例如,翻盖手机的盖板,电脑盖板等。
需要说明的是,在PC或者笔记本上,盖板304和显示屏308通常是集成在一起,例如,PC或者笔记本在开机状态下,若盖板扣下,则显示屏熄灭,PC或者笔记本进入休眠状态,若盖板打开,则显示屏点亮,PC或者笔记本退出休眠状态。
电源键305,用于控制电源的开关键,即用于关闭或者开启终端设备。
ROM 306。例如,可以为BIOS ROM。其中,ROM 306可以分别与EC 301、CPU 307连接。
CPU 307可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。CPU 307中还可以设置存储器,用于存储指令和数据。
显示屏308可以分别与EC 301、CPU 307连接。显示屏308可以是液晶显示器(liquid crystal display,LCD),但本申请实施例对此不作限定。显示屏308用于显示图像,视频等。显示屏308可以包括显示面板。
在一种实施例中,终端设备300中还可以包括第一传感器和第二传感器。第一传感器可以与EC 302连接,第二传感器可以与CPU 307连接。其中,第一传感器可以包括但不限于:温度传感器。第二传感器包括但不限于:压力传感器,陀螺仪传感器,
加速度传感器等,本申请实施例对第二传感器不做赘述。
在一种实施例中,终端设备300中还可以包括第一存储器和第二存储器。第一存储器与EC 301连接,第二存储器与CPU 307连接。
在一种实施例中,第一存储器可以包括:闪存存储器flash。在一种实施例中,第一存储器可以独立于EC 301设置,且与EC 301连接,在一种实施例中,第一存储器设置在EC 301中,本申请实施例对第一存储器的设置方式不作限制。
第一存储器用于存储一个或多个计算机程序,以使得EC可以基于一个或多个计算机程序,实现本申请实施例中EC的操作。
第二存储器可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。第二存储器可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备使用过程中所创建的数据等。此外,第二存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。在一种实施例中,第二存储器可以为固态硬盘(Solid State Disk,SSD)。其中,SSD可以用于存储新版本的BIOS。应理解,图3中未示出SSD。
本申请实施例中可以以存储器表征第一存储器和第二存储器,图3中未示出存储器。
图4为本申请实施例适用的终端设备的一种软件结构框图。终端设备的软件系统可以采用分层架构,本申请实施例以终端设备(如PC)的PC系统架构为例说明终端设备的软件结构。分层架构可以将终端设备的软件系统分成若干个层,每一层都有清晰的角色和分工,层与层之间通过软件接口通信。
在一种实施例中,可以将PC系统分为四层,分别为应用程序层(applications)、系统层、驱动层以及硬件层。本申请实施例对终端设备的软件结构的分层不做限制。如下实施例中各分层中包括的模块为本申请实施例中涉及到的模块,如下各分层中包括的模块并不构成对终端设备的结构的限定,例如升级状态记录模块可以部署于应用层的PC管家APP中,也可以部署于系统层的Windows服务中,以下按升级状态记录模块部署于系统层进行介绍。在一种实施例中,图4中所示的模块可以单独部署,或者几个模块可以部署在一起,图4中对模块的划分为一种示例。在一种实施例中,图4中所示的模块的名称为示例说明。
其中,应用程序层可以包括应用程序包。示例性的,应用程序层内可以包括:相机,图库,日历,通话,地图,导航,蓝牙,音乐,视频,短信息等应用程序包。
参照图4,图4中以应用程序层包括PC管家应用(application,APP)为例进行说明。其中,PC管家APP,用于从空中下载技术(over the air technology,OTA)服务器中下载新版本的BIOS,并将新版本的BIOS传输至系统层的OTA升级服务模块。在一种实施例中,新版本的BIOS可以为镜像文件或可执行文件,本申请实施例对新版本的BIOS的文件形式不做限制。PC管家APP还可以接收来自系统层的升级状态记录模块的电源键的长按事件和升级过程中的升级状态。
在一种实施例中,参照图4,系统层可以包括:升级状态记录模块和OTA升级服
务模块。其中,升级状态记录模块,用于向PC管家APP传输电源键的长按事件和升级过程中的升级状态。另外,升级状态记录模块,还用于与驱动层的Windows管理接口(windows management interface,WMI)模块进行数据交互。OTA升级服务模块,用于传输来自PC管家APP的新版本的BIOS(镜像文件),并对其进行验证,将验证成功的BIOS进行保存,以便用于后续升级。
驱动层中至少包括硬件的驱动,用于驱动硬件工作。如驱动层中包括:传感器驱动、显示驱动(display driver)、图形处理器驱动(graphics processing unit driver,GPU driver)等,本申请实施例对此不做限制。示例性的,显示驱动用于驱动硬件层的显示屏工作,以显示终端的界面。应理解,图4中未示出各硬件的驱动模块。
在一种实施例中,驱动层中还可以包括:Windows管理接口(windows management interface,WMI)模块和升级模块。其中,WMI模块,用于实现EC和升级状态记录模块的数据交互。升级模块,用于将新版本的BIOS写入BIOS ROM,以实现BIOS的升级。
硬件层包括硬件设备,如EC、显示屏、中央处理器(central processing unit,CPU)、电池、充点芯片、盖板、电源键以及BIOS ROM等,如图3所示终端的硬件结构所示,在此不做赘述。应理解,图4中的硬件层中示出了本申请实施例中涉及到的EC、电池、充电芯片充点芯片、盖板、电源键以及BIOS ROM。
其中,EC可以包括获取单元和控制单元。获取单元可以用于对电池进行检测,以获取电池电量,还可以用于对充点芯片进行检测,以确定是否接入电源适配器,也可以用于对盖板进行检测,以获取盖板的开合状态,还可以对电源键进行检测,以检测电源键时否被按压(或者按下)。
控制单元可以用于记录电源键的长按事件,还可以用于记录升级过程中的升级状态,也可以用于暂停或者恢复升级过程中的升级状态,还可以用于通知用户电源键被按压。
可以理解的是,图3、图4所示的结构并不构成对终端的具体限定。在本申请另一些实施例中,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件,或软件和硬件的组合实现。
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
此外,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字
符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b和c中的至少一项(个),可以表示:a,或b,或c,或a和b,或a和c,或b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。
图5示出了一种基于输入输出系统BIOS的升级方法500的示意性流程图。该方法500可以由终端设备执行,例如,上述PC。终端设备的硬件结构图可以如上述图3所示,终端设备的软件结构框图可以如图4所示,但本申请实施例对此不作限定。
如图5所示,该方法500可以包括以下步骤:
S501、当确定BIOS需要升级时,重启。
该步骤的具体实现方式可以参考上述S201,此处不再赘述。
S502、判断盖板的状态是否为打开状态。
终端设备判断盖板(lid)的状态是否为打开状态,例如,PC判断PC盖板是否为打开状态。
若盖板的状态为打开状态,则执行S503。若盖板的状态为关闭状态,则可以执行S507,即暂停升级。
在进行BIOS升级前,判断盖板的状态,当盖板的状态为关闭状态时,暂停升级,可以避免因升级而发生过热的现象,可以降低升级失败的概率。
S503、若盖板的状态为打开状态,则判断电源键是否为按压状态。
若盖板的状态为打开状态,终端设备判断电源(power)键是否被用户按压,即判断电源键是否为按压状态。若电源键为按压状态,则终端设备执行S504。若电源键未处于按压状态,则终端设备执行S508。
S504、若电源键为按压状态,提示用户电源键被按压。
终端设备检测用户按压电源键的操作时,可以在界面上显示提示信息,提示用户电源键被按压。
提示信息的消失可以存在多种可能的实现方式。
一种可能的实现方式中,提示信息可以在终端设备检测到电源键处于未处于按压状态时消失。
另一种可能的实现方式中,终端设备在显示提示信息时,可以显示关闭选项,当终端设备检测到用户点击关闭选项的操作时,使提示信息消失。
S505、检测电源键的按压时间是否超过预设时长。
该步骤的具体实现方式可以参考上传S209,此处不再赘述。
若电源键的按压时间超过预设时长,终端设备可以执行S506。若电源键的按压时间未超过预设时长,终端设备可以执行S509。
S506、若电源键的按压时间超过预设时长,对长按事件进行记录。
终端设备记录电源键长按事件。例如,终端设备可以记录长按事件的时间。
S507、暂停升级。
暂停升级,即暂时停止升级。若电源键的按压时间超过预设时长,终端设备可以关机,当终端设备检测到用户开机操作时,终端设备重启,继续执行上述S502。
若用户长按电源键,则可以说明用户不想要进行升级,终端设备可以暂停升级,
防止因为升级失败导致终端设备异常。
这种实现方式,在BIOS升级之前,先判断盖板状态和电源键状态是否满足条件,在不满足条件的情况下,暂停升级,可以避免在升级过程中导致失败的现象,有利于提高BIOS升级率。
可选地,终端设备可以周期性地提示用户是否进行BIOS升级,或者,终端设备检测到用户开机的操作,在重新启动的过程中,进行BIOS升级。
S508、若电源键未处于按压状态,检测是否连接电源适配器,且检测电池电量是否大于30%。
若电源键未处于按压状态,终端设备检测是否满足BIOS升级条件。具体实现方式可以参考上述S202,此处不再赘述。
若终端设备连接了电源适配器,且检测电池电量大于30%,终端设备可以执行S509。若终端设备未连接了电源适配器和/或检测电池电量小于或等于30%,终端设备可以执行上述S203~S207。
S509、若连接了电源适配器,且检测电池电量大于30%,设置升级标识,并进行BIOS升级。
该步骤的具体实现方式可以参考上述S208,此处不再赘述。
S510、判断电源键是否为按压状态。
该步骤的具体实现方式可以参考上述S503,此处不再赘述。
若电源键为按压状态,终端设备可以执行S510。若电源键未处于按压状态,终端设备可以执行S516。
S511、若电源键为按压状态,提示用户电源键被按压,并暂停BIOS升级。
电源键被按压,可能是因为用户误触,终端设备可以先暂停BIOS升级,降低升级失败的风险。
S512、检测电源键的按压时间是否超过预设时长。
该步骤的具体实现方式可以参考上述S505,此处不再赘述。
若电源键的按压时间超过预设时长,终端设备可以执行S513。若电源键的按压时间未超过预设时长,终端设备可以执行S515。
S513、若电源键的按压时间超过预设时长,对长按事件进行记录。
该步骤的具体实现方式可以参考上述S506,此处不再赘述。
S514、升级失败。
若电源键的按压时间超过预设时长,可以说明用户想要关机,则升级失败。
这种实现方式,在BIOS升级过程中,若检测到电源键被按压,则停止进行BIOS升级,若电源键的按压时间超过预设时长,升级失败,此时,BIOS升级处于暂停状态,终端设备关机对终端设备的影响较小,当终端设备检测到用户开机的操作后,终端设备可以正常进行升级,可以避免在升级过程中导致失败的现象,有利于提高BIOS升级率。
可选地,终端设备可以周期性地提示用户是否进行BIOS升级,或者,终端设备检测到用户开机的操作,在重新启动的过程中,进行BIOS升级。
S515、若电源键的按压时间未超过预设时长,继续进行BIOS升级。
S516、判断是否升级成功。
该步骤的具体实现方式可以参考上述S210,此处不再赘述。
S517、若升级成功,清除升级标识。
该步骤的具体实现方式可以参考上述S211,此处不再赘述。
S518、重启进入操作系统。
S519、统计升级过程中的长按事件,并记录升级过程中的升级状态。
终端设备可以统计升级过程中的长按事件的次数,时间等信息,但本申请实施例并不限于此。
升级状态可以为升级成功,也可以为升级失败,本申请实施例对此不作限定。
终端设备可以在升级成功之后,统计升级过程中的产生的长按事件,并记录升级过程中升级状态。例如,终端设备在升级成功之前,经历了3次长按事件,2次升级失败。
可选地,终端设备还可以记录升级成功或者升级失败的原因,以便于后续对其进行总结,提出更加合理的升级方式,以提高BIOS升级成功率。
本申请实施例提供的基于BIOS的升级方法,在BIOS升级之前,先判断盖板状态和电源键状态是否满足条件,在满足条件的情况下,进行升级,在不满足条件的情况下,暂停升级,可以在最优的条件下进行升级,有利于提高BIOS升级率。另外,该方法在BIOS升级过程中,若检测到电源键被按压,则停止进行BIOS升级,若电源键的按压时间超过预设时长,虽升级失败,但BIOS升级处于暂停状态,升级失败的影响较小,若检测到用户的开机操作,还可以正常进行升级,有利于对终端设备进行保护。此外,该方法还可以在升级之后,统计升级过程中的长按事件和升级状态,有利于进行分析总结,便于后续改进升级方法。
图6示出了一种基于BIOS的升级方法600的示意性流程图。该方法600可以由终端设备执行,例如,上述PC。终端设备的硬件结构图可以如上述图3所示,终端设备的软件结构框图可以如图4所示,但本申请实施例对此不作限定。
如图6所示,该方法600可以包括以下步骤:
终端设备可以执行上述S201至S205,若电池电量大于30%,则终端设备可以执行上述S208或者执行S509,本申请实施例对此不作限定。
可选地,终端设备在执行S201之后,在执行S202之前,终端设备可以执行上述方法500中的S502~S507。
若在S204中,终端设备检测到未连接电源适配器,可以执行S601。
S601、检测电池电量是否大于5%。
若电池电量大于5%,终端设备可以执行S602。若电池电量小于或等于5%,终端设备可以执行S606。
需要说明的是,5%仅仅为一个示例,本申请实施例并不限于此。5%可以替换为小于30%,且大于0%的任意值。
S602、判断电源键是否为按压状态。
若电源键为按压状态,则终端设备可以执行S603。若电源键未处于按压状态,则终端设备可以执行S601,即继续检测电池电量是否大于5%。
S603、若电源键为按压状态,提示用户电源键被按压。
该步骤的具体实现方式可以参考上传S504,此处不再赘述。
S604、检测电源键的按压时间是否超过预设时长。
该步骤的具体实现方式可以参考上传S505,此处不再赘述。
若电源键的按压时间超过预设时长,终端设备可以执行S605。若电源键的按压时间未超过预设时长,终端设备可以执行S601,即继续检测电池电量是否大于5%。
S605、若电源键的按压时间超过预设时长,对长按事件进行记录。
该步骤的具体实现方式可以参考上传S506,此处不再赘述。
S606、暂停升级。
若用户长按电源键,则可以说明用户不想要进行升级,终端设备可以暂停升级,防止因为升级失败导致终端设备异常。
本申请实施例提供的基于BIOS的升级方法,当检测到未连接电源适配器,并且电池电量小于或等于5%时,可以自动暂停BIOS升级,可以避免因电池电量不足导致升级失败,降低升级失败率。另外,若电池电量大于5%,但检测到电源键的按压时间超过预设时长,则记录长按事件,自动暂停BIOS升级,可以避免因电源键长按导致升级失败,降低升级失败率。
上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
上文中结合图1至图6,详细描述了本申请实施例提供的方法,下面将结合图7和图8,详细描述本申请实施例提供的设备。
图7示出了本申请实施例提供的一种终端设备700的示意性框图,该设备700包括:处理模块710和获取模块720。其中,处理模块710用于:从服务器下载终端设备的目标版本BIOS;重启终端设备;获取模块720用于:在终端设备的开机过程中,获取终端设备的电源键的状态;处理模块710还用于:若电源键处于按压状态且按压时间超过预设时长,则暂停升级;若电源键未处于按压状态或者电源键的按压时间未超过预设时长,则根据目标版本BIOS对终端设备进行升级。
可选地,处理模块710还用于:若电源键未处于按压状态,检测终端设备是否连接电源适配器;若终端设备连接电源适配器,且终端设备中的电池电量满足第一条件,则根据目标版本BIOS对终端设备进行升级。
可选地,终端设备还包括显示模块;显示模块还用于:若电源键处于按压状态,显示提示信息,提示信息用于提示用户电源键处于按压状态。
可选地,终端设备包括盖板;获取模块720还用于:在终端设备的开机过程中,获取盖板的状态;处理模块710还用于:若盖板处于关闭状态,暂停升级;获取模块720还用于:若盖板处于打开状态,获取电源键的状态。
可选地,获取模块720还用于:若电源键的按压时间未超过预设时长,终端设备连接电源适配器,且终端设备中的电池电量满足第一条件,则获取电源键的状态;处理模块710还用于:若电源键处于按压状态,暂停升级;若电源键处于按压状态且按压时间未超过预设时长,根据目标版本BIOS对终端设备进行升级。
可选地,第一条件为电池电量大于预设电量。
可选地,处理模块710还用于:若终端设备未连接电源适配器,且终端设备中的电池电量不满足第二条件,则暂停升级,第一条件和第二条件不同。
可选地,获取模块720还用于:若终端设备未连接所述电源适配器,且终端设备中的电池电量满足第二条件,则获取电源键的状态;处理模块710还用于:若电源键未处于按压状态或者电源键的按压时间未超过预设时长,继续检测终端设备中的电池电量是否满足第二条件;或者,若电源键的按压时间超过预设时长,暂停升级。
可选地,处理模块710还用于:若电源键处于按压状态且按压时间超过预设时长,记录长按事件和升级状态。
可选地,处理模块710还用于:统计长按事件和升级状态以分析升级失败的原因。
应理解,这里的终端设备700以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选的例子中,本领域技术人员可以理解,终端设备700可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在终端设备700中,终端设备700可以用于执行上述方法实施例中与终端设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。
上述终端设备700具有实现上述方法实施例中终端设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。
在本申请的实施例中,图7中的终端设备700也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。
图8是本申请实施例提供的另一种终端设备800的示意性框图。该终端设备800包括处理器810、通信接口820和存储器830。其中,处理器810、通信接口820和存储器830通过内部连接通路互相通信,该存储器830用于存储指令,该处理器820用于执行该存储器830存储的指令,以控制该通信接口820发送信号和/或接收信号。
应理解,终端设备800可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在终端设备800中,终端设备800可以用于执行上述方法实施例中与终端设备对应的各个步骤和/或流程。可选地,该存储器830可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器810可以用于执行存储器中存储的指令,并且该处理器执行该指令时,该处理器可以执行上述方法实施例中与终端设备对应的各个步骤和/或流程。
应理解,在本申请实施例中,该处理器810可以是中央处理单元(central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者
软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质用于存储计算机程序,该计算机程序用于实现上述方法实施例中终端设备对应的方法。
本申请还提供了一种芯片系统,该芯片系统用于支持上述方法实施例中终端设备实现本申请实施例所示的功能。
本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序(也可以称为代码,或指令),当该计算机程序在计算机上运行时,该计算机可以执行上述方法实施例所示的终端设备对应的方法。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。
Claims (22)
- 一种基于输入输出系统的升级方法,其特征在于,包括:从服务器下载终端设备的目标版本BIOS;重启所述终端设备;在所述终端设备的开机过程中,获取所述终端设备的电源键的状态;若所述电源键处于按压状态且按压时间超过预设时长,则暂停升级;若所述电源键未处于按压状态或者所述电源键的按压时间未超过所述预设时长,则根据所述目标版本BIOS对所述终端设备进行升级。
- 根据权利要求1所述的方法,其特征在于,所述若所述电源键未处于按压状态或者所述电源键的按压时间未超过所述预设时长,则根据所述目标版本BIOS对所述终端设备进行升级,包括:若所述电源键未处于按压状态,检测所述终端设备是否连接电源适配器;若所述终端设备连接所述电源适配器,且所述终端设备中的电池电量满足第一条件,则根据所述目标版本BIOS对所述终端设备进行升级。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:若所述电源键处于按压状态,显示提示信息,所述提示信息用于提示用户所述电源键处于按压状态。
- 根据权利要求1至3中任一项所述的方法,其特征在于,所述终端设备包括盖板;在所述终端设备的开机过程中,获取所述终端设备的电源键的状态,包括:在所述终端设备的开机过程中,获取所述盖板的状态;若所述盖板处于关闭状态,暂停升级;若所述盖板处于打开状态,获取所述电源键的状态。
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述若所述电源键未处于按压状态或者所述电源键的按压时间未超过所述预设时长,则根据所述目标版本BIOS对所述终端设备进行升级,包括:若所述电源键的按压时间未超过所述预设时长,所述终端设备连接电源适配器,且所述终端设备中的电池电量满足第一条件,则获取所述电源键的状态;若所述电源键处于按压状态,暂停升级;若所述电源键处于按压状态且按压时间未超过所述预设时长,根据所述目标版本BIOS对所述终端设备进行升级。
- 根据权利要求2至5中任一项所述的方法,其特征在于,所述第一条件为所述电池电量大于预设电量。
- 根据权利要求2至6所述的方法,其特征在于,所述方法还包括:若所述终端设备未连接所述电源适配器,且所述终端设备中的电池电量不满足第二条件,则暂停升级,所述第一条件和所述第二条件不同。
- 根据权利要求7所述的方法,其特征在于,所述方法还包括:若所述终端设备未连接所述电源适配器,且所述终端设备中的电池电量满足所述 第二条件,则获取电源键的状态;若所述电源键未处于按压状态或者所述电源键的按压时间未超过所述预设时长,继续检测所述终端设备中的电池电量是否满足所述第二条件;或者,若所述电源键处于按压状态且按压时间超过所述预设时长,暂停升级。
- 根据权利要求1至8中任一项所述的方法,其特征在于,所述方法还包括:若所述电源键处于按压状态且按压时间超过所述预设时长,记录长按事件和升级状态。
- 根据权利要求9所述的方法,其特征在于,在所述若所述电源键未处于按压状态或者所述电源键的按压时间未超过所述预设时长,则根据所述目标版本BIOS对所述终端设备进行升级之后,所述方法还包括:统计所述长按事件和所述升级状态以分析升级失败的原因。
- 一种终端设备,其特征在于,包括:处理模块,用于从服务器下载终端设备的目标版本BIOS;重启所述终端设备;获取模块,用于在所述终端设备的开机过程中,获取所述终端设备的电源键的状态;所述处理模块还用于:若所述电源键处于按压状态且按压时间超过预设时长,则暂停升级;若所述电源键未处于按压状态或者所述电源键的按压时间未超过所述预设时长,则根据所述目标版本BIOS对所述终端设备进行升级。
- 根据权利要求11所述的终端设备,其特征在于,所述处理模块还用于:若所述电源键未处于按压状态,检测所述终端设备是否连接电源适配器;若所述终端设备连接所述电源适配器,且所述终端设备中的电池电量满足第一条件,则根据所述目标版本BIOS对所述终端设备进行升级。
- 根据权利要求11或12所述的终端设备,其特征在于,所述终端设备还包括显示模块;所述显示模块还用于:若所述电源键处于按压状态,显示提示信息,所述提示信息用于提示用户所述电源键处于按压状态。
- 根据权利要求11至13中任一项所述的终端设备,其特征在于,所述终端设备包括盖板;所述获取模块还用于:在所述终端设备的开机过程中,获取所述盖板的状态;所述处理模块还用于:若所述盖板处于关闭状态,暂停升级;所述获取模块还用于:若所述盖板处于打开状态,获取所述电源键的状态。
- 根据权利要求11至14中任一项所述的终端设备,其特征在于,所述获取模块还用于:若所述电源键的按压时间未超过所述预设时长,所述终端设备连接电源适配器,且所述终端设备中的电池电量满足第一条件,则获取所述电源键的状态;所述处理模块还用于:若所述电源键处于按压状态,暂停升级;若所述电源键处于按压状态且按压时间未超过所述预设时长,根据所述目标版本BIOS对所述终端设备进行升级。
- 根据权利要求12至15中任一项所述的终端设备,其特征在于,所述第一条件为所述电池电量大于预设电量。
- 根据权利要求12至16所述的终端设备,其特征在于,所述处理模块还用于:若所述终端设备未连接所述电源适配器,且所述终端设备中的电池电量不满足第二条件,则暂停升级,所述第一条件和所述第二条件不同。
- 根据权利要求17所述的终端设备,其特征在于,所述处理模块还用于:若所述终端设备未连接所述电源适配器,且终端设备中的电池电量满足所述第二条件,则获取电源键的状态;若所述电源键未处于按压状态或者所述电源键的按压时间未超过所述预设时长,继续检测所述终端设备中的电池电量是否满足所述第二条件;或者,若所述电源键处于按压状态且按压时间超过所述预设时长,暂停升级。
- 根据权利要求11至18中任一项所述的终端设备,其特征在于,所述处理模块还用于:若所述电源键处于按压状态且按压时间超过所述预设时长,记录长按事件和升级状态。
- 根据权利要求19所述的终端设备,其特征在于,所述处理模块还用于:统计所述长按事件和所述升级状态以分析升级失败的原因。
- 一种终端设备,其特征在于,包括:处理器和存储器;所述存储器存储计算机指令;所述处理器执行所述存储器存储的计算机指令,使得所述处理器执行如权利要求1-10中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当所述计算机程序或指令被运行时,实现如权利要求1-10中任一项所述的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP23802565.4A EP4394585A1 (en) | 2022-05-13 | 2023-04-10 | Upgrade method based on basic input output system (bios) and terminal device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210521958.XA CN117093238A (zh) | 2022-05-13 | 2022-05-13 | 基于输入输出系统bios的升级方法和终端设备 |
CN202210521958.X | 2022-05-13 |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2023216790A1 WO2023216790A1 (zh) | 2023-11-16 |
WO2023216790A9 true WO2023216790A9 (zh) | 2024-05-10 |
Family
ID=88729600
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/087368 WO2023216790A1 (zh) | 2022-05-13 | 2023-04-10 | 基于输入输出系统bios的升级方法和终端设备 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4394585A1 (zh) |
CN (1) | CN117093238A (zh) |
WO (1) | WO2023216790A1 (zh) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7600105B2 (en) * | 2004-09-22 | 2009-10-06 | Cyberlink Corp. | Systems, methods, and apparatus for providing efficient startup to computers with peripheral devices |
US7472291B2 (en) * | 2005-04-15 | 2008-12-30 | Shuttle Inc. | Method and apparatus for integrating ACPI functionality and power button functionality into a single power key |
TWI571800B (zh) * | 2011-04-19 | 2017-02-21 | 仁寶電腦工業股份有限公司 | 電腦開機之方法與電腦系統 |
CN110750287B (zh) * | 2019-10-21 | 2023-10-13 | 上海庆科信息技术有限公司 | 智能机器人的固件升级方法、装置及智能机器人 |
TWI749728B (zh) * | 2020-08-24 | 2021-12-11 | 和碩聯合科技股份有限公司 | 可攜式電子裝置 |
-
2022
- 2022-05-13 CN CN202210521958.XA patent/CN117093238A/zh active Pending
-
2023
- 2023-04-10 WO PCT/CN2023/087368 patent/WO2023216790A1/zh active Application Filing
- 2023-04-10 EP EP23802565.4A patent/EP4394585A1/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN117093238A (zh) | 2023-11-21 |
EP4394585A1 (en) | 2024-07-03 |
WO2023216790A1 (zh) | 2023-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8001406B2 (en) | Method and apparatus for managing power of portable information device | |
US10007507B2 (en) | Method for updating firmware of a battery included in a rechargeable battery module, portable electronic device, and rechargeable battery module | |
US9195428B2 (en) | Method and system for displaying data from auxiliary display subsystem of a notebook on a main display of the notebook | |
US8887091B2 (en) | Information processing apparatus, method, processor, and recording medium for determining whether information stored in a memory is incorrectly updated | |
US20160116967A1 (en) | Firmware Update Method and Power System Thereof | |
US8538720B2 (en) | Cold boot test system and method for electronic devices | |
KR20180103602A (ko) | 전자 장치의 배터리 관리 방법 및 그 장치 | |
CN113703799B (zh) | 计算设备及其bios更新方法和介质 | |
CN104252203B (zh) | 电子装置、用于控制电子装置的方法及程序 | |
US8954800B1 (en) | Recovery button for automatically entering recovery mode | |
EP3889735A1 (en) | Information processing apparatus and control method | |
US20130086372A1 (en) | Information processing apparatus and boot control method | |
CN103620521A (zh) | 用于控制系统功耗的技术 | |
CN103902329A (zh) | 可更新基本输入输出系统的电子装置及其更新方法 | |
US20190006860A1 (en) | Battery Protection Mode | |
CN103218236B (zh) | 通过显示器的触控模块更新显示器固件的方法 | |
US20140292776A1 (en) | Electronic apparatus and control method | |
US20140143528A1 (en) | Information Processing Apparatus and Control Method | |
US20060112196A1 (en) | Device and method for a wireless mouse to detect the battery status of a host computer | |
US8769252B2 (en) | Computer system and method for resetting the same | |
JP3285807B2 (ja) | 電源及びハードウェア障害の切り分け装置及びその方法 | |
WO2023216790A9 (zh) | 基于输入输出系统bios的升级方法和终端设备 | |
CN111176958A (zh) | 信息监测方法、系统和存储介质 | |
WO2020113469A1 (zh) | 开机检测方法、开机检测装置及移动终端 | |
US20230030973A1 (en) | Change of firmware settings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23802565 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2023802565 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2023802565 Country of ref document: EP Effective date: 20240325 |