WO2018171301A1 - 一种显示充电信息的方法及终端 - Google Patents

一种显示充电信息的方法及终端 Download PDF

Info

Publication number
WO2018171301A1
WO2018171301A1 PCT/CN2018/072264 CN2018072264W WO2018171301A1 WO 2018171301 A1 WO2018171301 A1 WO 2018171301A1 CN 2018072264 W CN2018072264 W CN 2018072264W WO 2018171301 A1 WO2018171301 A1 WO 2018171301A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
battery
charging information
terminal battery
current
Prior art date
Application number
PCT/CN2018/072264
Other languages
English (en)
French (fr)
Inventor
程飞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP18770769.0A priority Critical patent/EP3605337A4/en
Publication of WO2018171301A1 publication Critical patent/WO2018171301A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This document relates to, but is not limited to, the field of terminal technologies, and in particular, to a method and a terminal for displaying charging information.
  • Terminals such as smartphones and tablets have become indispensable mobile devices in people's daily work and life. These devices are all powered by batteries.
  • the terminal battery power will decrease as the terminal continues to work, and the terminal will automatically shut down when the terminal battery power reaches the shutdown threshold.
  • the shutdown charging mode will be activated.
  • the startup of the shutdown charging mode refers to the process from the connection of the charging power supply to the initial display of the shutdown user interface (UI, User Interface).
  • the main function of the shutdown charging UI is to indicate the current charging information of the terminal battery.
  • the embodiment of the present invention is to provide a method and a terminal for displaying charging information, which can shorten the time from the connection of the charging power source to the current charging information of the display terminal battery by controlling the startup process of the terminal to turn off the charging mode.
  • an embodiment of the present invention provides a method for displaying charging information, the method comprising:
  • the obtaining the current charging information of the terminal battery includes:
  • the initializing the bottom layer resource of the terminal includes:
  • the clock clock of the terminal, the random access memory RAM, and the chip power management PMIC are initialized.
  • the initializing the power management of the terminal battery includes:
  • the charging chip and the fuel gauge chip of the terminal battery are initialized.
  • the current charging information of the terminal battery includes a current charging state and a current power of the terminal battery
  • the obtaining the current charging information of the terminal battery from the power management of the terminal battery includes:
  • the displaying, by the preset display policy, the current charging information of the terminal battery including:
  • the embodiment of the present invention provides a terminal, where the terminal includes: a charging information acquiring module and a charging information display module;
  • the charging information acquiring module is configured to acquire current charging information of the terminal battery
  • the charging information display module is configured to display current charging information of the terminal battery according to a preset display policy, where the preset display policy is used to display the operating system before initializing the operating system of the terminal Current charging information for the terminal battery.
  • the charging information acquiring module includes: an underlying resource initializing submodule, a battery power management initializing submodule, and a charging information acquiring submodule;
  • the underlying resource initialization submodule is configured to initialize an underlying resource of the terminal
  • the battery power management initialization submodule is configured to initialize power management of the terminal battery after initializing the bottom resource of the terminal;
  • the charging information acquisition submodule is configured to acquire current charging information of the terminal battery from power management of the terminal battery after initializing power management of the terminal battery.
  • the underlying resource initialization submodule is set to:
  • the clock clock of the terminal, the random access memory RAM, and the chip power management PMIC are initialized.
  • the battery power management initialization sub-module is set to:
  • the charging chip and the fuel gauge chip of the terminal battery are initialized.
  • the current charging information of the terminal battery includes a current charging state and a current power of the terminal battery
  • the charging information acquisition submodule is set to:
  • the charging information display module is configured to:
  • An embodiment of the present invention provides a method and a terminal for displaying charging information, which can display current charging information of a terminal battery according to a preset display policy before initializing an operating system of the terminal, thereby causing the terminal to be in a shutdown state. It is not necessary to wait until the current charging information of the terminal battery is displayed after the call to the built-in shutdown charging UI, which greatly shortens the time from the connection of the charging power source to the current charging information of the display terminal battery.
  • FIG. 1 is a schematic flowchart of a startup process of a shutdown charging mode according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a high-pass initialization according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of initializing an original equipment manufacturer according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a method for displaying charging information according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of remaining initialization according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of an implementation process of a method for displaying charging information according to an embodiment of the present disclosure
  • FIG. 7 is a screen diagram of displaying current charging information of a terminal battery according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another implementation process of a method for displaying charging information according to an embodiment of the present disclosure.
  • FIG. 9 is a screen diagram of another display charging information of a terminal battery according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of an apparatus for displaying charging information according to an embodiment of the present invention.
  • the startup process of the shutdown charging mode mainly includes: bootloader (BootLoader) power-on initialization, boot operating system initialization, and display shutdown charging UI.
  • bootloader BootLoader
  • the current charging state of the terminal in the shutdown state needs to be displayed by the shutdown charging UI, so that the user can understand the current charging information of the terminal through the shutdown charging UI displayed by the terminal.
  • the loading of the shutdown charging UI that is, the startup of the shutdown charging mode, requires three stages of booting the power-on initialization, booting the operating system initialization, and displaying the shutdown charging UI. Before the startup of the shutdown charging mode is completed, the user cannot perceive the terminal. Current charging information.
  • a smart phone in general, it takes 5 to 10 seconds for the smartphone in the off state to complete the shutdown charging mode, that is, the user can know the current charging of the mobile phone battery by inserting the charger into the mobile phone. Information, you need to wait 5 to 10 seconds.
  • the boot loader In the startup process of the shutdown charging mode of the terminal, the boot loader is powered on and initialized to the system primary boot program, and the boot program needs to be loaded, which is mainly used to initialize the underlying hardware of the terminal and related peripheral resources, such as a clock (Clock), and random storage. Take memory (RAM, Random Access Memory), chip power management (PMIC, Power Management Integrated Circuit), screen, buttons, battery power management, indicator chip, and so on.
  • the bootloader power-on initialization process can be functionally divided into high-pass initialization and original equipment manufacturer (OEM, Original Equipment Manufacturer) initialization.
  • the Qualcomm initialization process can be seen in Figure 2.
  • the Qualcomm initialization process mainly includes: underlying resource initialization such as clock, RAM, PMIC, multi-core image loading, version security check, and Qualcomm platform initialization.
  • the OEM initialization process can be seen in Figure 3.
  • the OEM initialization process mainly includes: screen initialization, battery power management initialization, button and indicator chip initialization.
  • Booting the operating system initialization is mainly responsible for loading the operating system of the terminal, such as the Andriod system, Linux system and iOS system, mainly including the loading of the kernel driver (ie kernel initialization) and the startup of the upper layer process (ie user space initialization).
  • the display shutdown charging UI is the final stage of the shutdown charging mode startup process, that is, the terminal finally informs the user of the current charging information of the terminal battery by displaying the shutdown charging UI.
  • the bootloader power-on initialization process takes 4 seconds, and the process of booting the operating system initialization takes 6 seconds. Therefore, it takes 10 seconds to complete the terminal shutdown charging mode, that is, after the user connects the terminal to the charging power source. It takes 10 seconds to know the current charging information of the terminal battery.
  • the figure shows a method for displaying charging information provided by an embodiment of the present invention.
  • the method may include:
  • S420 Display current charging information of the terminal battery according to a preset display policy, where the preset display policy is used to display current charging information of the terminal battery before initializing an operating system of the terminal.
  • the operating system of the terminal includes: an Andriod system, a Linux system, and an iOS system.
  • the acquiring the current charging information of the terminal battery may include:
  • the initializing the bottom layer resource of the terminal may include: initializing a clock Clock, a random access memory RAM, and a chip power management PMIC of the terminal.
  • the initializing the power management of the terminal battery may include: initializing a charging chip and a fuel gauge chip of the terminal battery.
  • the current charging information of the terminal battery may include: a current charging state of the terminal battery and a current power amount.
  • the obtaining the current charging information of the terminal battery from the power management of the terminal battery may include: acquiring the current charging state of the terminal battery from the charging chip of the terminal battery, in step S4103, And obtaining the current power of the terminal battery from the fuel gauge chip of the terminal battery.
  • the displaying the current charging information of the terminal battery according to the preset display policy may include:
  • S4202 After initializing the terminal screen, displaying current charging information of the terminal battery through the terminal screen, and periodically refreshing charging information of the terminal battery displayed on the terminal screen.
  • the current charging information of the terminal battery is displayed through the terminal screen, that is, the display of the current charging information of the terminal battery is realized before the initialization of the operating system of the terminal.
  • the charging information of the terminal battery being displayed on the terminal screen may be periodically refreshed, so that the screen displayed on the terminal screen can reflect the current charging information of the terminal battery in real time.
  • the complete shutdown charging mode startup process includes: bootloader power-on initialization, booting the operating system initialization, and displaying the shutdown charging UI. Therefore, in a specific implementation, after the terminal screen is initialized, as shown in FIG. 5, the following steps are sequentially included:
  • the terminal can detect whether a button event has occurred.
  • the duration of the button event is acquired; and when the duration of the button event reaches a preset time threshold, the terminal is turned on.
  • the initializing the operating system of the terminal may include the following steps:
  • S5502 After initializing the kernel of the terminal, enabling a preset timer in a kernel of the terminal;
  • the timer can be used to periodically acquire current charging information of the terminal battery from the power management of the terminal battery, and can further utilize the The current charging information of the terminal battery refreshes the shutdown charging UI built in the terminal.
  • the terminal can jump from the current charging information of the terminal battery according to the preset display policy to the shutdown charging UI built in the terminal, that is, the terminal battery is displayed in real time through the charging UI built in the terminal. Current charging information.
  • the embodiment of the invention provides a method for displaying charging information, in which the initialization sequence in the startup process of the shutdown charging mode is adjusted, that is, in advance
  • the power management of the terminal battery and the terminal screen are initialized.
  • the current charging information of the terminal battery is obtained, and the current charging information of the terminal battery is displayed through the terminal screen.
  • the figure shows a complete implementation process of displaying charging information.
  • the implementation process includes the following implementation steps:
  • the user can know the current state of charge of the terminal battery and the current power of the terminal battery through the terminal screen, without waiting for the terminal to perform the following steps S606 to S613, and then the built-in shutdown charging UI can be used. See the current state of charge of the terminal battery and the current battery level of the terminal battery.
  • the current state of charge and current power of the terminal battery are periodically obtained from the charging chip and the fuel gauge chip of the terminal battery by using the timer, and refreshed by using the current state of charge and the current power of the terminal battery.
  • the terminal screen can always display the step acquired in step S603 while performing step S606 to step S609.
  • the state of charge of the terminal battery and the battery level for example, the terminal screen can always maintain the screen as shown in FIG.
  • the state of charge and the amount of power of the terminal battery displayed on the terminal screen may be periodically refreshed in a timed manner ( That is, the charging information of the terminal battery). For example, it takes 0.5 seconds to implement steps S606 to S609 respectively.
  • the refresh period can be set to 0.5 seconds, that is, the current state of charge of the terminal battery is obtained from the charging chip and the fuel gauge chip of the terminal battery every 0.5 seconds. And the current power, and use the obtained current state of charge of the terminal battery and the current power to refresh the charging information displayed on the terminal screen.
  • the terminal screen may display the current state of charge and the current power of the terminal battery through a power-off icon, and A% in FIG. 9(a) indicates the current battery level of the terminal battery.
  • the step S806 since it takes a period of 0.5 seconds to implement the step S806, after the step S806 is performed, the current state of charge and the current power of the terminal battery can be reacquired, and the charging of the terminal battery displayed on the screen of the terminal can be refreshed.
  • the status and current power, the result of the refresh can be seen in Figure 9 (b), as can be seen from Figure 9 (b), the power of the terminal battery is B%.
  • step S808 also takes 0.5 seconds. Therefore, after step S808 is performed, the current state of charge and current power of the terminal battery can be re-acquired, and the screen shown in FIG. 9(b) is refreshed. The result can be seen in Fig. 9(c). It can be seen from Fig. 9(c) that the power of the terminal battery at this time is C%.
  • step S810 the current state of charge and the current power of the terminal battery are re-acquired, and the screen shown in FIG. 9(c) is refreshed.
  • the result of the refresh can be seen in FIG. 9(d), from FIG. 9. It can be seen in (d) that the power of the terminal battery is D% at this time.
  • step S812 the current state of charge and the current power of the terminal battery are re-acquired, and the screen shown in FIG. 9(d) is refreshed.
  • the result of the refresh can be seen in FIG. 9(e), from FIG. 9. (e) It can be seen that the power of the terminal battery is E% at this time. As can be seen from FIG. 9, as the charging time is extended, the power of the terminal battery is gradually increased.
  • the current state of charge and current power of the terminal battery are periodically obtained from the charging chip and the fuel gauge chip of the terminal battery by using the timer, and the current state of charge and current power of the terminal battery are used to refresh.
  • the embodiment of the present invention provides a method for displaying charging information. After the terminal in the shutdown state initializes the clock, the RAM, and the PMIC, the terminal battery power management and the terminal screen are initialized. And further displaying the current charging information of the terminal battery through the terminal screen, thereby greatly shortening the time from the terminal connecting the charging power source to the current charging information of the display terminal battery.
  • a terminal 10 is further provided in the embodiment of the present invention. As shown in FIG. 10, the terminal 10 may include: a charging information acquiring module 110 and a charging information display module 120;
  • the charging information acquiring module 110 is configured to acquire current charging information of the terminal battery
  • the charging information display module 120 is configured to display current charging information of the terminal battery according to a preset display policy, where the preset display policy is used to display the operating system before initializing the operating system of the terminal The current charging information of the terminal battery.
  • the charging information acquiring module 110 includes: a bottom layer resource initializing sub-module 1101, a battery power management initializing sub-module 1102, and a charging information acquiring sub-module 1103;
  • the underlying resource initialization sub-module 1101 is configured to initialize an underlying resource of the terminal
  • the battery power management initialization sub-module 1102 is configured to initialize power management of the terminal battery after initializing the bottom layer resource of the terminal;
  • the charging information acquisition sub-module 1103 is configured to acquire current charging information of the terminal battery from power management of the terminal battery after initializing power management of the terminal battery.
  • the underlying resource initialization sub-module 1101 is configured to:
  • the clock clock of the terminal, the random access memory RAM, and the chip power management PMIC are initialized.
  • the battery power management initialization sub-module 1102 is configured to:
  • the charging chip and the fuel gauge chip of the terminal battery are initialized.
  • the current charging information of the terminal battery includes a current charging state and a current power of the terminal battery
  • the charging information acquisition sub-module 1103 is configured to:
  • the charging information display module 120 is configured to:
  • each functional module in this embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software function module.
  • the integrated unit may be stored in a computer readable storage medium if it is implemented in the form of a software function module and is not sold or used as a stand-alone product.
  • the technical solution of the embodiment is essentially Said that the part contributing to the prior art or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium, comprising a plurality of instructions for making a computer device (may It is a personal computer, a server, or a network device, etc. or a processor that performs all or part of the steps of the method described in this embodiment.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the computer program instruction corresponding to the method for displaying charging information in the embodiment may be stored on a storage medium such as an optical disk, a hard disk, a USB disk, or the like, and corresponds to a method for displaying charging information in the storage medium.
  • a storage medium such as an optical disk, a hard disk, a USB disk, or the like.
  • the step of storing in the storage medium obtaining the current charging information of the terminal battery, including:
  • the step of storing in the storage medium is: initializing the bottom layer resource of the terminal, including:
  • the clock clock of the terminal, the random access memory RAM, and the chip power management PMIC are initialized.
  • the step of storing in the storage medium is: initializing power management of the terminal battery, including:
  • the charging chip and the fuel gauge chip of the terminal battery are initialized.
  • the step of storing in the storage medium the current charging information of the terminal battery includes a current charging state and a current power of the terminal battery;
  • the obtaining the current charging information of the terminal battery from the power management of the terminal battery includes:
  • the step of storing in the storage medium is: displaying the current charging information of the terminal battery according to the preset display policy, including:
  • An embodiment of the present invention provides a device 12 for displaying charging information.
  • the method may include: a communication interface 1210, a memory 1220, a processor 1230, and a bus 1240.
  • the bus 1240 is configured to connect the communication interface 1210, the processor 1230, and the memory 1220 and communication between the devices;
  • the communication interface 1210 is configured to perform data transmission with an external network element
  • the memory 1220 is configured to store instructions and data
  • the processor 1230 is configured to execute the instruction, when the terminal in the shutdown state detects that it is connected to the charging power source, and acquires current charging information of the terminal battery;
  • the memory 1220 may be a volatile memory, such as a random access memory (RAM), or a non-volatile memory, such as a read only memory.
  • RAM random access memory
  • ROM Read-Only Memory
  • flash memory hard disk (HDD, Hard Disk Drive) or solid state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and to the processor 1230 Provide instructions and data.
  • HDD Hard Disk Drive
  • SSD Solid-State Drive
  • the processor 1230 may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), or a Programmable Logic Device (PLD). At least one of a Programmable Logic Device, a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is to be understood that, for the different devices, the electronic device for implementing the above-mentioned processor functions may be other, which is not specifically limited in the embodiment of the present invention.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • CPU Central Processing Unit
  • controller a controller
  • microcontroller a microcontroller
  • the processor 1230 can be configured to:
  • the processor 1230 can be configured to:
  • the clock clock of the terminal, the random access memory RAM, and the chip power management PMIC are initialized.
  • the processor 1230 can be configured to:
  • the charging chip and the fuel gauge chip of the terminal battery are initialized.
  • the processor 1230 can be configured to:
  • processor 1230 can also be configured to:
  • Computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules, or other data. , removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media.
  • the present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the present invention can display the current charging information of the terminal battery according to a preset display policy before initializing the operating system of the terminal, so that the terminal in the shutdown state does not need to wait until the built-in shutdown charging UI call of the terminal.
  • the current charging information of the terminal battery is displayed, which greatly shortens the time from the connection of the charging power source to the current charging information of the display terminal battery.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

一种显示充电信息的方法及终端,该方法包括:当处于关机状态的终端检测到自身与充电电源连接后,获取所述终端电池的当前充电信息(S410);按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端电池的当前充电信息(S420)。

Description

一种显示充电信息的方法及终端 技术领域
本文涉及但不限于终端技术领域,尤其涉及一种显示充电信息的方法及终端。
背景技术
智能手机、平板电脑等终端已成为人们日常工作与生活中不可或缺的移动设备。这些设备均采用电池供电,在终端没有连接充电电源的条件下,随着终端的持续工作,终端电池电量也随之降低,并且,当终端电池电量达到关机阈值时终端将自动关机。此时,如果处于关机状态的终端检测到与充电电源连接,将启动关机充电模式。所谓关机充电模式的启动指的是终端从连接充电电源到初次显示关机充电用户界面(UI,User Interface)的过程。其中,关机充电UI的主要功能是用于指示终端电池的当前充电信息。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例期望提供一种显示充电信息的方法及终端,能够实现通过控制终端关机充电模式的启动过程,缩短终端从连接充电电源到显示终端电池的当前充电信息的时间。
本发明实施例是这样实现的:
第一方面,本发明实施例提供了一种显示充电信息的方法,该方法包括:
当处于关机状态的终端检测到自身与充电电源连接后,获取所述终端电池的当前充电信息;
按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端 电池的当前充电信息。
在上述方案中,所述获取所述终端电池的当前充电信息,包括:
对所述终端的底层资源进行初始化;
在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
在上述方案中,所述对所述终端的底层资源进行初始化,包括:
对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
在上述方案中,所述对所述终端电池的电源管理进行初始化,包括:
对所述终端电池的充电芯片和电量计芯片进行初始化。
在上述方案中,所述终端电池的当前充电信息包括所述终端电池的当前充电状态和当前电量;
相应地,所述从所述终端电池的电源管理中获取所述终端电池的当前充电信息,包括:
从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量。
在上述方案中,所述按照预设的显示策略显示所述终端电池的当前充电信息,包括:
对所述终端屏幕进行初始化;
在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
第二方面,本发明实施例提供了一种终端,所述终端包括:充电信息获取模块和充电信息显示模块;其中,
所述充电信息获取模块,设置为获取所述终端电池的当前充电信息;
所述充电信息显示模块,设置为按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端电池的当前充电信息。
在上述方案中,所述充电信息获取模块,包括:底层资源初始化子模块、电池电源管理初始化子模块和充电信息获取子模块;其中,
所述底层资源初始化子模块,设置为对所述终端的底层资源进行初始化;
所述电池电源管理初始化子模块,设置为在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
所述充电信息获取子模块,设置为在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
在上述方案中,所述底层资源初始化子模块,设置为:
对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
在上述方案中,所述电池电源管理初始化子模块,设置为:
对所述终端电池的充电芯片和电量计芯片进行初始化。
在上述方案中,所述终端电池的当前充电信息包括所述终端电池的当前充电状态和当前电量;
相应地,所述充电信息获取子模块,设置为:
从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量。
在上述方案中,所述充电信息显示模块,设置为:
对所述终端屏幕进行初始化;
在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
本发明实施例提供了一种显示充电信息的方法及终端,该方法能够在对终端的操作系统进行初始化之前,按照预设的显示策略显示终端电池的当前充电信息,从而使得处于关机状态的终端不需要等到对所述终端内置的关机充电UI调用后才显示终端电池的当前充电信息,如此大大缩短了终端从连接充电电源到显示终端电池的当前充电信息的时间。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种关机充电模式的启动流程示意图;
图2为本发明实施例提供的一种高通初始化的流程示意图;
图3为本发明实施例提供的一种原始设备制造商初始化的流程示意图;
图4为本发明实施例提供的一种显示充电信息的方法示意图;
图5为本发明实施例提供的一种剩余初始化的流程示意图;
图6为本发明实施例提供的一种显示充电信息的方法的实施过程示意图;
图7为本发明实施例提供的一种显示终端电池的当前充电信息的画面图;
图8为本发明实施例提供的另一种显示充电信息的方法的实施过程示意图;
图9为本发明实施例提供的另一种显示终端电池的当前充电信息的画面图;
图10为本发明实施例提供的一种终端的结构示意图;
图11为本发明实施例提供的另一种终端的结构示意图;
图12为本发明实施例提供的一种显示充电信息的设备结构示意图。
本发明的实施方式
如图1所示,关机充电模式的启动流程主要包括:引导加载器 (BootLoader)上电初始化、引导操作系统初始化和显示关机充电UI。在具体实现中,处于关机状态的终端的当前充电状态需要通过关机充电UI来显示,以使得用户能够通过终端显示的关机充电UI来了解终端的当前充电信息。而关机充电UI的加载,即关机充电模式的启动,需要经过引导加载器上电初始化、引导操作系统初始化和显示关机充电UI三个阶段,在完成关机充电模式的启动之前,用户无法感知终端的当前充电信息。以智能手机为例,通常情况下,处于关机状态的智能手机完成关机充电模式的启动需要耗费5至10秒的时间,也就是说,用户从给手机插入充电器到可以获知手机电池的当前充电信息,需要等待5至10秒的时间。
上述终端的关机充电模式的启动流程中,引导加载器上电初始化为系统初级引导程序,需要加载引导程序,其主要是用来初始化终端底层硬件及相关外围资源,如时钟(Clock)、随机存取存储器(RAM,Random Access Memory)、芯片电源管理(PMIC,Power Management Integrated Circuit)、屏幕、按键、电池电源管理、指示灯芯片等。另外,引导加载器上电初始化的过程,从功能上可以分为高通初始化和原始设备制造商(OEM,Original Equipment Manufacturer)初始化。高通初始化流程可以参见图2,从图2中可以看出,高通初始化的流程主要包括:时钟、RAM、PMIC等底层资源初始化、多核镜像加载、版本安全校验以及高通平台初始化。OEM初始化流程可以参见图3,从图3中可以看出,OEM初始化的流程主要包括:屏幕初始化、电池电源管理初始化、按键和指示灯芯片初始化。
引导操作系统初始化主要负责加载终端所搭载的操作系统,如Andriod系统、Linux系统和iOS系统等,主要包括内核驱动程序的加载(即内核初始化)和上层进程的启动(即用户空间初始化)。而显示关机充电UI为关机充电模式启动流程的最终阶段,也就是说,终端最终通过显示关机充电UI来告知用户所述终端电池的当前充电信息。以高通平台为例,引导加载器上电初始化的过程需要4秒,引导操作系统初始化的过程需要6秒,所以,完成终端关机充电模式的启动需要10秒,即用户将终端连接到充电电源以后,需要等待10秒钟的时间才能够获知终端电池的当前充电信息。下面将结合本发明实施例中的附图,对本发明实施例进行清楚、完整地描述。
如图4所示,该图给出了本发明实施例提供的一种显示充电信息的方法,从图中可以看出,该方法可以包括:
S410、当处于关机状态的终端检测到自身与充电电源连接后,获取所述终端电池的当前充电信息;
S420、按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端电池的当前充电信息。
这里,所述终端的操作系统包括:Andriod系统、Linux系统和iOS系统。
示例性地,对于步骤S410,所述获取所述终端电池的当前充电信息,可以包括:
S4101、对所述终端的底层资源进行初始化;
可选地,所述对所述终端的底层资源进行初始化,可以包括:对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
S4102、在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
可选地,所述对所述终端电池的电源管理进行初始化,可以包括:对所述终端电池的充电芯片和电量计芯片进行初始化。
S4103、在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
这里,所述终端电池的当前充电信息可以包括:所述终端电池的当前充电状态和当前电量。相应地,对于步骤S4103,所述从所述终端电池的电源管理中获取所述终端电池的当前充电信息,可以包括:从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量。
示例性地,对于步骤S420,所述按照预设的显示策略显示所述终端电池的当前充电信息,可以包括:
S4201、对所述终端屏幕进行初始化;
S4202、在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
事实上,在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,即在对终端的操作系统进行初始化之前就实现了终端电池的当前充电信息的显示。但是,为了更加真实地反映终端电池的当前充电信息,也可以周期性地刷新终端屏幕正在显示的终端电池的充电信息,从而使得终端屏幕所显示的画面能够实时地反映终端电池的当前充电信息。
这里,还需要说明的是,处于关机状态的终端在连接到充电电源以后,完整的关机充电模式启动流程包括:引导加载器上电初始化、引导操作系统初始化和显示关机充电UI三个阶段。因此,在具体实现中,在对所述终端屏幕进行初始化之后,如图5所示,还依次包括如下步骤:
S510、对所述终端的按键和指示灯芯片进行初始化;
这里,在对所述终端的按键进行初始化后,终端就可以检测是否发生按键事件了。当终端检测到有按键事件发生时,获取所述按键事件的持续时间;并当所述按键事件的持续时间达到预设的时间阈值时,开启所述终端。
S520、对所述终端的多核镜像进行加载;
S530、对所述终端的操作系统的版本进行安全校验;
S540、对所述终端的高通平台进行初始化;
S550、对所述终端的操作系统进行初始化。
这里,对于步骤S550,所述对所述终端的操作系统进行初始化,可以包括如下步骤:
S5501、对所述终端的内核进行初始化;
S5502、在对所述终端的内核进行初始化之后,在所述终端的内核中启用预设的定时器;
S5503、在启用所述定时器之后,调用所述终端内置的关机充电用户界面UI;
这里,在具体实现中,在启用所述定时器之后,就可以利用所述定时器周期性地从所述终端电池的电源管理中获取所述终端电池的当前充电信息,并能够进一步地利用所述终端电池的当前充电信息刷新所述终端内置的关机充电UI。至此,终端就可以从按照预设的显示策略显示所述终端电池的当前充电信息跳转至所述终端内置的关机充电UI了,即通过所述终端内置的充电UI来实时显示所述终点电池的当前充电信息。
S5504、在调用所述终端内置的关机充电UI之后,对所述终端的用户空间进行初始化。
为了缩短终端从连接充电电源到显示终端电池当前充电信息的时间,本发明实施例提供了一种显示充电信息的方法,在该方法中通过调整关机充电模式启动过程中的初始化顺序,即提前对终端电池的电源管理和终端屏幕进行初始化,在完成硬件的初始化后,立即获取终端电池的当前充电信息,并通过终端屏幕显示终端电池的当前充电信息。
为了方便对上述实施例的理解,如图6所示,该图给出了一种显示充电信息的完整实施过程,从图中可以看出,该实施过程包括如下实施步骤:
S601、当处于关机状态的终端检测到自身与充电电源连接后,对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化;
S602、对所述终端电池的充电芯片和电量计芯片进行初始化;
S603、从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量;
S604、对所述终端屏幕进行初始化;
S605、通过所述终端屏幕显示所述终端电池的当前充电状态和所述终端电池的当前电量;
至此,如图7所示,用户便可以通过终端屏幕获知终端电池的当前充电状态以及终端电池的当前电量,而无需等待终端将如下步骤S606至S613执行完毕以后,通过终端内置的关机充电UI才能看到终端电池的当前充电状态和终端电池的当前电量。
S606、对所述终端的按键和指示灯芯片进行初始化;
S607、对所述终端的多核镜像进行加载;
S608、对所述终端的操作系统的版本进行安全校验;
S609、对所述终端的高通平台进行初始化;
S610、对所述终端的内核进行初始化;
S611、在对所述终端的内核进行初始化之后,在所述终端的内核中启用预设的定时器;
S612、调用所述终端内置的关机充电UI;
S613、利用所述定时器周期性地从所述终端电池的充电芯片和电量计芯片中获取所述终端电池的当前充电状态和当前电量,并利用所述终端电池的当前充电状态和当前电量刷新所述终端内置的关机充电UI;
S614、对所述终端的用户空间进行初始化。
需要说明的是,由于执行步骤S606至步骤S609所耗费的时间比较短(一般约为2秒),因此,终端在执行步骤S606至步骤S609的同时,终端屏幕可以一直显示在步骤S603中获取的终端电池的充电状态和电池电量,例如,终端屏幕可以一直维持如图7所示的画面。但是,为了更真实地反映终端电池的当前充电状态和当前电量,在执行步骤S606至步骤S609的同时,也可以通过定时的方式周期性地刷新终端屏幕所显示的终端电池的充电状态和电量(即终端电池的充电信息)。例如,实施步骤S606至步骤S609分别需要耗时0.5秒,因此,可以将刷新周期设为0.5秒,即每隔0.5秒就从终端电池的充电芯片和电量计芯片中获取终端电池的当前充电状态和当前电量,并利用获取的终端电池的当前充电状态和当前电量刷新终端屏幕所显示的充电信息。可选地,如图8所示的实施过程:
S801、当处于关机状态的终端检测到自身与充电电源连接后,对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化;
S802、对所述终端电池的充电芯片和电量计芯片进行初始化;
S803、从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量;
S804、对所述终端屏幕进行初始化;
S805、通过所述终端屏幕显示所述终端电池的当前充电状态和所述终端电池的当前电量;
这里,如图9(a)所示,终端屏幕可以通过一个关机充电图标显示所述终端电池的当前充电状态和当前电量,图9(a)中的A%表示所述终端电池的当前电量。
S806、对所述终端的按键和指示灯芯片进行初始化;
S807、从所述终端电池的充电芯片和电量计芯片中分别获取所述终端电池的当前充电状态和当前电量,并利用所述终端电池的当前充电状态和当前电量刷新所述终端屏幕所显示的终端电池的充电状态和电量;
这里,由于实施步骤S806通常需要耗费0.5秒的时间,因此在执行完步骤S806后,可以重新获取所述终端电池的当前充电状态和当前电量,并刷新所述终端屏幕所显示的终端电池的充电状态和当前电量,刷新的结果可以参见图9(b),从图9(b)中可以看出,此时终端电池的电量为B%。
S808、对所述终端的多核镜像进行加载;
S809、从所述终端电池的充电芯片和电量计芯片中分别获取所述终端电池的当前充电状态和当前电量,并利用所述终端电池的当前充电状态和当前电量刷新所述终端屏幕所显示的终端电池的充电状态和电量;
同样地,实施步骤S808也需要0.5秒的时间,因此在执行完步骤S808后,可以重新获取所述终端电池的当前充电状态和当前电量,并刷新图9(b)所示的画面,刷新的结果可以参见图9(c),从图9(c)中可以看出,此时终端电池的电量为C%。
S810、对所述终端的操作系统的版本进行安全校验;
S811、从所述终端电池的充电芯片和电量计芯片中分别获取所述终端电池的当前充电状态和当前电量,并利用所述终端电池的当前充电状态和当前电量刷新所述终端屏幕所显示的终端电池的充电状态和电量;
同样地,在实施完步骤S810后,重新获取所述终端电池的当前充电状态和当前电量,并刷新图9(c)所示的画面,刷新的结果可以参见图9(d),从图9(d)中可以看出,此时终端电池的电量为D%。
S812、对所述终端的高通平台进行初始化;
S813、从所述终端电池的充电芯片和电量计芯片中分别获取所述终端电池的当前充电状态和当前电量,并利用所述终端电池的当前充电状态和当前电量刷新所述终端屏幕所显示的终端电池的充电状态和电量;
同样地,在实施完步骤S812后,重新获取所述终端电池的当前充电状态和当前电量,并刷新图9(d)所示的画面,刷新的结果可以参见图9(e),从图9(e)中可知,此时终端电池的电量为E%。从图9中可以看出,随着充电时间的延长,终端电池的电量逐渐增加。
S814、对所述终端的内核进行初始化;
S815、在对所述终端的内核进行初始化之后,在所述终端的内核中启用预设的定时器;
S816、调用所述终端内置的关机充电UI;
S817、利用所述定时器周期性地从所述终端电池的充电芯片和电量计芯片中获取所述终端电池的当前充电状态和当前电量,并利用所述终端电池的当前充电状态和当前电量刷新所述终端内置的关机充电UI;
S818、对所述终端的用户空间进行初始化。
由上述实施过程可以看出,本发明实施例提供了一种显示充电信息的方法,处于关机状态的终端在对时钟、RAM和PMIC进行初始化以后,立即对终端电池的电源管理以及终端屏幕进行初始化,并进一步地通过终端屏幕显示终端电池的当前充电信息,从而大大缩短了从终端连接充电电源到显示终端电池的当前充电信息的时间。
本发明实施例还提供的一种终端10,如图10所示,从图中可以看出,终端10可以包括:充电信息获取模块110和充电信息显示模块120;其中,
所述充电信息获取模块110,设置为获取所述终端电池的当前充电信息;
所述充电信息显示模块120,设置为按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端电池的当前充电信息。
在上述方案中,如图11所示,所述充电信息获取模块110,包括:底 层资源初始化子模块1101、电池电源管理初始化子模块1102和充电信息获取子模块1103;其中,
所述底层资源初始化子模块1101,设置为对所述终端的底层资源进行初始化;
所述电池电源管理初始化子模块1102,设置为在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
所述充电信息获取子模块1103,设置为在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
在上述方案中,所述底层资源初始化子模块1101,是设置为:
对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
在上述方案中,所述电池电源管理初始化子模块1102,是设置为:
对所述终端电池的充电芯片和电量计芯片进行初始化。
在上述方案中,所述终端电池的当前充电信息包括所述终端电池的当前充电状态和当前电量;
相应地,所述充电信息获取子模块1103,是设置为:
从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量。
在上述方案中,所述充电信息显示模块120,是设置为:
对所述终端屏幕进行初始化;
在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
另外,在本实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形 式实现。
所述集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
具体来讲,本实施例中的一种显示充电信息的方法对应的计算机程序指令可以被存储在光盘,硬盘,U盘等存储介质上,当存储介质中的与一种显示充电信息的方法对应的计算机程序指令被一电子设备读取或被执行时,包括如下步骤:
当处于关机状态的终端检测到自身与充电电源连接后,获取所述终端电池的当前充电信息;
按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端电池的当前充电信息。
可选的,存储介质中存储的与步骤:所述获取所述终端电池的当前充电信息,包括:
对所述终端的底层资源进行初始化;
在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
可选的,存储介质中存储的与步骤:所述对所述终端的底层资源进行初始化,包括:
对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
可选的,存储介质中存储的与步骤:所述对所述终端电池的电源管理进行初始化,包括:
对所述终端电池的充电芯片和电量计芯片进行初始化。
可选的,存储介质中存储的与步骤:所述终端电池的当前充电信息包括所述终端电池的当前充电状态和当前电量;
相应地,所述从所述终端电池的电源管理中获取所述终端电池的当前充电信息,包括:
从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量。
可选的,存储介质中存储的与步骤:所述按照预设的显示策略显示所述终端电池的当前充电信息,包括:
对所述终端屏幕进行初始化;
在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
本发明实施例提供了一种显示充电信息的设备12,参见图12,可以包括:通信接口1210、存储器1220、处理器1230和总线1240;其中,
所述总线1240,设置为连接所述通信接口1210、所述处理器1230和所述存储器1220以及这些器件之间的相互通信;
所述通信接口1210,设置为与外部网元进行数据传输;
所述存储器1220,设置为存储指令和数据;
所述处理器1230设置为执行所述指令用于:当处于关机状态的终端检测到自身与充电电源连接后,获取所述终端电池的当前充电信息;
以及,按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所 述终端电池的当前充电信息。
在实际应用中,上述存储器1220可以是易失性存储器(volatile memory),例如随机存取存储器(RAM,Random-Access Memory);或者非易失性存储器(non-volatile memory),例如只读存储器(ROM,Read-Only Memory),快闪存储器(flash memory),硬盘(HDD,Hard Disk Drive)或固态硬盘(SSD,Solid-State Drive);或者上述种类的存储器的组合,并向处理器1230提供指令和数据。
上述处理器1230可以为特定用途集成电路(ASIC,Application Specific Integrated Circuit)、数字信号处理器(DSP,Digital Signal Processor)、数字信号处理装置(DSPD,Digital Signal Processing Device)、可编程逻辑装置(PLD,Programmable Logic Device)、现场可编程门阵列(FPGA,Field Programmable Gate Array)、中央处理器(CPU,Central Processing Unit)、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本发明实施例不作具体限定。
示例性地,所述处理器1230,可以设置为:
对所述终端的底层资源进行初始化;
以及,在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
以及,在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
示例性地,所述处理器1230,可以设置为:
对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
示例性地,所述处理器1230,可以设置为:
对所述终端电池的充电芯片和电量计芯片进行初始化。
示例性地,所述处理器1230,可以设置为:
从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从 所述终端电池的电量计芯片中获取所述终端电池的当前电量。
示例性地,所述处理器1230,还可以设置为:
对所述终端屏幕进行初始化;
以及,在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理单元的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的可选实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例能够在对终端的操作系统进行初始化之前,按照预设的显示策略显示终端电池的当前充电信息,从而使得处于关机状态的终端不需要等到对所述终端内置的关机充电UI调用后才显示终端电池的当前充电信息,如此大大缩短了终端从连接充电电源到显示终端电池的当前充电信息的时间。

Claims (13)

  1. 一种显示充电信息的方法,所述方法包括:
    当处于关机状态的终端检测到自身与充电电源连接后,获取所述终端电池的当前充电信息(S410);
    按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端电池的当前充电信息(S420)。
  2. 根据权利要求1所述的方法,其中,所述获取所述终端电池的当前充电信息,包括:
    对所述终端的底层资源进行初始化;
    在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
    在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
  3. 根据权利要求2所述的方法,其中,所述对所述终端的底层资源进行初始化,包括:
    对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
  4. 根据权利要求2所述的方法,其中,所述对所述终端电池的电源管理进行初始化,包括:
    对所述终端电池的充电芯片和电量计芯片进行初始化。
  5. 根据权利要求2或4所述的方法,其中,所述终端电池的当前充电信息包括所述终端电池的当前充电状态和当前电量;
    相应地,所述从所述终端电池的电源管理中获取所述终端电池的当前充电信息,包括:
    从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量。
  6. 根据权利要求1或2所述的方法,其中,所述按照预设的显示策略显示所述终端电池的当前充电信息,包括:
    对所述终端屏幕进行初始化;
    在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
  7. 一种终端(10),所述终端(10)包括:充电信息获取模块(110)和充电信息显示模块(120);其中,
    所述充电信息获取模块(110),设置为获取所述终端电池的当前充电信息;
    所述充电信息显示模块(120),设置为按照预设的显示策略显示所述终端电池的当前充电信息;其中,所述预设的显示策略用于在对所述终端的操作系统进行初始化之前显示所述终端电池的当前充电信息。
  8. 根据权利要求7所述的终端(10),其中,所述充电信息获取模块(110),包括:底层资源初始化子模块(1101)、电池电源管理初始化子模块(1102)和充电信息获取子模块(1103);其中,
    所述底层资源初始化子模块(1101),设置为对所述终端的底层资源进行初始化;
    所述电池电源管理初始化子模块(1102),设置为在对所述终端的底层资源进行初始化之后,对所述终端电池的电源管理进行初始化;
    所述充电信息获取子模块(1103),设置为在对所述终端电池的电源管理进行初始化之后,从所述终端电池的电源管理中获取所述终端电池的当前充电信息。
  9. 根据权利要求8所述的终端(10),其中,所述底层资源初始化子模块(1101),是设置为:
    对所述终端的时钟Clock、随机存取存储器RAM和芯片电源管理PMIC进行初始化。
  10. 根据权利要求8所述的终端(10),其中,所述电池电源管理初始 化子模块(1102),是设置为:
    对所述终端电池的充电芯片和电量计芯片进行初始化。
  11. 根据权利要求8或10所述的终端(10),其中,所述终端电池的当前充电信息包括所述终端电池的当前充电状态和当前电量;
    相应地,所述充电信息获取子模块(1103),是设置为:
    从所述终端电池的充电芯片中获取所述终端电池的当前充电状态,并从所述终端电池的电量计芯片中获取所述终端电池的当前电量。
  12. 根据权利要求7或8所述的终端(10),其中,所述充电信息显示模块(120),是设置为:
    对所述终端屏幕进行初始化;
    在对所述终端屏幕进行初始化之后,通过所述终端屏幕显示所述终端电池的当前充电信息,并周期性地刷新所述终端屏幕所显示的终端电池的充电信息。
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至6中任一项所述的方法。
PCT/CN2018/072264 2017-03-24 2018-01-11 一种显示充电信息的方法及终端 WO2018171301A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP18770769.0A EP3605337A4 (en) 2017-03-24 2018-01-11 PROCEDURE AND DEVICE FOR DISPLAYING CHARGING INFORMATION

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710182051.4 2017-03-24
CN201710182051.4A CN108628724A (zh) 2017-03-24 2017-03-24 一种显示充电信息的方法及终端

Publications (1)

Publication Number Publication Date
WO2018171301A1 true WO2018171301A1 (zh) 2018-09-27

Family

ID=63584868

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/072264 WO2018171301A1 (zh) 2017-03-24 2018-01-11 一种显示充电信息的方法及终端

Country Status (3)

Country Link
EP (1) EP3605337A4 (zh)
CN (1) CN108628724A (zh)
WO (1) WO2018171301A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111796991B (zh) * 2020-07-03 2024-01-26 上海闻泰电子科技有限公司 系统状态指示方法、装置、计算机设备和可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097521A (zh) * 2006-06-30 2008-01-02 夏新电子股份有限公司 一种手持设备的Windows处理系统
US20100328086A1 (en) * 2009-06-25 2010-12-30 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Electronic device providing charge status
CN101977265A (zh) * 2010-10-19 2011-02-16 惠州Tcl移动通信有限公司 一种在手机关机的状态下查看时间的方法及其手机
CN102842922A (zh) * 2011-06-20 2012-12-26 中兴通讯股份有限公司 显示终端充电的方法和终端
CN104849674A (zh) * 2015-06-10 2015-08-19 合肥联宝信息技术有限公司 电池电量的显示装置和方法
CN104979867A (zh) * 2015-02-11 2015-10-14 努比亚技术有限公司 一种移动终端的充电管理方法及装置
CN105022649A (zh) * 2015-07-23 2015-11-04 广东欧珀移动通信有限公司 一种基于quickboot模式的终端开机方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8836274B2 (en) * 2010-04-26 2014-09-16 Psion Inc. System and method for displaying battery information before executing and operating system
KR101847914B1 (ko) * 2011-05-19 2018-04-12 엘지전자 주식회사 이동 단말기 및 그것의 동작 방법
KR101832492B1 (ko) * 2011-06-10 2018-02-26 삼성전자주식회사 휴대단말기의 배터리 잔량확인 장치 및 방법

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097521A (zh) * 2006-06-30 2008-01-02 夏新电子股份有限公司 一种手持设备的Windows处理系统
US20100328086A1 (en) * 2009-06-25 2010-12-30 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Electronic device providing charge status
CN101977265A (zh) * 2010-10-19 2011-02-16 惠州Tcl移动通信有限公司 一种在手机关机的状态下查看时间的方法及其手机
CN102842922A (zh) * 2011-06-20 2012-12-26 中兴通讯股份有限公司 显示终端充电的方法和终端
CN104979867A (zh) * 2015-02-11 2015-10-14 努比亚技术有限公司 一种移动终端的充电管理方法及装置
CN104849674A (zh) * 2015-06-10 2015-08-19 合肥联宝信息技术有限公司 电池电量的显示装置和方法
CN105022649A (zh) * 2015-07-23 2015-11-04 广东欧珀移动通信有限公司 一种基于quickboot模式的终端开机方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3605337A4 *

Also Published As

Publication number Publication date
EP3605337A4 (en) 2021-01-06
EP3605337A1 (en) 2020-02-05
CN108628724A (zh) 2018-10-09

Similar Documents

Publication Publication Date Title
EP4007116A1 (en) Charging method and apparatus, computer device and storage medium
US9274788B2 (en) Information processing apparatus, method for controlling the same, and storage medium
US9772857B2 (en) Executing sub-programs stored in an on-chip memory and charging a device via USB before enumeration process
KR102336856B1 (ko) 전자 장치 및 그의 배터리 충방전 제어 방법
US10866623B2 (en) Information handling system and method to detect and recover from no power/no post failures
US9874911B2 (en) Apparatus and method for resetting to factory default with bootloader program
EP3098687B1 (en) Electronic device and power managing method thereof
TW201519253A (zh) 用於減少喚醒時間之系統單晶片、操作系統單晶片之方法以及包括系統單晶片之電腦系統
KR20160136441A (ko) 사용자 선택형 운영체제
WO2017045419A1 (zh) 控制终端开机的方法及装置
US20130086372A1 (en) Information processing apparatus and boot control method
WO2018000831A1 (zh) 终端初始化方法及装置、终端、存储介质
WO2018171301A1 (zh) 一种显示充电信息的方法及终端
US20140380030A1 (en) Automatic turning on of a data processing device during charging of a battery source thereof
CN107678871B (zh) 一种电子设备开机方法及电子设备
CN108762790B (zh) 无人机电池重启处理方法、装置及存储介质
CN101814033B (zh) 基本输入/输出系统的设定方法
CN112084064A (zh) 主从bios切换方法、板卡及设备
US20160253502A1 (en) One-Time Power-On Password
US20150309754A1 (en) System and Method for Erasing Data on an Electronic Device
WO2003077134A1 (fr) Dispositif de reecriture de memoire
CN112784276B (zh) 可信度量的实现方法及装置
CN106293796B (zh) 一种信息处理方法及电子设备
US20210096624A1 (en) Electronic apparatus and operation information output method
US10101765B2 (en) BIOS real-time clock update

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: 18770769

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2018770769

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2018770769

Country of ref document: EP

Effective date: 20191024