WO2016041398A1 - 一种移动终端电池电量信息保存方法及移动终端 - Google Patents

一种移动终端电池电量信息保存方法及移动终端 Download PDF

Info

Publication number
WO2016041398A1
WO2016041398A1 PCT/CN2015/083089 CN2015083089W WO2016041398A1 WO 2016041398 A1 WO2016041398 A1 WO 2016041398A1 CN 2015083089 W CN2015083089 W CN 2015083089W WO 2016041398 A1 WO2016041398 A1 WO 2016041398A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
battery
power information
battery power
storage device
Prior art date
Application number
PCT/CN2015/083089
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 中兴通讯股份有限公司
Publication of WO2016041398A1 publication Critical patent/WO2016041398A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the invention relates to a battery management technology of an intelligent mobile terminal, in particular to a method for saving battery power information of a mobile terminal and a mobile terminal.
  • the battery management of smart mobile terminals is completed in the terminal.
  • the coulomb counting method is generally adopted.
  • the smart mobile terminal managed by this coulomb battery management system collects various parameters of the battery at the time of initialization every time the operating system is turned on, and the open circuit voltage takes a certain time to obtain, so the initial battery remaining capacity calculation has a certain time lag.
  • This principle limits the inaccurate battery remaining capacity in a short time after power-on, especially after the mobile terminal is turned off and then the battery is turned on, and the remaining capacity of the battery is less accurate.
  • each time you need to recalculate the initial value it will affect the system operation efficiency to some extent.
  • the present invention provides a method for saving battery power information of a mobile terminal and a mobile terminal, which can directly obtain stored battery power information at the time of power-on, thereby avoiding inaccurate calculation of the boot process, causing a delay in boot time and affecting system operation efficiency.
  • a mobile terminal has a storage device that stores battery power information, and the mobile terminal includes:
  • the saving module is configured to: save the current battery power information in the storage device when the mobile terminal is powered off or the battery power information changes;
  • the acquisition module is set to: when the mobile terminal is powered on, it detects that the storage device has a battery The battery power information is obtained when the power information is obtained.
  • the acquiring module is further configured to: when the mobile terminal is powered on, when the battery power information in the storage device is not detected, obtain the battery power information according to the parameter information of the battery circuit of the mobile terminal, and The battery power information is stored in the storage device.
  • the acquiring module is further configured to: after the mobile terminal is powered on, periodically acquire parameter information of a battery circuit of the mobile terminal, and obtain battery power information according to parameter information of a battery circuit of the mobile terminal. And determining whether the battery power information changes with respect to battery power information stored in the storage device.
  • the battery circuit includes: a battery cell and a protection circuit, and the parameter information includes a battery voltage of the battery cell;
  • the obtaining module obtains corresponding battery power information from a battery voltage power conversion table pre-established in the mobile terminal according to a battery voltage of the mobile terminal.
  • the storage device is disposed in a battery of the mobile terminal.
  • a mobile terminal battery power information storage method the mobile terminal has a storage device for storing battery power information, and the mobile terminal battery power information storage method includes:
  • the battery power information is acquired.
  • the method further includes:
  • the battery power information in the storage device When the mobile terminal is powered on, when the battery power information in the storage device is not detected, the battery power information is obtained according to the parameter information of the battery circuit of the mobile terminal, and the battery power information is saved in the storage device.
  • the method further includes:
  • the mobile terminal After the mobile terminal is powered on, periodically obtaining parameter information of the battery circuit of the mobile terminal, and obtaining battery power information according to parameter information of the battery circuit of the mobile terminal, and determining the battery power information relative to the storage device Whether the battery power information stored in the battery has changed.
  • the battery circuit includes: a battery cell and a protection circuit, and the parameter information includes a battery voltage of the battery cell;
  • Obtaining battery power information according to the parameter information of the battery circuit of the mobile terminal including:
  • Corresponding battery power information is obtained from a battery voltage power conversion table established in advance in the mobile terminal according to a battery voltage of the mobile terminal.
  • the storage device is disposed in a battery of the mobile terminal.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the mobile terminal of the embodiment of the present invention when the mobile terminal is powered off or the battery power information changes, the current battery power information is saved in the storage device of the mobile terminal, so that the acquiring module is turned on when the mobile terminal is powered on. Moreover, when the battery power information stored in the storage device is detected, the battery power information in the storage device can be directly obtained.
  • the mobile terminal can provide other function modules according to the battery power information to achieve its predetermined functions, such as display of the remaining battery power. In this way, the process of calculating at the time of starting up is saved, and the calculation result caused by the method is prevented from having poor accuracy, the calculation has a certain time lag and the system operation efficiency is affected.
  • FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a battery of a mobile terminal according to an embodiment of the present invention.
  • FIG. 3 is a flow chart showing the steps of a method for saving battery power information of a mobile terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram showing the application of a method for saving battery power information of a mobile terminal according to an embodiment of the present invention.
  • the intelligent mobile terminal managed by the coulometer battery needs to re-collect various parameters of the battery to calculate the remaining capacity of the battery during each booting process, but according to the characteristics of the battery, the voltage and current are unstable during the battery activation process, thereby The calculation results have poor accuracy, and the calculation of the remaining capacity of the battery while the operating system is booting during startup will cause the calculation to have a certain time lag and affect the system operation efficiency.
  • the embodiment of the invention provides a mobile terminal, which can directly obtain the stored battery power information when the power is turned on, and avoid various problems caused by calculating the remaining capacity of the battery by re-collecting various parameters of the battery during the booting process.
  • a mobile terminal of the embodiment of the present invention has a storage device that stores battery power information, and the mobile terminal includes:
  • the saving module 10 is configured to: save the current battery power information in the storage device when the mobile terminal is powered off or the battery power information changes;
  • the obtaining module 20 is configured to: when the mobile terminal detects that the battery power information is stored in the storage device, obtain the battery power information.
  • the mobile terminal of the embodiment of the present invention when the mobile terminal is powered off or the battery power information changes, the current battery power information is saved in the storage device of the mobile terminal, so that the acquiring module 20 is moving.
  • the battery power information in the storage device can be directly obtained.
  • the mobile terminal can provide other function modules according to the battery power information to achieve its predetermined functions, such as display of the remaining battery power. In this way, the process of calculating at the time of starting up is saved, and the calculation result caused by the method is prevented from having poor accuracy, the calculation has a certain time lag and the system operation efficiency is affected.
  • the battery power information includes the remaining battery power.
  • the battery power information may include information such as the maximum charging voltage and the maximum charging current of the battery to meet the needs of the previous functional module of the mobile terminal. Therefore, the content in the battery power information can be pre-defined according to the requirements of the function modules in the mobile terminal.
  • the setting location of the storage device is implemented in various manners, and may be disposed on an internal circuit board of the mobile terminal or in a battery of the mobile terminal. In the embodiment of the present invention, the storage device is configured. Placed in the battery of the mobile terminal.
  • the battery information management chip can store battery power information as a storage device, and the battery information management chip is relatively independent from the traditional battery circuit portion, and is connected to the mobile terminal. Data communication completes reading and writing of battery power information.
  • the mobile terminal battery adds a battery information management chip based on the original battery core and the protection circuit.
  • the battery information management chip has a power supply PWR terminal, a ground GND terminal, a clock CLK terminal, and a data bus Databus terminal.
  • the original cell and protection circuit part has voltage Vbat terminal, temperature THM terminal, battery address ID terminal and ground GND terminal.
  • the storage device is disposed in the battery of the mobile terminal, so that after the mobile terminal replaces the battery or the battery is applied to another mobile terminal, the mobile terminal can know the battery power information of the replaced battery, and does not appear.
  • the battery power information of the primary battery stored in the mobile terminal does not match the battery power information of the replaced battery.
  • the implementation manner of the storage device disposed on the internal circuit board of the mobile terminal is more suitable for the mobile terminal in which the body and the battery are integrated.
  • the obtaining module 20 is further configured to: when the mobile terminal is powered on, when the battery power information in the storage device is not detected, obtain battery power information according to parameter information of the battery circuit of the mobile terminal, and save the battery power information In the storage device.
  • the obtaining module 20 can also obtain the battery power information according to the parameter information of the battery circuit of the mobile terminal, and save the battery power information in the storage device. Therefore, when the mobile terminal or the battery is used for the first time, the battery power information can also be obtained, thereby improving the user experience.
  • the acquiring module is further configured to: after the mobile terminal is powered on, periodically acquire parameter information of the battery circuit of the mobile terminal, and according to the The parameter information of the battery circuit of the mobile terminal is obtained, the battery power information is obtained, and it is determined whether the battery power information changes with respect to the battery power information stored in the storage device.
  • the acquisition period of the parameter information can be predefined according to the needs of the function modules in the mobile terminal. When the real-time requirements of the information are strict, the period can be shortened, and when the real-time requirement is low, a long period of time can be defined.
  • the acquiring module can obtain the battery power information according to the parameter information of the periodically obtained battery circuit, and determine whether the obtained battery power information has changed for the battery power information stored in the storage device. Since sometimes the battery may not be changed in the case where the cycle definition is short, there is no need to update the information in the storage device. Therefore, it is determined that the obtained battery power information is for the battery stored in the storage device. Whether the power information changes, and then the save module can update the battery information that confirms the change to the storage device, realizing the authenticity and reliability of the data information.
  • the obtaining module obtains the battery power information according to the parameter information of the battery circuit of the mobile terminal, and implements the battery current information continuously, for example, by using the battery current in the parameter information of the battery circuit to continuously integrate the total current flowing into/out of the battery. Get the remaining battery power and related battery power information.
  • the implementation process of the foregoing solution is complicated.
  • the battery power information is obtained by using the following implementation manner:
  • the battery circuit includes: a battery cell and a protection circuit, and the parameter information includes a battery voltage of the battery cell;
  • the obtaining module obtains corresponding battery power information from a battery voltage power conversion table pre-established in the mobile terminal according to a battery voltage of the mobile terminal.
  • the battery voltage power conversion table is pre-established in the mobile terminal, so that after the mobile terminal acquires the battery voltage, It is convenient and quick to obtain the corresponding battery power information from the battery voltage and electricity conversion table.
  • the mobile terminal of the embodiment of the present invention when the mobile terminal is powered off or the battery power information changes, the current battery power information is saved in the storage device of the mobile terminal, and the acquiring module is powered on in the mobile terminal.
  • the battery power information stored in the storage device is detected, the battery power information in the storage device is directly obtained, which saves the calculation process at the time of startup, thereby avoiding the calculation result having poor accuracy, and calculating There is a certain time lag and problems affecting the efficiency of the system.
  • the acquisition module can periodically update the information in the storage device after the power is turned on to ensure that the data information is authentic and reliable.
  • an embodiment of the present invention further provides a method for saving battery power information of a mobile terminal, where the mobile terminal has a storage device for storing battery power information, including:
  • Step 11 When the mobile terminal is powered off or the battery power information changes, the current battery power information is saved in the storage device;
  • Step 12 When the mobile terminal is powered on, detecting that the battery power information is stored in the storage device, acquiring the battery power information.
  • the method for saving battery power information of the mobile terminal further includes:
  • Step 13 When the mobile terminal is powered on, when the battery power information in the storage device is not detected, the battery power information is obtained according to the parameter information of the battery circuit of the mobile terminal, and the battery power information is saved in the storage. In the device.
  • the method for saving battery power information of the mobile terminal further includes:
  • Step 14 After the mobile terminal is powered on, periodically obtain parameter information of the battery circuit of the mobile terminal, and obtain battery power information according to parameter information of the battery circuit of the mobile terminal, and determine that the battery power information is relatively Whether the battery power information stored in the storage device has changed.
  • the battery circuit includes: a battery cell and a protection circuit, and the parameter information includes a battery voltage of the battery cell;
  • Obtaining battery power information according to the parameter information of the battery circuit of the mobile terminal including:
  • Corresponding battery power information is obtained from a battery voltage power conversion table established in advance in the mobile terminal according to a battery voltage of the mobile terminal.
  • the storage device is disposed in a battery of the mobile terminal.
  • S401 is first executed to detect whether the battery power information is stored in the storage device, and the storage is detected.
  • execute S402 read the battery power information from the storage device, and then execute S403 to save the battery power information to the global variable for context use, that is, the mobile terminal saves the battery power information and provides the same. Used by other function modules.
  • S404 periodically re-acquire the battery power information, including the remaining capacity, and may periodically acquire the battery.
  • Parameter information and then the remaining capacity of the battery according to the parameter information.
  • S405. Determine whether the battery power information changes with respect to the battery power information stored in the storage device. If no change does not need to be updated, repeat the previous step S404. If a change occurs, perform the next step S407 to generate the new battery power information. Write to the storage device and repeat S403 to save to the global variable. Of course, for the battery or mobile terminal used for the first time, the battery power information cannot be saved in advance in the storage device.
  • the battery power information cannot be detected in the storage device, and then S406 is executed to initialize the battery power information, that is, obtain The parameter information of the battery at the time of starting, and then the battery power information is obtained according to the parameter information, and then the new battery power information is written into the storage device by S407, and the global variable is repeated in S403.
  • the storage device can save the newly obtained battery power information, and the next time the power is turned on, the battery power information in the storage device can be read.
  • the mobile terminal battery power information saving method of the embodiment of the present invention when the mobile terminal is turned off or the battery power information changes, the current battery power information is saved in the storage device of the mobile terminal.
  • the battery power information stored in the storage device is detected, the battery power information in the storage device is directly obtained, which saves the calculation process at the time of startup, thereby avoiding the calculation result caused by the device being poor. Accuracy, calculations have a certain time lag and affect the efficiency of the system and other issues.
  • the battery power information is periodically obtained to update the information in the storage device to ensure that the data information is authentic and reliable.
  • the method is applied to the above mobile terminal, and the implementation manner of the mobile terminal is applicable to the method, and the same technical effect can be achieved.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the mobile terminal of the embodiment of the present invention when the mobile terminal is powered off or the battery power information changes, the current battery power information is saved in the storage device of the mobile terminal, so that the acquiring module is turned on when the mobile terminal is powered on. Moreover, when the battery power information stored in the storage device is detected, the battery power information in the storage device can be directly obtained.
  • the mobile terminal can provide other function modules according to the battery power information to achieve its predetermined functions, such as display of the remaining battery power. In this way, the process of calculating at the time of starting up is saved, and the calculation result caused by the method is prevented from having poor accuracy, the calculation has a certain time lag and the system operation efficiency is affected.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Secondary Cells (AREA)

Abstract

一种移动终端电池电量信息保存方法及移动终端,所述移动终端具有存储电池电量信息的存储设备,所述移动终端包括:保存模块,设置为:在所述移动终端关机或者电池电量信息发生变化时,将当前电池电量信息保存于所述存储设备中;获取模块,设置为:在移动终端开机时,检测到存储设备中保存有电池电量信息时,获取所述电池电量信息。

Description

一种移动终端电池电量信息保存方法及移动终端 技术领域
本文涉及智能移动终端的电池管理技术,特别是指一种移动终端电池电量信息保存方法及移动终端。
背景技术
在智能移动终端被广泛应用的今天,智能移动终端的续航能力成为用户非常关心的问题。用户看续航最直接的办法就是看电池电量,如:“电量还剩余多少?当前使用场景下还能用多少时间?”因此,电池管理技术显得尤为重要。
目前智能移动终端电池管理都在终端完成,对于电池容量计算精确度高的终端产品,一般都采用了库仑计的方式。采用这种库仑计电池管理的智能移动终端,每次开机操作系统都会在初始化的时候收集电池的各种参数,开路电压需要一定的时间才能获取到,所以初始电池剩余容量计算有一定的时间滞后,此原理局限了开机后短时间内电池剩余容量不准确,特别是在移动终端关机后更换电池后再开机,电池剩余容量准确性更差。此外每次开机都需要重新计算初始值也会一定程度上影响系统运行效率。
发明内容
本文提供一种移动终端电池电量信息保存方法及移动终端,能够在开机时直接获取存储的电池电量信息,避免开机过程计算不准确,造成的开机时间滞后以及影响系统运行效率等问题。
一种移动终端,所述移动终端具有存储电池电量信息的存储设备,所述移动终端包括:
保存模块,设置为:在所述移动终端关机或者电池电量信息发生变化时,将当前电池电量信息保存于所述存储设备中;
获取模块,设置为:在移动终端开机时,检测到存储设备中保存有电池 电量信息时,获取所述电池电量信息。
可选地,所述获取模块还设置为:在移动终端开机时,未检测到存储设备中的电池电量信息时,根据所述移动终端的电池电路的参数信息,获得电池电量信息,并将所述电池电量信息保存于所述存储设备中。
可选地,所述获取模块还设置为:在移动终端开机后,周期性地获取所述移动终端的电池电路的参数信息,并根据所述移动终端的电池电路的参数信息,获得电池电量信息,并判断所述电池电量信息相对于存储设备中存储的电池电量信息是否发生变化。
可选地,所述电池电路包括:电池的电芯和保护电路,所述参数信息包括所述电芯的电池电压;
所述获取模块根据所述移动终端的电池电压,从所述移动终端中预先建立的电池电压电量转换表中,获得对应的电池电量信息。
可选地,所述存储设备设置于所述移动终端的电池中。
一种移动终端电池电量信息保存方法,所述移动终端具有存储电池电量信息的存储设备,所述移动终端电池电量信息保存方法包括:
在所述移动终端关机或者电池电量信息发生变化时,将当前电池电量信息保存于所述存储设备中;
在移动终端开机时,检测到存储设备中保存有电池电量信息时,获取所述电池电量信息。
可选地,所述方法还包括:
在移动终端开机时,未检测到存储设备中的电池电量信息时,根据所述移动终端的电池电路的参数信息,获得电池电量信息,并将所述电池电量信息保存于所述存储设备中。
可选地,所述方法还包括:
在移动终端开机后,周期性地获取所述移动终端的电池电路的参数信息,并根据所述移动终端的电池电路的参数信息,获得电池电量信息,并判断所述电池电量信息相对于存储设备中存储的电池电量信息是否发生变化。
可选地,所述电池电路包括:电池的电芯和保护电路,所述参数信息包括所述电芯的电池电压;
所述根据所述移动终端的电池电路的参数信息,获得电池电量信息,包括:
根据所述移动终端的电池电压,从所述移动终端中预先建立的电池电压电量转换表中,获得对应的电池电量信息。
可选地,所述存储设备设置于所述移动终端的电池中。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。
本发明实施例的移动终端,其保存模块在移动终端关机或者电池电量信息发生变化时,就会将当前的电池电量信息保存于移动终端的存储设备中,这样,获取模块在移动终端开机时,而且检测到存储设备中保存有的电池电量信息时,就可直接获取存储设备中的电池电量信息。移动终端就可依据该电池电量信息提供给其他功能模块实现其预定的功能,如电池剩余电量的显示等。如此,节省了开机时计算的过程,就避免了其引起的计算结果具有较差的准确性,计算有一定时间的滞后以及影响系统运行效率等问题。
附图概述
图1表示本发明实施例的移动终端的结构示意图;
图2表示本发明实施例的移动终端的电池结构示意图;
图3表示本发明实施例的移动终端电池电量信息保存方法的步骤流程图;
图4表示本发明实施例的移动终端电池电量信息保存方法的应用示意图。
本发明的实施方式
下面将结合附图对本发明的实施方式进行详细描述。
采用库仑计电池管理的智能移动终端,每次开机过程中都需重新收集电池的各种参数计算电池剩余容量,但是根据电池的特性,在电池启用的过程中其电压和电流并不稳定,从而计算得到结果的就具有较差的准确性,而且开机中操作系统启动的同时进行电池剩余容量的计算,会使计算有一定时间的滞后,影响系统运行效率。本发明实施例提供一种移动终端,能够在开机时直接获取存储的电池电量信息,避免开机过程需重新收集电池的各种参数计算电池剩余容量引起的各种问题。
如图1所示,本发明实施例的一种移动终端,所述移动终端具有存储电池电量信息的存储设备,所述移动终端包括:
保存模块10,设置为:在所述移动终端关机或者电池电量信息发生变化时,将当前电池电量信息保存于所述存储设备中;
获取模块20,设置为:在移动终端开机时,检测到存储设备中保存有电池电量信息时,获取所述电池电量信息。
上述的本发明实施例的移动终端,其保存模块10在移动终端关机或者电池电量信息发生变化时,就会将当前的电池电量信息保存于移动终端的存储设备中,这样,获取模块20在移动终端开机时,而且检测到存储设备中保存有的电池电量信息时,就可直接获取存储设备中的电池电量信息。移动终端就可依据该电池电量信息提供给其他功能模块实现其预定的功能,如电池剩余电量的显示等。如此,节省了开机时计算的过程,就避免了其引起的计算结果具有较差的准确性,计算有一定时间的滞后以及影响系统运行效率等问题。
其中,电池电量信息包括电池剩余电量,当然电池电量信息中还有可能包括有电池最大充电电压和最大充电电流等信息,以满足移动终端上个功能模块的需要。因此,电池电量信息中的内容是可根据移动终端内功能模块的需求进行预定义设置的。
存储设备的设置位置是有多种实现方式的,可以是设置在移动终端的内部电路板上或者移动终端的电池内,在本发明的实施例中,所述存储设备设 置于所述移动终端的电池中。
以一设置在移动终端电池上的电池信息管理芯片为例,该电池信息管理芯片能够作为一存储设备存储电池电量信息,该电池信息管理芯片与传统的电池电路部分相对独立,通过与移动终端的数据通讯完成电池电量信息的读写。如图2所示,移动终端电池在原有的电芯和保护电路的基础上增加了一电池信息管理芯片,电池信息管理芯片具有供电PWR端,地GND端,时钟CLK端和数据总线Databus端,而原有的电芯和保护电路部分具有电压Vbat端,温度THM端,电池地址ID端和地GND端。
在本发明实施例中,存储设备设置于移动终端的电池中,以使得在移动终端更换电池后或者电池应用到另外的移动终端,移动终端能够得知更换后电池的电池电量信息,不会出现移动终端存储的原电池的电池电量信息与更换后电池的电池电量信息不符的情况。而存储设备设置在移动终端的内部电路板上的实现方式,更适用于机身与电池为集合一体的移动终端。
在移动终端或电池第一次使用时,存储设备并没有存储电池电量信息,所以,为了避免移动终端开机时无法得到电池电量信息,给用户使用带来不便,在本发明实施例中,所述获取模块20还设置为:在移动终端开机时,未检测到存储设备中的电池电量信息时,根据所述移动终端的电池电路的参数信息,获得电池电量信息,并将所述电池电量信息保存于所述存储设备中。
在移动终端开机时,未检测到存储设备中的电池电量信息时,获取模块20还能够根据移动终端的电池电路的参数信息来获得电池电量信息,并将其保存于存储设备中。从而在移动终端或电池第一次使用时,也能够得到电池电量信息,提升用户体验。
移动终端开机完成后,随着移动终端的耗电或者充电,电池的真实电池电量信息会随之发生改变,此时,获取模块在开机时获取的电池电量信息已不能满足移动终端的需要。而为了保证电池电量信息的真实与可靠,在本发明实施例中,所述获取模块还设置为:在移动终端开机后,周期性地获取所述移动终端的电池电路的参数信息,并根据所述移动终端的电池电路的参数信息,获得电池电量信息,并判断所述电池电量信息相对于存储设备中存储的电池电量信息是否发生变化。
参数信息的获取周期可以根据移动终端中功能模块的需要进行预定义,对于信息的实时性要求严格的情况下可以缩短周期,对实时性要求较低的情况就可以定义一较长时间的周期。开机后,获取模块能够根据周期性获得的电池电路的参数信息进而获得电池电量信息,并判断获得的该电池电量信息性对于存储设备中存储的电池电量信息是否发生变化。由于有时在周期定义较短的情况下,可能会出现电量并没有发生变化,就不需要对存储设备中的信息进行更新,因此,要判断获得的该电池电量信息性对于存储设备中存储的电池电量信息是否发生变化,随后,保存模块就能够将确认变化的电池电量信息更新到存储设备中,实现数据信息的真实与可靠。
获取模块根据移动终端的电池电路的参数信息,获得电池电量信息的实现方式是多种多样的,例如通过利用电池电路的参数信息中的电池电流,对流入/流出电池的总电流持续进行积分来获得剩余电量及相关的电池电量信息。上述方案的实现过程较为复杂,在本发明实施例中,采用如下实现方式得到电池电量信息:
所述电池电路包括:电池的电芯和保护电路,所述参数信息包括所述电芯的电池电压;
所述获取模块根据所述移动终端的电池电压,从所述移动终端中预先建立的电池电压电量转换表中,获得对应的电池电量信息。
电池电压和剩余电量之间有一确定关系,得到电池端电压即可得到剩余电量,本发明实施例的方案,移动终端内预先建立有电池电压电量转换表,这样,在移动终端获取到电池电压后,就能够从电池电压电量转换表中获得对应的电池电量信息,方便快捷。
综上所述,本发明实施例的移动终端,保存模块在移动终端关机或者电池电量信息发生变化时,就会将当前的电池电量信息保存于移动终端的存储设备中,获取模块在移动终端开机时,而且检测到存储设备中保存有的电池电量信息时,直接获取存储设备中的电池电量信息,节省了开机时计算的过程,从而避免了其引起的计算结果具有较差的准确性,计算有一定时间的滞后以及影响系统运行效率等问题。而且,获取模块能够在开机后,周期性地得到电池电量信息更新存储设备中的信息,保证数据信息是真实与可靠。
如图3所示,本发明的实施例还提供了一种移动终端电池电量信息保存方法,所述移动终端具有存储电池电量信息的存储设备,包括:
步骤11,在所述移动终端关机或者电池电量信息发生变化时,将当前电池电量信息保存于所述存储设备中;
步骤12,在移动终端开机时,检测到存储设备中保存有电池电量信息时,获取所述电池电量信息。
其中,所述移动终端电池电量信息保存方法还包括:
步骤13,在移动终端开机时,未检测到存储设备中的电池电量信息时,根据所述移动终端的电池电路的参数信息,获得电池电量信息,并将所述电池电量信息保存于所述存储设备中。
其中,所述移动终端电池电量信息保存方法还包括:
步骤14,在移动终端开机后,周期性地获取所述移动终端的电池电路的参数信息,并根据所述移动终端的电池电路的参数信息,获得电池电量信息,并判断所述电池电量信息相对于存储设备中存储的电池电量信息是否发生变化。
其中,所述电池电路包括:电池的电芯和保护电路,所述参数信息包括所述电芯的电池电压;
所述根据所述移动终端的电池电路的参数信息,获得电池电量信息,包括:
根据所述移动终端的电池电压,从所述移动终端中预先建立的电池电压电量转换表中,获得对应的电池电量信息。
其中,所述存储设备设置于所述移动终端的电池中。
如图4所示,本发明实施例的移动终端电池电量信息保存方法的应用流程,在移动终端开机即系统启动时,首先执行S401,检测存储设备中是否存储有电池电量信息,在检测到存储设备中保存有电池电量信息时,执行S402,从存储设备中读出电池电量信息,然后执行S403,保存电池电量信息到全局变量供上下文使用,也就是说移动终端保存电池电量信息并将其提供给其他功能模块使用。在开机完成后,为了保证电池电量信息的真实与可靠,S404,周期性重新获取电池电量信息,包括剩余容量,可以先周期性地获取电池的 参数信息,再根据参数信息得到电池剩余容量。S405,判断电池电量信息相对于存储设备中存储的电池电量信息是否发生变化,若没有发生变化不需更新,重复上一步S404,若发生了变化,执行下一步S407,将该新的电池电量信息写入存储设备,并重复S403保存到全局变量。当然,对于第一次使用的电池或移动终端,存储设备内不能事先保存电池电量信息,执行S401后,不能检测到存储设备中保存有电池电量信息,则执行S406,初始化电池电量信息,即获取开机时电池的参数信息,再根据参数信息得到电池电量信息,然后同样执行S407将该新的电池电量信息写入存储设备,并重复S403保存到全局变量。这样,在该移动终端关机前,存储设备能够保存最新得到的电池电量信息,下一次开机,能够读出存储设备中的电池电量信息。
本发明实施例的移动终端电池电量信息保存方法,在移动终端关机或者电池电量信息发生变化时,就会将当前的电池电量信息保存于移动终端的存储设备中。在移动终端开机时,而且检测到存储设备中保存有的电池电量信息时,直接获取存储设备中的电池电量信息,节省了开机时计算的过程,从而避免了其引起的计算结果具有较差的准确性,计算有一定时间的滞后以及影响系统运行效率等问题。而且,在开机后,周期性地得到电池电量信息更新存储设备中的信息,保证数据信息是真实与可靠。
该方法是应用于上述移动终端的方法,上述移动终端的实现方式适用于该方法,也能达到相同的技术效果。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例的移动终端,其保存模块在移动终端关机或者电池电量信息发生变化时,就会将当前的电池电量信息保存于移动终端的存储设备中,这样,获取模块在移动终端开机时,而且检测到存储设备中保存有的电池电量信息时,就可直接获取存储设备中的电池电量信息。移动终端就可依据该电池电量信息提供给其他功能模块实现其预定的功能,如电池剩余电量的显示等。如此,节省了开机时计算的过程,就避免了其引起的计算结果具有较差的准确性,计算有一定时间的滞后以及影响系统运行效率等问题。

Claims (11)

  1. 一种移动终端,所述移动终端具有存储电池电量信息的存储设备,所述移动终端包括:
    保存模块,设置为:在所述移动终端关机或者电池电量信息发生变化时,将当前电池电量信息保存于所述存储设备中;
    获取模块,设置为:在移动终端开机时,检测到存储设备中保存有电池电量信息时,获取所述电池电量信息。
  2. 根据权利要求1所述的移动终端,其中,所述获取模块还设置为:在移动终端开机时,未检测到存储设备中的电池电量信息时,根据所述移动终端的电池电路的参数信息,获得电池电量信息,并将所述电池电量信息保存于所述存储设备中。
  3. 根据权利要求1或2所述的移动终端,其中,所述获取模块还设置为:在移动终端开机后,周期性地获取所述移动终端的电池电路的参数信息,并根据所述移动终端的电池电路的参数信息,获得电池电量信息,并判断所述电池电量信息相对于存储设备中存储的电池电量信息是否发生变化。
  4. 根据权利要求3所述的移动终端,其中,所述电池电路包括:电池的电芯和保护电路,所述参数信息包括所述电芯的电池电压;
    所述获取模块根据所述移动终端的电池电压,从所述移动终端内预先建立的电池电压电量转换表中,获得对应的电池电量信息。
  5. 根据权利要求1所述的移动终端,其中,所述存储设备设置于所述移动终端的电池中。
  6. 一种移动终端电池电量信息保存方法,所述移动终端具有存储电池电量信息的存储设备,所述移动终端电池电量信息保存方法包括:
    在所述移动终端关机或者电池电量信息发生变化时,将当前电池电量信息保存于所述存储设备中;
    在移动终端开机时,检测到存储设备中保存有电池电量信息时,获取所述电池电量信息。
  7. 根据权利要求6所述的移动终端电池电量信息保存方法,还包括:
    在移动终端开机时,未检测到存储设备中的电池电量信息时,根据所述移动终端的电池电路的参数信息,获得电池电量信息,并将所述电池电量信息保存于所述存储设备中。
  8. 根据权利要求6或7所述的移动终端电池电量信息保存方法,还包括:
    在移动终端开机后,周期性地获取所述移动终端的电池电路的参数信息,并根据所述移动终端的电池电路的参数信息,获得电池电量信息,并判断所述电池电量信息相对于存储设备中存储的电池电量信息是否发生变化。
  9. 根据权利要求8所述的移动终端电池电量信息保存方法,其中,所述电池电路包括:电池的电芯和保护电路,所述参数信息包括所述电芯的电池电压;
    所述根据所述移动终端的电池电路的参数信息,获得电池电量信息,包括:
    根据所述移动终端的电池电压,从所述移动终端中预先建立的电池电压电量转换表中,获得对应的电池电量信息。
  10. 根据权利要求6所述的移动终端电池电量信息保存方法,其中,所述存储设备设置于所述移动终端的电池中。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求6-10任一项的方法。
PCT/CN2015/083089 2014-09-16 2015-07-01 一种移动终端电池电量信息保存方法及移动终端 WO2016041398A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410471681.XA CN105491208A (zh) 2014-09-16 2014-09-16 一种移动终端电池电量信息保存方法及移动终端
CN201410471681.X 2014-09-16

Publications (1)

Publication Number Publication Date
WO2016041398A1 true WO2016041398A1 (zh) 2016-03-24

Family

ID=55532535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083089 WO2016041398A1 (zh) 2014-09-16 2015-07-01 一种移动终端电池电量信息保存方法及移动终端

Country Status (2)

Country Link
CN (1) CN105491208A (zh)
WO (1) WO2016041398A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572259A (zh) * 2016-11-09 2017-04-19 惠州Tcl移动通信有限公司 一种移动终端电池电量的显示方法和系统
CN108957341A (zh) * 2018-07-06 2018-12-07 北京摩拜科技有限公司 电池电量的归集处理方法、装置及系统
CN109239611A (zh) * 2018-11-26 2019-01-18 努比亚技术有限公司 终端电池电量校准方法、终端和计算机可读存储介质
CN110598612B (zh) * 2019-08-30 2023-06-09 深圳智慧林网络科技有限公司 基于移动终端的病人看护方法、移动终端和可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7110896B2 (en) * 2003-04-22 2006-09-19 Hewlett-Packard Development Company, L.P. System and method for displaying battery status and other parameters of a portable electronic device in a power-off state
CN101635771A (zh) * 2009-08-21 2010-01-27 中兴通讯股份有限公司 一种移动终端及其功耗探测控制的方法
CN102914744A (zh) * 2012-06-29 2013-02-06 惠州Tcl移动通信有限公司 移动终端及其电池电量显示系统、及获取电池电量的方法
CN103792490A (zh) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 测量和计算系统电池电量的方法
CN103792489A (zh) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 测量和计算系统电池电量的改进方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7110896B2 (en) * 2003-04-22 2006-09-19 Hewlett-Packard Development Company, L.P. System and method for displaying battery status and other parameters of a portable electronic device in a power-off state
CN101635771A (zh) * 2009-08-21 2010-01-27 中兴通讯股份有限公司 一种移动终端及其功耗探测控制的方法
CN102914744A (zh) * 2012-06-29 2013-02-06 惠州Tcl移动通信有限公司 移动终端及其电池电量显示系统、及获取电池电量的方法
CN103792490A (zh) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 测量和计算系统电池电量的方法
CN103792489A (zh) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 测量和计算系统电池电量的改进方法

Also Published As

Publication number Publication date
CN105491208A (zh) 2016-04-13

Similar Documents

Publication Publication Date Title
US10398177B2 (en) Electronic cigarette and a method for controlling the electronic cigarette
WO2016041398A1 (zh) 一种移动终端电池电量信息保存方法及移动终端
CN108255774A (zh) 应用处理器、包括该处理器的计算系统及其操作方法
CN109388339A (zh) 存储器控制器及其操作方法
WO2016145621A1 (zh) 一种电量估计方法及终端
TWI566177B (zh) 應用程式管理系統及方法
CN106569921B (zh) 一种双芯智能电能表的计量芯时钟处理方法及装置
CN105890624B (zh) 一种校准方法及电子设备
WO2014101807A1 (zh) 一种显示电池电量的方法和终端
US20120265461A1 (en) Electronic device and system time setting method thereof
CN104330177B (zh) 超低功耗便携式地温采集装置和方法
WO2018000827A1 (zh) 一种终端电池电量计算方法和装置
CN101963912A (zh) 一种实现保存和校验系统硬件配置信息的方法
CN109040467A (zh) 界面电量确定方法、装置、存储介质及移动终端
WO2019119326A1 (zh) 充电方法、装置、终端设备及计算机可读存储介质
CN104866058A (zh) 电子设备的续航时间的确定方法和装置
TW201348964A (zh) 在運行時間下判定最佳化預載入距離
CN103092062A (zh) 用于实时时钟芯片的精度调节方法及系统
CN107436410A (zh) 一种电量控制方法、装置、设备和存储介质
CN103970967A (zh) 一种电力系统电磁暂态仿真分析系统
CN108600542A (zh) 陀螺仪校准方法及装置
CN103902371A (zh) 一种用户态程序获取内核jiffies的方法和系统
TW201314443A (zh) 功率感知模擬系統及其方法
WO2019127081A1 (zh) 智能终端的功耗稳定方法、其装置及电子设备
CN109634353A (zh) 服务器主机级联box拓扑架构时钟同步方法、装置、终端及存储介质

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15842289

Country of ref document: EP

Kind code of ref document: A1