Battery capacity determination method and device and endurance time determination method and device for mobile equipment
By combining the open circuit voltage method and the Coulomb integral method based on the working mode, the remaining power of the lithium battery is accurately determined based on the battery working current and mode of the mobile device, the problem of low power accuracy in the existing technology is solved, and the power estimation is improved. accuracy.
Patent Information
- Application Number
- CN202411494212.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-01-10
AI Technical Summary
In the prior art, when determining the battery capacity of a lithium battery based on the open circuit voltage method, the error is large when the operating current is large, resulting in a low accuracy of the battery capacity.
By obtaining the battery operating current flowing through the mobile device, and under different current intervals and durations, the open circuit voltage method and the Coulomb integral method based on the working mode are used to determine the remaining battery power and reduce errors.
The accuracy of battery power is improved, especially when the operating current is large, the error caused by the open circuit voltage method is reduced, and the accumulated error caused by the Coulomb integration method is corrected by combining the method.
Smart Images

Figure CN119291538A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a method for determining the battery power of a mobile device, a method for determining the battery life, a device for determining the battery power, a device for determining the battery life, a mobile device, a computer-readable storage medium, and a computer program product. Background Art
[0002] For small mobile devices equipped with lithium batteries, such as the charging case of wireless headphones, it is crucial to accurately and effectively monitor the remaining power of the lithium battery.
[0003] Currently, for small mobile devices, the open circuit voltage method is usually used to estimate the remaining power.
[0004] However, the slope of the battery charge curve is not a constant slope, which results in a larger error in the open circuit voltage method when the working current flowing through the battery is large, thereby making the accuracy of the battery charge determined based on the open circuit voltage method low. Summary of the invention
[0005] Based on this, it is necessary to provide a battery power determination method for a mobile device, a battery life determination method, a battery power determination device, a battery life determination device, a mobile device, a computer-readable storage medium and a computer program product that can improve the accuracy of the battery power determined based on the open circuit voltage method to address the technical problem of low accuracy of the battery power determined based on the open circuit voltage method.
[0006] In a first aspect, the present application provides a method for determining battery power of a mobile device, comprising:
[0007] Get the working current of the battery currently flowing through the mobile device;
[0008] When the duration for which the operating current falls within the preset current interval is less than or equal to a duration threshold, or when the operating current is less than or equal to a lower limit of the preset current interval, determining the current remaining capacity of the battery based on the current open circuit voltage of the battery;
[0009] When the duration for which the working current falls within the preset current interval is greater than the duration threshold, the current remaining power of the battery is determined according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the duration is greater than the duration threshold; the mobile device currently has at least one working mode turned on.
[0010] In one embodiment, determining the current remaining power of the battery according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the duration is greater than the duration threshold includes:
[0011] Based on the working time of each working mode after the continuous time is longer than the time threshold, integrating the calibrated current of each working mode to obtain the amount of power change of the battery after the continuous time is longer than the time threshold;
[0012] The remaining power is determined based on the historical power of the battery and the power change; the historical power is determined based on the open circuit voltage of the battery when the duration of time that the working current falls within the preset current interval is less than or equal to a duration threshold, or when the working current is less than or equal to a lower limit value of the preset current interval.
[0013] In one embodiment, determining the current remaining power of the battery based on the current open circuit voltage of the battery of the mobile device includes:
[0014] According to the current open circuit voltage of the battery, a mapping table of the open circuit voltage and battery power corresponding to the battery is queried to obtain the battery power corresponding to the open circuit voltage as the remaining power.
[0015] In one embodiment, the method further comprises:
[0016] When it is detected that the working current is greater than the lower limit of the preset current interval, timing the duration that the working current falls within the preset current interval;
[0017] When it is detected that the duration is greater than the duration threshold, timing the working duration of each working mode turned on by the mobile device;
[0018] In the case of timing the duration, when it is detected that the working current is less than or equal to the lower limit value of the preset current interval, the duration is reset to zero.
[0019] In one embodiment, the method further comprises:
[0020] Obtaining the total capacity of the battery of the mobile device;
[0021] Determining a first current threshold and a second current threshold based on the total capacity of the battery; the first current threshold is less than the second current threshold;
[0022] The first current threshold is used as a lower limit value, and the second current threshold is used as an upper limit value to obtain the preset current range.
[0023] In a second aspect, the present application provides a method for determining the battery life of a mobile device, comprising:
[0024] In the case of detecting that a working mode of a mobile device has changed, determining a first remaining power of a battery of the mobile device after the working mode has changed; the mobile device has at least one working mode turned on; and the first remaining power is determined by a method for determining the battery power of a mobile device;
[0025] Determine each operating mode currently enabled by the mobile device and a calibrated current of each operating mode, and determine an expected operating current of the mobile device after the operating mode is changed based on the calibrated current of each operating mode;
[0026] A first battery life of the mobile device is determined based on the first remaining power and the expected operating current.
[0027] In one of the embodiments, after determining the first remaining power of the battery of the mobile device after the working mode is changed, the method further includes:
[0028] Obtaining a second remaining power of the battery before the working mode changes, and a historical working current flowing through the battery before the working mode changes; the second remaining power is determined by the above-mentioned method for determining the battery power of the mobile device;
[0029] Determining a second battery life of the mobile device based on the second remaining power and the historical operating current;
[0030] After determining the first battery life of the mobile device, the method further includes:
[0031] When the first battery life is less than the second battery life, a battery life reduction prompt message is issued.
[0032] In a third aspect, the present application further provides a device for determining battery power of a mobile device, comprising:
[0033] A working current acquisition module, used to acquire the working current currently flowing through the battery of the mobile device;
[0034] A first power determination module, configured to determine the current remaining power of the battery based on the current open circuit voltage of the battery when the duration of the working current falling within the preset current interval is less than or equal to a duration threshold, or when the working current is less than or equal to a lower limit of the preset current interval;
[0035] The second power determination module is used to determine the current remaining power of the battery according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the continuous time is greater than the time threshold, when the duration of the working current falling within the preset current interval is greater than the time threshold; the mobile device currently has at least one working mode turned on.
[0036] In a fourth aspect, the present application further provides a device for determining the battery life of a mobile device, comprising:
[0037] The working mode detection module is used to determine a first remaining power of a battery of the mobile device after the working mode is changed when detecting that the working mode of the mobile device has changed; the working mode of the mobile device is at least one; the first remaining power is determined by a method for determining the battery power of the mobile device;
[0038] A working current determination module, used to determine each working mode currently turned on by the mobile device and a calibrated current of each working mode, and based on the calibrated current of each working mode, determine an expected working current of the mobile device after the working mode changes;
[0039] A battery life determination module is used to determine a first battery life of the mobile device based on the first remaining power and the expected operating current.
[0040] In a fifth aspect, the present application also provides a mobile device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it performs the steps in a method for determining the battery power of a mobile device or a method for determining the battery life of a mobile device.
[0041] In a sixth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements each step in a method for determining the battery power of a mobile device or a method for determining the battery life of a mobile device.
[0042] In a seventh aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements each step in a method for determining the battery power of a mobile device or a method for determining the battery life of a mobile device.
[0043] The battery power determination method, battery life determination method, battery power determination device, battery life determination device, mobile device, computer-readable storage medium and computer program product of the above-mentioned mobile device first obtain the working current of the battery currently flowing through the mobile device; then, when the duration of the working current falling within the preset current interval is less than or equal to the duration threshold, or when the working current is less than or equal to the lower limit of the preset current interval, determine the current remaining power of the battery based on the current open circuit voltage of the battery; then, when the duration of the working current falling within the preset current interval is greater than the duration threshold, determine the current remaining power of the battery based on the calibrated current of the working mode currently turned on by the mobile device, and the working time of the working mode after the duration is greater than the duration threshold; the mobile device currently has at least one working mode turned on. In this way, by using the open circuit voltage method to determine the current remaining battery power when the working current is less than or equal to the lower limit of the preset current range, that is, when the working current is small, when the working current is greater than the lower limit of the preset current range and the duration of falling into the preset current range is greater than the duration threshold, that is, when the working current is continuously large, the current remaining battery power is determined based on the calibrated current and working time of the working mode turned on by the mobile device, which can reduce the error caused by the open circuit voltage method when the working current is large, thereby improving the accuracy of the determined battery power. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] FIG1 is a schematic flow chart of a method for determining battery power of a mobile device in one embodiment;
[0046] FIG2 is a flowchart of a step of determining the current remaining power of a battery according to a calibrated current of a working mode currently enabled by a mobile device and a working time after the working mode lasts longer than a time threshold in one embodiment;
[0047] FIG3 is a flow chart of the steps of timing the duration and working duration in one embodiment;
[0048] FIG4 is a schematic diagram of a flow chart of a method for determining a battery life of a mobile device in one embodiment;
[0049] FIG5 is a schematic diagram of a flow chart of a method for determining a battery life of a mobile device in another embodiment;
[0050] FIG6 is a flow chart of a method for determining battery power of a mobile device in another embodiment;
[0051] FIG7 is a schematic diagram of a flow chart of a method for determining a battery life of a mobile device in yet another embodiment;
[0052] FIG8 is a graph showing the remaining battery power in one embodiment;
[0053] FIG9 is a schematic diagram showing the relationship between charge amount and integration time in one embodiment;
[0054] FIG10 is a structural block diagram of a device for determining battery power of a mobile device in one embodiment;
[0055] FIG11 is a structural block diagram of a device for determining a battery life of a mobile device in one embodiment;
[0056] FIG. 12 is a diagram showing the internal structure of a mobile device in one embodiment. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0058] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0059] In one embodiment, as shown in FIG1 , a method for determining the battery power of a mobile device is provided. This embodiment uses the method applied to a mobile device as an example. It is understandable that the method can also be applied to a server or terminal that is connected to the mobile device for communication, and can also be applied to a system including a mobile device and a server or terminal, and is implemented through the interaction of the mobile device and the server or terminal system; wherein the mobile device can be, but is not limited to, a wireless headset charging station, a smart phone, a tablet computer, a laptop computer, a portable speaker, a smart watch, a smart bracelet, etc.; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services; the terminal can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, etc. In this embodiment, the method includes the following steps:
[0060] Step S102, obtaining the operating current currently flowing through the battery of the mobile device.
[0061] Among them, mobile devices can be but are not limited to wireless headset charging boxes, smart phones, tablet computers, laptops, portable speakers, smart watches, smart bracelets and other small mobile devices equipped with lithium batteries.
[0062] Among them, the battery is a lithium battery.
[0063] Specifically, the mobile device can obtain the current currently flowing through the battery in real time as the current working current flowing through the battery, or use the average current flowing through the battery over a period of time as the current working current.
[0064] In a specific application, the working current is the average current flowing through the battery within 3 seconds.
[0065] Step S104, when the duration of the working current falling within the preset current interval is less than or equal to the duration threshold, or when the working current is less than or equal to the lower limit of the preset current interval, determine the current remaining power of the battery based on the current open circuit voltage of the battery of the mobile device.
[0066] The preset current range is related to the total capacity of the battery; in a specific application, the upper limit and the lower limit of the preset current range are determined based on the total capacity of the battery.
[0067] The working current falling within the preset current interval means that the working current is greater than a lower limit value of the preset current interval and less than an upper limit value of the preset current interval.
[0068] Specifically, when the remaining battery power needs to be estimated, if the mobile device detects that the working current is less than or equal to the lower limit of the preset current interval, the current open circuit voltage of the battery is obtained, and the current remaining battery power is estimated using the open circuit voltage method. If the mobile device detects that the working current is greater than the lower limit of the preset current interval, it starts to count the duration of the working current falling into the preset current region, and when the remaining battery power needs to be estimated, it is determined whether the duration is less than or equal to the duration threshold. If the duration is less than or equal to the duration threshold, the current open circuit voltage of the battery is obtained, and the current remaining battery power is estimated using the open circuit voltage method.
[0069] In actual applications, the preset duration is 10s, and the total battery capacity is 1C, then the lower limit of the preset current range is a%C, and the upper limit is b%C (where b is greater than a). That is, if the mobile device detects that the working current is less than or equal to a%C, or if the mobile device detects that the working current is greater than a%C and less than b%C for a duration less than or equal to 10s, then the open circuit voltage method is used to estimate the current remaining battery capacity based on the current open circuit voltage of the battery.
[0070] Step S106, when the duration of the working current falling within the preset current range is greater than the duration threshold, determine the current remaining battery power according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the duration is greater than the duration threshold.
[0071] Among them, the mobile device currently has at least one working mode turned on; each working mode has a corresponding calibrated current, and the calibrated current of each working mode is the standard current flowing through the battery when the mobile device turns on the working mode alone.
[0072] Specifically, if the mobile device detects that the duration of the working current falling into the preset current area is greater than the duration threshold, it starts to time the working time of each working mode currently turned on the mobile device after the duration is greater than the duration threshold, and when it is necessary to estimate the remaining battery power, the working time and calibrated current of each working mode after the duration is greater than the duration threshold are obtained, and the Coulomb integration method based on the working mode is used to estimate the current remaining battery power.
[0073] In actual applications, if the mobile device detects that the working current is greater than a%C and less than b%C for a duration greater than 10s, the Coulomb integration method based on the working mode is used to estimate the current remaining battery power according to the calibrated current of each working mode currently turned on by the mobile device and the working time of each working mode after the working current lasts for more than 10s.
[0074] This application divides the estimation of the remaining battery power into two cases based on the working current flowing through the battery. The first case is the case where the working current is less than or equal to a%C, and the second case is the case where the working current is greater than a%C. Among them, the first case is estimated by the open circuit voltage method, and the second case is estimated by the Coulomb integration method based on the working mode. In addition, it should be noted that if the duration of the working current being greater than a%C and less than b%C is less than the duration threshold of 10s, that is, the working current is greater than a%C for a short period of time and then less than or equal to a%C, then the mobile device believes that the working current is not stably and continuously greater than a%C, and it still belongs to the first case.
[0075] In the above-mentioned method for determining the battery power of a mobile device, first, the mobile device obtains the working current of the battery currently flowing through the mobile device; then, the mobile device determines the current remaining power of the battery based on the current open circuit voltage of the battery when the duration of the working current falling within the preset current interval is less than or equal to the duration threshold, or when the working current is less than or equal to the lower limit of the preset current interval; then, the mobile device determines the current remaining power of the battery based on the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the duration is greater than the duration threshold when the working current falls within the preset current interval. The mobile device currently has at least one working mode turned on. In this way, the mobile device determines the current remaining battery power by using the open circuit voltage method when the working current is less than or equal to the lower limit of the preset current range, that is, when the working current is small, and determines the current remaining battery power based on the calibrated current and working time of the working mode turned on by the mobile device when the working current is greater than the lower limit of the preset current range and the duration of falling into the preset current range is greater than the duration threshold, that is, when the working current is continuously large. This can reduce the error caused by the open circuit voltage method when the working current is large, thereby improving the accuracy of the determined battery power.
[0076] In an exemplary embodiment, as shown in FIG. 2 , in the above step S106, according to the calibrated current of the working mode currently turned on by the mobile device and the working time after the working mode lasts longer than the time threshold, determining the current remaining power of the battery specifically includes the following steps:
[0077] Step S202, based on the working time of each working mode after the duration is longer than the duration threshold, integrate the calibrated current of each working mode to obtain the amount of charge change of the battery after the duration is longer than the duration threshold.
[0078] Step S204: determining the remaining power based on the historical power level and power change of the battery.
[0079] The mobile device will record the remaining power each time it is determined.
[0080] The historical power is determined based on the open circuit voltage of the battery when the duration of the working current falling into the preset current interval is less than or equal to the duration threshold, or when the working current is less than or equal to the lower limit of the preset current interval. That is, the historical power is determined by the above step S104. In a specific application, the historical power is the remaining power determined based on the open circuit voltage (i.e., using the open circuit voltage method) last time.
[0081] Specifically, the mobile device uses the working time of each working mode after the duration is greater than the duration threshold as the integral variable, and uses the calibrated current of each working mode as the integrand to perform integration operations to obtain the change in battery power after the duration is greater than the duration threshold. At the same time, the mobile device obtains the last recorded historical power determined based on the open circuit voltage, and calculates the sum of the historical power and the change in power (the battery change is a negative value) to obtain the current remaining power of the battery.
[0082] For example, the mobile device calculates the amount of power change of the battery after the duration is greater than the duration threshold based on the following formula 1:
[0083] (Formula 1)
[0084] in, is the amount of change in electric quantity; For the The rated current of each working mode, For the The working time of a working mode after the duration is greater than the duration threshold.
[0085] If the historical power obtained based on the open circuit voltage last time is , the mobile device calculates the current remaining battery power using the following formula 2:
[0086] (Formula 2)
[0087] in, The current remaining battery power.
[0088] In this embodiment, on the one hand, the mobile device uses the Coulomb integration method based on the working mode to compensate for the error of the open circuit voltage method when the current is large, thereby improving the accuracy of the battery power determined. On the other hand, the mobile device combines the open circuit voltage method with the Coulomb integration method based on the working mode, which can correct the cumulative error caused by the Coulomb integration method, thereby further improving the accuracy of the battery power determined.
[0089] In an exemplary embodiment, in the above step S104, the current remaining power of the battery is determined based on the current open circuit voltage of the battery of the mobile device, which specifically includes the following contents: according to the current open circuit voltage of the battery, query the open circuit voltage and battery power mapping table corresponding to the battery, and obtain the battery power corresponding to the open circuit voltage as the remaining power.
[0090] The battery has a preset open circuit voltage and battery power mapping table corresponding to it; the open circuit voltage and battery power mapping table records the mapping relationship between different open circuit voltages and battery power.
[0091] Specifically, the mobile device obtains the current open circuit voltage of the battery, and queries the open circuit voltage and battery power mapping table corresponding to the battery based on the open circuit voltage to obtain the battery power corresponding to the open circuit voltage. and the battery charge corresponding to the open circuit voltage Determine the current remaining battery power .
[0092] In this embodiment, since the error of the open circuit voltage method is small when the current is small, the mobile device can use the open circuit voltage method to determine the current remaining power of the battery when the operating current is small.
[0093] In an exemplary embodiment, as shown in FIG3 , the method for determining the battery power of a mobile device provided by the present application further includes the following steps:
[0094] Step S302: when it is detected that the working current is greater than the lower limit of the preset current interval, the duration for which the working current falls within the preset current interval is measured.
[0095] Step S304: when it is detected that the duration is greater than the duration threshold, the operating duration of each operating mode turned on by the mobile device is counted.
[0096] as well as,
[0097] Step S306, when the duration is counted, if it is detected that the working current is less than or equal to the lower limit of the preset current range, the duration is reset to zero.
[0098] Specifically, if the mobile device detects that the working current is greater than the lower limit of the preset current interval, it starts to count the duration of the working current falling into the preset current interval, so as to facilitate the subsequent determination of whether the duration is greater than the duration threshold. After timing the duration, if the mobile device detects that the duration is greater than the duration threshold, it further counts the duration of each working mode turned on by the mobile device after the duration is greater than the duration threshold, so as to facilitate the subsequent determination of the current remaining battery power based on the working duration of each working mode and the calibrated current; at the same time, if the mobile device detects that the working current is less than or equal to the lower limit of the preset current interval, the counted duration is reset to zero.
[0099] In this embodiment, the mobile device measures the duration of the working current falling within the preset current range and the working time of the working mode after the duration is greater than the preset time, so as to facilitate the subsequent judgment of whether the duration is greater than the duration threshold, and facilitate the subsequent determination of the current remaining power of the battery based on the working time and the calibrated current of each working mode.
[0100] In an exemplary embodiment, the battery power determination method of a mobile device provided in the present application specifically also includes the following content for determining a preset current range: obtaining the total capacity of the battery of the mobile device; based on the total capacity of the battery, determining a first current threshold and a second current threshold; using the first current threshold as a lower limit value and the second current threshold as an upper limit value to obtain a preset current range.
[0101] The first current threshold is smaller than the second current threshold.
[0102] The upper limit and lower limit values of the preset current range are determined based on the total capacity of the battery; specifically, the mobile device first obtains the total capacity of the battery; then, a first current threshold is determined based on a first preset ratio and the total capacity, and a second current threshold greater than the first current threshold is determined based on a second preset ratio greater than the first preset ratio and the total capacity; finally, the mobile device uses the first current threshold as the lower limit value and the second current threshold as the upper limit value to obtain the preset current range.
[0103] For example, if the total battery capacity is 300 mAh, the first preset ratio is 0.01, and the second preset ratio is 0.1, then the preset current range is .
[0104] In this embodiment, the mobile device can reasonably determine the preset current range based on the total battery capacity, thereby dividing the determination of the remaining battery power into two cases.
[0105] In one embodiment, as shown in FIG4 , a method for determining the battery life of a mobile device is also provided. This embodiment uses the method applied to a mobile device as an example for illustration. It is understandable that the method can also be applied to a server or terminal that is communicatively connected to the mobile device, and can also be applied to a system including a mobile device and a server or terminal, and is implemented through the interaction of the mobile device and the server or terminal system; wherein the mobile device can be, but is not limited to, a wireless headset charging station, a smart phone, a tablet computer, a laptop computer, a portable speaker, a smart watch, a smart bracelet, etc.; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services; the terminal can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, etc. In this embodiment, the method includes the following steps:
[0106] Step S402: when it is detected that the working mode of the mobile device has changed, determine a first remaining power of the battery of the mobile device after the working mode has changed.
[0107] Among them, the mobile device has at least one working mode enabled.
[0108] Among them, "changes in the working mode of the mobile device" includes two situations: the mobile device turns on a new working mode or turns off an already turned on working mode.
[0109] The first remaining power is determined by the battery power determination method of a mobile device in any one of the embodiments provided in the present application; that is, the first remaining power is determined by the above steps S102 to S106.
[0110] Specifically, the user can choose which working mode to turn on on the mobile device; when the mobile device detects that the turned-on working mode has changed, such as the user chooses to turn on a new working mode, or turns off the turned-on working mode, based on the battery power determination method of the mobile device provided in the present application, the remaining power of the battery of the mobile device after the working mode changes is determined as the first remaining power.
[0111] Step S404, determining each operating mode currently enabled by the mobile device and the calibrated current of each operating mode, and determining the expected operating current of the mobile device after the operating mode is changed based on the calibrated current of each operating mode.
[0112] The expected operating current is used to characterize the total current expected to flow through the battery within a period of time after the operating mode changes. In a specific application, the expected operating current is the sum of the rated currents of each currently enabled operating mode within one hour.
[0113] Specifically, the mobile device determines each currently enabled working mode, determines the rated current of each working mode, and calculates the sum of the rated currents of each working mode over a period of time to obtain the expected working current of the mobile device after the working mode changes.
[0114] Step S406: determining a first battery life of the mobile device based on the first remaining power and the expected operating current.
[0115] Specifically, the mobile device estimates the battery life of the mobile device in each currently enabled working mode based on the first remaining power and the expected working current as the first battery life.
[0116] In a specific application, the first endurance duration is the first remaining power divided by the expected operating current.
[0117] For example, assuming that the first remaining power is 200mAh and the expected operating current is 40mA, the mobile device can estimate the first battery life to be 200mAh / 40mA=5h, that is, the first battery life is 5 hours.
[0118] It should be noted that the specific limitations of the method for determining the battery life of a mobile device in any embodiment provided in the present application can refer to the limitations of the method for determining the battery power of a mobile device in the above text, which will not be repeated here.
[0119] In the above-mentioned method for determining the battery life of a mobile device, first, when the mobile device detects that the working mode turned on by the mobile device has changed, the mobile device determines the first remaining power of the battery of the mobile device after the working mode has changed; the mobile device has at least one working mode turned on; the first remaining power is determined by a method for determining the battery power of a mobile device; then, the mobile device determines the various working modes currently turned on by the mobile device and the calibrated current of each working mode, and based on the calibrated current of each working mode, determines the expected working current of the mobile device after the working mode has changed; finally, the mobile device determines the first battery life of the mobile device based on the first remaining power and the expected working current. In this way, the mobile device can more accurately determine the first battery life of the mobile device in each working mode currently turned on by using the more accurate first remaining power determined by the method for determining the battery power of the mobile device and the expected working current determined by the calibrated current of the various working modes currently turned on.
[0120] In an exemplary embodiment, after determining the first remaining power of the battery of the mobile device after the working mode changes in the above step S402, the following contents are specifically included: obtaining the second remaining power of the battery before the working mode changes, and the historical working current flowing through the battery before the working mode changes; based on the second remaining power and the historical working current, determining the second battery life of the mobile device.
[0121] The second remaining power is determined by the battery power determination method of a mobile device in any one of the embodiments provided in the present application; that is, the second remaining power is also determined by the above steps S102 to S106.
[0122] The historical working current is used to represent the total current flowing through the battery in the period before the working mode changes. In a specific application, the historical working current is the total current flowing through the battery in the past hour.
[0123] Specifically, after determining the first remaining power, the mobile device also needs to obtain the second remaining power of the battery determined by the method for determining the battery power of the mobile device provided in the present application before the working mode changes, and obtain the total current flowing through the battery in the first hour before the working mode changes as the historical working current. Then, based on the second remaining power and the historical working current, the mobile device estimates the battery life of the mobile device before the working mode changes as the second battery life.
[0124] In a specific application, the second endurance duration is the second remaining power divided by the historical working current.
[0125] For example, assuming that the second remaining power is 200mAh and the historical operating current is 20mA, the mobile device can estimate the second battery life to be 200mAh / 20mA=10h, that is, the second battery life is 10 hours.
[0126] After the first battery life of the mobile device is determined in step S406, the following contents are specifically included: when the first battery life is less than the second battery life, a battery life reduction prompt message is issued.
[0127] Specifically, if the mobile device detects that the estimated first battery life is less than the second battery life, it means that the change in the working mode causes the battery life of the mobile device to decrease. Therefore, a battery life reduction prompt message is issued to prompt the user to change the working mode and reduce the power consumption of the mobile device.
[0128] In summary, as shown in FIG5 , this embodiment further provides another method for determining the battery life of a mobile device:
[0129] Step S502: when it is detected that the working mode of the mobile device has changed, determine a first remaining power of the battery of the mobile device after the working mode has changed.
[0130] After the above step S502, the following steps S504 to S506 and steps S506 to S508 are also included:
[0131] Step S504, determining each operating mode currently enabled by the mobile device and the calibrated current of each operating mode, and determining the expected operating current of the mobile device after the operating mode is changed based on the calibrated current of each operating mode.
[0132] Step S506: determining a first battery life of the mobile device based on the first remaining power and the expected operating current.
[0133] Step S508, obtaining a second remaining power of the battery before the working mode changes, and a historical working current flowing through the battery before the working mode changes.
[0134] Step S510: determining a second battery life of the mobile device based on the second remaining power and the historical operating current.
[0135] After the above steps S508 and S510, the following step S512 is also included:
[0136] Step S512: When the first battery life is less than the second battery life, a battery life reduction prompt message is issued.
[0137] In this embodiment, the mobile device can more accurately determine the second battery life of the mobile device before the working mode is changed by determining the relatively accurate second remaining power and historical operating current based on the battery power determination method of the mobile device, and by comparing the first battery life with the second battery life, it can promptly prompt the user to change or shut down the working mode, thereby reducing the power consumption of the mobile device.
[0138] In an exemplary embodiment, as shown in FIG. 6 , another method for determining the battery power of a mobile device is provided, and the method is described by taking the method applied to a mobile device, such as a headset charging compartment of a wireless headset, as an example, and includes the following contents:
[0139] 1. Detect the working current currently flowing through the battery, compare the working current with the preset current value, and match the battery power estimation strategy based on the comparison result.
[0140] 2. If the working current is less than or equal to the first preset current value 0.01C, it is determined that the working current is in the first current state, and the remaining battery power is estimated using the open circuit voltage method. At this time, the remaining battery power Among them, the total battery capacity is 1C.
[0141] 2. If the working current is greater than the first preset current value of 0.01C, the duration of the working current being greater than the first preset current value of 0.01C and less than the second preset current value of 0.1C is timed, and it is preliminarily determined that the working current is in an intermediate state. At this time, the remaining battery power is not estimated.
[0142] 3. If the duration is longer than the preset duration of 10 seconds, the working current is judged to be in the second current state, the working time of each working mode is timed, the calibration current of each working mode is obtained, and the battery power change is estimated by combining the open circuit voltage method and the coulomb integration method based on the working mode. , and based on the change in battery charge and the remaining capacity of the battery determined last time based on the open circuit voltage method Estimate the current remaining battery power. .
[0143] in, The calculation formula is shown in Formula 1.
[0144] As shown in FIG. 7 , this embodiment further provides another method for determining the battery life of a mobile device, which is described by taking the method applied to a mobile device as an example, and includes the following contents:
[0145] 1. Obtain the remaining power and historical working current before the working mode changes.
[0146] 2. Estimate the battery life of the mobile device before the working mode changes based on the remaining power and historical working current before the working mode changes.
[0147] 3. Estimate the remaining power after the working mode changes.
[0148] 4. Estimate the battery life of the mobile device in each currently enabled working mode based on the rated current of each currently enabled working mode and the remaining power after the working mode changes.
[0149] 5. Determine whether the battery life of the mobile device in each currently enabled working mode meets the battery life requirement before the working mode of the mobile device is changed.
[0150] 6. If not, remind the user to change the working mode to reduce the power consumption of the mobile device.
[0151] It should be noted that since the battery charge curve is not a curve with a constant slope, if the open circuit voltage method is used alone to estimate the battery charge, a large error will be generated when the charge is large; and since integrating the current based on time will generate cumulative errors, it is difficult to eliminate the cumulative errors if the Coulomb method is used alone to estimate the battery charge. However, the method for determining the battery charge of a mobile device provided in this embodiment can well eliminate the above errors:
[0152] First, as shown in FIG8, the remaining battery capacity curves under different states, where curve 1 represents the charging curve, curve 2 represents the open circuit voltage curve, and curve 3 represents the high current discharge curve. Assuming that point A on curve 2 is the initial state, at this time, SOC (State of Charge, indicating the percentage of power stored in the battery) = S3, if the mobile device only consumes a small amount of battery power, then point A will move to the left along curve 2. At this time, the open circuit voltage method is used to check the table to confirm the battery SOC, which is still relatively accurate, but once the working current increases, then curve 2 needs to be shifted downward to approach the actual high current SOC change. Due to the characteristics of lithium batteries, the voltage will drop when the discharge current transiently increases, but the SOC at this time basically does not change. At this time, if the open circuit voltage method is continued to be used to estimate the SOC of the lithium battery, then the estimated SOC = S1, but the actual SOC = S3, then the estimation error = S3-S1, the greater the current consumption of the lithium battery, the greater the error.
[0153] The Coulomb integration method based on the working mode can compensate for this error very well. The current increases instantly. Although the battery voltage changes greatly at this time, the battery SOC state will not change immediately. Point B will move to the left along Curve 3. After the mobile device has been working with a large current for a period of time, point B moves to point C. Due to the characteristics of lithium batteries, the mobile device ends the high current working state and changes to a micro current working state. The battery voltage of the lithium battery will increase slowly. After a period of time, the battery state will move from point C to point D, that is, the battery voltage increases but the SOC does not change. At this time, if the open circuit voltage method is continued to be used to estimate the battery lithium battery state, it will also bring large errors.
[0154] The cumulative error of the Coulomb method is proportional to the time of the integral calculation. The longer the integral time, the greater the cumulative error. Figure 9 shows a schematic diagram of the relationship between charge and integral time; curve B is the relationship between charge and integral time under ideal conditions, and curves A and C are the relationship between charge and integral time under error conditions. Obviously, under error conditions, the longer the integral time, the greater the cumulative error. Compared with the traditional method that requires a complete charge and discharge cycle to correct the integral cumulative error, the open circuit voltage method and the coulomb integral method based on the working mode only need to wait for the lithium battery to end the high current working state to correct the cumulative error of the integral method, avoiding the cumulative error from increasing over time.
[0155] In this embodiment, the open circuit voltage method and the Coulomb integration method based on the working mode are combined. The advantages and disadvantages of the two methods complement each other. The open circuit voltage method detects the voltage to estimate the battery power state, which can effectively make up for the cumulative error problem of the Coulomb integration method. The Coulomb integration method based on the working mode can effectively make up for the defect of the open circuit voltage method having large errors when the lithium battery is working at a high current. Thus, the remaining power of the lithium battery can be accurately and effectively estimated.
[0156] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0157] Based on the same inventive concept, the embodiment of the present application also provides a device for determining the battery power of a mobile device for implementing the method for determining the battery power of a mobile device involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for determining the battery power of one or more mobile devices provided below can refer to the limitations of the method for determining the battery power of a mobile device above, and will not be repeated here.
[0158] In an exemplary embodiment, as shown in FIG10 , a battery power determination device for a mobile device is provided, comprising: a working current acquisition module 1002 , a first power determination module 1004 , and a second power determination module 1006 , wherein:
[0159] The operating current acquisition module 1002 is used to acquire the operating current currently flowing through the battery of the mobile device.
[0160] The first power determination module 1004 is used to determine the current remaining power of the battery based on the current open circuit voltage of the battery when the duration of the working current falling within the preset current interval is less than or equal to a duration threshold, or when the working current is less than or equal to a lower limit of the preset current interval.
[0161] The second power determination module 1006 is used to determine the current remaining power of the battery according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the working current continues for a time period longer than the time threshold when the working current falls within the preset current interval; the mobile device currently has at least one working mode turned on.
[0162] In an exemplary embodiment, the second power determination module 1006 is also used to integrate the calibrated current of each working mode based on the working time of each working mode after the duration is greater than the duration threshold, so as to obtain the change in power of the battery after the duration is greater than the duration threshold; determine the remaining power based on the historical power of the battery and the change in power; the historical power is obtained based on the open circuit voltage of the battery when the duration of the working current falling into the preset current interval is less than or equal to the duration threshold, or when the working current is less than or equal to the lower limit of the preset current interval.
[0163] In an exemplary embodiment, the first power determination module 1004 is further used to query the corresponding open circuit voltage and battery power mapping table of the battery according to the current open circuit voltage of the battery, and obtain the battery power corresponding to the open circuit voltage as the remaining power.
[0164] In an exemplary embodiment, the battery power determination device of the mobile device also includes a duration timing module, which is used to time the duration of the working current falling within the preset current interval when it is detected that the working current is greater than the lower limit value of the preset current interval; when it is detected that the duration is greater than the duration threshold, the working duration of each working mode turned on by the mobile device is timed; when the duration is timed, when it is detected that the working current is less than or equal to the lower limit value of the preset current interval, the duration is reset to zero.
[0165] In an exemplary embodiment, the battery power determination device of the mobile device also includes a current interval determination module, which is used to obtain the total capacity of the battery of the mobile device; based on the total capacity of the battery, determine a first current threshold and a second current threshold; the first current threshold is less than the second current threshold; use the first current threshold as a lower limit value and the second current threshold as an upper limit value to obtain a preset current interval.
[0166] Based on the same inventive concept, the embodiment of the present application also provides a device for determining the battery life of a mobile device for implementing the method for determining the battery life of a mobile device involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for determining the battery life of one or more mobile devices provided below can refer to the limitations of the method for determining the battery life of a mobile device above, and will not be repeated here.
[0167] In an exemplary embodiment, as shown in FIG. 11 , a battery power determination device for a mobile device is provided, comprising: an operating mode detection module 1102 , an operating current determination module 1104 , and a battery life determination module 1106 , wherein:
[0168] The working mode detection module 1102 is used to determine the first remaining power of the battery of the mobile device after the working mode is changed when it is detected that the working mode of the mobile device has changed; the working mode turned on by the mobile device is at least one; the first remaining power is determined by a battery power determination method of the mobile device.
[0169] The working current determination module 1104 is used to determine each working mode currently enabled by the mobile device and the calibrated current of each working mode, and based on the calibrated current of each working mode, determine the expected working current of the mobile device after the working mode changes.
[0170] The battery life determination module 1106 is used to determine a first battery life of the mobile device based on the first remaining power and the expected operating current.
[0171] In an exemplary embodiment, the battery life determination module 1106 is also used to obtain a second remaining power of the battery before the working mode changes, and a historical working current flowing through the battery before the working mode changes; the second remaining power is determined by a battery power determination method for a mobile device; based on the second remaining power and the historical working current, the second battery life of the mobile device is determined.
[0172] The battery power determination device of the mobile device also includes a battery life prompt module, which is used to send a battery life reduction prompt message when the first battery life is less than the second battery life.
[0173] The above-mentioned battery power determination device of the mobile device and each module in the battery life determination of the mobile device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the mobile device in the form of hardware, or can be stored in the memory of the mobile device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0174] In an exemplary embodiment, a mobile device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG12. The mobile device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the mobile device is used to provide computing and control capabilities. The memory of the mobile device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the mobile device is used to exchange information between the processor and an external device. The communication interface of the mobile device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for determining the battery power of a mobile device and a method for determining the battery life of a mobile device are implemented. The display unit of the mobile device is used to form a visually visible picture, and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the mobile device can be a touch layer covered on the display screen, or a key, trackball, or touchpad provided on the housing of the mobile device, or an external keyboard, touchpad, or mouse, etc.
[0175] Those skilled in the art will understand that the structure shown in FIG. 12 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the mobile device to which the scheme of the present application is applied. The specific mobile device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0176] In an exemplary embodiment, a mobile device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0177] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0178] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0179] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0180] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0181] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for determining battery power of a mobile device, characterized in that: The method comprises: Get the working current of the battery currently flowing through the mobile device; When the duration for which the operating current falls within the preset current interval is less than or equal to a duration threshold, or when the operating current is less than or equal to a lower limit of the preset current interval, determining the current remaining capacity of the battery based on the current open circuit voltage of the battery; When the duration for which the working current falls within the preset current interval is greater than the duration threshold, the current remaining power of the battery is determined according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the duration is greater than the duration threshold; the mobile device currently has at least one working mode turned on.
2. The method according to claim 1, characterized in that The determining the current remaining power of the battery according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the duration is greater than the duration threshold includes: Based on the working time of each working mode after the continuous time is longer than the time threshold, integrating the calibrated current of each working mode to obtain the amount of power change of the battery after the continuous time is longer than the time threshold; The remaining power is determined based on the historical power of the battery and the power change; the historical power is determined based on the open circuit voltage of the battery when the duration of time that the working current falls within the preset current interval is less than or equal to a duration threshold, or when the working current is less than or equal to a lower limit value of the preset current interval.
3. The method according to claim 1, characterized in that: The determining the current remaining power of the battery based on the current open circuit voltage of the battery of the mobile device includes: According to the current open circuit voltage of the battery, a mapping table of the open circuit voltage and battery power corresponding to the battery is queried to obtain the battery power corresponding to the open circuit voltage as the remaining power.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When it is detected that the working current is greater than the lower limit of the preset current interval, timing the duration that the working current falls within the preset current interval; When it is detected that the duration is greater than the duration threshold, timing the working duration of each working mode turned on by the mobile device; In the case of timing the duration, when it is detected that the working current is less than or equal to the lower limit value of the preset current interval, the duration is reset to zero.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining the total capacity of the battery of the mobile device; Determining a first current threshold and a second current threshold based on the total capacity of the battery; the first current threshold is less than the second current threshold; The first current threshold is used as a lower limit value, and the second current threshold is used as an upper limit value to obtain the preset current range.
6. A method for determining the battery life of a mobile device, characterized in that: The method comprises: In the case of detecting that a working mode of a mobile device has changed, determining a first remaining power of a battery of the mobile device after the working mode has changed; the mobile device has at least one working mode turned on; the first remaining power is determined by the battery power determination method of a mobile device according to any one of claims 1 to 5; Determine each operating mode currently enabled by the mobile device and a calibrated current of each operating mode, and determine an expected operating current of the mobile device after the operating mode is changed based on the calibrated current of each operating mode; A first battery life of the mobile device is determined based on the first remaining power and the expected operating current.
7. The method according to claim 6, characterized in that After determining a first remaining power of the battery of the mobile device after the working mode is changed, the method further includes: Obtaining a second remaining power of the battery before the working mode changes, and a historical working current flowing through the battery before the working mode changes; the second remaining power is determined by the battery power determination method for a mobile device according to any one of claims 1 to 5; Determining a second battery life of the mobile device based on the second remaining power and the historical operating current; After determining the first battery life of the mobile device, the method further includes: When the first battery life is less than the second battery life, a battery life reduction prompt message is issued.
8. A device for determining battery power of a mobile device, characterized in that: The device comprises: A working current acquisition module, used to acquire the working current currently flowing through the battery of the mobile device; A first power determination module, configured to determine the current remaining power of the battery based on the current open circuit voltage of the battery when the duration of the working current falling within the preset current interval is less than or equal to a duration threshold, or when the working current is less than or equal to a lower limit of the preset current interval; The second power determination module is used to determine the current remaining power of the battery according to the calibrated current of the working mode currently turned on by the mobile device and the working time of the working mode after the continuous time is greater than the time threshold, when the duration of the working current falling within the preset current interval is greater than the time threshold; the mobile device currently has at least one working mode turned on.
9. A device for determining the battery life of a mobile device, characterized in that: The device comprises: A working mode detection module, configured to determine a first remaining power of a battery of the mobile device after the working mode is changed when detecting that the working mode of the mobile device is changed; the mobile device has at least one working mode; the first remaining power is determined by the battery power determination method of the mobile device according to any one of claims 1 to 5; A working current determination module, used to determine each working mode currently turned on by the mobile device and a calibrated current of each working mode, and based on the calibrated current of each working mode, determine an expected working current of the mobile device after the working mode changes; A battery life determination module is used to determine a first battery life of the mobile device based on the first remaining power and the expected operating current.
10. A mobile device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the processor implements the steps of the method for determining the battery power of a mobile device according to any one of claims 1 to 5 or the method for determining the battery life of a mobile device according to any one of claims 6 to 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for determining the battery power of a mobile device according to any one of claims 1 to 5 or the method for determining the battery life of a mobile device according to any one of claims 6 to 7 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for determining the battery power of a mobile device according to any one of claims 1 to 5 or the method for determining the battery life of a mobile device according to any one of claims 6 to 7 are implemented.