WO2011109985A1 - Battery capacity measuring method for mobile phone and apparatus thereof - Google Patents
Battery capacity measuring method for mobile phone and apparatus thereof Download PDFInfo
- Publication number
- WO2011109985A1 WO2011109985A1 PCT/CN2010/075409 CN2010075409W WO2011109985A1 WO 2011109985 A1 WO2011109985 A1 WO 2011109985A1 CN 2010075409 W CN2010075409 W CN 2010075409W WO 2011109985 A1 WO2011109985 A1 WO 2011109985A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- voltage
- mobile phone
- compensation value
- battery
- measuring
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/382—Arrangements for monitoring battery or accumulator variables, e.g. SoC
- G01R31/3835—Arrangements for monitoring battery or accumulator variables, e.g. SoC involving only voltage measurements
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/367—Software therefor, e.g. for battery testing using modelling or look-up tables
Definitions
- the present invention relates to the field of communications, and in particular, to a method and apparatus for measuring battery power of a mobile phone.
- BACKGROUND With the rapid development of communication technologies, mobile phones have gradually developed into integrated electronic products that integrate various functions such as talking, playing music, video, taking pictures, camera, and surfing the Internet. At present, most mobile phones use lithium-ion batteries for power supply, and the increase in the functions of mobile phones makes the output current in various application scenarios more complicated. Usually, when the mobile phone is operating with a large current such as talking, recording, and playing MP3, the battery voltage will change with the fluctuation of the output current.
- the general change rule is: The output voltage is 3 ⁇ 43 ⁇ 4, the output voltage is ⁇ , and the output power is: 3 ⁇ 4 ⁇
- the output voltage is slightly larger.
- the method of measuring the battery power is: measuring the battery voltage in real time, the relationship between the preset voltage and the electric quantity determines the current battery power, and displays the current battery power to the user through the mobile phone display.
- the mobile phone is performing various functions (ie, entering various application scenarios requiring a large current) under the same power amount.
- a primary object of the present invention is to provide a solution for measuring the battery power of a mobile phone to at least solve the above problems.
- a method of measuring a battery level of a mobile phone is provided.
- the method for measuring the battery power of a mobile phone includes: measuring a voltage of a mobile phone battery; According to the application scenario and the use phase of the mobile phone when measuring the voltage, the voltage compensation value is obtained; the voltage compensation value is used, the voltage is compensated; and the power of the mobile phone battery is determined according to the compensated voltage. Further, according to the application scenario and the use phase of the mobile phone when measuring the voltage, obtaining the voltage compensation value includes: pre-measuring the voltage fluctuation of the mobile phone battery in the application scenario and the use phase; and determining the voltage fluctuation as the voltage according to the application scenario and the use phase. Compensation value. Further, using the voltage compensation value, the compensation voltage includes: adding the voltage compensation value and the voltage to obtain the compensated voltage.
- the compensation voltage includes: obtaining a usage time of the mobile phone battery; adjusting the voltage compensation value by using a first adjustment ratio corresponding to the usage time; and adding the adjusted voltage compensation value and the voltage to obtain compensation After the voltage.
- the compensation voltage includes: obtaining a voltage value of the mobile phone battery before the mobile phone enters the application scenario; adjusting the voltage compensation value by using a second adjustment ratio corresponding to the voltage value; and adjusting the voltage compensation value and the voltage The addition is performed to obtain the compensated voltage.
- measuring the voltage of the mobile phone battery comprises: measuring the voltage of the mobile phone battery multiple times to obtain a plurality of voltage measurement values; calculating an average value of the plurality of voltage measurement values to obtain a voltage of the collection battery. Further, before calculating the average of the plurality of voltage measurement values, the method further includes: excluding abnormal voltage measurement values of the plurality of voltage measurement values.
- an apparatus for measuring a battery level of a mobile phone is provided.
- the device for measuring the battery power of the mobile phone comprises: a measuring module, configured to measure a voltage of the battery of the mobile phone; an obtaining module, configured to acquire a voltage compensation value in an application scenario and a use phase of the mobile phone when measuring the voltage; The voltage compensation value is used to compensate the voltage; and the determining module is configured to determine the power of the mobile phone battery according to the compensated voltage.
- the compensation module includes: a first acquisition submodule, configured to acquire a usage time of the mobile phone battery; a first adjustment submodule, configured to adjust a voltage compensation value by using a first adjustment ratio corresponding to the usage time; and the first calculation sub A module for adding the adjusted voltage compensation value to the voltage.
- the compensation module includes: a second acquisition submodule, configured to obtain a voltage value of the mobile phone battery before the mobile phone enters the application scenario; and a second adjustment submodule, configured to use the second corresponding to the voltage value Adjusting the proportional adjustment voltage compensation value; and a second calculation sub-module for adding the adjusted voltage compensation value and the voltage.
- a second acquisition submodule configured to obtain a voltage value of the mobile phone battery before the mobile phone enters the application scenario
- a second adjustment submodule configured to use the second corresponding to the voltage value Adjusting the proportional adjustment voltage compensation value
- a second calculation sub-module for adding the adjusted voltage compensation value and the voltage.
- FIG. 1 is a flow chart of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 2 is a first schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 1 is a flow chart of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 2 is a first schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 1 is a flow chart of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 2 is a first schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 4
- FIG. 5 is a schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the invention
- FIG. 6 is a schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 7 is a structural block diagram of an apparatus for measuring battery power of a mobile phone according to an embodiment of the present invention
- FIG. 8 is a measurement according to an embodiment of the present invention.
- FIG. 9 is a block diagram 2 of a specific structure of an apparatus for measuring the battery power of a mobile phone according to an embodiment of the present invention.
- Step S102 measuring the voltage of the mobile phone battery
- Step S104 obtaining a voltage compensation value according to the application scenario and the use phase of the mobile phone when measuring the voltage
- Step S106 using the voltage compensation value, compensating the voltage
- Step S108 compensating The post voltage determines the battery level of the phone.
- the voltage of the mobile phone battery is compensated by the voltage compensation value, and the power is determined according to the compensated voltage, thereby solving the problem of inaccuracy and instability of the mobile phone displayed to the user in different stages of the application scenario in the related art, and further Improved user experience.
- obtaining the voltage compensation value comprises: pre-measuring the voltage fluctuation of the mobile phone battery in the application scenario and the use phase; and determining the voltage fluctuation as the voltage compensation value in the application scenario and the use phase .
- the voltage compensation value is obtained according to the voltage fluctuation of the application scenario and the use phase, so that the selection of the voltage compensation value is more accurate, thereby achieving the purpose of accurately measuring the battery power of the mobile phone.
- the voltage compensation value is used, and the compensation voltage comprises: adding the voltage compensation value and the voltage to obtain the compensated voltage.
- This embodiment utilizes the voltage compensation value and the voltage addition to calculate the compensated voltage, and the implementation is simple. The following describes the implementation process of the above preferred embodiment by taking the scenario of voice call as an example. 2 is a schematic diagram of a method for measuring the battery power of a mobile phone according to the above preferred embodiment.
- the method includes: Step S201: Obtain a real-time value of a battery voltage when the mobile phone performs a voice call. Enter the battery voltage detection phase.
- Step 4 gathers S202, which can be sampled once or multiple times. For example, 12 voltages are obtained 12 times.
- step S203 the two highest values and the two lowest values in the detected voltage data are removed, and the average value of the eight data is left.
- Step S204 averaging the remaining 8 data, and then obtaining a value that is the current voltage level. Mean.
- steps S202 to S204 are optional steps, and in the case of a plurality of samples, step S203 is also optional.
- Step S205 determining the current state of the call.
- FIG. 3 is a schematic diagram of battery voltage fluctuation during a voice call according to an embodiment of the present invention.
- the battery voltage before the call is relatively stable, and the battery voltage has a low voltage peak at the moment of turning on, and the battery voltage is relatively stable during the call. However, there will be a regular low-voltage pulse. When the phone is hung up, the battery voltage has a low-voltage peak, and the voltage recovers smoothly after about 10 seconds.
- Table 1 is the battery voltage fluctuation compensation table in the voice call. The corresponding flag can be used in the software to identify the different phases of the corresponding call. Different flag bits correspond to different compensation values.
- the state obtained in this embodiment is Calljiold, and the lookup table 1 obtains a corresponding voltage compensation value of 20 mV.
- the actually measured battery voltage is compensated according to the voltage compensation value.
- the battery is determined according to the relationship between the voltage and the power set in advance.
- the embodiment compensates the voltage of the mobile phone battery measured in real time by using the voltage compensation value corresponding to the stage of the application scenario, and determines the power according to the compensated voltage, thereby realizing the purpose of accurately measuring the battery power of the mobile phone, so that the user can accurately determine the mobile phone.
- the actual battery life is
- the voltage compensation value is used, and the compensation voltage comprises: obtaining a usage time of the mobile phone battery; adjusting the voltage compensation value by using a first adjustment ratio corresponding to the usage time; and adding the adjusted voltage compensation value and the voltage to obtain compensation After the voltage.
- the voltage compensation value is adjusted according to the usage time of the mobile phone battery, so that the voltage compensation value is more accurate, so that the measured battery power is more accurate.
- Step S401 Obtaining a mobile phone in The real-time value of the battery voltage during a voice call. Enter the battery voltage detection phase.
- Step 4 gathers S402, which can be sampled once or multiple times. For example, 12 voltages are obtained 12 times.
- step S403 the two highest values and the two lowest values in the detected voltage data are removed, and the average value of the eight data is left.
- step S404 the remaining 8 data are averaged, and the obtained value is the average value of the current voltage.
- steps S402 to S404 are optional steps, and in the case of multiple samples, step S403 is also optional.
- Step S405 determining the current state of the call.
- the phase is a voice call
- the corresponding state is Call_hold.
- Step S406 obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call.
- the obtained state is Call_hold, and the corresponding voltage compensation value of the lookup table 1 is 20 mV.
- Step S407 determining the usage time of the battery. Assume that the battery life is half a year.
- Step S408 obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call.
- Table 2 is a table of compensation ratios of battery voltage with time of use. Table 2 Compensation Table of Battery Voltage with Time of Use
- the battery voltage compensation ratio for the half year is 1.05.
- Step S410 the voltage compensation value is used to compensate the actually measured battery voltage.
- the battery power is determined according to the relationship between the preset voltage and the power.
- This embodiment adjusts the voltage compensation value according to the battery usage time, so that the measured battery power is more accurate.
- the voltage compensation value is used, and the compensation is performed.
- the voltage includes: obtaining a voltage value of the mobile phone battery before the mobile phone enters the application scenario; adjusting the voltage compensation value by using a second adjustment ratio corresponding to the voltage value; and adding the adjusted voltage compensation value and the voltage to obtain the compensated voltage
- the voltage compensation value is adjusted according to the voltage value of the mobile phone battery before the mobile phone enters the application scenario, so that the measured battery power is more accurate.
- the voltage compensation value is adjusted according to the voltage value before the battery enters the application scenario and according to the battery.
- the two embodiments of using the time adjustment voltage compensation value can be used separately, also In combination, the more accurate voltage compensation value is obtained. The following describes the implementation process of the above preferred embodiment by taking the voice call as an example, and FIG.
- Step S501 Obtain a real-time value of a battery voltage when the mobile phone performs a voice call. Enter a battery voltage detection phase.
- Step 4: S502 can be sampled once, or can be sampled multiple times, for example, voltage 12 battery voltage data is obtained 12 times.
- Step S503 the 2 highest values and the 2 lowest values in the detected voltage data are removed, and the average value of 8 data is left.
- Step S504 the remaining 8 data Taking the average, the value obtained is the average value of the current voltage.
- steps S502 to S504 are optional steps, and in the case of multiple sampling, step S503 is also optional.
- Step S505 determining the current state of the call.
- the phase is a voice call.
- the corresponding state is Call_hold.
- Step S506 obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call.
- the obtained state is Call_hold, and the corresponding voltage compensation value of the lookup table 1 is 20 mV.
- Step S507 determining a stable value of the battery voltage before entering the voice call. Assume that the battery voltage before entering the call is 3.8V.
- Step S508 obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call.
- Table 3 is a table of the compensation ratio of the battery voltage with the voltage before entering the call. The higher the battery voltage before the voice call, the corresponding voltage compensation value of each stage after entering the voice call should be correspondingly reduced.
- Step S510 the voltage compensation value is used to compensate the actually measured battery voltage.
- the battery power is determined according to the relationship between the preset voltage and the power.
- the voltage compensation value is adjusted according to the voltage value before the battery enters the application scenario, so that the measured battery power is more accurate.
- Measuring the voltage of the mobile phone battery includes: measuring the voltage of the mobile phone battery multiple times to obtain a plurality of voltage measurement values; calculating an average value of the plurality of voltage measurement values to obtain a voltage of the collected battery.
- This embodiment uses a plurality of samples to take an average value.
- the method measures the voltage of the mobile phone battery and improves the accuracy of the measured voltage.
- the method further comprises: excluding abnormal voltage measurement values of the plurality of voltage measurement values.
- the example measures the voltage measured in real time by removing the abnormal value and then averaging, further improving the real-time measurement.
- the accuracy of the pressure. 2 through 5 illustrate an implementation of a preferred embodiment of the above multiple measurements and averaging.
- a preferred embodiment of the present invention provides a method for accurately measuring battery power when a mobile phone performs a service with a large difference in current consumption, wherein the battery power is obtained by measuring the actual voltage of the battery.
- the preparations required to measure the battery level include: Measuring the fluctuation of the battery voltage at different stages of the implementation of various functions (ie, various application scenarios), and the data of the test gives the mobile phone under various application conditions.
- the voltage fluctuation compensation table and accordingly, obtains a voltage compensation table of the mobile phone in various application scenarios, and records the correspondence between each stage of the application scenario and the voltage compensation value.
- Step S601 Obtain a real-time value of a battery voltage when the mobile phone performs a voice call. Enter the battery voltage detection phase.
- Step 4 gathers S602, which can be sampled once or multiple times. For example, 12 voltages are obtained 12 times.
- step S603 the two highest values and the two lowest values in the detected voltage data are removed, and the average value of the eight data is left.
- step S604 the remaining 8 data are averaged, and the obtained value is the average value of the current voltage.
- steps S602 to S604 are optional steps, and in the case of multiple samples, step 4 is also optional.
- Step S605 determining the current state of the call.
- the phase is a voice call
- the corresponding state is Call hold.
- Step S606 obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call.
- the obtained state is Call_hold
- the corresponding voltage compensation value of the lookup table 1 is 20 mV.
- Step S607 determining a stable value of the battery voltage before entering the voice call. Assume that the battery voltage before entering the call is 3.8V.
- Step 4 gathers S608 to obtain a voltage fluctuation compensation value corresponding to the mobile phone during a voice call. Look up Table 3
- Step S610 and the battery usage time is determined. It is assumed that the battery usage time is half a year.
- Step S613 the voltage compensation value compensates the actually measured battery voltage.
- the voltage of the real-time measurement is offset in the process of detecting the voltage to offset the influence of partial battery voltage fluctuations.
- the measured battery voltage is closer to the actual voltage of the battery, avoiding the violent fluctuation of the battery voltage, resulting in the detection of a too low voltage value, so that the user mistakenly believes that the battery power has been exhausted and underestimates the actual use time of the mobile phone.
- the method of the present invention is simple
- the transformation can be applied to mobile phones in applications such as video recording, MP3 playback, MP4 playback, etc.
- the following is an example of playing the MP3 as an example to illustrate the implementation process of the above preferred embodiment.
- the method includes: Step S701: Obtain a real-time value of the battery voltage when the mobile phone plays MP3.
- Step 4 S702 It can be sampled once or twice, for example, 12 battery voltage data is obtained 12 times.
- Step S703, remove the 2 highest values and 2 lowest values in the detected voltage data, leaving 8 One The average value of the data.
- step S704 the remaining 8 data are averaged, and the obtained value is the average value of the current voltage.
- steps S702 to S704 are optional steps, and in the case of multiple samples, step S703 is also optional.
- Step S705 determining the state in which the MP3 is played. This stage in this embodiment is during playback.
- Table 4 Battery voltage fluctuation compensation table in MP3 playback
- Step S707 the actual measured battery voltage is compensated according to the voltage compensation value.
- the battery voltage obtained in the voltage detection in the MP3 is played.
- the value of 3.76 + 0.03 3.79 V.
- the battery is determined according to the relationship between the voltage and the power set in advance.
- This embodiment compensates the voltage of the mobile phone battery measured in real time by using the voltage compensation value corresponding to the stage of the application scenario. And determining the power according to the compensated voltage, achieving the purpose of accurately measuring the battery power of the mobile phone, so that the user can accurately determine the actual use time of the mobile phone battery.
- Figure 7 is a structure of a device for measuring the battery power of a mobile phone according to an embodiment of the present invention.
- the device includes: a measurement module 72, an acquisition module 74, a compensation module 76, a determination module 78.
- the measurement module 72 is configured to measure a voltage of the mobile phone battery;
- the acquisition module 74 is coupled to the measurement module 72 for measuring When the module 72 measures the voltage, the application scenario and the use phase of the mobile phone acquire the voltage compensation value;
- the module 76 is coupled to the measurement module 72 and the acquisition module 74 for compensating the voltage measured by the measurement module 72 using the voltage compensation value acquired by the acquisition module 74.
- the determination module 78 is coupled to the compensation module 76 for compensation according to the compensation module 76.
- FIG. 8 is a block diagram of a specific structure of an apparatus for measuring battery power of a mobile phone according to an embodiment of the present invention.
- the compensation module 76 includes: a first acquisition sub-module 82, a first adjustment sub-module 84, and a first calculation sub-module 86.
- the first obtaining sub-module 82 is configured to obtain the usage time of the mobile phone battery.
- the first adjusting sub-module 84 is coupled to the first obtaining sub-module 82 and the obtaining module 74 for acquiring by using the first acquiring sub-module 82.
- the first adjustment ratio of the usage time adjusts the voltage compensation value acquired by the acquisition module 74;
- the first calculation sub-module 86 is coupled to the measurement module 72 and the first adjustment sub-module 84 for adjustment using the first adjustment sub-module 84
- the voltage compensation value is phased with the voltage measured by the measurement module 72. Generally, as the usage time (life) of the mobile phone battery is longer, the deviation between the measured voltage value and the actual voltage value is greater.
- FIG. 9 is a block diagram 2 of a specific structure of an apparatus for measuring a battery level of a mobile phone according to an embodiment of the present invention.
- the compensation module 76 includes: a second acquisition sub-module 92, a second adjustment sub-module 94, and a second calculation sub-module 96.
- the second obtaining sub-module 92 is configured to obtain a voltage value of the mobile phone battery before the mobile phone enters the application scenario; the second adjusting sub-module 94 is coupled to the second obtaining module 92 and the obtaining module 74, and is configured to be used corresponding to the second Obtaining a second adjustment ratio of the voltage value obtained by the module 92 to adjust the voltage compensation value acquired by the acquisition module 74; and a second calculation sub-module 96 coupled to the measurement module 72 and the second adjustment sub-module 94 for using the second adjustment sub-module
- the adjusted voltage compensation value of the module 94 and the voltage measured by the measurement module 72 are used for the eye port.
- the voltage compensation value is adjusted according to the voltage value before the battery enters the application scenario, so that the measured battery power is more accurate.
- the present invention solves the problem of inaccuracy and instability of the mobile phone displayed to the user in different stages of the application scenario in the related art, thereby improving the user's body risk.
- the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
- they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Secondary Cells (AREA)
Abstract
A battery capacity measuring method for a mobile phone and an apparatus thereof are provided. The method includes: measuring a voltage of the battery for the mobile phone (S102), acquiring a voltage compensation value according to the application context and the service stage of the mobile phone when the voltage is measured (S 104), compensating the voltage by the voltage compensation value (S 106), determining the battery capacity for the mobile phone according to the compensated voltage (S 108).
Description
测量手机电池电量的方法 ^^置 技术领域 本发明涉及到通讯领域, 尤其涉及到一种测量手机电池电量的方法及装 置。 背景技术 随着通信技术的快速发展, 手机逐渐发展成为集通话、 播放音乐、 视频, 拍照, 摄像以及上网等多种功能于一体的综合性电子产品。 目前, 大多数手 机使用锂离子电池进行供电, 手机功能的增多使得进行各种应用场景时的输 出电流的情况越发复杂。 通常, 手机在进行通话、 摄像、 播放 MP3等大电流 的操作时, 电池电压会随着输出电流的波动而变化, 一般的变化规律是: 输 出电¾¾大则输出电压氐、 输出电: ¾ ^氐则输出电压稍 '大。 在相关技术中, 测量电池电量的方法是: 实时测量电池电压, 居预先 设置的电压与电量的关系确定当前的电池电量, 并通过手机显示屏上将当前 电池电量显示给用户。 但是, 釆用上述方法测量手机电池电量, 由于大电流的操作将降低输出 电压, 因此, 在相同电量的情况下, 手机在实现各种功能 (即, 进入各种需 要大电流的应用场景) 的不同阶段时实际测量的电量与手机在待机状态测量 到的电量是不同的, 即, 造成手机的测量电量小于手机的实际电量, 进而造 成显示给用户的手机电量的不准确与不稳 -定, 影响手机的实际使用时间, 降 氐用户体 -险。 发明内容 本发明的主要目的在于提供一种测量手机电池电量的方案, 以至少解决 上述问题。 为了实现上述目的, 根据本发明的一个方面, 提供了一种测量手机电池 电量的方法。 根据本发明的测量手机电池电量的方法包括: 测量手机电池的电压; 根
据测量电压时手机的应用场景和使用阶段, 获取电压补偿值; 使用电压补偿 值, 补偿电压; 以及根据补偿后的电压确定手机电池的电量。 进一步地, 根据测量电压时手机的应用场景和使用阶段, 获取电压补偿 值包括: 预先测量手机电池在应用场景和使用阶段的电压波动; 以及才艮据应 用场景和使用阶段, 确定电压波动为电压补偿值。 进一步地, 使用电压补偿值, 补偿电压包括: 对电压补偿值与电压进行 相加, 得到补偿后的电压。 进一步地, 使用电压补偿值, 补偿电压包括: 获取手机电池的使用时间; 使用对应于使用时间的第一调整比例调整电压补偿值; 以及对调整后的电压 补偿值与电压进行相加, 得到补偿后的电压。 进一步地, 使用电压补偿值, 补偿电压包括: 获取手机进入应用场景前, 手机电池的电压值; 使用对应于电压值的第二调整比例调整电压补偿值; 以 及对调整后的电压补偿值与电压进行相加, 得到补偿后的电压。 进一步地, 测量手机电池的电压包括: 多次测量手机电池的电压, 得到 多个电压测量值; 计算多个电压测量值的平均值, 得到收集电池的电压。 进一步地, 在计算多个电压测量值的平均值之前, 上述方法还包括: 排 除多个电压测量值中异常的电压测量值。 为了实现上述目的, 根据本发明的另一方面, 提供了一种测量手机电池 电量的装置。 根据本发明的测量手机电池电量的装置包括: 测量模块, 用于测量手机 电池的电压; 获取模块, 用于 居测量电压时手机的应用场景和使用阶段, 获取电压补偿值; 补偿模块, 用于使用电压补偿值, 补偿电压; 以及确定模 块, 用于才艮据补偿后的电压确定手机电池的电量。 进一步地, 补偿模块包括: 第一获取子模块, 用于获取手机电池的使用 时间; 第一调整子模块, 用于使用对应于使用时间的第一调整比例调整电压 补偿值; 以及第一计算子模块, 用于对调整后的电压补偿值与电压进行相加。 进一步地, 补偿模块包括: 第二获取子模块, 用于获取手机进入应用场 景前, 手机电池的电压值; 第二调整子模块, 用于使用对应于电压值的第二
调整比例调整电压补偿值; 以及第二计算子模块, 用于对调整后的电压补偿 值与电压进行相加。 通过本发明, 使用电压补偿值补偿测量得到的手机电池的电压, 并根据 补偿后的电压确定电量, 解决了相关技术中手机在应用场景不同阶段时显示 给用户的手机电量的不准确与不稳定的问题, 进而提升了用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据本发明实施例的测量手机电池电量的方法的流程图; 图 2是根据本发明实施例的测量手机电池电量的方法的示意图一; 图 3是才艮据本发明实施例的语音通话过程中电池电压波动的示意图; 图 4是根据本发明实施例的测量手机电池电量的方法的示意图二; 图 5是根据本发明实施例的测量手机电池电量的方法的示意图三; 图 6是根据本发明实施例的测量手机电池电量的方法的示意图四; 图 7是根据本发明实施例的测量手机电池电量的装置的结构框图; 图 8是根据本发明实施例的测量手机电池电量的装置的具体的结构框图 一; 以及 图 9是根据本发明实施例的测量手机电池电量的装置的具体的结构框图 二。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1是根据本发明实施例的测量手机电池电量的方法的流程图, 该方法 包括以下步 4聚:
步骤 S 102, 测量手机电池的电压; 步骤 S 104, 根据测量电压时手机的应用场景和使用阶段, 获取电压补偿 值; 步骤 S 106, 使用电压补偿值, 补偿电压; 以及 步骤 S 108, 居补偿后的电压确定手机电池的电量。 该实施例利用电压补偿值补偿手机电池的电压, 并根据补偿后的电压确 定电量, 解决了相关技术中手机在应用场景不同阶段时显示给用户的手机电 量的不准确与不稳定的问题, 进而提升了用户体验。 优选的, 根据测量电压时手机的应用场景和使用阶段, 获取电压补偿值 包括: 预先测量手机电池在应用场景和使用阶段的电压波动; 以及 居应用 场景和使用阶段, 确定电压波动为电压补偿值。 该实施例根据应用场景和使用阶段的电压波动获得电压补偿值, 使得电 压补偿值的选取更为准确, 从而实现了准确测量手机电池电量的目的。 优选的, 使用电压补偿值, 补偿电压包括: 对电压补偿值与电压进行相 加, 得到补偿后的电压。 该实施例利用了电压补偿值与电压相加计算补偿后的电压, 实现方式简 便。 下面以语音通话这一场景为例说明上述优选实施例的实现过程。 图 2是 才艮据上述优选实施例的测量手机电池电量的方法的示意图, 该方法包括: 步骤 S201 , 获得手机在进行语音通话时的电池电压的实时值。 进入电池 电压检测阶段。 步 4聚 S202, 可以釆样 1次, 也可以釆样多次, 例如, 电压釆样 12次得 到 12个电池电压数据。 步骤 S203 , 去掉检测的电压数据中 2个最高值及 2个最低值, 剩下 8个 数据平均后的数值。 步骤 S204 , 对剩下的 8个数据取平均, 之后得到的数值为当前电压的平
均值。 在釆样一次的情况下, 步骤 S202至 S204是可选的步骤, 在釆样多次的 情况下, 步骤 S203也是可选的。 步骤 S205 , 判断当前通话所处状态。 本实施例中该阶段是语音通话中, 对应的状态是 Call_hold。 步骤 S206, 获得手机在语音通话时对应的电压波动补偿值。 图 3是才艮据本发明实施例的语音通话过程中电池电压波动的示意图, 通 话前的电池电压比较平稳, 在接通的瞬间电池电压会有一个低压峰值出现, 在通话中电池电压相对稳定, 但是会有规律的低压脉冲出现, 在挂断电话时 电池电压又有一个低压峰值出现, 在挂断之后 10秒左右电压恢复平稳。 表 1 是语音通话中电池电压波动补偿表, 可以在软件中使用相应的标志位标识对 应通话的不同阶段, 不同的标志位对应不同的补偿数值。 表 1 语音通话中电池电压波动补偿表 BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the field of communications, and in particular, to a method and apparatus for measuring battery power of a mobile phone. BACKGROUND With the rapid development of communication technologies, mobile phones have gradually developed into integrated electronic products that integrate various functions such as talking, playing music, video, taking pictures, camera, and surfing the Internet. At present, most mobile phones use lithium-ion batteries for power supply, and the increase in the functions of mobile phones makes the output current in various application scenarios more complicated. Usually, when the mobile phone is operating with a large current such as talking, recording, and playing MP3, the battery voltage will change with the fluctuation of the output current. The general change rule is: The output voltage is 3⁄43⁄4, the output voltage is 氐, and the output power is: 3⁄4 ^ The output voltage is slightly larger. In the related art, the method of measuring the battery power is: measuring the battery voltage in real time, the relationship between the preset voltage and the electric quantity determines the current battery power, and displays the current battery power to the user through the mobile phone display. However, using the above method to measure the battery power of the mobile phone, since the operation of the large current will lower the output voltage, the mobile phone is performing various functions (ie, entering various application scenarios requiring a large current) under the same power amount. The actual measured power at different stages is different from the power measured by the mobile phone in the standby state, that is, the measured power of the mobile phone is less than the actual power of the mobile phone, and thus the inaccuracy and instability of the mobile phone displayed to the user are determined. Affect the actual use time of the mobile phone, and reduce the user's body-risk. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a solution for measuring the battery power of a mobile phone to at least solve the above problems. In order to achieve the above object, according to an aspect of the present invention, a method of measuring a battery level of a mobile phone is provided. The method for measuring the battery power of a mobile phone according to the present invention includes: measuring a voltage of a mobile phone battery; According to the application scenario and the use phase of the mobile phone when measuring the voltage, the voltage compensation value is obtained; the voltage compensation value is used, the voltage is compensated; and the power of the mobile phone battery is determined according to the compensated voltage. Further, according to the application scenario and the use phase of the mobile phone when measuring the voltage, obtaining the voltage compensation value includes: pre-measuring the voltage fluctuation of the mobile phone battery in the application scenario and the use phase; and determining the voltage fluctuation as the voltage according to the application scenario and the use phase. Compensation value. Further, using the voltage compensation value, the compensation voltage includes: adding the voltage compensation value and the voltage to obtain the compensated voltage. Further, using the voltage compensation value, the compensation voltage includes: obtaining a usage time of the mobile phone battery; adjusting the voltage compensation value by using a first adjustment ratio corresponding to the usage time; and adding the adjusted voltage compensation value and the voltage to obtain compensation After the voltage. Further, using the voltage compensation value, the compensation voltage includes: obtaining a voltage value of the mobile phone battery before the mobile phone enters the application scenario; adjusting the voltage compensation value by using a second adjustment ratio corresponding to the voltage value; and adjusting the voltage compensation value and the voltage The addition is performed to obtain the compensated voltage. Further, measuring the voltage of the mobile phone battery comprises: measuring the voltage of the mobile phone battery multiple times to obtain a plurality of voltage measurement values; calculating an average value of the plurality of voltage measurement values to obtain a voltage of the collection battery. Further, before calculating the average of the plurality of voltage measurement values, the method further includes: excluding abnormal voltage measurement values of the plurality of voltage measurement values. In order to achieve the above object, according to another aspect of the present invention, an apparatus for measuring a battery level of a mobile phone is provided. The device for measuring the battery power of the mobile phone according to the present invention comprises: a measuring module, configured to measure a voltage of the battery of the mobile phone; an obtaining module, configured to acquire a voltage compensation value in an application scenario and a use phase of the mobile phone when measuring the voltage; The voltage compensation value is used to compensate the voltage; and the determining module is configured to determine the power of the mobile phone battery according to the compensated voltage. Further, the compensation module includes: a first acquisition submodule, configured to acquire a usage time of the mobile phone battery; a first adjustment submodule, configured to adjust a voltage compensation value by using a first adjustment ratio corresponding to the usage time; and the first calculation sub A module for adding the adjusted voltage compensation value to the voltage. Further, the compensation module includes: a second acquisition submodule, configured to obtain a voltage value of the mobile phone battery before the mobile phone enters the application scenario; and a second adjustment submodule, configured to use the second corresponding to the voltage value Adjusting the proportional adjustment voltage compensation value; and a second calculation sub-module for adding the adjusted voltage compensation value and the voltage. Through the invention, the voltage of the mobile phone battery measured by the voltage compensation value is compensated, and the electric quantity is determined according to the compensated voltage, which solves the inaccuracy and instability of the mobile phone power displayed to the user when the mobile phone is in different stages of the application scene in the related art. The problem, which in turn improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a flow chart of a method for measuring battery power of a mobile phone according to an embodiment of the present invention; FIG. 2 is a first schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention; FIG. 4 is a schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention; FIG. 5 is a schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the invention; FIG. 6 is a schematic diagram of a method for measuring battery power of a mobile phone according to an embodiment of the present invention; FIG. 7 is a structural block diagram of an apparatus for measuring battery power of a mobile phone according to an embodiment of the present invention; FIG. 8 is a measurement according to an embodiment of the present invention. A specific structural block diagram of a device for controlling the battery power of a mobile phone; and FIG. 9 is a block diagram 2 of a specific structure of an apparatus for measuring the battery power of a mobile phone according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. 1 is a flow chart of a method of measuring battery power of a mobile phone according to an embodiment of the present invention, the method comprising the following steps: Step S102, measuring the voltage of the mobile phone battery; Step S104, obtaining a voltage compensation value according to the application scenario and the use phase of the mobile phone when measuring the voltage; Step S106, using the voltage compensation value, compensating the voltage; and Step S108, compensating The post voltage determines the battery level of the phone. In this embodiment, the voltage of the mobile phone battery is compensated by the voltage compensation value, and the power is determined according to the compensated voltage, thereby solving the problem of inaccuracy and instability of the mobile phone displayed to the user in different stages of the application scenario in the related art, and further Improved user experience. Preferably, according to the application scenario and the use phase of the mobile phone when measuring the voltage, obtaining the voltage compensation value comprises: pre-measuring the voltage fluctuation of the mobile phone battery in the application scenario and the use phase; and determining the voltage fluctuation as the voltage compensation value in the application scenario and the use phase . In this embodiment, the voltage compensation value is obtained according to the voltage fluctuation of the application scenario and the use phase, so that the selection of the voltage compensation value is more accurate, thereby achieving the purpose of accurately measuring the battery power of the mobile phone. Preferably, the voltage compensation value is used, and the compensation voltage comprises: adding the voltage compensation value and the voltage to obtain the compensated voltage. This embodiment utilizes the voltage compensation value and the voltage addition to calculate the compensated voltage, and the implementation is simple. The following describes the implementation process of the above preferred embodiment by taking the scenario of voice call as an example. 2 is a schematic diagram of a method for measuring the battery power of a mobile phone according to the above preferred embodiment. The method includes: Step S201: Obtain a real-time value of a battery voltage when the mobile phone performs a voice call. Enter the battery voltage detection phase. Step 4 gathers S202, which can be sampled once or multiple times. For example, 12 voltages are obtained 12 times. In step S203, the two highest values and the two lowest values in the detected voltage data are removed, and the average value of the eight data is left. Step S204, averaging the remaining 8 data, and then obtaining a value that is the current voltage level. Mean. In the case of sampling once, steps S202 to S204 are optional steps, and in the case of a plurality of samples, step S203 is also optional. Step S205, determining the current state of the call. In this embodiment, the phase is a voice call, and the corresponding state is Call_hold. Step S206, obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call. FIG. 3 is a schematic diagram of battery voltage fluctuation during a voice call according to an embodiment of the present invention. The battery voltage before the call is relatively stable, and the battery voltage has a low voltage peak at the moment of turning on, and the battery voltage is relatively stable during the call. However, there will be a regular low-voltage pulse. When the phone is hung up, the battery voltage has a low-voltage peak, and the voltage recovers smoothly after about 10 seconds. Table 1 is the battery voltage fluctuation compensation table in the voice call. The corresponding flag can be used in the software to identify the different phases of the corresponding call. Different flag bits correspond to different compensation values. Table 1 Battery voltage fluctuation compensation table in voice call
本实施例中获得的状态是 Calljiold, 查找表 1得到对应的电压补偿值是 20mV。 步骤 S207 , 才艮据电压补偿值对实际测量的电池电压进行补偿。 语音通话 中的电压检测中得到的电池电压的值为 3.76+0.02=3.78V。 然后, 才艮据预先设 置的电压和电量的关系确定电池的电量。 该实施例利用对应于应用场景的阶段的电压补偿值补偿实时测量的手机 电池的电压, 并才艮据补偿后的电压确定电量, 实现了准确测量手机电池电量 的目的, 使得用户能够准确判断手机电池的实际使用时间。 优选的, 使用电压补偿值, 补偿电压包括: 获取手机电池的使用时间; 使用对应于使用时间的第一调整比例调整电压补偿值; 以及对调整后的电压 补偿值与电压进行相加, 得到补偿后的电压。
通常, 随着手机电池的使用时间 (使用寿命) 越长, 其测量电压值与实 际电压值的偏差越大。 该实施例根据手机电池的使用时间调整电压补偿值, 使得电压补偿值更加准确, 从而使得测量得到的电池电量更为准确。 下面以语音通话这一场景为例说明上述优选实施例的实现过程, 图 4是 才艮据本发明上述优选实施例的测量手机电池电量的方法的示意图, 该方法包 括: 步骤 S401 , 获得手机在进行语音通话时的电池电压的实时值。 进入电池 电压检测阶段。 步 4聚 S402, 可以釆样 1次, 也可以釆样多次, 例如, 电压釆样 12次得 到 12个电池电压数据。 步骤 S403 , 去掉检测的电压数据中 2个最高值及 2个最低值, 剩下 8个 数据平均后的数值。 步骤 S404 , 对剩下的 8个数据取平均, 之后得到的数值为当前电压的平 均值。 在釆样一次的情况下, 步骤 S402至 S404是可选的步骤, 在釆样多次的 情况下, 步骤 S403也是可选的。 步骤 S405 , 判断当前通话所处状态。 本实施例中该阶段是语音通话中, 对应的状态是 Call_hold。 步骤 S406, 获得手机在语音通话时对应的电压波动补偿值。 获得的状态是 Call_hold, 查找表 1得到对应的电压补偿值是 20mV。 步骤 S407 , 判断电池的使用时间。 假设电池使用时间为半年。 步骤 S408, 获得手机在语音通话时对应的电压波动补偿值。 表 2是电池 电压随使用时间的补偿比例表。 表 2 电池电压随使用时间的补偿比例表
The state obtained in this embodiment is Calljiold, and the lookup table 1 obtains a corresponding voltage compensation value of 20 mV. In step S207, the actually measured battery voltage is compensated according to the voltage compensation value. The value of the battery voltage obtained in the voltage detection during the voice call is 3.76+0.02=3.78V. Then, the battery is determined according to the relationship between the voltage and the power set in advance. The embodiment compensates the voltage of the mobile phone battery measured in real time by using the voltage compensation value corresponding to the stage of the application scenario, and determines the power according to the compensated voltage, thereby realizing the purpose of accurately measuring the battery power of the mobile phone, so that the user can accurately determine the mobile phone. The actual battery life. Preferably, the voltage compensation value is used, and the compensation voltage comprises: obtaining a usage time of the mobile phone battery; adjusting the voltage compensation value by using a first adjustment ratio corresponding to the usage time; and adding the adjusted voltage compensation value and the voltage to obtain compensation After the voltage. Generally, as the usage time (life) of the mobile phone battery is longer, the deviation between the measured voltage value and the actual voltage value is greater. In this embodiment, the voltage compensation value is adjusted according to the usage time of the mobile phone battery, so that the voltage compensation value is more accurate, so that the measured battery power is more accurate. The following describes the implementation process of the foregoing preferred embodiment by using the voice call as an example. FIG. 4 is a schematic diagram of a method for measuring the battery power of a mobile phone according to the above preferred embodiment of the present invention. The method includes: Step S401: Obtaining a mobile phone in The real-time value of the battery voltage during a voice call. Enter the battery voltage detection phase. Step 4 gathers S402, which can be sampled once or multiple times. For example, 12 voltages are obtained 12 times. In step S403, the two highest values and the two lowest values in the detected voltage data are removed, and the average value of the eight data is left. In step S404, the remaining 8 data are averaged, and the obtained value is the average value of the current voltage. In the case of sampling once, steps S402 to S404 are optional steps, and in the case of multiple samples, step S403 is also optional. Step S405, determining the current state of the call. In this embodiment, the phase is a voice call, and the corresponding state is Call_hold. Step S406, obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call. The obtained state is Call_hold, and the corresponding voltage compensation value of the lookup table 1 is 20 mV. Step S407, determining the usage time of the battery. Assume that the battery life is half a year. Step S408, obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call. Table 2 is a table of compensation ratios of battery voltage with time of use. Table 2 Compensation Table of Battery Voltage with Time of Use
电池使用时间为半年对应的电池电压补偿比例为 1.05。
步骤 S409, 电压补偿值变为 20 1.05=21mV„ 步骤 S410, 居电压补偿值对实际测量的电池电压进行补偿。 语音通话 中的电压检测中得到的电池电压的值为 3.76+0.021=3.781V。 然后, 才艮据预先 设置的电压和电量的关系确定电池的电量。 该实施例根据电池的使用时间调整电压补偿值, 使得测量得到的电池电 量更为准确。 优选的, 使用电压补偿值, 补偿电压包括: 获取手机进入应用场景前, 手机电池的电压值; 使用对应于电压值的第二调整比例调整电压补偿值; 以 及对调整后的电压补偿值与电压进行相加, 得到补偿后的电压。 该实施例才艮据手机进入应用场景前的手机电池的电压值调整电压补偿 值, 使得测量得到的电池电量更为准确。 根据电池进入应用场景前的电压值调整电压补偿值和根据电池的使用时 间调整电压补偿值这两个实施例可以单独使用, 也可以结合使用, 从而得到 更为准确的电压补偿值。 下面以语音通话这一场景为例说明上述优选实施例的实现过程, 图 5是 才艮据上述优选实施例的测量手机电池电量的方法的示意图, 该方法包括: 步骤 S501 , 获得手机在进行语音通话时的电池电压的实时值。 进入电池 电压检测阶段。 步 4聚 S502, 可以釆样 1次, 也可以釆样多次, 例如, 电压釆样 12次得 到 12个电池电压数据。 步骤 S503 , 去掉检测的电压数据中 2个最高值及 2个最低值, 剩下 8个 数据平均后的数值。 步骤 S504 , 对剩下的 8个数据取平均, 之后得到的数值为当前电压的平 均值。 在釆样一次的情况下, 步骤 S502至 S504是可选的步骤, 在釆样多次的 情况下, 步骤 S503也是可选的。 步骤 S505 , 判断当前通话所处状态。 本实施例中该阶段是语音通话中,
对应的状态是 Call_hold。 步骤 S506, 获得手机在语音通话时对应的电压波动补偿值。 获得的状态 是 Call_hold, 查找表 1得到对应的电压补偿值是 20mV。 步骤 S507, 判断进入语音通话前电池电压的稳定值。 假设进入通话前的 电池电压为 3.8V。 步骤 S508, 获得手机在语音通话时对应的电压波动补偿值。 表 3是电池 电压随进入通话前电压的补偿比例表。 语音通话前电池电压越高, 对应的进 入语音通话后各阶段的电压补偿值应相应降低。 表 3 电池电压随进入通话前电压的补偿比例表
The battery voltage compensation ratio for the half year is 1.05. In step S409, the voltage compensation value becomes 20 1.05=21 mV. Step S410, the voltage compensation value is used to compensate the actually measured battery voltage. The value of the battery voltage obtained in the voltage detection during the voice call is 3.76+0.021=3.781V. Then, the battery power is determined according to the relationship between the preset voltage and the power. This embodiment adjusts the voltage compensation value according to the battery usage time, so that the measured battery power is more accurate. Preferably, the voltage compensation value is used, and the compensation is performed. The voltage includes: obtaining a voltage value of the mobile phone battery before the mobile phone enters the application scenario; adjusting the voltage compensation value by using a second adjustment ratio corresponding to the voltage value; and adding the adjusted voltage compensation value and the voltage to obtain the compensated voltage In this embodiment, the voltage compensation value is adjusted according to the voltage value of the mobile phone battery before the mobile phone enters the application scenario, so that the measured battery power is more accurate. The voltage compensation value is adjusted according to the voltage value before the battery enters the application scenario and according to the battery. The two embodiments of using the time adjustment voltage compensation value can be used separately, also In combination, the more accurate voltage compensation value is obtained. The following describes the implementation process of the above preferred embodiment by taking the voice call as an example, and FIG. 5 is a method for measuring the battery power of the mobile phone according to the above preferred embodiment. The method includes the following steps: Step S501: Obtain a real-time value of a battery voltage when the mobile phone performs a voice call. Enter a battery voltage detection phase. Step 4: S502, can be sampled once, or can be sampled multiple times, for example, voltage 12 battery voltage data is obtained 12 times. Step S503, the 2 highest values and the 2 lowest values in the detected voltage data are removed, and the average value of 8 data is left. Step S504, the remaining 8 data Taking the average, the value obtained is the average value of the current voltage. In the case of sampling once, steps S502 to S504 are optional steps, and in the case of multiple sampling, step S503 is also optional. Step S505 , determining the current state of the call. In this embodiment, the phase is a voice call. The corresponding state is Call_hold. Step S506, obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call. The obtained state is Call_hold, and the corresponding voltage compensation value of the lookup table 1 is 20 mV. Step S507, determining a stable value of the battery voltage before entering the voice call. Assume that the battery voltage before entering the call is 3.8V. Step S508, obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call. Table 3 is a table of the compensation ratio of the battery voltage with the voltage before entering the call. The higher the battery voltage before the voice call, the corresponding voltage compensation value of each stage after entering the voice call should be correspondingly reduced. Table 3 Compensation Table of Battery Voltage with Voltage Before Entering Call
查找表 3中 3.8V对应的电压补偿比例是 1.0, 因此, 实际的补偿值为 20 .0=20mV。 步骤 S509, 电压补偿值变为 20 l=20mV„ 步骤 S510, 居电压补偿值对实际测量的电池电压进行补偿。 语音通话 中的电压检测中得到的电池电压的值为 3.76+0.02=3.78V。 然后, 才艮据预先设 置的电压和电量的关系确定电池的电量。 该实施例才艮据电池进入应用场景前的电压值调整电压补偿值, 使得测量 得到的电池电量更为准确。 优选的, 测量手机电池的电压包括: 多次测量手机电池的电压, 得到多 个电压测量值; 计算多个电压测量值的平均值, 得到收集电池的电压。 该实施例利用多次釆样取平均值的方法测量手机电池的电压, 提高了测 量电压的准确性。 优选的, 在计算多个电压测量值的平均值之前, 上述方法还包括: 排除 多个电压测量值中异常的电压测量值。 该实施例利用去除异常值后再取平均的方法测量实时测量的电压, 进一 步提高了实时测量电压的准确性。
图 2至图 5说明了上述多次测量和求平均的优选实施例的实现方法。 本发明的一个优选实施例提供了一种在手机进行消耗电流差异较大的业 务的时候, 能够准确测量电池电量的方法, 其中, 电池电量通过测量电池的 实际电压获得。 在测量电池电量之前需要进行的准备工作包括: 测量手机在 实现各种功能 (即, 各种应用场景) 的不同阶段下电池电压的波动, 居测 试的数据给出手机在各种应用条件下的电压波动补偿表, 并据此得到手机在 各种应用场景下的电压补偿表, 记录应用场景的各个阶段和电压补偿值之间 的对应关系。 测量电池随进入应用场景前的电压而变化的电压波动, 才艮据测 试的数据得到手机在进入应用场景前的电压不同的情况下的电压调整比例, 并据此得到相应的电压调整补偿表, 记录进入应用场景前的电压和电压调整 值之间的对应关系。 测量电池随使用时间而变化的电压波动, 根据测试的数 据得到手机在使用时间不同的情况下的电压调整比例, 并据此得到相应的电 压调整补偿表,记录使用时间和电压调整值之间的对应关系。在实际应用时, 使用此处得到的电压调整比例调整第一步骤的电压补偿值。 本实施例以语音 通话为例说明本发明的实现过程。 图 6是才艮据下面优选实施例的测量手机电池电量的方法的示意图, 该方 法包括: 步骤 S601 , 获得手机在进行语音通话时的电池电压的实时值。 进入电池 电压检测阶段。 步 4聚 S602, 可以釆样 1次, 也可以釆样多次, 例如, 电压釆样 12次得 到 12个电池电压数据。 步骤 S603 , 去掉检测的电压数据中 2个最高值及 2个最低值, 剩下 8个 数据平均后的数值。 步骤 S604 , 对剩下的 8个数据取平均, 之后得到的数值为当前电压的平 均值。 在釆样一次的情况下, 步骤 S602至 S604是可选的步骤, 在釆样多次的 情况下, 步 4聚 S603也是可选的。 步骤 S605 , 判断当前通话所处状态。 本实施例中该阶段是语音通话中, 对应的状态是 Call hold。
步骤 S606, 获得手机在语音通话时对应的电压波动补偿值。 获得的状态是 Call_hold, 查找表 1得到对应的电压补偿值是 20mV。 步骤 S607, 判断进入语音通话前电池电压的稳定值。 假设进入通话前的 电池电压为 3.8V。 步 4聚 S608, 获得手机在语音通话时对应的电压波动补偿值。 查找表 3中The voltage compensation ratio corresponding to 3.8V in Table 3 is 1.0, so the actual compensation value is 20.0 = 20mV. In step S509, the voltage compensation value becomes 20 l=20 mV. Step S510, the voltage compensation value is used to compensate the actually measured battery voltage. The value of the battery voltage obtained in the voltage detection during the voice call is 3.76+0.02=3.78V. Then, the battery power is determined according to the relationship between the preset voltage and the power. In this embodiment, the voltage compensation value is adjusted according to the voltage value before the battery enters the application scenario, so that the measured battery power is more accurate. Measuring the voltage of the mobile phone battery includes: measuring the voltage of the mobile phone battery multiple times to obtain a plurality of voltage measurement values; calculating an average value of the plurality of voltage measurement values to obtain a voltage of the collected battery. This embodiment uses a plurality of samples to take an average value. The method measures the voltage of the mobile phone battery and improves the accuracy of the measured voltage. Preferably, before calculating the average of the plurality of voltage measurement values, the method further comprises: excluding abnormal voltage measurement values of the plurality of voltage measurement values. The example measures the voltage measured in real time by removing the abnormal value and then averaging, further improving the real-time measurement. The accuracy of the pressure. 2 through 5 illustrate an implementation of a preferred embodiment of the above multiple measurements and averaging. A preferred embodiment of the present invention provides a method for accurately measuring battery power when a mobile phone performs a service with a large difference in current consumption, wherein the battery power is obtained by measuring the actual voltage of the battery. The preparations required to measure the battery level include: Measuring the fluctuation of the battery voltage at different stages of the implementation of various functions (ie, various application scenarios), and the data of the test gives the mobile phone under various application conditions. The voltage fluctuation compensation table, and accordingly, obtains a voltage compensation table of the mobile phone in various application scenarios, and records the correspondence between each stage of the application scenario and the voltage compensation value. Measure the voltage fluctuation of the battery as the voltage before entering the application scenario, and then obtain the voltage adjustment ratio under the condition that the voltage of the mobile phone before the application scenario is different according to the tested data, and obtain the corresponding voltage adjustment compensation table accordingly. Record the correspondence between the voltage and voltage adjustment values before entering the application scenario. Measuring the voltage fluctuation of the battery as a function of the time of use, according to the test data, the voltage adjustment ratio of the mobile phone in different use time is obtained, and accordingly, the corresponding voltage adjustment compensation table is obtained, and the time between the use time and the voltage adjustment value is recorded. Correspondence relationship. In practical applications, the voltage compensation value of the first step is adjusted using the voltage adjustment ratio obtained here. This embodiment illustrates the implementation process of the present invention by taking a voice call as an example. 6 is a schematic diagram of a method for measuring the battery power of a mobile phone according to the following preferred embodiment. The method includes: Step S601: Obtain a real-time value of a battery voltage when the mobile phone performs a voice call. Enter the battery voltage detection phase. Step 4 gathers S602, which can be sampled once or multiple times. For example, 12 voltages are obtained 12 times. In step S603, the two highest values and the two lowest values in the detected voltage data are removed, and the average value of the eight data is left. In step S604, the remaining 8 data are averaged, and the obtained value is the average value of the current voltage. In the case of sampling once, steps S602 to S604 are optional steps, and in the case of multiple samples, step 4 is also optional. Step S605, determining the current state of the call. In this embodiment, the phase is a voice call, and the corresponding state is Call hold. Step S606, obtaining a voltage fluctuation compensation value corresponding to the mobile phone during the voice call. The obtained state is Call_hold, and the corresponding voltage compensation value of the lookup table 1 is 20 mV. Step S607, determining a stable value of the battery voltage before entering the voice call. Assume that the battery voltage before entering the call is 3.8V. Step 4 gathers S608 to obtain a voltage fluctuation compensation value corresponding to the mobile phone during a voice call. Look up Table 3
3.8V对应的电压补偿比例是 1.0, 因此, 实际的补偿值为 20 X 1.0=20mV。 步骤 S609, 电压补偿值变为 20 l=20mV„ 步骤 S610 , 判断电池的使用时间。 假设电池使用时间为半年。 步骤 S611 ,查表 2电池使用时间为半年对应的电池电压补偿比例为 1.05。 步 4聚 S612, 电压 卜偿值变为 20 X 1.05=21mV。 步骤 S613 , 居电压补偿值对实际测量的电池电压进行补偿。 语音通话 中的电压检测中得到的电池电压的值为 3.76+0.021=3.781V。 然后, 才艮据预先 设置的电压和电量的关系确定电池的电量。 使用本发明提供的方法, 在检测电压的过程中通过补偿实时测量的电压 抵消了部分电池电压波动的影响,所测量的电池电压更接近电池的实际电压, 避免了电池电压的剧烈波动导致检测到过低的电压值, 使得用户误以为电池 电量已经耗尽而低估手机实际的使用时间。 本发明的方法通过简单的变换, 即可应用到手机在进行摄像、 播放 MP3、 播放 MP4等功耗较大的应用的场 合。 下面以播放 MP3这一场景为例说明上述优选实施例的实现过程,该方法 包括: 步骤 S701 , 获得手机在播放 MP3 时的电池电压的实时值。 进入电池电 压检测阶段。 步 4聚 S702, 可以釆样 1次, 也可以釆样多次, 例如, 电压釆样 12次得 到 12个电池电压数据。 步骤 S703 , 去掉检测的电压数据中 2个最高值及 2个最低值, 剩下 8个
数据平均后的数值。 步骤 S704 , 对剩下的 8个数据取平均, 之后得到的数值为当前电压的平 均值。 在釆样一次的情况下, 步骤 S702至 S704是可选的步骤, 在釆样多次的 情况下, 步骤 S703也是可选的。 步骤 S705 , 判断播放 MP3所处状态。 本实施例中该阶段是进行播放过 程中。 步骤 S706,通过下表 4获得手机在进行播放过程时对应的电压波动补偿 值。 表 4 播放 MP3中电池电压波动补偿表 The voltage compensation ratio corresponding to 3.8V is 1.0, so the actual compensation value is 20 X 1.0=20mV. In step S609, the voltage compensation value becomes 20 l=20 mV. Step S610, and the battery usage time is determined. It is assumed that the battery usage time is half a year. Step S611, the battery usage time of the battery life of the table 2 is half year corresponding to the battery voltage compensation ratio of 1.05. 4 gathers S612, the voltage compensation value becomes 20 X 1.05=21mV. Step S613, the voltage compensation value compensates the actually measured battery voltage. The value of the battery voltage obtained in the voltage detection during the voice call is 3.76+0.021= 3.78 V. Then, according to the relationship between the preset voltage and the amount of electricity, the battery is determined. By using the method provided by the invention, the voltage of the real-time measurement is offset in the process of detecting the voltage to offset the influence of partial battery voltage fluctuations. The measured battery voltage is closer to the actual voltage of the battery, avoiding the violent fluctuation of the battery voltage, resulting in the detection of a too low voltage value, so that the user mistakenly believes that the battery power has been exhausted and underestimates the actual use time of the mobile phone. The method of the present invention is simple The transformation can be applied to mobile phones in applications such as video recording, MP3 playback, MP4 playback, etc. The following is an example of playing the MP3 as an example to illustrate the implementation process of the above preferred embodiment. The method includes: Step S701: Obtain a real-time value of the battery voltage when the mobile phone plays MP3. Enter the battery voltage detection phase. Step 4 S702 It can be sampled once or twice, for example, 12 battery voltage data is obtained 12 times. Step S703, remove the 2 highest values and 2 lowest values in the detected voltage data, leaving 8 One The average value of the data. In step S704, the remaining 8 data are averaged, and the obtained value is the average value of the current voltage. In the case of sampling once, steps S702 to S704 are optional steps, and in the case of multiple samples, step S703 is also optional. Step S705, determining the state in which the MP3 is played. This stage in this embodiment is during playback. Step S706, obtaining the voltage fluctuation compensation value corresponding to the mobile phone during the playing process by using the following Table 4. Table 4 Battery voltage fluctuation compensation table in MP3 playback
本实施例中获得的状态是进行播放, 查找表 4得到对应的电压补偿值是 30mV„ 步骤 S707,根据电压补偿值对实际测量的电池电压进行补偿。播放 MP3 中的电压检测中得到的电池电压的值为 3.76+0.03=3.79V。 然后, 才艮据预先设 置的电压和电量的关系确定电池的电量。 该实施例利用对应于应用场景的阶段的电压补偿值补偿实时测量的手机 电池的电压, 并 -据补偿后的电压确定电量, 实现了准确测量手机电池电量 的目的, 使得用户能够准确判断手机电池的实际使用时间。 图 7是根据本发明实施例的测量手机电池电量的装置的结构框图, 该装 置包括: 测量模块 72 , 获取模块 74, 补偿模块 76, 确定模块 78。 其中, 测量模块 72 , 用于测量手机电池的电压; 获取模块 74, 耦合至 测量模块 72 ,用于根据测量模块 72测量电压时手机的应用场景和使用阶段, 获取电压补偿值; 补偿模块 76, 耦合至测量模块 72和获取模块 74, 用于使 用获取模块 74获取的电压补偿值, 补偿测量模块 72测量的电压; 确定模块 78 , 耦合至补偿模块 76 , 用于根据补偿模块 76补偿后的电压确定电池的电
量。 该实施例利用电压补偿值补偿手机电池的电压, 并根据补偿后的电压确 定电量, 解决了相关技术中手机在应用场景不同阶段时显示给用户的手机电 量的不准确与不稳定的问题, 进而提升了用户体验。 图 8是根据本发明实施例的测量手机电池电量的装置的具体的结构框图 一, 补偿模块 76包括: 第一获取子模块 82 , 第一调整子模块 84 , 第一计算 子模块 86。 其中, 第一获取子模块 82 , 用于获取手机电池的使用时间; 第一调整子 模块 84 , 耦合至第一获取子模块 82和获取模块 74 , 用于使用对应于第一获 取子模块 82获取的使用时间的第一调整比例调整获取模块 74获取的电压补 偿值; 第一计算子模块 86 , 耦合至测量模块 72和第一调整子模块 84 , 用于 使用第一调整子模块 84调整后的电压补偿值与测量模块 72测量的电压进行 相力口。 通常, 随着手机电池的使用时间 (使用寿命) 越长, 其测量电压值与实 际电压值的偏差越大。 该实施例根据手机电池的使用时间调整电压补偿值, 使得电压补偿值更加准确, 从而使得测量得到的电池电量更为准确。 图 9是根据本发明实施例的测量手机电池电量的装置的具体的结构框图 二, 补偿模块 76包括: 第二获取子模块 92 , 第二调整子模块 94 , 第二计算 子模块 96。 其中, 第二获取子模块 92 , 用于获取手机进入应用场景前, 手机电池的 电压值; 第二调整子模块 94 , 耦合至第二获取模块 92和获取模块 74 , 用于 使用对应于第二获取模块 92获取的电压值的第二调整比例调整获取模块 74 获取的电压补偿值; 以及第二计算子模块 96 , 耦合至测量模块 72和第二调 整子模块 94 , 用于使用第二调整子模块 94调整后的电压补偿值与测量模块 72测量的电压进行 目力口。 该实施例才艮据电池进入应用场景前的电压值调整电压补偿值, 使得测量 得到的电池电量更为准确。 综上所述, 通过本发明, 解决了相关技术中手机在应用场景不同阶段时 显示给用户的手机电量的不准确与不稳定的问题, 进而提升了用户体 -险。
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。
The state obtained in this embodiment is to perform playback, and the corresponding voltage compensation value obtained in the lookup table 4 is 30 mV. Step S707, the actual measured battery voltage is compensated according to the voltage compensation value. The battery voltage obtained in the voltage detection in the MP3 is played. The value of 3.76 + 0.03 = 3.79 V. Then, the battery is determined according to the relationship between the voltage and the power set in advance. This embodiment compensates the voltage of the mobile phone battery measured in real time by using the voltage compensation value corresponding to the stage of the application scenario. And determining the power according to the compensated voltage, achieving the purpose of accurately measuring the battery power of the mobile phone, so that the user can accurately determine the actual use time of the mobile phone battery. Figure 7 is a structure of a device for measuring the battery power of a mobile phone according to an embodiment of the present invention. Block diagram, the device includes: a measurement module 72, an acquisition module 74, a compensation module 76, a determination module 78. The measurement module 72 is configured to measure a voltage of the mobile phone battery; the acquisition module 74 is coupled to the measurement module 72 for measuring When the module 72 measures the voltage, the application scenario and the use phase of the mobile phone acquire the voltage compensation value; The module 76 is coupled to the measurement module 72 and the acquisition module 74 for compensating the voltage measured by the measurement module 72 using the voltage compensation value acquired by the acquisition module 74. The determination module 78 is coupled to the compensation module 76 for compensation according to the compensation module 76. After the voltage determines the battery's electricity the amount. In this embodiment, the voltage of the mobile phone battery is compensated by the voltage compensation value, and the power is determined according to the compensated voltage, thereby solving the problem of inaccuracy and instability of the mobile phone displayed to the user in different stages of the application scenario in the related art, and further Improved user experience. FIG. 8 is a block diagram of a specific structure of an apparatus for measuring battery power of a mobile phone according to an embodiment of the present invention. The compensation module 76 includes: a first acquisition sub-module 82, a first adjustment sub-module 84, and a first calculation sub-module 86. The first obtaining sub-module 82 is configured to obtain the usage time of the mobile phone battery. The first adjusting sub-module 84 is coupled to the first obtaining sub-module 82 and the obtaining module 74 for acquiring by using the first acquiring sub-module 82. The first adjustment ratio of the usage time adjusts the voltage compensation value acquired by the acquisition module 74; the first calculation sub-module 86 is coupled to the measurement module 72 and the first adjustment sub-module 84 for adjustment using the first adjustment sub-module 84 The voltage compensation value is phased with the voltage measured by the measurement module 72. Generally, as the usage time (life) of the mobile phone battery is longer, the deviation between the measured voltage value and the actual voltage value is greater. In this embodiment, the voltage compensation value is adjusted according to the usage time of the mobile phone battery, so that the voltage compensation value is more accurate, so that the measured battery power is more accurate. FIG. 9 is a block diagram 2 of a specific structure of an apparatus for measuring a battery level of a mobile phone according to an embodiment of the present invention. The compensation module 76 includes: a second acquisition sub-module 92, a second adjustment sub-module 94, and a second calculation sub-module 96. The second obtaining sub-module 92 is configured to obtain a voltage value of the mobile phone battery before the mobile phone enters the application scenario; the second adjusting sub-module 94 is coupled to the second obtaining module 92 and the obtaining module 74, and is configured to be used corresponding to the second Obtaining a second adjustment ratio of the voltage value obtained by the module 92 to adjust the voltage compensation value acquired by the acquisition module 74; and a second calculation sub-module 96 coupled to the measurement module 72 and the second adjustment sub-module 94 for using the second adjustment sub-module The adjusted voltage compensation value of the module 94 and the voltage measured by the measurement module 72 are used for the eye port. In this embodiment, the voltage compensation value is adjusted according to the voltage value before the battery enters the application scenario, so that the measured battery power is more accurate. In summary, the present invention solves the problem of inaccuracy and instability of the mobile phone displayed to the user in different stages of the application scenario in the related art, thereby improving the user's body risk. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.
Claims
权 利 要 求 书 一种测量手机电池电量的方法, 其特征在于, 包括以下步 4聚: A method for measuring the battery power of a mobile phone, characterized in that it comprises the following steps:
测量所述手机电池的电压; Measuring the voltage of the mobile phone battery;
根据测量所述电压时手机的应用场景和使用阶段,获取电压补偿值; 使用所述电压补偿值, 补偿所述电压; 以及 Obtaining a voltage compensation value according to an application scenario and a use phase of the mobile phone when measuring the voltage; and using the voltage compensation value to compensate the voltage;
才艮据补偿后的所述电压确定所述手机电池的电量。 才艮据权利要求 1所述的方法, 其特征在于, -据测量所述电压时所述手 机的应用场景和使用阶段, 获取所述电压补偿值包括: The power of the mobile phone battery is determined according to the compensated voltage. The method according to claim 1, wherein, according to the application scenario and the use phase of the mobile phone when measuring the voltage, obtaining the voltage compensation value comprises:
预先测量所述手机电池在所述应用场景和所述使用阶段的电压波 动; 以及 Pre-measuring voltage fluctuations of the mobile phone battery in the application scenario and the use phase;
才艮据所述应用场景和所述使用阶段, 确定所述电压波动为所述电压 补偿值。 根据权利要求 1所述的方法, 其特征在于, 使用所述电压补偿值, 补偿 所述电压包括: According to the application scenario and the use phase, the voltage fluctuation is determined to be the voltage compensation value. The method according to claim 1, wherein the using the voltage compensation value to compensate the voltage comprises:
对所述电压补偿值与所述电压进行相加, 得到补偿后的所述电压。 根据权利要求 1所述的方法, 其特征在于, 使用所述电压补偿值, 补偿 所述电压包括: The voltage compensation value is added to the voltage to obtain the compensated voltage. The method according to claim 1, wherein the using the voltage compensation value to compensate the voltage comprises:
获取所述手机电池的使用时间; Obtaining the usage time of the mobile phone battery;
使用对应于所述使用时间的第一调整比例调整所述电压补偿值; 以 及 Adjusting the voltage compensation value using a first adjustment ratio corresponding to the usage time; and
对调整后的所述电压补偿值与所述电压进行相加, 得到补偿后的所 述电压。
The adjusted voltage compensation value is added to the voltage to obtain the compensated voltage.
5. 根据权利要求 1所述的方法, 其特征在于, 使用所述电压补偿值, 补偿 所述电压包括: 5. The method according to claim 1, wherein: using the voltage compensation value, compensating the voltage comprises:
获取所述手机进入所述应用场景前, 所述手机电池的电压值; 使用对应于所述电压值的第二调整比例调整所述电压补偿值; 以及 对调整后的所述电压补偿值与所述电压进行相加, 得到补偿后的所 述电压。 Obtaining a voltage value of the mobile phone battery before the mobile phone enters the application scenario; adjusting the voltage compensation value by using a second adjustment ratio corresponding to the voltage value; and adjusting the adjusted voltage compensation value The voltages are added to obtain the compensated voltage.
6. 根据权利要求 1至 5中任一项所述的方法, 其特征在于, 测量所述手机 电池的电压包括: The method according to any one of claims 1 to 5, wherein measuring the voltage of the mobile phone battery comprises:
多次测量所述手机电池的电压, 得到多个电压测量值; 计算所述多个电压测量值的平均值, 得到所述手机电池的电压。 Measuring the voltage of the mobile phone battery a plurality of times to obtain a plurality of voltage measurement values; calculating an average value of the plurality of voltage measurement values to obtain a voltage of the mobile phone battery.
7. 根据权利要求 6所述的方法, 其特征在于, 在计算所述多个电压测量值 的平均值之前, 所述方法还包括: The method according to claim 6, wherein before calculating the average of the plurality of voltage measurements, the method further comprises:
排除所述多个电压测量值中异常的电压测量值。 Abnormal voltage measurements in the plurality of voltage measurements are excluded.
8. —种测量手机电池电量的装置, 其特征在于, 包括: 8. A device for measuring the battery power of a mobile phone, comprising:
测量模块, 用于测量所述手机电池的电压; a measuring module, configured to measure a voltage of the mobile phone battery;
获取模块, 用于根据测量所述电压时手机的应用场景和使用阶段, 获取电压补偿值; 补偿模块, 用于使用所述电压补偿值, 补偿所述电压; 以及 确定模块, 用于才艮据补偿后的所述电压确定所述手机电池的电量。 An obtaining module, configured to obtain a voltage compensation value according to an application scenario and a use phase of the mobile phone when measuring the voltage; a compensation module, configured to compensate the voltage by using the voltage compensation value; and a determining module, configured to The compensated voltage determines the amount of power of the handset battery.
9. 根据权利要求 8所述的装置, 其特征在于, 所述补偿模块包括: The device according to claim 8, wherein the compensation module comprises:
第一获取子模块, 用于获取所述手机电池的使用时间; 第一调整子模块, 用于使用对应于所述使用时间的第一调整比例调 整所述电压补偿值; 以及 a first obtaining submodule, configured to acquire a usage time of the mobile phone battery; a first adjusting submodule, configured to adjust the voltage compensation value by using a first adjustment ratio corresponding to the usage time;
第一计算子模块, 用于对调整后的所述电压补偿值与所述电压进行 相力口。
The first calculation sub-module is configured to perform phase-matching on the adjusted voltage compensation value and the voltage.
0. 根据权利要求 8所述的装置, 其特征在于, 所述补偿模块包括: 第二获取子模块, 用于获取所述手机进入所述应用场景前, 所述手 机电池的电压值; 第二调整子模块, 用于使用对应于所述电压值的第二调整比例调整 所述电压补偿值; 以及 The device according to claim 8, wherein the compensation module comprises: a second acquisition submodule, configured to acquire a voltage value of the mobile phone battery before the mobile phone enters the application scenario; Adjusting a submodule for adjusting the voltage compensation value using a second adjustment ratio corresponding to the voltage value;
第二计算子模块, 用于对调整后的所述电压补偿值与所述电压进行 相力口。
And a second calculating submodule, configured to perform a phase interaction on the adjusted voltage compensation value and the voltage.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010144163A CN101806867A (en) | 2010-03-12 | 2010-03-12 | Method and device for measuring electric quantity of mobile phone battery |
CN201010144163.9 | 2010-03-12 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011109985A1 true WO2011109985A1 (en) | 2011-09-15 |
Family
ID=42608749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2010/075409 WO2011109985A1 (en) | 2010-03-12 | 2010-07-22 | Battery capacity measuring method for mobile phone and apparatus thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101806867A (en) |
WO (1) | WO2011109985A1 (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739845B (en) * | 2011-04-11 | 2014-08-20 | 国基电子(上海)有限公司 | Electronic device capable of detecting battery power and battery power detection method |
CN103048622A (en) * | 2011-10-12 | 2013-04-17 | 亚旭电子科技(江苏)有限公司 | Handhold electronic device testing method |
CN103176132B (en) * | 2011-12-22 | 2015-08-12 | 联芯科技有限公司 | The evaluation method of battery electric quantity and terminal device |
CN102721927B (en) * | 2012-05-04 | 2016-02-10 | 惠州Tcl移动通信有限公司 | A kind of method and system detecting mobile device battery electric quantity |
CN103424702B (en) * | 2012-05-22 | 2016-02-10 | 中兴通讯股份有限公司 | A kind of method and electronic equipment identifying thickness battery |
CN103792490B (en) * | 2013-11-22 | 2016-08-17 | 广州视源电子科技股份有限公司 | Method for measuring and calculating battery capacity of system |
CN105866688A (en) * | 2015-12-30 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method of measuring mobile communication terminal equipment cell capacity and system thereof |
CN106688175B (en) | 2016-03-01 | 2020-08-04 | 深圳市大疆创新科技有限公司 | Motor control method, device and system |
CN106026220B (en) * | 2016-05-05 | 2019-07-05 | Oppo广东移动通信有限公司 | It is a kind of charge sampled voltage compensation method and mobile terminal |
CN106093780A (en) * | 2016-05-31 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | A kind of terminal residual electricity determines method and terminal |
CN107479001B (en) * | 2017-08-25 | 2023-04-04 | 深圳金仕盾照明科技有限公司 | Battery electric quantity detection device and lamp |
CN109031148A (en) * | 2018-08-27 | 2018-12-18 | 江苏盖睿健康科技有限公司 | Battery electricity detection method and system |
WO2020087373A1 (en) * | 2018-10-31 | 2020-05-07 | 华为技术有限公司 | Compensation method and apparatus for battery voltage, and terminal device |
CN112130082B (en) * | 2019-06-05 | 2024-07-16 | 海能达通信股份有限公司 | Method and equipment for calculating battery power and device with storage function |
CN110716142A (en) * | 2019-10-16 | 2020-01-21 | 蔚复来(浙江)科技股份有限公司 | Low-power-consumption battery electric quantity detection method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09257889A (en) * | 1996-03-22 | 1997-10-03 | Aiwa Co Ltd | Battery remaining capacity detector and portable telephone using the same |
US6515452B2 (en) * | 2000-11-27 | 2003-02-04 | Samsung Electronics Co., Ltd. | Remaining battery capacity corrector and controlling method therefor |
CN1641372A (en) * | 2004-01-02 | 2005-07-20 | 明基电通股份有限公司 | Mobile electronic device cell volume compensating device and method |
CN1773304A (en) * | 2004-11-08 | 2006-05-17 | 佛山市顺德区顺达电脑厂有限公司 | Method for correcting battery dump volume |
CN1889736A (en) * | 2006-08-08 | 2007-01-03 | 北京天碁科技有限公司 | Method for measuring mobile communication terminal battery electricity quantity |
CN101126796A (en) * | 2007-10-12 | 2008-02-20 | 深圳华为通信技术有限公司 | Battery electric quantity detecting method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5394376B2 (en) * | 2007-07-09 | 2014-01-22 | コーニンクレッカ フィリップス エヌ ヴェ | Method and apparatus for determining the state of charge of a battery |
-
2010
- 2010-03-12 CN CN201010144163A patent/CN101806867A/en active Pending
- 2010-07-22 WO PCT/CN2010/075409 patent/WO2011109985A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09257889A (en) * | 1996-03-22 | 1997-10-03 | Aiwa Co Ltd | Battery remaining capacity detector and portable telephone using the same |
US6515452B2 (en) * | 2000-11-27 | 2003-02-04 | Samsung Electronics Co., Ltd. | Remaining battery capacity corrector and controlling method therefor |
CN1641372A (en) * | 2004-01-02 | 2005-07-20 | 明基电通股份有限公司 | Mobile electronic device cell volume compensating device and method |
CN1773304A (en) * | 2004-11-08 | 2006-05-17 | 佛山市顺德区顺达电脑厂有限公司 | Method for correcting battery dump volume |
CN1889736A (en) * | 2006-08-08 | 2007-01-03 | 北京天碁科技有限公司 | Method for measuring mobile communication terminal battery electricity quantity |
CN101126796A (en) * | 2007-10-12 | 2008-02-20 | 深圳华为通信技术有限公司 | Battery electric quantity detecting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101806867A (en) | 2010-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011109985A1 (en) | Battery capacity measuring method for mobile phone and apparatus thereof | |
US9689927B2 (en) | Detection circuit and electronic terminal | |
TWI478418B (en) | Calibration method and system for discharging curve of a battery | |
TWI653805B (en) | Method and apparatus for calibrating charge state estimation based on coulomb counting | |
TWI422849B (en) | Battery capacity estimation by dcir | |
CN102854471B (en) | Battery meter metering method and measuring apparatus | |
JP5474993B2 (en) | Method for determining the state of charge of a battery in the charge or discharge phase | |
WO2016145621A1 (en) | Electrical power estimating method and terminal | |
TW200844466A (en) | Battery remaining capacity predicting apparatus | |
US9891287B2 (en) | Temperature-compensated state of charge estimation for rechargeable batteries | |
KR20020070516A (en) | A method of predicting the state of charge as well as the use time left of a rechargeable battery | |
KR20090082374A (en) | Apparatus and method for determination of the state-of-charge of a battery when the battery is not in equilibrium | |
CN106959417A (en) | The acquisition methods and device of battery charge state | |
CN104914381B (en) | A kind of battery capacity of mobile terminal smoothly displaying method and system | |
KR20170116427A (en) | Apparatus and method for estimating battery state | |
CN112557933B (en) | Method and device for calculating battery health state | |
TW201122757A (en) | Signal monitoring system and method | |
CN111555389A (en) | Method, device and equipment for calculating battery electric quantity and computer readable storage medium | |
US9759782B2 (en) | Impedance-based battery state estimation method | |
CN110687458A (en) | Terminal battery electric quantity determination method and device | |
CN112698229B (en) | Short-circuit current detection method and device, readable storage medium and electronic equipment | |
JP6054788B2 (en) | Storage battery residual quantity estimation device and residual quantity estimation method | |
CN112433156A (en) | SOC estimation method | |
JP2014059226A (en) | Soundness calculation device for battery and soundness calculation method therefor | |
CN110031774B (en) | Online measurement method and device for internal resistance of battery pack |
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: 10847243 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: 10847243 Country of ref document: EP Kind code of ref document: A1 |