A method, system and storage medium for determining the ohmic internal resistance of a battery
By collecting battery voltage and current during the low-power and wake-up phases of electronic devices, and using a software work queue to calculate and update the battery's ohmic internal resistance in real time, the problem of inaccurate battery internal resistance measurement in existing technologies is solved, achieving accurate estimation of battery internal resistance and accurate calculation of battery capacity.
Patent Information
- Application Number
- CN202511246886.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-09-02
AI Technical Summary
Existing technologies cannot reflect the actual internal resistance of a battery in a timely and accurate manner when measuring its internal resistance, especially when the battery usage time and ambient temperature change, resulting in poor accuracy.
By collecting battery voltage and current during the low-power and wake-up phases of electronic devices, and using a software work queue to calculate and update the battery's ohmic internal resistance in real time, the real-time ohmic internal resistance of the battery is dynamically estimated in a queue manner, reducing reliance on hardware.
It enables accurate estimation of battery internal resistance under different scenarios, improves the accuracy and real-time performance of battery internal resistance, reduces system power consumption, and improves the accuracy of battery power calculation.
Smart Images

Figure CN120742148B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of internal resistance measurement, in particular to a battery ohmic internal resistance determination method, system and storage medium in the technical field of internal resistance measurement. BACKGROUND
[0002] As one of the important parameters of a system on chip (SoC), power consumption is an important indicator for project delivery. In the case of a smart phone from a low-power mode to a wake-up state, the remaining battery capacity of the smart phone is displayed by measuring the battery internal resistance of the smart phone.
[0003] Measuring the battery internal resistance is to use the different response times of Ohmic polarization and other polarization phenomena when the current suddenly changes to identify different internal resistances. When the current input suddenly changes, the Ohmic polarization voltage changes instantaneously.
[0004] In related technologies, measuring the battery internal resistance requires using a precision battery testing instrument to place a bare battery into a professional battery testing channel for charge and discharge resting experiments. The measured battery internal resistance is filled into the configuration file of the mobile phone software, but with the differences in various scenarios of battery use time and environmental temperature, the actual internal resistance of the current battery cannot be accurately represented in a timely manner. Similar improvements include calculating the ratio of the corresponding pressure difference to the current to calculate the battery internal resistance after the battery is fully charged and the charging stage is stopped, but this scheme is affected by the battery full pressure drop and cutoff current response, and the accuracy and accuracy are poor. SUMMARY
[0005] The purpose of the present application is to provide a battery ohmic internal resistance determination method, system and storage medium, and the technical solutions adopted are as follows:
[0006] In a first aspect, the present application embodiment provides a battery ohmic internal resistance determination method, which comprises:
[0007] Obtaining a plurality of initial internal resistances of an electronic device entering a wake-up stage from a preset low-power stage multiple times;
[0008] When the electronic device enters the wake-up stage from the preset low-power stage at the current time, determining the current internal resistance of the electronic device;
[0009] Based on the current internal resistance, updating the plurality of initial internal resistances in the form of a queue to obtain a plurality of updated internal resistances;
[0010] Based on the plurality of updated internal resistances, determining the target internal resistance of the electronic device.
[0011] In a second aspect, the present application embodiment provides a battery ohmic internal resistance determination system, which comprises:
[0012] an acquisition module, configured to acquire a plurality of initial internal resistances of the electronic device entering a wake-up stage from a preset low-power-consumption stage for multiple times;
[0013] a first determination module, configured to determine a current internal resistance of the electronic device when the electronic device enters the wake-up stage from the preset low-power-consumption stage at a current time;
[0014] an update module, configured to update the plurality of initial internal resistances in a queue based on the current internal resistance, to obtain a plurality of updated internal resistances;
[0015] a second determination module, configured to determine a target internal resistance of the electronic device based on the plurality of updated internal resistances.
[0016] In a third aspect, a computer program product is provided, which includes computer program code, when the computer program code is run on a computer, causes the computer to execute the method of the first aspect.
[0017] In a fourth aspect, a computer readable storage medium is provided, which stores computer program code, when the computer program code is run on a computer, causes the computer to execute the method of the first aspect.
[0018] The present application has the following beneficial effects: first, a plurality of initial internal resistances of the electronic device entering a wake-up stage from a preset low-power-consumption stage for multiple times are acquired; in this way, the plurality of initial internal resistances are acquired, which facilitates subsequent more accurate calculation of a target internal resistance of the electronic device. Then, when the electronic device enters the wake-up stage from the preset low-power-consumption stage at a current time, a current internal resistance of the electronic device is determined; in this way, when the electronic device is detected to enter the wake-up stage from the preset low-power-consumption stage, the current internal resistance is calculated in real time in a queue manner, so as to update the plurality of initial internal resistances in real time through the current internal resistance, to obtain a plurality of updated internal resistances; finally, a target internal resistance of the electronic device is determined based on the plurality of updated internal resistances. In this way, the current internal resistance is calculated in real time in a queue manner, and the plurality of initial internal resistances are updated in time, so that the target internal resistance can be updated in real time, the obtained target internal resistance is more accurate, and the system power consumption can be reduced through the more accurate target internal resistance. BRIEF DESCRIPTION OF DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, and the advantages thereof, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0020] Figure 1 is a flowchart of an implementation of a method for determining an ohmic internal resistance of a battery according to an embodiment of the present application;
[0021] Figure 2 is a flowchart of another implementation of a method for determining an ohmic internal resistance of a battery according to an embodiment of the present application;
[0022] Figure 3 is a flowchart of yet another implementation of a method for determining an ohmic internal resistance of a battery according to an embodiment of the present application;
[0023] Figure 4 is a flowchart of an effect of a method for determining an ohmic internal resistance of a battery according to an embodiment of the present application;
[0024] Figure 5 is a schematic diagram of a structure of a system for determining an ohmic internal resistance of a battery according to an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of a structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to further clarify the technical means and effects taken by the present application to achieve the predetermined object, the following describes in detail the specific implementation, structure, features and effects of a method for determining an ohmic internal resistance of a battery according to the present application, with reference to the accompanying drawings and preferred embodiments. Different "one embodiment" or "another embodiment" in the following description do not necessarily refer to the same embodiment. In addition, the specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.
[0027] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0028] Hereinafter, the terms "first" and "second" are only for descriptive purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more features.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs.
[0030] With the development of smart phones and charging technology, the internal resistance of the phone battery will change dynamically with the aging time, user's power usage habits, and the ambient temperature of the use area. Accurate estimation of the real-time ohmic resistance of the current phone battery in different scenarios is of great significance and use prospect for battery modeling OCV estimation, real-time power calculation of the phone, etc.
[0031] The update of the battery ohmic resistance Rint is crucial for the calculation of the battery OCV, and the battery OCV is the basis for the calculation of the phone power. Only when the OCV is accurate, the phone power can be accurate. For example, a user's phone that has been used for 2 years shows that it still has 20% power, but it is turned off due to low power after 1 minute, which is likely caused by inaccurate battery internal resistance.
[0032] Therefore, the embodiment of the present application provides a battery ohmic resistance determination method, which dynamically estimates the battery (Rint) through the relaxation voltage method when the sleep and wake-up, and accurately calculates the real-time Rint of the battery through the software scheme, without the need to increase additional hardware processing mechanism, thereby reducing the cost and improving the effectiveness of the battery Rint.
[0033] The embodiment of the present application periodically collects the battery voltage of the phone in the sleep and wake-up scene through the software work queue. The sleep scene includes but is not limited to (phone screen-off standby, phone low-power flight mode, phone full-charge standby, phone restart and boot, etc.). In such low-power scenarios, effective voltage and current are collected. The wake-up scene refers to the effective voltage and current collected at the moment of exiting the sleep.
[0034] The specific scheme of the battery ohmic resistance determination method provided by the present application will be described in detail below with reference to the accompanying drawings. Figure 1 Fig. 1 shows the implementation flowchart of the battery ohmic resistance determination method provided by an embodiment of the present application, and the method comprises:
[0035] 101, obtaining multiple initial internal resistances of the electronic device multiple times from the preset low-power stage to the wake-up stage.
[0036] Here, the electronic device can be any type of device, such as a mobile phone, a computer, or a tablet, etc. By collecting the battery voltage and current of the electronic device in the preset low-power stage, and collecting the battery voltage and current of the electronic device entering the wake-up stage, the initial internal resistance of the electronic device is calculated; in this way, multiple initial internal resistances can be calculated in multiple scenarios from the preset low-power stage to the wake-up stage.
[0037] In some possible implementation manners, the multiple initial internal resistances correspond to different wake-up stages, such as the following three scenarios.
[0038] Scenario two: the user charges the mobile phone in the charger, and when the mobile phone enters the low-power sleep mode after being fully charged, the software work queue collects the effective battery voltage and current of this scenario; when the user finds that the mobile phone is fully charged, the effective voltage and current of the wake-up moment are collected when the user removes the charger and uses the mobile phone.
[0039] Scenario three: the user powers off the mobile phone, and when the mobile phone is powered on next time, the software work queue collects the effective battery voltage and current of the low-power stage at the power-on moment; after the mobile phone is powered on, the current effective battery voltage and current are collected again. In this way, the automatic voltage and current collection can be realized in the normal use scenario of the user, so as to realize the estimation of the battery ohmic internal resistance.
[0040] In some possible implementation manners, the step 101 can be implemented through the steps shown in FIG. 1. Figure 2
[0041] 201, obtaining a first battery voltage and a first battery current of an electronic device in a preset low-power stage.
[0042] Here, the preset low-power stage can be understood as a state in which all devices of the electronic device are in a low-power running state, for example, the electronic device is in a sleep state.
[0043] In some possible implementation manners, the current current value of the electronic device is determined when the electronic device is in an initial low-power stage; the initial low-power stage is a sleep state or other low-power state of the electronic device. The current value of the electronic device is measured when the electronic device is in the initial low-power stage, that is, the current current value is obtained. If the current current value is less than a preset current value, it is determined that the electronic device is in the preset low-power stage; the preset current value can be a self-defined current value, for example, the preset current value is 3 milliamperes (mA). In this way, whether the electronic device is in the preset low-power stage is determined by judging whether the current current value is less than the preset current value.
[0044] When it is detected that the electronic device is in the preset low-power stage, a work queue is triggered; and the battery voltage and the battery current that meet a preset threshold value in the electronic device are continuously collected in the form of the work queue to obtain the first battery voltage and the first battery current.
[0045] Here, after determining that the electronic device is in the preset low-power consumption stage, the battery voltage and the battery current of the electronic device are collected in the form of a queue first-in first-out by triggering the work queue of the software, and the collected battery voltage and battery current are judged to determine whether the battery voltage and the battery current meet the preset threshold value, until the battery voltage and the battery current meeting the preset threshold value are collected, to determine the first battery voltage and the first battery current. By setting the preset threshold value for the first battery voltage and the first battery current, the singular value can be eliminated, so that the first battery voltage and the first battery current obtained by setting the preset threshold value are more accurate.
[0046] 202, when the electronic device enters the wake-up stage from the preset low-power consumption stage, collecting the second battery voltage and the second battery current of the electronic device.
[0047] Here, when the electronic device is detected to enter the wake-up stage from the preset low-power consumption stage, the work queue is triggered; and the battery voltage and the battery current meeting the preset threshold value in the electronic device are continuously collected in the form of a work queue to obtain the second battery voltage and the second battery current. After detecting that the electronic device enters the wake-up stage from the preset low-power consumption stage, the battery voltage and the battery current of the electronic device are collected in the form of a queue first-in first-out by triggering the work queue of the software, and the collected battery voltage and battery current are judged to determine whether the battery voltage and the battery current meet the preset threshold value, until the battery voltage and the battery current meeting the preset threshold value are collected, to determine the second battery voltage and the second battery current. By setting the preset threshold value for the second battery voltage and the second battery current, the singular value can be eliminated.
[0048] 203, based on the first battery voltage, the first battery current, the second battery voltage and the second battery current, determining the initial resistance when entering the wake-up stage from the preset low-power consumption stage.
[0049] Here, 2 in the wake-up stage by software work queue to collect record effective real-time current I2 (i.e. the second battery current) and its response voltage U2 (i.e. the second battery voltage); work queue triggered by software wake-up after recording the current I2 and voltage U2 collected once. By determining the voltage difference between the first battery voltage U1 and the second battery voltage U2, and the current difference between the first battery current I1 and the second battery current I2; if the voltage difference and the current difference do not meet the preset threshold value, in the form of work queue, real-time continuous collection of the electronic device in the wake-up stage of the updated second battery voltage and the updated second battery current, until the voltage difference and the current difference meet the preset threshold value; finally, by calculating the ratio of the voltage difference and the current difference that meet the preset threshold value, the initial internal resistance is obtained. By setting the threshold value of the difference of U1, U2, I1 and I2, the singular value can be eliminated, and the current ohmic resistance (i.e. initial internal resistance) R is calculated by the internal resistance calculation formula, as shown in formula (1):
[0050] (1);
[0051] In this way, by real-time collection of the first battery voltage and the first battery current in the preset low-power stage, and real-time collection of the second battery voltage and the second battery current in the wake-up stage, the initial internal resistance of the electronic device can be accurately calculated.
[0052] 102, when the electronic device enters the wake-up stage from the preset low-power stage at the current time, the current internal resistance of the electronic device is determined.
[0053] Here, the plurality of initial internal resistances obtained are the initial internal resistances calculated for different wake-up stages. For example, the user places the mobile phone on the table before going to sleep, at this time, the mobile phone application process is less, and it will soon enter the low-power sleep mode, and the software work queue will collect the effective battery voltage and current (U1, I1) in this sleep scenario; when the user wakes up, the key screen is on, and the software work queue will collect the effective voltage and current (U2, I2) at this wake-up time, and calculate an initial internal resistance. After three or more such scenarios, a plurality of initial internal resistances can be saved. When it is detected again that the electronic device enters the wake-up stage from the preset low-power stage at the current time, the voltage and current in the preset low-power stage and the voltage and current in the wake-up stage are collected again, and the current internal resistance of the electronic device is calculated.
[0054] 103, based on the current internal resistance, the plurality of initial internal resistances are updated in the form of a queue to obtain a plurality of updated internal resistances.
[0055] Here, after obtaining the plurality of initial internal resistances, the mean of the plurality of initial internal resistances is calculated, and the initial internal resistance collected first among the plurality of initial internal resistances is replaced by the current internal resistance in the form of a queue, so as to obtain the plurality of updated internal resistances.
[0056] In some possible implementation manners, the step 103 can be implemented by Figure 3 as shown in the following steps:
[0057] 301, determining the collection time corresponding to the plurality of initial internal resistances.
[0058] Here, after obtaining the plurality of initial internal resistances, the collection time of the second battery voltage and the second battery current corresponding to each initial internal resistance is determined, or the calculation time of each initial internal resistance is determined, that is, the time of each initial internal resistance is obtained.
[0059] 302, using the current internal resistance to replace the candidate internal resistance in the plurality of initial internal resistances, which meets the preset condition in the collection time, to obtain the plurality of updated internal resistances.
[0060] Here, the current internal resistance is used to replace the initial internal resistance with the earliest collection time among the plurality of initial internal resistances in the form of first-in first-out, so as to realize real-time rolling update of the plurality of initial internal resistances, and obtain the plurality of updated internal resistances.
[0061] In one specific example, when the application process is few and the low-power sleep mode is entered, the software work queue collects the effective battery voltage and current (U1, I1) in the sleep scene; when the user turns on the screen by pressing the key, the software work queue collects the effective voltage and current (U2, I2) at the wake-up time. After three or more such scenes, a plurality of ohm internal resistances R are saved, and the ohm internal resistances R are respectively named as R1, R2, R3. An Ravg is obtained by averaging every three groups of R values, R1 is replaced by R4, and R2 is replaced by R5, to realize the rolling effect, so that the real-time update of the battery internal resistance Rint can be ensured.
[0062] 104, determining the target internal resistance of the electronic device based on the plurality of updated internal resistances.
[0063] Here, after obtaining the plurality of initial internal resistances, the initial target internal resistance is calculated by using the plurality of initial internal resistances, for example, the initial target internal resistance is obtained by using the mean of the plurality of initial internal resistances. Then, the initial internal resistance with the earliest calculation time among the plurality of initial internal resistances is replaced by the current internal resistance obtained in the form of a queue, to obtain the plurality of updated internal resistances; and the mean of the plurality of updated internal resistances is calculated, to determine whether the mean is a singular value. If the mean is a singular value, the voltage and the current at the wake-up time are continuously collected to calculate the latest internal resistance, so as to update the plurality of updated internal resistances in the form of a queue, and the mean is calculated again, until the mean that is not a singular value is obtained as the target internal resistance.
[0064] In some possible implementation manners, after the target internal resistance is calculated, an open circuit voltage (OCV) and a current capacity of the electronic device are calculated through the target internal resistance; and based on the OCV and the current capacity of the electronic device, power consumption prompt information of the electronic device is generated and output. For example, the power consumption prompt information in the form of text or image is generated according to the OCV and the current capacity of the electronic device, so as to accurately prompt the user about the current capacity of the electronic device.
[0065] The ohmic internal resistance estimation value obtained by using the battery ohmic internal resistance determination method provided in the embodiment of the present application is as shown in the figure. Figure 4 The battery internal resistance collected in the 90% to 1% capacity interval remains in a certain error range, which can well adapt to the demand for updating the battery internal resistance in different scenarios.
[0066] In the embodiment of the present application, by obtaining multiple initial internal resistances of the electronic device entering the wake-up stage from the preset low-power-consumption stage multiple times, the target internal resistance of the electronic device can be more accurately calculated subsequently. Then, when it is detected that the electronic device enters the wake-up stage from the preset low-power-consumption stage, the current internal resistance is calculated in real time in the form of a queue, so as to update the multiple initial internal resistances in real time through the current internal resistance, thereby obtaining multiple updated internal resistances. Finally, the target internal resistance of the electronic device is determined based on the multiple updated internal resistances. In this way, the battery internal resistance is dynamically obtained in the use scenario of the electronic device, and the battery internal resistance can be automatically estimated without the need of precise battery testing instruments for internal resistance measurement. The battery internal resistance is dynamically obtained in the sleep-wake scenario. The current internal resistance is calculated in real time in the form of a queue, and the multiple initial internal resistances are updated in time, so that the target internal resistance can be updated in real time, and the obtained target internal resistance is more accurate.
[0067] The embodiment of the present application provides a battery ohmic internal resistance determination system, please refer to Figure 5 which shows a component structure schematic diagram of a battery ohmic internal resistance determination system provided by an embodiment of the present application. The system 500 comprises:
[0068] The acquisition module 501 is configured to acquire multiple initial internal resistances of the electronic device entering the wake-up stage from the preset low-power-consumption stage multiple times.
[0069] The first determination module 502 is configured to determine the current internal resistance of the electronic device when the electronic device enters the wake-up stage from the preset low-power-consumption stage at the current time.
[0070] The update module 503 is configured to update the multiple initial internal resistances in the form of a queue based on the current internal resistance, thereby obtaining multiple updated internal resistances.
[0071] The second determining module 504 is configured to determine a target internal resistance of the electronic device based on the plurality of updated internal resistances.
[0072] In some possible implementation manners, the acquisition module 501 is further configured to acquire a first battery voltage and a first battery current of the electronic device in a preset low-power-consumption stage; acquire a second battery voltage and a second battery current of the electronic device when the electronic device enters an awakening stage from the preset low-power-consumption stage; and determine an initial internal resistance of the electronic device when entering the awakening stage from the preset low-power-consumption stage based on the first battery voltage, the first battery current, the second battery voltage, and the second battery current.
[0073] In some possible implementation manners, the acquisition module 501 is further configured to determine a current current value of the electronic device when the electronic device is in an initial low-power-consumption stage; and determine that the electronic device is in the preset low-power-consumption stage if the current current value is less than a preset current value.
[0074] In some possible implementation manners, the acquisition module 501 is further configured to trigger a work queue when it is detected that the electronic device is in the preset low-power-consumption stage; and continuously acquire, in the form of the work queue, a battery voltage and a battery current of the electronic device that satisfy a preset threshold value, to obtain the first battery voltage and the first battery current.
[0075] In some possible implementation manners, the acquisition module 501 is further configured to determine a voltage difference between the first battery voltage and the second battery voltage, and a current difference between the first battery current and the second battery current; continuously acquire, in the form of a work queue, an updated second battery voltage and an updated second battery current of the electronic device in the awakening stage in real time until the voltage difference and the current difference satisfy the preset threshold value, if neither the voltage difference nor the current difference satisfies the preset threshold value; and determine the initial internal resistance based on the voltage difference and the current difference that satisfy the preset threshold value.
[0076] In some possible implementation manners, the second determining module 504 is further configured to determine an initial target internal resistance based on the plurality of initial internal resistances; determine a mean value of the plurality of updated internal resistances; and update the initial target internal resistance based on the mean value to obtain the target internal resistance.
[0077] In some possible implementation manners, the updating module 503 is further configured to determine acquisition time points corresponding to the plurality of initial internal resistances; replace a candidate internal resistance that satisfies a preset condition in the plurality of initial internal resistances with the current internal resistance to obtain the plurality of updated internal resistances.
[0078] In some possible implementation manners, the second determining module 504 is further configured to determine an open circuit voltage and a current capacity of the electronic device based on the target internal resistance, and generate and output power consumption prompt information of the electronic device based on the open circuit voltage and the current capacity of the electronic device.
[0079] Optionally, the transmission medium can be a wired link (for example, but not limited to, a coaxial cable, an optical fiber, a Digital Subscriber Line (DSL), and the like) or a wireless link (for example, but not limited to, Wireless Fidelity (WIFI), Bluetooth, and a mobile device network, and the like). It should be noted that the system provided in the above embodiments is only used as an example for the division of the above functional modules, and in actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be described here.
[0080] Figure 6 is a structural schematic diagram of a computer device provided by an embodiment of the present application. As shown in the example, Figure 6 the computer device 600 includes a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and running on the processor 602, wherein the processor 602 executes the computer program 603, so that the computer device can execute the battery ohmic internal resistance determination method described above.
[0081] In addition, an embodiment of the present application also protects a system, which can include a memory and a processor, wherein the memory stores executable program code, and the processor is configured to call and execute the executable program code to execute the battery ohmic internal resistance determination method provided by an embodiment of the present application. The system can be divided into functional modules according to the method examples described above, for example, each functional module can be corresponding, or two or more functions can be integrated in one processing module, and the integrated module can be realized in the form of hardware. It should be noted that the division of the modules in the embodiment is illustrative, and is only a logical function division, and another division mode can be used in actual implementation. It should be noted that all related contents of each step involved in the above method embodiments can be cited to the function description of the corresponding functional module, and will not be described here.
[0082] It should be understood that the system provided by the embodiment is used to execute the above-mentioned battery ohmic resistance determination method, so as to achieve the same effect as the above-mentioned implementation method. In the case of integrated unit, the system can include a processing module and a storage module. When the system is applied to a device, the processing module can be used to control and manage the action of the device. The storage module can be used to support the device to execute mutual program code and the like. The processing module can be a processor or a controller, which can realize or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of digital signal processing (DSP) and microprocessors, and the like. The storage module can be a memory.
[0083] In addition, the system provided by the embodiment of the present application can be a chip, a component or a module, the chip can include a connected processor and a memory; wherein the memory is used to store instructions, when the processor calls and executes the instructions, the chip can execute the above-mentioned battery ohmic resistance determination method provided by the embodiment. The present embodiment also provides a computer readable storage medium, the computer readable storage medium has computer program code stored therein, when the computer program code runs on the computer, the computer executes the above-mentioned related method steps to realize the above-mentioned battery ohmic resistance determination method provided by the embodiment.
[0084] The embodiment further provides a computer program product, which, when running on a computer, enables the computer to execute the above related steps to implement the battery ohmic resistance determination method provided by the above embodiment. The system, computer readable storage medium, computer program product or chip provided by the embodiment are used to execute the corresponding method provided above, and thus the beneficial effects achieved by the system, computer readable storage medium, computer program product or chip can refer to the beneficial effects of the corresponding method provided above, which will not be described here again. Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present application, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed elements can be indirect coupling or communication connection through some interface, system or unit, which can be electrical, mechanical or other forms.
[0085] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multiple task processing and parallel processing are also possible or can be advantageous. Each embodiment in the specification is described in a progressive manner, and the same or similar parts of each embodiment can be referred to each other, and each embodiment mainly describes the differences from other embodiments. The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application.
Claims
1. A method of determining an ohmic internal resistance of a battery, characterized by, The battery ohmic internal resistance determination method comprises: Obtaining multiple initial internal resistances of the electronic device entering the wake-up stage from the preset low-power stage multiple times, wherein the multiple initial internal resistances correspond to different wake-up scenarios, and the multiple initial internal resistances are obtained by collecting the battery voltage and the battery current in the form of a work queue in the preset low-power stage and different wake-up stages; When the electronic device enters the wake-up stage from the preset low-power stage at the current time, determining the current internal resistance of the electronic device; Based on the current internal resistance, updating the multiple initial internal resistances in the form of a queue to obtain multiple updated internal resistances, including: in the case that the application process is less in the low-power sleep mode, the software work queue collects the battery voltage and current (U1, I1) in the sleep scenario; when the user turns on the screen by pressing the key, the software work queue collects the voltage and current (U2, I2) at the wake-up time; after three different wake-up scenarios, save the three initial internal resistances R values, and name the three initial internal resistances R values as R1, R2, and R3 respectively, and take the average of each three groups of R values to obtain the average value Ravg; the initial internal resistance R4 calculated in the next wake-up scenario replaces R1, and the initial internal resistance R5 calculated in the next wake-up scenario of the next wake-up scenario replaces R2, and the battery internal resistance is updated in real time by the rolling wheel to obtain the multiple updated internal resistances; Based on the multiple updated internal resistances, determining the target internal resistance of the electronic device.
2. The method of claim 1, wherein, The method for obtaining multiple initial internal resistances of the electronic device entering the wake-up stage from the preset low-power stage multiple times comprises: Obtaining the first battery voltage and the first battery current of the electronic device in the preset low-power stage; When the electronic device enters the wake-up stage from the preset low-power stage, collecting the second battery voltage and the second battery current of the electronic device; Based on the first battery voltage, the first battery current, the second battery voltage, and the second battery current, determining the initial internal resistance of the electronic device entering the wake-up stage from the preset low-power stage.
3. The method of claim 2, wherein the step of determining the internal resistance of the battery is performed by: Before the method for obtaining the first battery voltage and the first battery current of the electronic device in the preset low-power stage, the method further comprises: In the case that the electronic device is in the initial low-power stage, determining the current value of the electronic device; If the current value is less than the preset current value, it is determined that the electronic device is in the preset low-power stage.
4. The method of claim 2, wherein the step of determining the internal resistance of the battery is performed by a method comprising: The method for obtaining the first battery voltage and the first battery current of the electronic device in the preset low-power stage comprises: When it is detected that the electronic device is in the preset low-power stage, triggering a work queue; In the form of the work queue, continuously collecting the battery voltage and the battery current of the electronic device that meet the preset threshold value to obtain the first battery voltage and the first battery current.
5. The method of claim 2, wherein the step of determining the internal resistance of the battery is performed by a microprocessor. The method for determining the initial internal resistance of the electronic device entering the wake-up stage from the preset low-power stage based on the first battery voltage, the first battery current, the second battery voltage, and the second battery current comprises: determining a voltage difference between the first battery voltage and the second battery voltage, and a current difference between the first battery current and the second battery current; if neither the voltage difference nor the current difference meets a preset threshold, continuously collecting updated second battery voltages and updated second battery currents of the electronic device in a wake-up stage in real time in the form of a work queue until the voltage difference and the current difference meet the preset threshold; determining the initial internal resistance based on the voltage difference and the current difference meeting the preset threshold.
6. The method of claim 1, wherein, The method further comprises: determining an open-circuit voltage and a current capacity of the electronic device based on the target internal resistance; generating and outputting power consumption prompt information of the electronic device based on the open-circuit voltage and the current capacity of the electronic device. The battery ohmic internal resistance determination system comprises:
7. The method of claim 1, wherein the step of determining the internal resistance of the battery is performed by a microprocessor. an acquisition module configured to acquire a plurality of initial internal resistances of an electronic device entering a wake-up stage from a preset low-power-consumption stage multiple times, wherein the plurality of initial internal resistances correspond to different wake-up scenarios, and the plurality of initial internal resistances are obtained by collecting battery voltages and battery currents in the preset low-power-consumption stage and different wake-up stages in the form of a work queue; a first determination module configured to determine a current internal resistance of the electronic device when the electronic device enters the wake-up stage from the preset low-power-consumption stage at a current time; an update module configured to update the plurality of initial internal resistances in the form of a queue based on the current internal resistance to obtain a plurality of updated internal resistances, including: collecting battery voltages and currents (U1, I1) in a sleep scenario by a software work queue in the case that an application process enters a low-power-consumption sleep mode; collecting voltages and currents (U2, I2) at a wake-up time by the software work queue when a user turns on the screen by pressing a key; saving three initial internal resistances R values after three different wake-up scenarios, and naming the three initial internal resistances R values as R1, R2, and R3, respectively, and obtaining an average value Ravg by averaging each three groups of R values; replacing R1 with an initial internal resistance R4 calculated in a next wake-up scenario, and replacing R2 with an initial internal resistance R5 calculated in a next wake-up scenario of the next wake-up scenario, and updating the battery internal resistance in real time by a rolling wheel to obtain the plurality of updated internal resistances; 8. The method of claim 1, wherein, a second determination module configured to determine a target internal resistance of the electronic device based on the plurality of updated internal resistances. 9. A battery ohmic internal resistance determination system characterized by, 10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program which, when executed, implements the method of any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for metering electric quantity of battery
CN102854471A
Electronic device with supervisor circuit for detecting resistance parameter of an energy storage device
CN105162182A