CN106603874B - A kind of method that mobile terminal electricity is shown and mobile terminal - Google Patents
A kind of method that mobile terminal electricity is shown and mobile terminal Download PDFInfo
- Publication number
- CN106603874B CN106603874B CN201710107447.2A CN201710107447A CN106603874B CN 106603874 B CN106603874 B CN 106603874B CN 201710107447 A CN201710107447 A CN 201710107447A CN 106603874 B CN106603874 B CN 106603874B
- Authority
- CN
- China
- Prior art keywords
- value
- electric quantity
- mobile terminal
- battery capacity
- quantity value
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000005611 electricity Effects 0.000 title abstract 5
- 230000032683 aging Effects 0.000 claims description 40
- 239000000446 fuel Substances 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 13
- 238000007599 discharging Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000015556 catabolic process Effects 0.000 abstract 2
- 238000006731 degradation reaction Methods 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Secondary Cells (AREA)
- Tests Of Electric Status Of Batteries (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种移动终端电量显示的方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to a method for displaying power of a mobile terminal and a mobile terminal.
背景技术Background technique
随着科学技术的发展,移动终端的使用也越来越广泛。为了提升移动终端的续航能力,常用的方式是增加电池容量。但是,快速充电技术或者充电比较频繁也会加速电池的老化。With the development of science and technology, the use of mobile terminals is becoming more and more extensive. In order to improve the battery life of the mobile terminal, a common method is to increase the battery capacity. However, fast charging technology or charging more frequently can also accelerate the aging of the battery.
目前,移动终端的电量主要是通过出厂时电池内置的标称电池参数来确定的如环境温度为26℃时的电池参数。常见的电池参数有充放电的电池容量、电池内阻等。但是,这些电池参数随着环境变化而变化,从而导致移动终端显示的电量值与实际剩余电量值不一致。例如,环境温度低的时候电池参数与标称电池参数相差很大,而根据标称电池参数得到的电量值比实际电量值要高。此时,移动终端仍显示由标称电池参数得到的电量值,电量显示的准确性低。At present, the power of the mobile terminal is mainly determined by the nominal battery parameters built into the battery when it leaves the factory, such as the battery parameters when the ambient temperature is 26°C. Common battery parameters include charge and discharge battery capacity, battery internal resistance, etc. However, these battery parameters change with changes in the environment, so that the power value displayed by the mobile terminal is inconsistent with the actual remaining power value. For example, when the ambient temperature is low, the battery parameters differ greatly from the nominal battery parameters, and the power value obtained from the nominal battery parameters is higher than the actual power value. At this time, the mobile terminal still displays the power value obtained from the nominal battery parameters, and the accuracy of the power display is low.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种移动终端电量显示的方法及移动终端,以解决现有的移动终端电量显示方式准确性低的问题。Embodiments of the present invention provide a method and a mobile terminal for displaying the power of a mobile terminal, so as to solve the problem of low accuracy of the existing method of displaying the power of a mobile terminal.
第一方面,本发明实施例提供了一种移动终端电量显示的方法,包括:In a first aspect, an embodiment of the present invention provides a method for displaying battery power of a mobile terminal, including:
获取移动终端的目标电池容量值和所述移动终端消耗的电量值,根据所述目标电池容量值和所述消耗的电量值,确定第一电量值;确定所述移动终端的开路电压,根据所述开路电压,查找预设的电池老化参数表,得到在当前温度下所述开路电压对应的第二电量值;Obtain the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal, and determine the first power value according to the target battery capacity value and the consumed power value; determine the open circuit voltage of the mobile terminal, and determine the open circuit voltage according to the the open-circuit voltage, look up a preset battery aging parameter table, and obtain the second power value corresponding to the open-circuit voltage at the current temperature;
根据所述第一电量值和所述第二电量值确定目标电量值,并显示所述目标电量值。A target power value is determined according to the first power value and the second power value, and the target power value is displayed.
第二方面,本发明实施例还提供一种移动终端,包括:In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
获取模块,用于获取移动终端的目标电池容量值和所述移动终端消耗的电量值,根据所述目标电池容量值和所述消耗的电量值,确定第一电量值;确定所述移动终端的开路电压,根据所述开路电压,查找预设的电池老化参数表,得到在当前温度下所述开路电压对应的第二电量值;The obtaining module is used to obtain the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal, and determine the first power value according to the target battery capacity value and the power consumption value; open-circuit voltage, according to the open-circuit voltage, searching a preset battery aging parameter table to obtain a second power value corresponding to the open-circuit voltage at the current temperature;
处理模块,用于根据所述获取模块获取的的第一电量值和所述获取模块获取的第二电量值确定目标电量值,并显示所述目标电量值。A processing module, configured to determine a target power value according to the first power value acquired by the acquiring module and the second power value acquired by the acquiring module, and display the target power value.
本发明实施例中,获取移动终端的目标电池容量值和所述移动终端消耗的电量值,根据所述目标电池容量值和所述消耗的电量值,确定第一电量值;确定所述移动终端的开路电压,根据所述开路电压,查找预设的电池老化参数表,得到在当前温度下所述开路电压对应的第二电量值;根据所述第一电量值和所述第二电量值确定目标电量值,并显示所述目标电量值。这样,通过预设的电池老化参数表查找得到相应的电量值,并根据查找得到的电量值对实际电量进行校准,提高了移动终端电量显示的准确性。In the embodiment of the present invention, the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal are acquired, and the first power value is determined according to the target battery capacity value and the consumed power value; and the mobile terminal is determined. the open-circuit voltage, according to the open-circuit voltage, look up the preset battery aging parameter table, and obtain the second power value corresponding to the open-circuit voltage at the current temperature; determine according to the first power value and the second power value target power value, and display the target power value. In this way, the corresponding electric quantity value is obtained by searching through the preset battery aging parameter table, and the actual electric quantity is calibrated according to the electric quantity value obtained by searching, which improves the accuracy of the electric quantity display of the mobile terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1是本发明第一实施例提供的移动终端电量显示的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for displaying battery power of a mobile terminal according to a first embodiment of the present invention;
图2是本发明第二实施例提供的移动终端电量显示的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for displaying battery power of a mobile terminal provided by a second embodiment of the present invention;
图3是本发明第三实施例提供的移动终端的结构图;3 is a structural diagram of a mobile terminal provided by a third embodiment of the present invention;
图4是本发明第三实施例提供的移动终端的第一示意图;4 is a first schematic diagram of a mobile terminal provided by a third embodiment of the present invention;
图5是本发明第三实施例提供的移动终端的第二示意图;5 is a second schematic diagram of a mobile terminal provided by a third embodiment of the present invention;
图6是本发明第三实施例提供的移动终端中校准子模块的示意图;6 is a schematic diagram of a calibration submodule in a mobile terminal provided by a third embodiment of the present invention;
图7是本发明第三实施例提供的移动终端的第三示意图;7 is a third schematic diagram of a mobile terminal provided by a third embodiment of the present invention;
图8是本发明第三实施例提供的移动终端中第一获取子模块的示意图;8 is a schematic diagram of a first acquisition sub-module in a mobile terminal provided by a third embodiment of the present invention;
图9为本发明第四实施例提供的移动终端的结构图。FIG. 9 is a structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
第一实施例first embodiment
参见图1,图1是本发明实施例提供的一种移动终端电量显示的方法的流程示意图,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a method for displaying the power level of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤101、获取移动终端的目标电池容量值和移动终端消耗的电量值,根据目标电池容量值和消耗的电量值,确定第一电量值;确定移动终端的开路电压,根据开路电压,查找预设的电池老化参数表,得到在当前温度下开路电压对应的第二电量值。Step 101: Obtain the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal, and determine the first power value according to the target battery capacity value and the power consumption value; determine the open circuit voltage of the mobile terminal, and search for a preset value according to the open circuit voltage. The battery aging parameter table is obtained from the battery aging parameter table, and the second power value corresponding to the open circuit voltage at the current temperature is obtained.
该步骤中,上述目标电池容量值是根据理论电池容量值和电量计装置检测的电池容量值计算得到的,该计算的过程可以是取两者的较小电池容量值或取两者的平均电池容量值作为在此的目标电池容量值。In this step, the above-mentioned target battery capacity value is calculated according to the theoretical battery capacity value and the battery capacity value detected by the fuel gauge device. The calculation process may be to take the smaller battery capacity value of the two or the average battery capacity value of the two The capacity value serves as the target battery capacity value here.
其中,理论电池容量值可以是通过查询电池出厂时预置的电池老化参数表确定。电池老化参数表为移动终端出厂前对移动终端电池进行老化测试得到的参数表,该电池老化参数表可以包括温度、电池容量值、放电深度(电池在使用的过程中,电池放出的容量占额定容量的百分比)、剩余电量值、电池开路电压(电池不放电开路时电池两极之间的电位差)等参数信息,这些参数信息形成一个相互对应的参数表;电量计装置检测的电池容量值可以是根据电量计库伦积分得到的电池容量值。上述移动终端消耗的电量值为移动终端使用时消耗的电量总值,可以利用电流库伦电流积分计算得到,也可以通过移动终端的电量计装置如电量计芯片检测得到。The theoretical battery capacity value may be determined by querying the battery aging parameter table preset when the battery leaves the factory. The battery aging parameter table is the parameter table obtained by the aging test of the mobile terminal battery before the mobile terminal leaves the factory. Parameter information such as the percentage of capacity), remaining power value, battery open circuit voltage (potential difference between the two poles of the battery when the battery is not discharged and open circuit), these parameter information form a corresponding parameter table; the battery capacity value detected by the fuel gauge device can be is the battery capacity value obtained according to the coulomb integral of the fuel gauge. The above-mentioned power consumption value of the mobile terminal is the total power consumption when the mobile terminal is used, which can be calculated by using the current Coulomb current integral, or can be detected by a power meter device such as a power meter chip of the mobile terminal.
上述第一电量值为移动终端当前剩下的电量值占目标电池容量值的百分比,其确定的过程可以是将目标电池容量值减去移动终端消耗的电量值得到一差值,该差值为移动终端当前剩下的电量值,然后将该差值与目标电池容量值的比值确定为第一电量值。例如,目标电池容量值为1000毫安,移动终端消耗的电池容量值为100毫安,则可以计算得到第一电量值为90%。The above-mentioned first power value is the percentage of the current remaining power value of the mobile terminal to the target battery capacity value, and the determination process may be to subtract the target battery capacity value from the power value consumed by the mobile terminal to obtain a difference value, and the difference value is: The current remaining power value of the mobile terminal, and then the ratio of the difference to the target battery capacity value is determined as the first power value. For example, if the target battery capacity value is 1000 mA, and the battery capacity value consumed by the mobile terminal is 100 mA, the first power value can be calculated to be 90%.
该实施方式中,通过理论电池容量值和电量计装置检测的电池容量值确定目标电池容量值,增加了理论电池容量值的一个校准的过程,提高电量计装置损坏或检测有误时目标电池容量值的准确性。In this embodiment, the target battery capacity value is determined by the theoretical battery capacity value and the battery capacity value detected by the fuel gauge device, a calibration process of the theoretical battery capacity value is added, and the target battery capacity is improved when the fuel gauge device is damaged or detected incorrectly. accuracy of the value.
上述开路电压为电池不放电开路时电池两极之间的电位差,其确定的过程可以是通过电量计装置检测得到。或者,检测移动终端的负载电压,然后通过I(电流强度,currentintensity)R(电阻,Resistor)补偿求得开路电压,即将负载电流与预设的电池内阻的乘积作为消耗电压,并将负载电压与消耗电压之和作为开路电压。该实施方式中,一方面可以通过IR补偿的方式确定开路电压,弥补了移动终端没有电量计装置或者电量计装置检测有误的情形下确定开路电压的不足;另一方面可以根据得到的2个开路电压进行校准,如取上述开路电压的平均值,提高开路电压确定的准确性。The above-mentioned open-circuit voltage is the potential difference between the two poles of the battery when the battery is not discharged and open-circuited. Alternatively, the load voltage of the mobile terminal is detected, and then the open circuit voltage is obtained through I (current intensity, currentintensity) R (resistor, Resistor) compensation, that is, the product of the load current and the preset internal resistance of the battery is taken as the consumption voltage, and the load voltage The sum of the consumption voltage is regarded as the open circuit voltage. In this embodiment, on the one hand, the open-circuit voltage can be determined by means of IR compensation, which makes up for the shortage of determining the open-circuit voltage when the mobile terminal does not have a fuel gauge device or the fuel gauge device detects incorrectly; The open-circuit voltage is calibrated, such as taking the average value of the above-mentioned open-circuit voltages to improve the accuracy of the determination of the open-circuit voltage.
预设的电池老化参数表为移动终端出厂前对移动终端电池进行老化测试得到的参数表,该电池老化参数表可以包括温度、电池容量值、放电深度、剩余电量值、电池开路电压等参数信息,这些参数信息形成一个相互对应的参数表。查询电池老化参数表可以获得当前温度下开路电压对应的第二电池容量值,其中,电池老化参数表中的每个开路电压都有一电池容量值与其对应。The preset battery aging parameter table is a parameter table obtained by the aging test of the mobile terminal battery before the mobile terminal leaves the factory. The battery aging parameter table may include parameter information such as temperature, battery capacity value, depth of discharge, remaining power value, and battery open-circuit voltage. , and these parameter information form a corresponding parameter table. The second battery capacity value corresponding to the open circuit voltage at the current temperature can be obtained by querying the battery aging parameter table, wherein each open circuit voltage in the battery aging parameter table has a corresponding battery capacity value.
步骤102、根据第一电量值和第二电量值确定目标电量值,并显示目标电量值。Step 102: Determine a target power value according to the first power value and the second power value, and display the target power value.
该步骤中,上述目标电量值即移动终端上最终显示的电量值。确定目标电量值的过程分为两种情形:In this step, the above-mentioned target electric quantity value is the electric quantity value finally displayed on the mobile terminal. The process of determining the target power value is divided into two situations:
其一,若第一电量值小于或者等于第二电量值,将第一电量值作为目标电量值。First, if the first power value is less than or equal to the second power value, the first power value is used as the target power value.
其二,若第一电量值大于第二电量值,计算第一电量值与第二电量值的差值;根据差值对第一电量值进行校准,利用校准后的电量值作为目标电量值。该校准的过程即根据差值确定电量校准速度,然后将第一电量值逐渐校准为第二电量值。其中,差值越大,所对应的电量校准速度越快。例如,第一电量值为70%,第二电量值为50%,其差值为20%,所对应的电量校准速度可以是1%每秒,这样,20秒后就可以完成校准过程,以得到更加准确的电量值。Second, if the first power value is greater than the second power value, calculate the difference between the first power value and the second power value; calibrate the first power value according to the difference, and use the calibrated power value as the target power value. The calibration process is to determine the electric power calibration speed according to the difference value, and then gradually calibrate the first electric power value to the second electric power value. Among them, the larger the difference, the faster the corresponding power calibration speed. For example, if the first power value is 70%, the second power value is 50%, and the difference is 20%, the corresponding power calibration speed can be 1% per second. In this way, the calibration process can be completed after 20 seconds. Get a more accurate power value.
需要说明的是,步骤101中确定第一电量值的过程与确定第二电量值的过程的先后顺序不作限定。可以是先确定第一电量值然后确定第二电量值;也可以是先确定第二电量值然后再确定第一电量值;还可以是第一电量值与第二电量值确定的过程同时进行。It should be noted that the sequence of the process of determining the first power value and the process of determining the second power value in step 101 is not limited. The first electric power value may be determined first and then the second electric power value may be determined; the second electric power value may be determined first and then the first electric power value may be determined; or the processes of determining the first electric power value and the second electric power value may be performed simultaneously.
本发明实施例中,执行上述步骤的移动终端可以是手机、平板电脑(TabletPersonal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digitalassistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In this embodiment of the present invention, the mobile terminal that performs the above steps may be a mobile phone, a tablet computer (TabletPersonal Computer), a laptop computer (Laptop Computer), a personal digital assistant (PDA for short), a mobile Internet Device (Mobile Internet Device) , MID) or wearable device (Wearable Device), etc.
本发明实施例的移动终端电量显示的方法,获取移动终端的目标电池容量值和移动终端消耗的电量值,根据目标电池容量值和消耗的电量值,确定第一电量值;确定移动终端的开路电压,根据开路电压,查找预设的电池老化参数表,得到在当前温度下开路电压对应的第二电量值;根据第一电量值和第二电量值确定目标电量值,并显示目标电量值。这样,通过预设的电池老化参数表查找得到相应的电量值,并根据查找得到的电量值对实际电量进行校准,提高了移动终端电量显示的准确性。The method for displaying the power of the mobile terminal according to the embodiment of the present invention obtains the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal, determines the first power value according to the target battery capacity value and the power consumption value, and determines the open circuit of the mobile terminal. voltage, according to the open-circuit voltage, look up the preset battery aging parameter table to obtain the second power value corresponding to the open-circuit voltage at the current temperature; determine the target power value according to the first power value and the second power value, and display the target power value. In this way, the corresponding electric quantity value is obtained by searching through the preset battery aging parameter table, and the actual electric quantity is calibrated according to the electric quantity value obtained by searching, which improves the accuracy of the electric quantity display of the mobile terminal.
第二实施例Second Embodiment
参见图2,图2是本发明实施例提供的另一种移动终端电量显示的方法的流程示意图,如图2所示,包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart of another method for displaying battery power of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
步骤201、获取移动终端的目标电池容量值和移动终端消耗的电量值,根据目标电池容量值和消耗的电量值,确定第一电量值;确定移动终端的开路电压,根据开路电压,查找预设的电池老化参数表,得到在当前温度下开路电压对应的第二电量值。Step 201: Obtain the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal, and determine the first power value according to the target battery capacity value and the power consumption value; determine the open-circuit voltage of the mobile terminal, and search for a preset value according to the open-circuit voltage. The battery aging parameter table is obtained from the battery aging parameter table, and the second power value corresponding to the open circuit voltage at the current temperature is obtained.
该步骤中,上述目标电池容量值是根据理论电池容量值和电量计装置检测的电池容量值计算得到的,该计算的过程可以是取两者的较小电池容量值或取两者的平均电池容量值作为在此的目标电池容量值。In this step, the above-mentioned target battery capacity value is calculated according to the theoretical battery capacity value and the battery capacity value detected by the fuel gauge device. The calculation process may be to take the smaller battery capacity value of the two or the average battery capacity value of the two The capacity value serves as the target battery capacity value here.
其中,理论电池容量值可以是通过查询电池出厂时预置的电池老化参数表确定。电池老化参数表为移动终端出厂前对移动终端电池进行老化测试得到的参数表,该电池老化参数表可以包括温度、电池容量值、放电深度(电池在使用的过程中,电池放出的容量占额定容量的百分比)、剩余电量值、电池开路电压(电池不放电开路时电池两极之间的电位差)等参数信息,这些参数信息形成一个相互对应的参数表;电量计装置检测的电池容量值可以是根据电量计库伦积分得到的电池容量值。上述移动终端消耗的电量值为移动终端使用时消耗的电量总值,可以利用电流库伦电流积分计算得到,也可以通过移动终端的电量计装置如电量计芯片检测得到。The theoretical battery capacity value may be determined by querying the battery aging parameter table preset when the battery leaves the factory. The battery aging parameter table is the parameter table obtained by the aging test of the mobile terminal battery before the mobile terminal leaves the factory. Parameter information such as the percentage of capacity), remaining power value, battery open circuit voltage (potential difference between the two poles of the battery when the battery is not discharged and open circuit), these parameter information form a corresponding parameter table; the battery capacity value detected by the fuel gauge device can be is the battery capacity value obtained according to the coulomb integral of the fuel gauge. The above-mentioned power consumption value of the mobile terminal is the total power consumption when the mobile terminal is used, which can be calculated by using the current Coulomb current integral, or can be detected by a power meter device such as a power meter chip of the mobile terminal.
上述第一电量值为移动终端当前剩下的电量值占目标电池容量值的百分比,其确定的过程可以是将目标电池容量值减去移动终端消耗的电量值得到一差值,该差值为移动终端当前剩下的电量值,然后将该差值与目标电池容量值的比值确定为第一电量值。例如,目标电池容量值为1000毫安,移动终端消耗的电池容量值为100毫安,则可以计算得到第一电量值为90%。The above-mentioned first power value is the percentage of the current remaining power value of the mobile terminal to the target battery capacity value, and the determination process may be to subtract the target battery capacity value from the power value consumed by the mobile terminal to obtain a difference value, and the difference value is: The current remaining power value of the mobile terminal, and then the ratio of the difference to the target battery capacity value is determined as the first power value. For example, if the target battery capacity value is 1000 mA, and the battery capacity value consumed by the mobile terminal is 100 mA, the first power value can be calculated to be 90%.
该实施方式中,通过理论电池容量值和电量计装置检测的电池容量值确定目标电池容量值,增加了理论电池容量值的一个校准的过程,提高电量计装置损坏或检测有误时目标电池容量值的准确性。In this embodiment, the target battery capacity value is determined by the theoretical battery capacity value and the battery capacity value detected by the fuel gauge device, a calibration process of the theoretical battery capacity value is added, and the target battery capacity is improved when the fuel gauge device is damaged or detected incorrectly. accuracy of the value.
上述开路电压为电池不放电开路时电池两极之间的电位差,其确定的过程可以是通过电量计装置检测得到。或者,检测移动终端的负载电压,然后通过I(电流强度,currentintensity)R(电阻,Resistor)补偿求得开路电压,即将负载电流与预设的电池内阻的乘积作为消耗电压,并将负载电压与消耗电压之和作为开路电压。该实施方式中,一方面可以通过IR补偿的方式确定开路电压,弥补了移动终端没有电量计装置或者电量计装置检测有误的情形下确定开路电压的不足;另一方面可以根据得到的2个开路电压进行校准,如取上述开路电压的平均值,提高开路电压确定的准确性。The above-mentioned open-circuit voltage is the potential difference between the two poles of the battery when the battery is not discharged and open-circuited. Alternatively, the load voltage of the mobile terminal is detected, and then the open circuit voltage is obtained through I (current intensity, currentintensity) R (resistor, Resistor) compensation, that is, the product of the load current and the preset internal resistance of the battery is taken as the consumption voltage, and the load voltage The sum of the consumption voltage is regarded as the open circuit voltage. In this embodiment, on the one hand, the open-circuit voltage can be determined by means of IR compensation, which makes up for the shortage of determining the open-circuit voltage when the mobile terminal does not have a fuel gauge device or the fuel gauge device detects incorrectly; The open-circuit voltage is calibrated, such as taking the average value of the above-mentioned open-circuit voltages to improve the accuracy of the determination of the open-circuit voltage.
预设的电池老化参数表为移动终端出厂前对移动终端电池进行老化测试得到的参数表,该电池老化参数表可以包括温度、电池容量值、放电深度、剩余电量值、电池开路电压等参数信息,这些参数信息形成一个相互对应的参数表。查询电池老化参数表可以获得当前温度下开路电压对应的第二电池容量值,其中,电池老化参数表中的每个开路电压都有一电池容量值与其对应。The preset battery aging parameter table is a parameter table obtained by the aging test of the mobile terminal battery before the mobile terminal leaves the factory. The battery aging parameter table may include parameter information such as temperature, battery capacity value, depth of discharge, remaining power value, and battery open-circuit voltage. , and these parameter information form a corresponding parameter table. The second battery capacity value corresponding to the open circuit voltage at the current temperature can be obtained by querying the battery aging parameter table, wherein each open circuit voltage in the battery aging parameter table has a corresponding battery capacity value.
可选的,获取移动终端的目标电池容量值的步骤,包括:Optionally, the step of acquiring the target battery capacity value of the mobile terminal includes:
获取移动终端的充放电周期次数;查找电池老化参数表,得到充放电周期次数在当前温度下对应的第一电池容量值;检测移动终端的第二电池容量值;将第一电池容量值与第二电池容量值中较小的一电池容量值作为目标电池容量值;或者将第一电池容量值与第二电池容量值的平均电池容量值作为目标电池容量值。Obtain the number of charge and discharge cycles of the mobile terminal; look up the battery aging parameter table to obtain the first battery capacity value corresponding to the number of charge and discharge cycles at the current temperature; detect the second battery capacity value of the mobile terminal; compare the first battery capacity value with the first battery capacity value The smaller one of the two battery capacity values is used as the target battery capacity value; or the average battery capacity value of the first battery capacity value and the second battery capacity value is used as the target battery capacity value.
该实施方式中,移动终端的充放电周期次数可以是移动终端在运行的过程中实时记录,移动终端电池充满电,然后放完电表示一个充放电周期;其中,根据电池的属性,电池的充放电周期次数越多,其电池容量会逐渐变小。根据电池老化参数表查找得到第一电池容量值,然后通过电量计装置的电流库伦积分得到第二电池容量值。该实施过程中,通过第一电池容量和第二电池容量值进行校准,提高目标电池容量值的准确性。In this embodiment, the number of charging and discharging cycles of the mobile terminal may be recorded in real time during the operation of the mobile terminal. The battery of the mobile terminal is fully charged and then fully discharged to represent a charging and discharging cycle; The more the number of discharge cycles, the smaller the battery capacity. The first battery capacity value is obtained by searching according to the battery aging parameter table, and then the second battery capacity value is obtained through the current coulomb integration of the fuel gauge device. In this implementation process, the first battery capacity and the second battery capacity value are calibrated to improve the accuracy of the target battery capacity value.
可选的,确定移动终端的开路电压的步骤,包括:Optionally, the step of determining the open circuit voltage of the mobile terminal includes:
利用电量计装置检测移动终端的开路电压;或者,检测移动终端的负载电压和负载电流;将负载电流与预设的电池内阻的乘积作为消耗电压,并将负载电压与消耗电压之和作为开路电压。Use the fuel gauge device to detect the open circuit voltage of the mobile terminal; or, detect the load voltage and load current of the mobile terminal; take the product of the load current and the preset internal resistance of the battery as the consumption voltage, and take the sum of the load voltage and the consumption voltage as the open circuit Voltage.
该实施方式中,检测移动终端的负载电压,然后通过IR补偿求得开路电压,即将负载电流与预设的电池内阻的乘积作为消耗电压,并将负载电压与消耗电压之和作为开路电压。其中,I为负载电流,R为电池内阻。该实施方式中,一方面可以通过IR补偿的方式确定开路电压,弥补了移动终端没有电量计装置或者电量计装置检测有误的情形下确定开路电压的不足;另一方面可以根据得到的2个开路电压进行校准,如取上述开路电压的平均值,提高开路电压确定的准确性。In this embodiment, the load voltage of the mobile terminal is detected, and then the open circuit voltage is obtained through IR compensation. Among them, I is the load current, and R is the internal resistance of the battery. In this embodiment, on the one hand, the open-circuit voltage can be determined by means of IR compensation, which makes up for the shortage of determining the open-circuit voltage when the mobile terminal does not have a fuel gauge device or the fuel gauge device detects incorrectly; The open-circuit voltage is calibrated, such as taking the average value of the above-mentioned open-circuit voltages to improve the accuracy of the determination of the open-circuit voltage.
步骤202、判断第一电量值是否小于或者等于第二电量值。Step 202: Determine whether the first power value is less than or equal to the second power value.
该步骤中,通过对第一电量值和第二电量值大小进行判断,并输出相应的判断结果以提供后续步骤中确定目标电量值。In this step, by judging the magnitude of the first electric quantity value and the second electric quantity value, and outputting the corresponding judgment result to provide the target electric quantity value determined in the subsequent steps.
步骤203、若第一电量值小于或者等于第二电量值,将第一电量值作为目标电量值,并显示目标电量。Step 203: If the first power value is less than or equal to the second power value, the first power value is taken as the target power value, and the target power value is displayed.
该步骤中,若步骤202的判断结果为第一电量值小于或者等于第二电量值,直接将第一电量值作为目标电量值进行显示。这样,就可以避免环境温度低时移动终端自动关机的情形,增加了用户的体验。In this step, if the determination result in step 202 is that the first power value is less than or equal to the second power value, the first power value is directly displayed as the target power value. In this way, the situation in which the mobile terminal is automatically shut down when the ambient temperature is low can be avoided, thereby increasing the user experience.
步骤204、若步骤202的判断结果为第一电量值大于第二电量值,计算第一电量值与第二电量值的差值;根据差值对第一电量值进行校准,利用校准后的电量值作为目标电量值,并显示目标电量。Step 204: If the judgment result in step 202 is that the first power value is greater than the second power value, calculate the difference between the first power value and the second power value; calibrate the first power value according to the difference, and use the calibrated power value value as the target power value and display the target power.
该实施方式中,基于第一电量值与第二电量值的差值对第一电量值进行校准,其中,校准的过程可以是根据差值确定的电量校准速度进行校准,电量校准速度参见第一实施例中的说明。这样,当移动终端的显示电量值大于理论电量值(第二电量值)时,对电量值进行平滑处理,提高电量显示的准确性。In this embodiment, the first power value is calibrated based on the difference between the first power value and the second power value. The calibration process may be to perform calibration according to the power calibration speed determined by the difference. Description in the Examples. In this way, when the displayed power value of the mobile terminal is greater than the theoretical power value (the second power value), the power value is smoothed to improve the accuracy of power display.
可选的,根据差值对第一电量进行校准,利用校准后的电量作为目标电量值的步骤,包括:Optionally, the steps of calibrating the first electric quantity according to the difference value and using the calibrated electric quantity as the target electric quantity value include:
根据预设的差值与电量校准速度的对应关系,确定差值对应的电量校准速度;基于差值对应的电量校准速度对第一电量值进行校准,利用校准后的电量值作为目标电量值。Determine the power calibration speed corresponding to the difference according to the corresponding relationship between the preset difference and the power calibration speed; calibrate the first power value based on the power calibration speed corresponding to the difference, and use the calibrated power value as the target power value.
该实施方式中,差值与电量校准速度的对应关系是预先设置好的,其对已关系可以是正相关如差值越大,所对应的电量校准速度越快。例如,第一电量值为70%,第二电量值为50%,其差值为20%,所对应的电量校准速度可以是1%每秒,这样,20秒后就可以完成校准过程,以得到更加准确的电量值。也可以是负相关的对应关系即差值越大,所对应的电量校准速度越小,具体可以根据实际情况进行设置。In this embodiment, the corresponding relationship between the difference value and the power calibration speed is preset, and the relationship to the current value may be a positive correlation. For example, the larger the difference, the faster the corresponding power calibration speed. For example, if the first power value is 70%, the second power value is 50%, and the difference is 20%, the corresponding power calibration speed can be 1% per second. In this way, the calibration process can be completed after 20 seconds. Get a more accurate power value. It can also be a negative correlation corresponding relationship, that is, the larger the difference, the smaller the corresponding power calibration speed, which can be set according to the actual situation.
本发明实施例的移动终端电量显示的方法,基于预设的电池老化参数表查找得到相应的电量值,并根据查找得到的电量值对实际电量值进行平滑校准,以逐渐接近实际电量值。从而提高了移动终端电量显示的准确性。The method for displaying the power of a mobile terminal according to the embodiment of the present invention obtains a corresponding power value based on a preset battery aging parameter table, and performs smooth calibration on the actual power value according to the searched power value to gradually approach the actual power value. Thus, the accuracy of the power display of the mobile terminal is improved.
第三实施例Third Embodiment
参见图3,图3是本发明实施例提供的一种移动终端300,如图3所示,移动终端300包括:Referring to FIG. 3, FIG. 3 is a mobile terminal 300 provided by an embodiment of the present invention. As shown in FIG. 3, the mobile terminal 300 includes:
获取模块301,用于获取移动终端的目标电池容量值和移动终端消耗的电量值,根据目标电池容量值和消耗的电量值,确定第一电量值;确定移动终端的开路电压,根据开路电压,查找预设的电池老化参数表,得到在当前温度下开路电压对应的第二电量值;The obtaining module 301 is used to obtain the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal, and determine the first power value according to the target battery capacity value and the power consumption value; determine the open-circuit voltage of the mobile terminal, and according to the open-circuit voltage, Find the preset battery aging parameter table to obtain the second power value corresponding to the open circuit voltage at the current temperature;
处理模块302,用于根据获取模块301获取的第一电量值和获取模块301获取的第二电量值确定目标电量值,并显示目标电量值。The processing module 302 is configured to determine a target power value according to the first power value obtained by the obtaining module 301 and the second power value obtained by the obtaining module 301, and display the target power value.
可选的,如图4所示,处理模块302包括:Optionally, as shown in FIG. 4 , the processing module 302 includes:
第一判断子模块3021,用于判断第一电量值是否小于或者等于查找模块获得的第二电量值;The first judgment sub-module 3021 is used to judge whether the first electric quantity value is less than or equal to the second electric quantity value obtained by the search module;
第一确定子模块3022,用于第一判断子模块3021判断第一电量值小于或者等于的第二电量值,将第一电量值作为目标电量值。The first determination sub-module 3022 is used for the first determination sub-module 3021 to determine that the first electric power value is less than or equal to the second electric power value, and use the first electric power value as the target electric power value.
可选的,如图5所示,处理模块302包括:Optionally, as shown in FIG. 5 , the processing module 302 includes:
第二判断子模块3023,用于判断第一电量值是否小于或者等于第二电量值;The second judgment sub-module 3023 is used for judging whether the first electric quantity value is less than or equal to the second electric quantity value;
计算子模块3024,用于第二判断子模块判断第一电量值大于第二电量值,计算第一电量值与第二电量值的差值;The calculation sub-module 3024 is used for the second judgment sub-module to judge that the first power value is greater than the second power value, and calculate the difference between the first power value and the second power value;
校准子模块3025,用于根据计算子模块计算的差值对第一电量值进行校准,利用校准后的电量值作为目标电量值。The calibration sub-module 3025 is configured to calibrate the first electric power value according to the difference calculated by the calculation sub-module, and use the calibrated electric power value as the target electric power value.
可选的,如图6所示,校准子模块3025包括:Optionally, as shown in Figure 6, the calibration sub-module 3025 includes:
第一确定单元30251,用于根据预设的差值与电量校准速度的对应关系,确定差值对应的电量校准速度;The first determining unit 30251 is configured to determine the power calibration speed corresponding to the difference according to the preset corresponding relationship between the difference and the power calibration speed;
校准单元30252,用于基于第一确定单元30251确定的差值对应的电量校准速度对第一电量值进行校准,利用校准后的电量值作为目标电量值。The calibration unit 30252 is configured to calibrate the first electric power value based on the electric power calibration speed corresponding to the difference determined by the first determining unit 30251, and use the calibrated electric power value as the target electric power value.
可选的,如图7所示,获取模块301包括第一获取子模块3011和第二获取子模块3012;第一获取子模块3011,用于获取移动终端的目标电池容量值和移动终端消耗的电量值,根据目标电池容量值和消耗的电量值,确定第一电量值;第二获取子模块3012,用于确定移动终端的开路电压,根据开路电压,查找预设的电池老化参数表,得到在当前温度下开路电压对应的第二电量值。Optionally, as shown in FIG. 7 , the acquisition module 301 includes a first acquisition sub-module 3011 and a second acquisition sub-module 3012; the first acquisition sub-module 3011 is used to acquire the target battery capacity value of the mobile terminal and the power consumption of the mobile terminal. The power value, according to the target battery capacity value and the power consumption value, to determine the first power value; the second acquisition sub-module 3012 is used to determine the open-circuit voltage of the mobile terminal, and according to the open-circuit voltage, look up the preset battery aging parameter table, and obtain The second power value corresponding to the open circuit voltage at the current temperature.
可选的,第二获取子模块3012在确定所述移动终端的开路电压时,具体用于利用电量计装置检测移动终端的开路电压;或者,Optionally, when determining the open-circuit voltage of the mobile terminal, the second obtaining sub-module 3012 is specifically configured to detect the open-circuit voltage of the mobile terminal by using a fuel gauge device; or,
第二获取子模块3012在确定所述移动终端的开路电压时,具体用于检测移动终端的负载电压和负载电流;将负载电流与预设的电池内阻的乘积作为消耗电压,并将负载电压与消耗电压之和作为开路电压。When determining the open-circuit voltage of the mobile terminal, the second obtaining sub-module 3012 is specifically used to detect the load voltage and load current of the mobile terminal; the product of the load current and the preset battery internal resistance is taken as the consumption voltage, and the load voltage The sum of the consumption voltage is regarded as the open circuit voltage.
可选的,如图8所示,第一获取子模块3011包括:Optionally, as shown in FIG. 8 , the first acquisition sub-module 3011 includes:
获取单元30111,用于获取移动终端的充放电周期次数;The obtaining unit 30111 is used to obtain the number of charging and discharging cycles of the mobile terminal;
查找单元30112,用于查找电池老化参数表,得到获取单元30111获取的充放电周期次数在当前温度下对应的第一电池容量值;The search unit 30112 is used to search the battery aging parameter table to obtain the first battery capacity value corresponding to the number of charge and discharge cycles obtained by the obtaining unit 30111 at the current temperature;
检测单元30113,用于检测移动终端的第二电池容量值;The detection unit 30113 is used to detect the second battery capacity value of the mobile terminal;
第二确定单元30114,用于将查找单元30112得到的第一电池容量值与检测单元30113检测的第二电池容量值中较小的一电池容量值作为目标电池容量值;或者将查找单元30112得到的第一电池容量值与检测单元30113检测的第二电池容量值的平均电池容量值作为目标电池容量值。The second determination unit 30114 is configured to use the smaller one of the first battery capacity value obtained by the search unit 30112 and the second battery capacity value detected by the detection unit 30113 as the target battery capacity value; or use the search unit 30112 to obtain the smaller battery capacity value The average battery capacity value of the first battery capacity value detected by the detection unit 30113 and the second battery capacity value detected by the detection unit 30113 is taken as the target battery capacity value.
移动终端300能够实现图1和图2的方法实施例中电量显示实现的各个过程,为避免重复,这里不再赘述。且移动终端300可以增加移动终端的电量显示的准确性。The mobile terminal 300 can implement each process of the power display implementation in the method embodiments of FIG. 1 and FIG. 2 , and in order to avoid repetition, details are not described here. And the mobile terminal 300 can increase the accuracy of the power display of the mobile terminal.
第四实施例Fourth Embodiment
参见图9,图9是本发明实施提供的一种移动终端的结构图,如图9所示,移动终端900包括:至少一个处理器901、存储器902、至少一个网络接口904和用户接口903。移动终端900中的各个组件通过总线系统905耦合在一起。可理解,总线系统905用于实现这些组件之间的连接通信。总线系统905除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图9中将各种总线都标为总线系统905,其中,用户接口903可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(track ball)、触感板或者触摸屏等。Referring to FIG. 9, FIG. 9 is a structural diagram of a mobile terminal provided by the implementation of the present invention. As shown in FIG. 9, the mobile terminal 900 includes: at least one processor 901, memory 902, at least one network interface 904 and user interface 903. The various components in the mobile terminal 900 are coupled together by a bus system 905 . It can be understood that the bus system 905 is used to implement the connection communication between these components. In addition to the data bus, the bus system 905 also includes a power bus, a control bus and a status signal bus. For clarity, however, the various buses are labeled in FIG. 9 as bus system 905, where user interface 903 may include a display, a keyboard, or a pointing device (eg, a mouse, track ball, touch pad, or touch screen) Wait.
可以理解,本发明实施例中的存储器902可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器902旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 902 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 902 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器902存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统9021和应用程序9022。In some embodiments, memory 902 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set of them: an operating system 9021 and applications 9022.
其中,操作系统9021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序9022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序9022中。The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 9022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program 9022 .
在本发明实施例中,通过调用存储器902存储的程序或指令,具体的,可以是应用程序9022中存储的程序或指令,处理器901用于:In this embodiment of the present invention, by calling the program or instruction stored in the memory 902, specifically, the program or instruction stored in the application program 9022, the processor 901 is configured to:
获取移动终端的目标电池容量值和移动终端消耗的电量值,根据目标电池容量值和消耗的电量值,确定第一电量值;确定移动终端的开路电压,根据开路电压,查找预设的电池老化参数表,得到在当前温度下开路电压对应的第二电量值;Obtain the target battery capacity value of the mobile terminal and the power value consumed by the mobile terminal, and determine the first power value according to the target battery capacity value and the power consumption value; determine the open-circuit voltage of the mobile terminal, and search for a preset battery aging according to the open-circuit voltage The parameter table is used to obtain the second power value corresponding to the open circuit voltage at the current temperature;
根据第一电量值和第二电量值确定目标电量值,并显示目标电量值。The target power value is determined according to the first power value and the second power value, and the target power value is displayed.
上述本发明实施例揭示的方法可以应用于处理器901中,或者由处理器901实现。处理器901可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器901中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器901可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器902,处理器901读取存储器902中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 901 or implemented by the processor 901 . The processor 901 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 901 or an instruction in the form of software. The above-mentioned processor 901 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other possible Programming logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processing (DSP), Digital Signal Processing Device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions of the present application or its in combination.
对于软件实现,可通过执行本文功能的模块(例如过程、函数等)来实现本文的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques herein may be implemented through modules (eg, procedures, functions, etc.) that perform the functions herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
可选的,处理器901执行根据第一电量值和第二电量值确定目标电量值的步骤,包括:Optionally, the processor 901 performs the step of determining the target power value according to the first power value and the second power value, including:
判断第一电量值是否小于或者等于第二电量值;Determine whether the first power value is less than or equal to the second power value;
若第一电量值小于或者等于第二电量值,将第一电量值作为目标电量值。If the first power value is less than or equal to the second power value, the first power value is used as the target power value.
可选的,处理器901执行根据第一电量值和第二电量值确定目标电量值的步骤,包括:Optionally, the processor 901 performs the step of determining the target power value according to the first power value and the second power value, including:
判断第一电量值是否小于或者等于第二电量值;Determine whether the first power value is less than or equal to the second power value;
若第一电量值大于第二电量值,计算第一电量值与第二电量值的差值;If the first power value is greater than the second power value, calculating the difference between the first power value and the second power value;
根据差值对第一电量值进行校准,利用校准后的电量值作为目标电量值。The first electric quantity value is calibrated according to the difference value, and the calibrated electric quantity value is used as the target electric quantity value.
可选的,处理器901执行根据差值对第一电量进行校准,利用校准后的电量作为目标电量值的步骤,包括:Optionally, the processor 901 performs the step of calibrating the first electric quantity according to the difference value and using the calibrated electric quantity as the target electric quantity value, including:
根据预设的差值与电量校准速度的对应关系,确定差值对应的电量校准速度;Determine the power calibration speed corresponding to the difference according to the corresponding relationship between the preset difference and the power calibration speed;
基于差值对应的电量校准速度对第一电量值进行校准,利用校准后的电量值作为目标电量值。The first electric quantity value is calibrated based on the electric quantity calibration speed corresponding to the difference value, and the calibrated electric quantity value is used as the target electric quantity value.
可选的,处理器901执行确定移动终端的开路电压的步骤,包括:Optionally, the processor 901 performs the step of determining the open circuit voltage of the mobile terminal, including:
利用电量计装置检测移动终端的开路电压;或者,Use a fuel gauge device to detect the open circuit voltage of the mobile terminal; or,
检测移动终端的负载电压和负载电流;将负载电流与预设的电池内阻的乘积作为消耗电压,并将负载电压与消耗电压之和作为开路电压。Detect the load voltage and load current of the mobile terminal; take the product of the load current and the preset internal resistance of the battery as the consumption voltage, and take the sum of the load voltage and the consumption voltage as the open circuit voltage.
可选的,处理器901执行获取移动终端的目标电池容量值的步骤,包括:Optionally, the processor 901 performs the step of acquiring the target battery capacity value of the mobile terminal, including:
获取移动终端的充放电周期次数;Obtain the number of charge and discharge cycles of the mobile terminal;
查找电池老化参数表,得到充放电周期次数在当前温度下对应的第一电池容量值;Search the battery aging parameter table to obtain the first battery capacity value corresponding to the number of charge and discharge cycles at the current temperature;
检测移动终端的第二电池容量值;detecting the second battery capacity value of the mobile terminal;
将第一电池容量值与第二电池容量值中较小的一电池容量值作为目标电池容量值;或者将第一电池容量值与第二电池容量值的平均电池容量值作为目标电池容量值。The smaller one of the first battery capacity value and the second battery capacity value is used as the target battery capacity value; or the average battery capacity value of the first battery capacity value and the second battery capacity value is used as the target battery capacity value.
移动终端900能够实现前述实施例中移动终端电量显示的各个过程,为避免重复,这里不再赘述。且移动终端900增加移动终端电量显示的准确性。The mobile terminal 900 can implement the various processes of the power display of the mobile terminal in the foregoing embodiments, which are not repeated here to avoid repetition. And the mobile terminal 900 increases the accuracy of the power display of the mobile terminal.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions in the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. 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 the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710107447.2A CN106603874B (en) | 2017-02-27 | 2017-02-27 | A kind of method that mobile terminal electricity is shown and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710107447.2A CN106603874B (en) | 2017-02-27 | 2017-02-27 | A kind of method that mobile terminal electricity is shown and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106603874A CN106603874A (en) | 2017-04-26 |
CN106603874B true CN106603874B (en) | 2019-03-05 |
Family
ID=58587942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710107447.2A Active CN106603874B (en) | 2017-02-27 | 2017-02-27 | A kind of method that mobile terminal electricity is shown and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106603874B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107436418B (en) * | 2017-06-15 | 2020-05-19 | 捷开通讯(深圳)有限公司 | Method, terminal and device for calibrating electric quantity attenuation of battery |
CN107153165A (en) * | 2017-07-11 | 2017-09-12 | 珠海市魅族科技有限公司 | Battery capacity metering method and device, computer installation and storage medium |
CN107425568B (en) * | 2017-07-27 | 2020-03-31 | Oppo广东移动通信有限公司 | Method and device for preventing over-discharge of battery, mobile terminal and storage medium |
CN107249085B (en) * | 2017-07-28 | 2020-11-27 | 泾县谷声信息科技有限公司 | Mobile terminal electric quantity display method, mobile terminal and computer readable storage medium |
CN108594121B (en) * | 2018-01-12 | 2021-09-07 | 北京新能源汽车股份有限公司 | Battery performance parameter obtaining method and device |
CN108802619A (en) * | 2018-04-16 | 2018-11-13 | Oppo广东移动通信有限公司 | Information processing method, device, mobile terminal and computer readable storage medium |
TWI739344B (en) | 2020-03-13 | 2021-09-11 | 低碳動能開發股份有限公司 | Secondary battery detection and communication device and method for uninterruptible power system |
CN112834935A (en) * | 2020-12-31 | 2021-05-25 | 东软睿驰汽车技术(沈阳)有限公司 | Method and device for obtaining open circuit voltage of battery cell |
CN114200325B (en) * | 2021-11-05 | 2024-02-20 | 深圳优地智能有限公司 | Battery electric quantity calibration method, control device of robot and robot |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1810058A (en) * | 2003-07-02 | 2006-07-26 | 维夫康姆公司 | Method for estimating the remaining working life of a battery for a radiocommunication device |
US7671566B2 (en) * | 2006-11-21 | 2010-03-02 | Qisda Corporation | Method for predicting remaining capacity of a battery |
CN102262216A (en) * | 2010-05-29 | 2011-11-30 | 比亚迪股份有限公司 | Electric quantity detection method for chargeable battery and apparatus thereof |
CN102298118A (en) * | 2011-05-17 | 2011-12-28 | 杭州电子科技大学 | On-line synchronous estimating method for model parameters and remaining power of battery |
CN103901344A (en) * | 2012-12-24 | 2014-07-02 | 财团法人金属工业研究发展中心 | Residual battery capacity estimation system and estimation method thereof |
CN104166097A (en) * | 2013-05-17 | 2014-11-26 | 力智电子股份有限公司 | How to measure battery power |
CN104360285A (en) * | 2014-11-28 | 2015-02-18 | 山东鲁能智能技术有限公司 | Battery capacity correction method based on improved ampere-hour integral method |
CN105866688A (en) * | 2015-12-30 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method of measuring mobile communication terminal equipment cell capacity and system thereof |
-
2017
- 2017-02-27 CN CN201710107447.2A patent/CN106603874B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1810058A (en) * | 2003-07-02 | 2006-07-26 | 维夫康姆公司 | Method for estimating the remaining working life of a battery for a radiocommunication device |
US7671566B2 (en) * | 2006-11-21 | 2010-03-02 | Qisda Corporation | Method for predicting remaining capacity of a battery |
CN102262216A (en) * | 2010-05-29 | 2011-11-30 | 比亚迪股份有限公司 | Electric quantity detection method for chargeable battery and apparatus thereof |
CN102298118A (en) * | 2011-05-17 | 2011-12-28 | 杭州电子科技大学 | On-line synchronous estimating method for model parameters and remaining power of battery |
CN103901344A (en) * | 2012-12-24 | 2014-07-02 | 财团法人金属工业研究发展中心 | Residual battery capacity estimation system and estimation method thereof |
CN104166097A (en) * | 2013-05-17 | 2014-11-26 | 力智电子股份有限公司 | How to measure battery power |
CN104360285A (en) * | 2014-11-28 | 2015-02-18 | 山东鲁能智能技术有限公司 | Battery capacity correction method based on improved ampere-hour integral method |
CN105866688A (en) * | 2015-12-30 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method of measuring mobile communication terminal equipment cell capacity and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106603874A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106603874B (en) | A kind of method that mobile terminal electricity is shown and mobile terminal | |
WO2019144646A1 (en) | Battery power-level status estimation method, apparatus, and electronic device | |
CN105759209A (en) | battery electric quantity estimation method and device | |
CN111384757A (en) | Charging method, device, equipment and storage medium | |
CN110729790A (en) | Charging method and device, computer equipment and storage medium | |
TW201133985A (en) | Predicting method of remaining capacity and remaining run-time of a battery device | |
CN107608863A (en) | The calibration method and mobile terminal that a kind of electricity is shown | |
CN110888065B (en) | Battery pack state of charge correction method and device | |
CN112051504A (en) | Method and device for predicting battery capacity, terminal and computer-readable storage medium | |
CN113009360A (en) | Lithium battery SOC-OCV testing method and device and terminal equipment | |
CN110646738A (en) | Power battery SOC obtaining method and system and related components | |
CN116643193B (en) | Battery data estimation method and device, storage medium and electronic equipment | |
CN103942133A (en) | Information processing method and electronic equipment | |
CN115015773A (en) | Method and apparatus for estimating battery state | |
CN114137415A (en) | Method and device for detecting calorific value of battery pack, vehicle, and storage medium | |
CN110994052B (en) | Method and device for prolonging battery endurance, storage medium and terminal equipment | |
WO2025043869A1 (en) | Method and apparatus for testing aging performance of supercapacitor, device and storage medium | |
CN117169742A (en) | Method, device, equipment and storage medium for calculating actual capacity of battery | |
CN109342966A (en) | Remaining battery life determination method, device, computer equipment and storage medium | |
CN113933722A (en) | Method, device, device and storage medium for correcting misjudgment of battery power SOC | |
CN114441848A (en) | Power consumption determination method and device, electronic equipment and storage medium | |
WO2021018233A1 (en) | Charging method and apparatus, electronic device and storage medium | |
CN106772092A (en) | Charging current based on acquisition for mobile terminal cell voltage sets system and method | |
CN118671626B (en) | Battery electric quantity detection method and device of portable WIFI, electronic equipment and readable storage medium | |
CN111103453B (en) | Method, device, computer equipment and storage medium for determining internal short-circuit current |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |