Battery health degree determination method and device, equipment and storage medium
By dynamically adjusting the mapping relationship between battery impedance and health in electronic devices, the problem of inaccurate calculation of battery health in the prior art is solved, and higher calculation accuracy and the use performance of electronic devices are achieved.
Patent Information
- Application Number
- CN202311540551.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2025-05-20
AI Technical Summary
In the prior art, the calculation of battery health is not accurate enough, resulting in a fixed mapping relationship between battery health and battery impedance and cannot be adjusted dynamically, which affects the accuracy of battery health.
By determining the model configuration parameters in the impedance configuration file in the electronic device and triggering a step change in the charging current when the charging state meets certain conditions, the mapping relationship between battery impedance and health is dynamically adjusted, thereby improving the calculation accuracy of battery health.
It realizes more accurate calculation of battery health, dynamically adjusts mapping relationships, and improves the performance and reliability of electronic devices.
Smart Images

Figure CN120020575A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery charging and discharging, and particularly to a method, device, equipment and storage medium for determining battery health. Background Art
[0002] In recent years, with the development of electronic devices such as smart phones, laptops, and electric vehicles, the battery capacity inside the devices has become larger and the charging speed has become faster. Since the charging speed is often negatively correlated with the durability and service life of the battery. Thus, knowing the battery health inside the device in real time is also one of the key concerns of users.
[0003] In practical applications, the battery impedance can be calculated based on the principle of Electrochemical Impedance Spectroscopy (EIS). Among them, the battery health, as a parameter characterizing the health of the battery, has a certain mapping relationship with the battery impedance. However, the existing battery health solutions are not perfect, resulting in a fixed mapping relationship, which is not conducive to obtaining accurate battery health. Summary of the Invention
[0004] The present application provides a method, device, equipment and storage medium for determining battery health, which can dynamically configure the mapping relationship between battery impedance and battery health, has good scalability, and can also improve the calculation accuracy of battery health, thereby improving the performance of electronic devices.
[0005] To achieve the above object, the technical solution of the present application is realized as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for determining battery health, the method includes:
[0007] Determine the model configuration parameters in the impedance configuration file;
[0008] When a charging path is established between the battery under test in the electronic device and the power supply device and the current charging state satisfies the first condition, trigger a step change in the charging current of the battery under test based on the first current threshold and the second current threshold in the model configuration parameters, and determine the first current signal including the step change and the corresponding first voltage signal;
[0009] Determine the initial impedance value of the battery under test according to the first current signal and the first voltage signal;
[0010] Determine the target health of the battery under test based on the model parameters in the model configuration parameters and the initial impedance value.
[0011] In a second aspect, an embodiment of the present application provides a battery health determination device, which includes a determination unit, a trigger unit, and a mapping unit, where:
[0012] The determination unit is configured to determine the model configuration parameters in the impedance profile;
[0013] The trigger unit is configured to, when a charging path is established between the battery under test in the electronic device and the power supply device and the current charging state meets the first condition, trigger a step change in the charging current of the battery under test based on the first current threshold and the second current threshold in the model configuration parameters, and determine the first current signal including the step change and the corresponding first voltage signal;
[0014] The mapping unit is configured to determine the initial impedance value of the battery under test according to the first current signal and the first voltage signal; and determine the target health of the battery under test based on the model parameters in the model configuration parameters and the initial impedance value.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where:
[0016] The memory is used to store a computer program that can run on the processor;
[0017] The processor is configured to execute the method described in the first aspect when running the computer program.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by at least one processor, the method described in the first aspect is implemented.
[0019] A method, device, equipment, and storage medium for determining battery health provided by an embodiment of the present application determine model configuration parameters in an impedance profile; when a charging path is established between a battery under test in an electronic device and a power supply device and the current charging state meets a first condition, a step change in the charging current of the battery under test is triggered based on a first current threshold and a second current threshold in the model configuration parameters, and a first current signal including the step change and a corresponding first voltage signal are determined; based on the first current signal and the first voltage signal, an initial impedance value of the battery under test is determined; based on the model parameters and the initial impedance value in the model configuration parameters, the target health of the battery under test is determined. In this way, the model configuration parameters are integrated into the impedance profile, enabling these parameters to be dynamically adjusted based on the impedance profile, facilitating subsequent debugging and project expansion, and having good scalability; moreover, when a charging path is established between the battery under test and the power supply device and the current charging state meets the first condition, a step change in the charging current can be triggered, thereby also avoiding the influence of temperature rise during the charging process, improving the calculation accuracy of battery health, enabling the device to more accurately display the battery health, and further improving the performance of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a schematic diagram of a voltage and current change curve;
[0021] Figure 2 is a flowchart of a method for determining battery health provided by an embodiment of the present application Figure 1 ;
[0022] Figure 3 is a flowchart of a process for calculating battery impedance during charging;
[0023] Figure 4 is a flowchart of a method for determining battery health provided by an embodiment of the present application Figure 2 ;
[0024] Figure 5 is a flowchart of a method for determining battery health provided by an embodiment of the present application Figure 3 ;
[0025] Figure 6 is an application schematic diagram of a mapping model provided by an embodiment of the present application;
[0026] Figure 7 is a flowchart of a method for determining battery health provided by an embodiment of the present application Figure 4 ;
[0027] Figure 8 is a detailed flowchart of a method for determining battery health provided by an embodiment of the present application;
[0028] Figure 9 It is a schematic diagram of the composition structure of a battery health determination device provided by an embodiment of the present application;
[0029] Figure 10 It is a schematic diagram of the specific hardware structure of an electronic device provided by an embodiment of the present application;
[0030] Figure 11 It is a schematic diagram of the composition structure of a charging system provided by an embodiment of the present application. Specific embodiments
[0031] In order to be able to understand the features and technical content of the embodiments of the present application in more detail, the implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit the embodiments of the present application.
[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0033] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.
[0034] It should also be noted that the terms "first / second / third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged in a specific order or sequence when permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0035] It can be understood that current charging technologies are mainly divided into wired charging technology and wireless charging technology. When a user charges an electronic device, the electronic device is connected to a power supply device (such as different types of adapters, etc.) through a charging cable to charge the electronic device, which is called wired charging technology. However, when the charging cable is lost or the user hopes to have a certain distance between the electronic device and the power supply device, the electronic device can be charged through wireless charging technology. Among them, wireless charging technology originates from wireless power transmission technology. According to different wireless charging principles, wireless charging modes are mainly divided into electromagnetic induction (or magnetic coupling), radio wave, electromagnetic resonance, and so on. Taking the wireless charging technology of electromagnetic induction type used in an electronic device as an example, energy is transferred between the electronic device and the power supply device (such as a wireless charging base) through a magnetic field, and the two do not need to be connected by a charging cable, and the electronic device can also be charged.
[0036] In the embodiments of the present application, whether it is wired charging technology or wireless charging technology, the current charging process can include a fast charging stage. In this stage, a large current is used for charging to quickly restore the battery power. The fast charging time is determined by the battery capacity and the charging rate, and fast charging can be divided into two types: constant current charging and constant voltage charging. Constant current charging means charging the battery with a constant current, and constant voltage charging means charging the battery with a constant voltage.
[0037] It can also be understood that taking a mobile phone as an example, the charging speed of mobile phones is getting faster and faster. The charging speeds of medium models of major manufacturers have exceeded 100 watts (Watt, W), and even some manufacturers have released models that support fast charging speeds of 200W and above. However, the fast charging speed is often negatively correlated with the durability and service life of the battery. Increasing the fast charging speed is manifested as increasing the current flowing into the battery on the mobile phone side. During the process of charging the battery with a large current, the electrodes of the battery will be polarized, and the electrode potential will deviate from the equilibrium potential. The difference between the polarization potential and the equilibrium potential is the overpotential. Among them, when the negative overpotential is lower than 0V vs. Li / Li+, lithium metal will precipitate on the surface of the negative electrode, damaging the battery health, manifested as the production of by-products, an increase in battery impedance, serious heating, and improper control may lead to safety accidents such as thermal runaway.
[0038] Therefore, the concept of State of health (SOH) of mobile phones has been proposed to characterize the lifespan of the battery during use. Exemplarily, generally, SOH = 80% is used as the boundary for the end of battery life. When the SOH is lower than 80%, the battery performance is insufficient to support normal use. The State of Charge (SOC) of the battery, also known as the remaining charge, represents the ratio of the remaining dischargeable charge to the fully charged charge after the battery has been used for a period of time or maintained for a long time, usually expressed as a percentage. In practical applications, the battery health of most mobile phones is characterized by the maximum available capacity (Qmax) of the battery. That is, the battery health will continuously decrease as the battery is used. Therefore, electronic devices with battery charge and discharge functions such as electric vehicles, smartphones, laptops, power banks, and mobile power supplies on the market will provide the remaining battery health for users to refer to. Accurate SOH can improve the user experience.
[0039] In the embodiments of the present application, the EIS method is a powerful tool for studying complex chemical and electrochemical processes (such as corrosion). Especially in the past two decades, it has been widely applied in electrochemical energy systems (such as fuel cells, supercapacitors, and secondary batteries, etc.), mainly reflected in predicting battery states (SOC, SOH) and determining factors limiting electrode performance (such as conductivity, charge transfer characteristics, passivation film characteristics, etc.). EIS is widely used in research fields such as corrosion and protection in systems disturbed by complex factors because it does not damage the target system such as the surface of the electrode to be measured. The mobile phone studies the charging current signal with a step change in the impedance spectrum, and then measures the change in the corresponding charging voltage over time. For details, see Figure 1 .
[0040] Exemplarily, Figure 1 is a schematic diagram of the change curves of voltage and current. As Figure 1 shown, the horizontal axis represents time, and the vertical axis represents amplitude. The mobile phone system needs to generate a current step change as described above, and the current step change can cause a voltage step change. Figure 1The dashed box in it is the voltage component and current component required for EIS analysis. The process of EIS is the process of performing discrete Fourier transform (DFT) on the voltage component and current component respectively. That is to say, the mobile phone system can also include an impedance calculation module (i.e., the "EIS module" or called the "EIS thread"). Among them, the EIS module executes the calculation thread of EIS. This thread will update the sampling data of the current battery voltage and current battery current in real time, and judge whether the current sampled current generates a stable step change. If a stable step is generated, it is determined that the current sampled current and current sampled voltage meet the execution conditions of DFT. At this time, DFT transformation can be performed on the current sampled current and current sampled voltage respectively, and then the complex impedance of the battery is calculated using the following formula:
[0041] Z = DFT(battery_voltage) / DFT(battery_current) (1)
[0042] Among them, Z is the complex impedance at different calculation frequencies; DFT is the discrete Fourier transform. The role of DFT is to transform the signal from the time domain to the frequency domain, and both the time domain and the frequency domain are discrete. It can be obtained which sine waves a signal is composed of, and the obtained result is the amplitude and phase of the sine wave. The specific calculation formula of DFT is as follows:
[0043]
[0044]
[0045] Here, the superposition of sine waves X(k) represents the data of DFT transformation, and x(n) represents the sampled data, and N is the number of sampling points within the calculation period.
[0046] It should be noted that applying the principle of the EIS method to a mobile phone can obtain the current battery impedance in real time. Among them, the battery impedance will increase as the battery ages. Therefore, the battery impedance calculated by EIS can reflect the degree of battery aging, and SOH is also a parameter characterizing the battery health. At present, through a large amount of experimental data, the following mapping model can be constructed:
[0047] SOH = k × eis_r 归一化 + b (4)
[0048] Among them, SOH and eis_r can be equivalent to a linear function. The diffusion impedance at low frequencies is calculated by eis_r, and its value is affected by the amplitude of the EIS step current, the cell temperature, the cell SOC, etc., and can be obtained from experimental data: (1) For the cell temperature, when the temperature rises by 1 °C, the impedance value decreases by 1 milliohm (mΩ); (2) For the cell SOC, when the charge level is in the range of 20% - 50% SOC, for every 1% increase in SOC, the impedance increases by 0.2 mΩ; when the charge level is in the range of 50% - 70% SOC, the impedance value remains unchanged with the change of SOC in this range. In addition, k and b in the mapping model shown in formula (4) are obtained by a large number of tests on the relationship between eis_r and SOH under a certain current step in the experimental environment, and are simulated under the condition of a charge level of 50% SOC and a cell temperature of 25 °C. For example, k = -11.56 and b = 1.3476, and the mapping model at this time is y = -11.56x + 1.3476.
[0049] When actually applying the above mapping model to a mobile phone, different mobile phones support different powers. The larger the step current, the more accurate the EIS calculation result. Therefore, a relatively large current step is usually selected for EIS calculation. Considering that different mobile phones support different powers, then k and b of this mapping model need to be different. In other words, k and b need to be dynamically configured. In addition, the SOC and temperature at the moment of calculating EIS are basically not the SOC and temperature in the experimental environment. Therefore, the battery impedance eis_r calculated by the mobile phone also needs to be normalized according to temperature and SOC. Here, SOC is relatively easy to characterize, and the relevant parameters of the fuel gauge chip can be directly read. However, there is no direct Analog to Digital Converter (ADC) to measure the temperature of the cell body. Therefore, a highly configurable and highly reliable software design scheme for EIS impedance mapping SOH is also required.
[0050] Simply put, although the related technology can already construct the mapping relationship between the battery health and the battery impedance, the model parameters (k and b) in the existing software solutions are fixed on the code side, which is not conducive to the scalability of future models and needs to be modified to be dynamically configurable; in addition, the temperature of the cell body cannot be directly measured at present, and a software solution is required to achieve the indirect detection of the temperature of the cell body.
[0051] In view of the above technical problems, the embodiments of the present application provide a method for determining the battery health status. First, the model configuration parameters in the impedance profile are determined; then, when a charging path is established between the battery under test in the electronic device and the power supply device and the current charging state satisfies the first condition, a step change in the charging current of the battery under test is triggered based on the first current threshold and the second current threshold in the model configuration parameters, and a first current signal including the step change and the corresponding first voltage signal are determined; according to the first current signal and the first voltage signal, the initial impedance value of the battery under test is determined; and then, based on the model parameters in the model configuration parameters and the initial impedance value, the target health status of the battery under test is determined. In this way, by integrating the model configuration parameters into the impedance profile, these parameters can be dynamically adjusted based on the impedance profile, which is convenient for subsequent debugging and project expansion and has good scalability; moreover, when a charging path is established between the battery under test and the power supply device and the current charging state satisfies the first condition, a step change in the charging current can be triggered, thereby avoiding the influence of temperature rise during the charging process, improving the calculation accuracy of the battery health status, enabling the device to display the battery health status more accurately, and further improving the reliability of the electronic device.
[0052] The following will describe each embodiment of the present application in detail with reference to the accompanying drawings.
[0053] In an embodiment of the present application, Figure 2 is a schematic flowchart of a method for determining the battery health status provided by the embodiments of the present application Figure 1 . As Figure 2 shown, the method may include:
[0054] S201, determining the model configuration parameters in the impedance profile.
[0055] In the embodiments of the present application, the method can be applied to a battery health status determination device or an electronic device integrated with the device. Among them, the electronic device can be an electronic device such as a mobile phone, a tablet computer, a notebook computer, a handheld computer, a personal digital assistant (PDA), a smart watch, a charging earphone, a mobile power supply, a power bank, etc., and no limitation is made here.
[0056] It can be understood that in the embodiments of the present application, the electronic device at least includes a battery under test. In actual applications, a charging path can be established between the battery under test in the electronic device and the power supply device. Among them, the electronic device and the power supply device are connected for wired / wireless charging, and then the power supply device charges the battery under test in the electronic device through the charging path.
[0057] It can also be understood that in the embodiments of the present application, the impedance configuration file is stored inside the electronic device and can be represented by battery_eis.txt. Among them, battery_eis.txt is mainly used to record the model configuration parameters required for impedance calculation. In some embodiments, determining the model configuration parameters in the impedance configuration file may include: when the electronic device is started, obtaining the impedance configuration file; parsing the impedance configuration file to determine the model configuration parameters.
[0058] It should be noted that in the embodiments of the present application, when the electronic device is started, it will load the charging Hardware Abstraction Layer Interface Definition Language (HIDL) service application. This service application will create an EIS thread and will also parse the impedance configuration file to determine the corresponding model configuration parameters.
[0059] Exemplarily, the file format of the impedance configuration file is as follows:
[0060] auto_trigger_current:2100,0--->High current threshold and low current threshold for step change;
[0061] r_main_k:-11.56---->k value in the mapping model;
[0062] r_main_b:1.3476--->b value in the mapping model;
[0063] r_main_soc:0.5--->Standard SOC parameter in the mapping model;
[0064] r_main_temp:250--->Standard cell temperature in the mapping model;
[0065] r_temp_factor:-0.001--->Temperature influence factor;
[0066] r_soc_factor_1:0.0002--->State of charge influence factor 1;
[0067] r_soc_factor_2:0--->State of charge influence factor 2.
[0068] Here, the mapping model is used to characterize the mapping relationship between the battery impedance value and the battery health. Taking the linear mapping relationship as an example, the mapping model can be expressed as y = kx + b, where x represents the battery impedance value and y represents the battery health. Additionally, the temperature influence factor (r_temp_factor) represents the step size for compensating the battery impedance according to the temperature change; the state of charge influence factor 1 (r_soc_factor_1) represents the step size for compensating the battery impedance according to the SOC change when the SOC is below 50%; the state of charge influence factor 2 (r_soc_factor_2) represents the step size for compensating the battery impedance according to the SOC change when the SOC is above 50%.
[0069] In some embodiments, parsing the impedance profile to determine the model configuration parameters may include: obtaining a handle corresponding to the impedance profile; based on the handle, reading the line to be processed in the impedance profile; when the line to be processed contains a preset string, performing a numerical conversion on the numerical string after the preset string to determine the parsing parameter corresponding to the line to be processed; and obtaining the model configuration parameters according to the parsing parameters corresponding to each of at least one line.
[0070] It should also be noted that in the embodiments of the present application, the impedance profile may include at least one line. Among them, the line to be processed may be any one of these at least one line. After determining the parsing parameter corresponding to the line to be processed, similarly, the parsing parameters corresponding to each of these at least one line can be determined, and then these obtained parsing parameters are determined as the model configuration parameters.
[0071] In addition, in the embodiments of the present application, the preset string may be auto_trigger_current, r_main_k, r_main_b, r_main_soc, r_main_temp, r_temp_factor, r_soc_factor_1, or r_soc_factor_2, etc., which are not specifically limited here.
[0072] In this way, for the application programming interface (API) of the Linux system, for example, fopen represents the open function, that is, to open a file; fgets represents the read function, that is, to read one line each time. That is to say, first use the fopen function to open this impedance profile to obtain a handle for operating this profile, then use the fgets function to read each line in this profile, determine whether each line contains a preset string, and then convert the numerical string after the preset string into a numerical type as the model configuration parameter.
[0073] Exemplarily, if a certain line contains the string "auto_trigger_current", then the numerical string after the "auto_trigger_current" string can be converted into a step-change high current threshold (e.g., 2000) and a step-change low current threshold (e.g., 0); or, if a certain line contains the string "r_main_k", then the numerical string after the "r_main_k" string can be converted into the k value in the mapping model (e.g., -11.56); or, if a certain line contains the string "r_main_b", then the numerical string after the "r_main_b" string can be converted into the b value in the mapping model (e.g., 1.3476); or, if a certain line contains the string "r_main_temp", then the numerical string after the "r_main_temp" string can be converted into the standard cell temperature in the mapping model. However, it should be noted that if the converted value is 250, which is obtained by multiplying the cell temperature by 10 here, then the parsed standard cell temperature is equal to 250 / 10 = 25 degrees.
[0074] It can also be understood that in the embodiments of the present application, when the charging power or charging strategy of the electronic device is different, the corresponding model configuration parameters may be different at this time. In some embodiments, the method may further include: determining the target model configuration parameters of the electronic device; updating the target model configuration parameters to the impedance configuration file.
[0075] That is to say, in the embodiments of the present application, since the model configuration parameters are highly integrated in the impedance configuration file, for different electronic devices, if the model configuration parameters are different, then there is no need to modify the code. At this time, only the impedance configuration file needs to be dynamically adjusted to achieve this, so as to facilitate debugging and modification as well as subsequent project expansion, and has high scalability.
[0076] S202, when a charging path is established between the battery under test in the electronic device and the power supply device and the current charging state meets the first condition, trigger a step change in the charging current of the battery under test based on the first current threshold and the second current threshold in the model configuration parameters, and determine the first current signal including the step change and the corresponding first voltage signal.
[0077] It should be noted that in the embodiments of the present application, the electronic device can monitor the change of the charging state through the EIS thread, where the change of the charging state can be measured by the charging attribute parameters. Here, the charging attribute parameters can also be called charging state attributes and are represented by "online".
[0078] It should also be noted that in the embodiments of the present application, if a charging path is established between the battery under test in the electronic device and the power supply device, then the value of the charging attribute parameter is determined to be the first value; or, if the charging path between the battery under test in the electronic device and the power supply device is disconnected, then the value of the charging attribute parameter is determined to be the second value. In other words, if the value of the charging attribute parameter is the first value, it means that a charging path is established between the battery under test in the electronic device and the power supply device; if the value of the charging attribute parameter is the second value, it means that the charging path between the battery under test in the electronic device and the power supply device is disconnected.
[0079] In the embodiments of the present application, the charging attribute parameter can be represented by online. Here, the first value is different from the second value. Exemplarily, the first value can be set to 1 and the second value can be set to 0.
[0080] That is to say, the EIS thread here is scheduled when the power supply device is connected to the electronic device, so it is necessary to monitor changes in the charging state. When a change in the charging state is detected, its status information will be sent to the EIS thread. Among them, the EIS thread can read the charging attribute parameter online. If online is equal to 0, it indicates that the power supply device has been unplugged, that is, the charging path between the battery under test in the electronic device and the power supply device is disconnected; if online is equal to 1, it means that the power supply device has been inserted, that is, the charging path between the battery under test in the electronic device and the power supply device is conducting.
[0081] In some embodiments, the current charging state satisfying the first condition may at least include:
[0082] The value of the charging attribute parameter is the first value;
[0083] The current charging parameter of the electronic device satisfies the preset parameter condition;
[0084] The currently collected temperature of the electronic device satisfies the preset temperature condition.
[0085] It should be noted that in the embodiments of the present application, the current charging parameter of the electronic device may include the current wake-up mode of the electronic device, the current time, and the sleep time and wake-up time recorded most recently. Among them, the sleep time means that when the system goes into sleep, it is necessary to turn off the power supply of the charging hardware and enter the low-power mode. At this time, the charging drive module will perform a suspend operation; the wake-up time means that when the system is awakened, the power supply of the charging hardware works normally. At this time, the charging drive module will perform a resume operation.
[0086] It should also be noted that in the embodiments of the present application, the current time can be represented by current_time, the sleep time can be represented by suspend_time, and the wake-up time can be represented by resume_time. In some embodiments, for the current charging parameters of the electronic device to meet the preset parameter conditions, it may include: the current wake-up mode is the power supply device access wake-up mode; the difference between the current time and the wake-up time meets the first time interval range; and the difference between the wake-up time and the sleep time meets the second time interval range.
[0087] In the embodiments of the present application, the wake-up mode of the electronic device can include the power supply device access wake-up mode, the power button wake-up mode, or the fingerprint wake-up mode, etc. However, the EIS thread here is mainly applied to the charging process. Therefore, in the embodiments of the present application, the current wake-up mode of the electronic device can be the power supply device access wake-up mode. For example, when the user inserts the adapter to wake up the system. In this case, the time difference between the current time current_time - the wake-up time resume_time needs to meet the first time interval range, and the time difference between the wake-up time resume_time - the sleep time suspend_time needs to meet the second time interval range. Among them, the reason for judging these times is that only when the electronic device sleeps for enough time, can the various parts of the electronic device achieve thermal equilibrium. Here, the thermal equilibrium can be considered that the temperature of the battery cell body is basically the same as the temperatures of each part of the electronic device housing. That is, the electronic device sleeps for enough time and is inserted into the power supply device to wake up the system, which is a prerequisite for executing the EIS thread.
[0088] It should also be noted that in the embodiments of the present application, the first time interval range is much smaller than the second time interval range. Exemplarily, the first time interval range can be set to within 10 seconds (second, s), and the second time interval range can be set to more than 30 minutes (minute, min).
[0089] It should also be noted that in the embodiments of the present application, if the current charging parameters of the electronic device meet the preset parameter conditions, then the various parts of the electronic device are in thermal equilibrium. At this time, all the temperature nodes under the temperature acquisition device (thermal_zone) can be traversed. For example, a negative temperature coefficient (NTC) device is used for temperature acquisition, so as to obtain multiple temperatures currently collected by the electronic device, and determine the highest temperature and the lowest temperature among these multiple temperatures. In some embodiments, for the currently collected temperature of the electronic device to meet the preset temperature conditions, it may include: the difference between the highest temperature and the lowest temperature meets the preset difference range.
[0090] In the embodiments of the present application, multiple temperatures currently collected by the electronic device can be sorted according to their magnitudes, and then the highest temperature and the lowest temperature can be determined therefrom. If the difference between the highest temperature and the lowest temperature meets a preset difference range, it can be considered that the currently collected temperature of the electronic device meets the preset temperature condition. Exemplarily, the preset difference range can be set within 1 degree.
[0091] That is to say, in the embodiments of the present application, when measuring the temperature according to the NTC devices on the housing, main board, adapter board, etc. of the electronic device, if these temperatures are very close, it can be considered that all the temperatures in the electronic device are very close, and thus the temperature of the housing of the electronic device can be used to indirectly determine the temperature of the battery cell body.
[0092] In this way, if online is equal to 1, and the current wake-up mode of the electronic device is the power supply access wake-up mode; the difference between the current time and the wake-up time meets the first time interval range; the difference between the wake-up time and the sleep time meets the second time interval range; and the difference between the highest temperature and the lowest temperature meets the preset difference range; then the current charging state meets the first condition, and at this time, the charging current of the battery under test can be triggered to have a step change based on the first current threshold and the second current threshold in the model configuration parameters, so as to determine the first current signal including the step change and the corresponding first voltage signal.
[0093] It should be noted that, in the embodiments of the present application, the first current signal can be obtained from the step change when the charging current of the battery under test drops from the first current threshold to the second current threshold; correspondingly, the charging voltage of the battery under test will also have a corresponding step change, so as to obtain the first voltage signal.
[0094] It should also be noted that, in the embodiments of the present application, the first current threshold is higher than the second current threshold. Therefore, the first current threshold can be referred to as the high current threshold (high_current), and the second current threshold can be referred to as the low current threshold (low_current). Exemplarily, the current change amount △I between the first current threshold and the second current threshold is ≥ 1000 mA, so that the generated step change can be better applied to the calculation of the battery impedance, thereby improving the calculation accuracy of the battery impedance.
[0095] S203, determine the initial impedance value of the battery under test according to the first current signal and the first voltage signal.
[0096] It should be noted that, in the embodiments of the present application, the first current signal may include: charging current data with a first time length before the step change moment and charging current data with a second time length after the step change moment; the first voltage signal may include: charging voltage data with a first time length before the step change moment and charging voltage data with a second time length after the step change moment.
[0097] It should also be noted that, in the embodiments of the present application, the sum of the first time length and the second time length is greater than or equal to the sampling frequency period. Exemplarily, if the sampling frequency period is 40s, then the two segments of current signals before and after the step change moment can last for 40s in total, and correspondingly, the two segments of voltage signals before and after the step change moment can also last for 40s in total, but no specific limitation is made here.
[0098] In some embodiments, determining the initial impedance value of the battery under test according to the first current signal and the first voltage signal may include: performing time-frequency conversion on the first current signal and the first voltage signal to determine the initial impedance value of the battery under test.
[0099] It should be noted that, in the embodiments of the present application, after obtaining the first current signal and the first voltage signal, time-frequency conversion can be performed on the first current signal and the first voltage signal. Among them, the time-frequency conversion method may include the wavelet transform method or the Fourier transform method, and even other time-frequency conversion methods, which are not specifically limited here.
[0100] Exemplarily, as Figure 3 shown, performing time-frequency conversion on the discrete data of the first current signal and the first voltage signal may specifically be performing time-frequency conversion on the first current signal I(t) to obtain If; performing time-frequency conversion on the first voltage signal U(t) to obtain Uf; then performing division operation on the two to obtain the complex form Z = Uf / If, and further the initial impedance value of the battery under test can be determined.
[0101] In some embodiments, taking the Fourier transform method as an example, referring to Figure 4 , for determining the initial impedance value of the battery under test, it may include:
[0102] S401, performing Fourier transform on the first current signal to determine the current Fourier transform data.
[0103] S402, performing Fourier transform on the first voltage signal to determine the voltage Fourier transform data.
[0104] S403, performing impedance calculation according to the current Fourier transform data and the voltage Fourier transform data to obtain the initial impedance value of the battery under test.
[0105] In the embodiments of the present application, by performing Fourier transforms on the first current signal and the first voltage signal respectively, current Fourier transform data and voltage Fourier transform data can be determined; then, impedance calculation is performed based on the current Fourier transform data and the voltage Fourier transform data, and an initial impedance value can be obtained.
[0106] It should also be noted that in the embodiments of the present application, the Fourier transform here can be a Discrete Fourier Transform (DFT), a Fast Fourier Transform (FFT), etc. Among them, as an efficient and fast algorithm for calculating the discrete Fourier transform, assuming that the sampling frequencies of the first current signal and the first voltage signal are fs, specifically, it can be: performing an FFT transform on the discrete data of the first current signal (Current, I) to determine the current Fourier transform data, that is, If = FFT(I); performing an FFT transform on the discrete data of the first voltage signal (Voltage, U) to determine the voltage Fourier transform data, that is, Uf = FFT(U); then, by performing a division operation on the voltage Fourier transform data and the current Fourier transform data, a complex number form of Z = Uf / If = FFT(U) / FFT(I) can be obtained. Here, the real part signal of Z is the battery impedance calculated.
[0107] It should also be noted that in the embodiments of the present application, after performing time-frequency conversion on the first current signal and the first voltage signal, the battery impedance Z = [Z0, Z1, Z2,... Zn] corresponding to the characteristic frequencies f = [f0, f1, f2,... fn] can be obtained. It should be noted that the initial impedance value here specifically refers to the impedance value of the battery impedance Z at the first frequency f1. Among them, the relationship between the sampling frequency fs of the first current signal and the first voltage signal and the first frequency f1 needs to satisfy: 10×f1 ≤ fs.
[0108] In some embodiments, the value range of the first frequency can be set to 0.01 Hz to 60 Hz. Exemplarily, the first frequency f1 can be set to 0.025 Hz, but no specific limitation is made.
[0109] S204, based on the model parameters in the model configuration parameters and the initial impedance value, determine the target health degree of the battery to be tested.
[0110] It should be noted that in the embodiments of the present application, first, a mapping model between the battery impedance value and the battery health degree needs to be constructed, or it can also be called the battery main model. Here, it is mainly constructed by using the model parameters (such as r_main_k and r_main_b) in the model configuration parameters. In this way, according to this mapping model, the target health degree of the battery to be tested can be determined.
[0111] In some embodiments, for determining the target health degree of the battery to be measured, refer to Figure 5 , after step S203, the method may further include:
[0112] S501, perform normalization processing on the initial impedance value to determine the target impedance value.
[0113] S502, determine the mapping model between the battery impedance value and the battery health degree according to the model parameters, and determine the target health degree of the battery to be measured according to the mapping model and the target impedance value.
[0114] It should also be noted that in the embodiments of the present application, the mapping model may also be a regular expression of the battery impedance and the battery health degree obtained by aging the battery cell in advance. The mapping model can be used to reflect the linear relationship between the battery impedance value and the battery health degree. Or, the mapping model can also be used to reflect the non-linear relationship between the battery impedance value and the battery health degree, such as power function, exponential function, logarithmic function, etc., which are not specifically limited here.
[0115] Exemplarily, in the embodiments of the present application, when it is determined that the mapping model is used to reflect the linear relationship between the battery impedance value and the battery health degree, the mapping model can be expressed as a linear function. For example, fft_soh_init = k × batt_r_soc + b, where k and b are the slope and constant of the mapping model respectively, k is determined by r_main_k in the impedance configuration file, and b is determined by r_main_b in the impedance configuration file; batt_r_soc is the target impedance value, and fft_soh_init is the target health degree corresponding to the impedance mapping.
[0116] Exemplarily, when the mapping model is used to reflect the linear relationship between the battery impedance value and the battery health degree, the mapping model can be as Figure 6 shown, the horizontal axis represents the battery impedance (unit: mΩ), and the vertical axis represents the battery health degree. In Figure 6 , the linear function can be expressed as y = -0.0024x + 1.1478, and the goodness of fit R 2 = 0.9896. Among them, R 2 is an important index for evaluating the fitting degree of the regression model, and its value range is between 0 and 1. The closer R 2 is to 1, the better the fitting degree of the linear function to the data.
[0117] It can be understood that in the embodiments of the present application, since the electronic device cannot be exactly at the standard temperature and standard SOC for loading in actual applications, it is necessary to normalize the actual temperature and actual SOC of the loading here to obtain the final target impedance value.
[0118] In some embodiments, normalizing the initial impedance value to determine the target impedance value may include: determining the parameter variation amount and influence factor of the impedance influence parameter based on the model configuration parameters; normalizing the initial impedance value according to the parameter variation amount and influence factor to determine the target impedance value.
[0119] In the embodiments of the present application, the parameter variation amount represents the difference between the measured parameter corresponding to the impedance influence parameter and the reference parameter. Among them, the impedance influence parameter may include: temperature parameter, and / or state of charge parameter; the reference parameter may also be referred to as a standardized parameter, such as standard temperature, standard SOC, etc. Thus, if there is a deviation between the temperature parameter and the standard temperature, then the initial impedance value can be normalized according to the temperature variation amount and temperature influence factor; and / or, if the SOC parameter deviates from the standard SOC, then the initial impedance value can be normalized according to the SOC variation amount and SOC influence factor.
[0120] Here, it should be noted that the standard temperature can be determined according to r_main_temp in the impedance configuration file, the standard SOC can be determined according to r_main_soc in the impedance configuration file, the temperature influence factor can be determined according to r_temp_factor in the impedance configuration file, and the SOC influence factor can be determined according to r_soc_factor in the impedance configuration file. Among them, r_soc_factor may include r_soc_factor_1 or r_soc_factor_2. r_soc_factor_1 represents the step length for compensating the battery impedance according to the SOC variation amount when the SOC is below 50%, and r_soc_factor_2 represents the step length for compensating the battery impedance according to the SOC variation amount when the SOC is above 50%.
[0121] In a specific embodiment, when the impedance influence parameter includes a temperature parameter and a state of charge parameter, normalizing the initial impedance value to determine the target impedance value may include: determining the temperature variation amount and temperature influence factor of the temperature parameter and the state of charge variation amount and state of charge influence factor of the state of charge parameter; determining the temperature normalization value according to the temperature variation amount and temperature influence factor; and determining the state of charge normalization value according to the state of charge variation amount and state of charge influence factor; determining the target impedance value according to the initial impedance value, the temperature normalization value, and the state of charge normalization value.
[0122] It should be noted that in the embodiments of the present application, assuming that the measured temperature parameter is represented by shell_temp_max, the standard temperature parameter is represented by r_main_temp, and the temperature influence factor is represented by r_temp_factor, then the temperature change amount is shell_temp_max - r_main_temp, and the corresponding temperature normalization value is batt_temp = (shell_temp_max - r_main_temp) × r_temp_factor.
[0123] It should also be noted that in the embodiments of the present application, assuming that the measured state of charge parameter is represented by batt_real_soc, the standard state of charge parameter is represented by r_main_soc, and the state of charge influence factor is represented by r_soc_factor, then the state of charge change amount is r_main_soc - batt_real_soc, and the corresponding state of charge normalization value is batt_soc = (r_main_soc - batt_real_soc) × r_soc_factor.
[0124] Thus, according to the initial impedance value, the temperature normalization value, and the state of charge normalization value, determining the target impedance value may include: performing an addition operation on the initial impedance value, the temperature normalization value, and the state of charge normalization value to determine the target impedance value. Exemplarily, the initial impedance value may be represented by batt_r_init, and the target impedance value may be represented by batt_r, then batt_r = batt_r_init + batt_temp + batt_soc.
[0125] That is to say, in the embodiments of the present application, if only the influence of the temperature parameter is considered, the target impedance value batt_r = batt_r_init + batt_temp = batt_r_init + (shell_temp_max - r_main_temp) × r_temp_factor can be determined; if only the influence of the state of charge parameter is considered, the target impedance value batt_r = batt_r_init + batt_soc = batt_r_init + (r_main_soc - batt_real_soc) × r_soc_factor can be determined; if the influence of both the temperature parameter and the state of charge parameter is considered, the target impedance value batt_r = batt_r_init + (shell_temp_max - r_main_temp) × r_temp_factor + (r_main_soc - batt_real_soc) × r_soc_factor can be determined. Among them, batt_r_init is the initial impedance value calculated based on time-frequency conversion, and r_main_temp and r_main_soc are the standard temperature parameter and the standard state of charge parameter in the mapping model. Since it is impossible for the electronic device to actively create a step change in the charging current exactly at the standard temperature and the standard SOC in practical applications, it is necessary to normalize the actual temperature and the actual SOC to the standard values. r_temp_factor and r_soc_factor are the temperature influence factor and the state of charge influence factor respectively, and they perform normalization processing on the calculated batt_r_init to obtain the target impedance value batt_r.
[0126] Exemplarily, assume that the mapping model is a linear function of r_main_temp = 25 °C and r_main_soc = 50%, fft_soh_init = -11.556 × batt_r_soc + 1.3476, r_temp_factor = -0.001, r_soc_factor = -0.0002; then when the initially calculated impedance value batt_r_init = 0.04913 Ω by pulling the load, the temperature shell_temp_max = 32.3 °C, and the state of charge batt_real_soc = 24.6%, the SOH = 92.286% can be calculated through the above mapping model.
[0127] It should be noted that in the embodiments of the present application, the battery to be tested may refer to a lithium-ion battery, a lead-acid battery, etc. In addition, the battery to be tested may also refer to a single cell, or a battery pack composed of multiple cells, etc., which is not specifically limited here.
[0128] It should also be noted that in the embodiments of the present application, this can be applicable to the charging process of the battery under test, that is, the target health degree is determined according to the charging data of the battery under test; but it can also be applicable to the discharging process of the battery under test, that is, the target health degree is determined according to the discharging data of the battery under test.
[0129] The embodiments of the present application provide a method for determining battery health degree, specifically a software design scheme based on EIS impedance mapping SOH that realizes highly dynamic configuration and high reliability. Among them, the model configuration parameters are highly integrated in the impedance configuration file, enabling these parameters to be dynamically adjusted based on the impedance configuration file, facilitating subsequent debugging and project expansion, and having good scalability; moreover, when a charging path is established between the battery under test and the power supply device and the current charging state meets the first condition, a step change in the charging current can be triggered, thereby also avoiding the temperature rise impact during the charging process; at the same time, by indirectly obtaining the core body temperature through multiple temperatures in the electronic device, the temperature normalization of the battery impedance can be made more accurate, thus improving the calculation accuracy of the battery health degree, enabling the device to display the battery health degree more accurately, further improving the reliability of the electronic device, and also improving the performance of the electronic device.
[0130] In another embodiment of the present application, based on the method for determining battery health degree described in the foregoing embodiment, Figure 7 is a flowchart of a method for determining battery health degree provided by an embodiment of the present application Figure 4 As Figure 7 shown, the method may include:
[0131] S701, determine the value of the charging attribute parameter.
[0132] S702, when the value of the charging attribute parameter is the first value, determine the current charging parameter of the electronic device.
[0133] S703, when the current charging parameter meets the preset parameter condition, obtain multiple temperatures currently collected in the electronic device, and determine the highest temperature and the lowest temperature among the multiple temperatures.
[0134] S704, when the difference between the highest temperature and the lowest temperature meets the preset difference range, perform the step of triggering a step change in the charging current of the battery under test based on the first current threshold and the second current threshold in the model configuration parameters.
[0135] It should be noted that in the embodiments of the present application, the charging attribute parameter can also be referred to as the charging status attribute and is represented by online. If a charging path is established between the battery under test in the electronic device and the power supply device, the value of the charging attribute parameter is determined to be the first value; or, if the charging path between the battery under test in the electronic device and the power supply device is disconnected, the value of the charging attribute parameter is determined to be the second value. In other words, if the value of online is the first value, it means that the power supply device is connected, that is, a charging path is established between the two; if the value of online is the second value, it means that the power supply device is unplugged, that is, the charging path between the two is disconnected. Exemplarily, the first value can be set to 1 and the second value can be set to 0.
[0136] It should also be noted that in the embodiments of the present application, the current charging parameters include: the current wake-up mode, the current time, and the sleep time and wake-up time recorded most recently. That is to say, when the value of the charging attribute parameter is the first value, the current wake-up mode, the current time, and the sleep time and wake-up time recorded most recently of the electronic device can be determined.
[0137] Among them, the sleep time means that when the system goes into hibernation, the charging hardware power supply needs to be turned off to enter the low-power mode. At this time, the charging driver module will perform a suspend operation; the wake-up time means that when the system is awakened, the charging hardware power supply works normally. At this time, the charging driver module will perform a resume operation.
[0138] It should also be noted that in the embodiments of the present application, the current time can be represented by current_time, the sleep time can be represented by suspend_time, and the wake-up time can be represented by resume_time. In some embodiments, for the current charging parameters of the electronic device to meet the preset parameter conditions, it can include: the current wake-up mode is the power supply device access wake-up mode; the difference between the current time and the wake-up time meets the first time interval range; and the difference between the wake-up time and the sleep time meets the second time interval range.
[0139] It should also be noted that in the embodiments of the present application, the first time interval range is much smaller than the second time interval range. Exemplarily, the first time interval range can be set to within 10s, and the second time interval range can be set to more than 30min.
[0140] It should also be noted that in the embodiments of the present application, if the current charging parameters of the electronic device meet the preset parameter conditions, then all parts of the electronic device are thermally balanced. Only when thermally balanced can it be considered that the temperature of the battery cell body is basically the same as the temperatures of all parts in the electronic device. At this time, all temperature nodes under the temperature acquisition device (thermal_zone) are traversed, so that multiple temperatures currently acquired by the electronic device can be obtained, and the highest temperature and the lowest temperature among these multiple temperatures can be determined. In some embodiments, if the difference between the highest temperature and the lowest temperature meets the preset difference range, it can be considered that the currently acquired temperature of the electronic device meets the preset temperature conditions. At this time, the current charging state meets the first condition, that is, the current charging state meets the condition for enabling the EIS thread. At this time, a step change in the charging current of the battery under test can be triggered based on the first current threshold and the second current threshold in the model configuration parameters to determine the first current signal and the first voltage signal for EIS calculation.
[0141] It can be understood that in the embodiments of the present application, if the current charging state does not meet the first condition, then the adjustment current of the battery under test can be set to a preset value to ensure that the adjustment current does not control the change in the charging current of the battery under test.
[0142] Specifically, if the value of the charging attribute parameter is the second value, or the current charging parameters do not meet the preset parameter conditions, or the difference between the highest temperature and the lowest temperature does not meet the preset difference range, then it can be determined that the current charging state does not meet the first condition. At this time, the adjustment current of the battery under test can be set to a preset value to ensure that the adjustment current does not control the change in the charging current of the battery under test.
[0143] That is to say, in the embodiments of the present application, if the value of online is equal to 0, or the current wake-up mode is not the power supply device access wake-up mode; or the difference between the current time and the wake-up time does not meet the first time interval range; or the difference between the wake-up time and the sleep time does not meet the second time interval range; or the difference between the highest temperature and the lowest temperature does not meet the preset difference range, then it can be considered that the current charging state does not meet the first condition, and at this time, the step of triggering a step change in the charging current of the battery under test will not be executed.
[0144] It should also be noted that in the embodiments of the present application, the method may include: when the charging path between the battery under test in the electronic device and the power supply device is disconnected, or the current charging state does not meet the first condition, setting the adjustment current of the battery under test to a preset value and sending it to the charging drive module to ensure that the adjustment current does not control the change in the charging current of the battery under test.
[0145] In the embodiment of the present application, the adjustment current of the battery under test can be represented by eis_current. Exemplarily, the value of the preset value can be set to -1. For example, eis_current = -1, and this value is used to determine that the adjustment current will not control the change of the charging current.
[0146] That is to say, in the embodiment of the present application, if the value of online is equal to 0, it indicates that a power supply device has been unplugged. Then, various parameters of the EIS thread can be restored to the default values, and then interact with the kernel layer (kernel). For example, set the adjustment current eis_current = -1 and send it to the charging driver module of the kernel. Wherein, eis_current = -1 is used to indicate that the charging current of the battery under test will not be controlled. In other words, if the charging driver module parses eis_current = -1, it will not regard this adjustment current as a factor affecting the output of the power supply device. Even if there is an EIS thread running, the EIS thread will be terminated.
[0147] In addition, if the value of online is equal to 1, it indicates that a power supply device is inserted at this time. Then, the current time current_time at the current moment can be obtained through the API, and then interact with the kernel layer (kernel) to obtain the last sleep time suspend_time and wake-up time resume_time recorded in the charging driver module of the kernel (when the system sleeps, the charging hardware power supply needs to be turned off to enter the low-power mode, so the charging driver module will perform the suspend operation, and when the system is awakened, the charging hardware power supply works normally, so the charging driver module will perform the resume operation). If the system is awakened by the access of the power supply device, the time difference between current_time - resume_time is within 10s, and resume_time - suspend_time needs to be more than 30 minutes. The reason for judging these times is mainly that the electronic device needs to sleep for enough time so that all parts of the electronic device can achieve thermal equilibrium. Only when the equilibrium is achieved can it be considered that the temperature of the battery cell body is basically the same as the temperatures of all parts of the electronic device housing. That is, the electronic device sleeps for enough time and is awakened by inserting the power supply device, which is a prerequisite for calculating the battery impedance. Then, in the way of file nodes, all temperature nodes under thermal_zone will be traversed and sorted by size. If the temperature difference between the maximum temperature and the minimum temperature is within 1 degree range, it indicates that the condition for enabling the EIS thread scheduling is met, and at this time, the EIS thread will be loaded into the Central Processing Unit (CPU) scheduling.
[0148] It can also be understood that after the EIS thread is scheduled, in order to avoid uneven temperatures in various parts of the electronic device housing caused by charging (charging can cause heat generation), it is necessary to actively create a step change that conforms to the battery impedance calculation at the moment when the charging path is established, that is, trigger a step change in the charging current of the battery under test based on the first current threshold and the second current threshold in the model configuration parameters.
[0149] In some embodiments, determining the first current signal including the step change and the corresponding first voltage signal may include: determining the first current signal including the step change and the corresponding first voltage signal when the step change generated by the charging current of the battery under test satisfies the second condition.
[0150] In the embodiments of the present application, the method may further include: setting the adjustment current of the battery under test to the first current threshold and sending it to the charging drive module to control the charging current of the battery under test to be adjusted to the first current threshold; after the adjusted charging current satisfies the first preset stable range and lasts for the first charging time, setting the adjustment current of the battery under test to the second current threshold and sending it to the charging drive module to control the charging current of the battery under test to be adjusted to the second current threshold; after the adjusted charging current satisfies the second preset stable range and lasts for the second charging time, it is determined that the step change generated by the charging current of the battery under test satisfies the second condition.
[0151] It should be noted that in the embodiments of the present application, after controlling the charging current of the battery under test to be adjusted to the first current threshold, the charging current needs to remain stable for a period of time at this time. Whether the charging current is stable can be judged by whether the adjusted charging current satisfies the first preset stable range. Exemplarily, assuming that the first current threshold is I1, the corresponding first preset stable range can be set to (I1 - 200 mA, I1). In this case, the charging current generally does not exceed the first current threshold, but in order to reserve a certain margin, the first preset stable range can also be set to (I1 - 200 mA, I1 + 100 mA).
[0152] It also should be noted that in the embodiments of the present application, after controlling the charging current of the battery under test to be adjusted to the second current threshold, the charging current also needs to remain stable for a period of time at this time. Whether the charging current is stable can be judged by whether the adjusted charging current satisfies the second preset stable range. Exemplarily, assuming that the second current threshold is I2, the corresponding second preset stable range can be set to (I2 - 200 mA, I2). In this case, the charging current generally does not exceed the second current threshold, but in order to reserve a certain margin, the second preset stable range can also be set to (I2 - 200 mA, I2 + 100 mA).
[0153] Here, the purpose of requiring the charging current of the battery under test to be stably charged for a period of time is: (1) to eliminate the influence on electrode polarization when the charging current decreases from a high current to a low current; (2) these stably charged charging data are required for time-frequency conversion to facilitate the calculation of the battery impedance.
[0154] It should also be noted that in the embodiment of the present application, after the charging current of the battery under test is adjusted to the first current threshold, this stable time period can be characterized by the first charging time. Exemplarily, the first charging time can be set to 20 s. However, considering the charging speed, the maximum time of the first charging time is equal to the time required for the number of points for calculating the battery impedance (for example, if a total of 40 points are sampled, then it can last up to 40 s). In addition, after the charging current of the battery under test is adjusted to the second current threshold, this stable time period can be characterized by the second charging time. Exemplarily, the second charging time can also be set to 20 s. However, it should be noted that the maximum time of the second charging time is equal to 3 / 4 of the time required for the number of points for calculating the battery impedance (for example, if a total of 40 points are sampled, then it can last up to 30 s), so as to avoid overly affecting the charging speed.
[0155] That is to say, in the embodiment of the present application, in order to avoid uneven temperature of each part of the electronic device caused by charging (charging generates heat), the embodiment of the present application will actively create a step current that conforms to the mapping model when inserting the charger, that is, the charging current of the battery under test maintains the front numerical current high_current (for example, 2000 mA) in the auto_trigger_current for 20 s, and maintains the rear numerical current low_current (for example, 0 mA) in the auto_trigger_current for 20 s. Among them, first, eis_current = high_current will be sent to the charging driver module of the kernel and act on the power supply device, and then the EIS thread will collect the current once every 1 s. If 20 points have been collected, then it starts to judge the collected current within a window of 20 points: the maximum value < high_current + 100 mA, and the minimum value > high_current - 200 mA. If it is satisfied, it indicates that the high-step current of the step change has been satisfied. At this time, eis_current = low_current needs to be sent to the charging driver module of the kernel and act on the power supply device to obtain the low-step current of the step change.
[0156] Considering the influence of power consumption factors, the charging current of the battery under test may not be stable. Therefore, to avoid overly affecting charging, the maximum duration of the high-step current high_current created here is equal to the time required for one EIS calculation (for example, if there are 40 points, it lasts for at most 40s); the maximum duration of the low-step current low_current created here is equal to 3 / 4 of the time required for one EIS calculation (for example, if there are 40 points, it lasts for at most 30s). If the time-frequency conversion condition for battery impedance calculation is not reached after reaching the maximum duration, then eis_current = -1 can also be set and sent to the charging driver module of the kernel to indicate that the change in the charging current is not controlled.
[0157] An embodiment of the present application provides a method for determining battery health. When a charging path is established between the battery under test and the power supply device and the current charging state meets the first condition, a step change in the charging current can be triggered, thereby also avoiding the influence of temperature rise during charging; at the same time, the temperature of the battery cell body can be indirectly obtained through multiple temperatures in the electronic device, and the temperature normalization of the battery impedance can be made more accurate, thus improving the calculation accuracy of battery health, enabling the device to display the battery health more accurately, further improving the reliability of the electronic device, and also improving the performance of the electronic device.
[0158] In another embodiment of the present application, based on the method for determining battery health described in the foregoing embodiment, taking the electronic device as a mobile phone and the power supply device as an adapter as an example, Figure 8 is a detailed flowchart of a method for determining battery health provided by an embodiment of the present application. As Figure 8 shown, the detailed process may include:
[0159] S801, Initialize the EIS thread of HIDL.
[0160] S802, Parse the impedance configuration file battery_eis.txt.
[0161] S803, Determine the content of the impedance configuration file.
[0162] S804, Open the impedance configuration file, use the fget function to read each line in the configuration file, determine whether each line contains a preset string, and convert the numerical string after the preset string into a model configuration parameter.
[0163] S805, Has the charging state changed?
[0164] S806, Read the charging attribute parameter online.
[0165] S807, Is Online = 0?
[0166] S808, restore various parameters of the EIS thread to default values.
[0167] S809, set eis_current = -1 and send it to the charging driver module of the kernel, indicating that the EIS thread does not control the change of the charging current.
[0168] S810, end the execution of the EIS thread.
[0169] S811, record the current time current_time at the current moment, and read the last recorded sleep time suspend_time and wake-up time resume_time.
[0170] S812, Is Current_time - resume_time < 10s and resume_time - suspend_time > 30min?
[0171] S813, traverse each NTC that monitors the shell temperature on the mobile phone side, read its temperature value and sort them.
[0172] S814, Is the difference between the highest temperature value and the lowest temperature value within 1 degree range?
[0173] S815, wake up the EIS thread and start executing the EIS-related calculation process.
[0174] S816, set eis_current equal to the previous numerical current high_current in auto_trigger_current.
[0175] S817, collect the charging current once every 1s.
[0176] S818, Has eis_current been set to the subsequent numerical current low_current in auto_trigger_current?
[0177] S819, Has DFT been performed or has the sampling count of the charging current not meeting low_current reached 30 points?
[0178] S820, judge within a window of 20 points for the collected charging current: is the maximum value < high_current + 100mA and the minimum value > high_current - 200mA?
[0179] S821, set eis_current equal to the subsequent numerical current low_current in auto_trigger_current.
[0180] S822, Has 40 points been collected?
[0181] S823, Continue to collect points.
[0182] It should be noted that in the embodiment of the present application, for step S807, it is judged whether online = 0? If the judgment result is yes, then steps S808 to S810 are executed; if the judgment result is no, then steps S811 and S812 are executed. At this time, it is judged whether Current_time - resume_time < 10s and resume_time - suspend_time > 30min? If the judgment result is no, the process ends, specifically, the execution of the EIS thread can be ended; if the judgment result is yes, then steps S813 and S814 need to be executed to further judge whether the highest temperature value - the lowest temperature value is within the range of 1 degree? If the judgment result is no, the process ends, specifically, the execution of the EIS thread can be ended; if the judgment result is yes, then steps S815 to S823 are executed.
[0183] It should also be noted that in the embodiment of the present application, for step S818, it is judged whether eis_current has been set to the subsequent numerical current low_current in auto_trigger_current? If the judgment result is yes, then step S819 is executed; if the judgment result is no, then step S820 is executed. For step S819, if the judgment result is yes, then steps S809 to S810 are executed; if the judgment result is no, then steps S817 to S818 are executed. For step S820, if the judgment result is yes, then S821 is executed, and steps S817 to S818 are executed; if the judgment result is no, then step S822 is executed. For step S822, if the judgment result is no, then step S823 is executed, and steps S817 to S818 are executed; if the judgment result is yes, then steps S809 to S810 are executed.
[0184] Briefly speaking, in the embodiment of the present application, a software design scheme based on EIS mapping SOH is mainly designed here. This scheme can highly integrate the model configuration parameters into the impedance configuration file, which is convenient for debugging and modification and subsequent project integration of this function; in addition, this scheme indirectly estimates the temperature of the battery cell body by means of mobile phone standby and plug-in wake-up, and matching whether the various NTC temperatures in the mobile phone are reasonable, so as to better perform the impedance normalization of the battery affected by temperature; at the same time, in order to avoid the influence of charging temperature rise, the EIS calculation process is integrated into the charging start stage, reasonably controlling the duration of the step-change charging current and preventing mistakes, and minimizing its influence on the charging movie speed.
[0185] In a specific implementation manner, to achieve highly dynamic configuration of the EIS mapping SOH and the accuracy of the SOH, the execution steps of the embodiments of the present application may include:
[0186] Step 1, when the mobile phone starts, it will load the HIDL service, which will create an EIS thread and parse the impedance configuration file battery_eis.txt. The file format is as follows:
[0187] auto_trigger_current:2100,0--->High current threshold and low current threshold for step change;
[0188] r_main_k:-11.56---->k value in the mapping model;
[0189] r_main_b:1.3476--->b value in the mapping model;
[0190] r_main_soc:0.5--->Standard SOC parameter in the mapping model;
[0191] r_main_temp:250--->Standard cell temperature in the mapping model;
[0192] r_temp_factor:-0.001--->Temperature influence factor;
[0193] r_soc_factor_1:0.0002--->State of charge influence factor 1;
[0194] r_soc_factor_2:0--->State of charge influence factor 2.
[0195] Specifically, first use the linux api fopen to open this impedance configuration file to obtain a handle for operating the file, then use the fgets function to read each line in the impedance configuration file, determine whether each line contains a preset string, and then convert the numerical string after the preset string into a numerical type as the model configuration parameter of the mapping model. For example, if the line contains the string auto_trigger_current, then the numerical string after auto_trigger_current can be converted into the high current threshold and low current threshold for step change.
[0196] Step 2: The EIS thread is scheduled when the adapter is inserted. Therefore, it is necessary to monitor the change of the charging state. Each time there is a change in the charging state, its status information will be sent to the EIS thread. The EIS thread reads the charging attribute parameter online. If online is equal to 0, it means that the adapter is unplugged. Then, various parameters of the EIS thread can be restored to the default values, and then the property eis_current=-1 is set and sent to the charging driver module of the kernel. This value indicates that the EIS thread does not control the change of the charging current. That is to say, if the kernel parses eis_current=-1, it will not regard this adjusted current as a factor affecting the adapter output. Even if the EIS thread is executed, the EIS thread needs to be terminated.
[0197] Step 3: If online is equal to 1, it means that an adapter is inserted at this time. Then, the current time current_time at the current moment is obtained through the system API, and then interact with the kernel to obtain the last sleep time suspend_time and wake-up time resume_time recorded in the charging driver module of the kernel (when the system sleeps, it is necessary to turn off the charging hardware power supply to enter the low-power mode. Therefore, the charging driver module of the kernel will perform the suspend operation. When the system wakes up, the charging hardware power supply needs to work normally. Therefore, the charging driver module of the kernel will perform the resume operation). If the user inserts the adapter to wake up the system, then the time difference between current_time - resume_time is within 10s, and resume_time - suspend_time needs to be more than 30min. The reason for judging these times is that only when the mobile phone sleeps long enough can the various parts of the mobile phone be thermally balanced. Thermal balance means that the temperature of the cell body is basically the same as the temperatures of each part of the mobile phone case. That is to say, the mobile phone sleeps long enough and is woken up by inserting the adapter, which is a prerequisite for calculating the EIS impedance mapping SOH. Then, the EIS thread will traverse all the temperature nodes under thermal_zone in the form of file nodes and sort them by size. If the difference between the highest temperature value and the lowest temperature value is within 1 degree range, it can indicate that the condition for enabling the EIS thread scheduling is met. At this time, the EIS thread will be loaded into the CPU scheduling.
[0198] Step 4, since the EIS thread is scheduled, to avoid uneven temperatures in various parts of the mobile phone caused by charging (charging generates heat), a step current that conforms to the mapping model will be actively created when the adapter is inserted. That is, the charging current will maintain the previous value current high_current (e.g., 2000 mA) in auto_trigger_current for 20 s, and the charging current will maintain the subsequent value current low_current (e.g., 0 mA) in auto_trigger_current for 20 s. First, eis_current = high_current will be sent to the charging driver module of the kernel and applied to the adapter. Then, the EIS thread will collect the current once every 1 s. If 20 points have been collected, at this time, it will start to judge the collected current within a window of 20 points: the maximum value < high_current + 100 mA, and the minimum value > high_current - 200 mA. If it is satisfied, it means that the high-step current of the step change has been satisfied. At this time, eis_current = low_current needs to be sent to the charging driver module of the kernel and applied to the adapter to obtain the low-step current of the step change.
[0199] Step 5, considering the influence of power consumption factors, the charging current may not be stable. Therefore, to avoid overly affecting the charging speed, the maximum time of the created high-step current high_current is equal to the time required for the number of points in one EIS calculation (e.g., for 40 points, it will last up to 40 s); the maximum time of the created low-step current low_current is equal to 3 / 4 of the time required for the number of points in one eis calculation (for example, for 40 points, it will last up to 30 s). If the conditions for DFT calculation are not met after reaching the maximum duration, then set eis_current = -1 and send it to the charging driver module of the kernel, indicating that the EIS thread of HIDL does not control the change of the charging current.
[0200] This embodiment provides a method for determining battery health. Through the above embodiments, the specific implementation of the foregoing embodiments is elaborated in detail. It can be seen that through the technical solutions of the foregoing embodiments, on the one hand, the model configuration parameters can be dynamically adjusted based on the impedance configuration file, which is convenient for debugging and subsequent project expansion, making it highly configurable; on the other hand, the temperature of the battery cell body can be obtained indirectly, which can make the battery impedance be normalized more accurately according to the temperature. In this way, the calculation accuracy of the battery health is improved, enabling the device to display the battery health more accurately, making it highly reliable, and thus improving the performance of the electronic device.
[0201] In another embodiment of the present application, based on the same inventive concept as the foregoing embodiment, Figure 9 is a schematic structural diagram of a battery health determination device provided by an embodiment of the present application. As Figure 9 shown, the battery health determination device 90 includes a determination unit 901, a trigger unit 902, and a mapping unit 903, where:
[0202] The determination unit 901 is configured to determine the model configuration parameters in the impedance profile;
[0203] The trigger unit 902 is configured to, when a charging path is established between the battery under test in the electronic device and the power supply device and the current charging state meets the first condition, trigger a step change in the charging current of the battery under test based on the first current threshold and the second current threshold in the model configuration parameters, and determine a first current signal including the step change and a corresponding first voltage signal;
[0204] The mapping unit 903 is configured to determine the initial impedance value of the battery under test according to the first current signal and the first voltage signal; and determine the target health of the battery under test based on the model parameters in the model configuration parameters and the initial impedance value.
[0205] In some embodiments, referring to Figure 9 , the battery health determination device 90 may further include a parsing unit 904, configured to obtain an impedance profile when the electronic device is started; and parse the impedance profile to determine the model configuration parameters.
[0206] In some embodiments, the impedance profile includes at least one line; the parsing unit 904 is further configured to obtain a handle corresponding to the impedance profile; based on the handle, read the line to be processed in the impedance profile; when the line to be processed contains a preset string, perform a numerical conversion on the numerical string after the preset string to determine the parsing parameter corresponding to the line to be processed; and obtain the model configuration parameters according to the parsing parameters corresponding to each of the at least one line.
[0207] In some embodiments, the current charging state meeting the first condition includes: the value of the charging attribute parameter being the first value; the current charging parameter of the electronic device meeting the preset parameter condition; the current acquisition temperature of the electronic device meeting the preset temperature condition.
[0208] In some embodiments, the determination unit 901 is further configured to determine the current wake-up mode of the electronic device, the current time, and the most recently recorded sleep time and wake-up time;
[0209] Among them, the current charging parameters of the electronic device satisfy the preset parameter conditions, including: the current wake-up mode is the power supply device access wake-up mode; the difference between the current time and the wake-up time satisfies the first time interval range; the difference between the wake-up time and the sleep time satisfies the second time interval range.
[0210] In some embodiments, the determining unit 901 is further configured to acquire multiple temperatures currently collected by the electronic device, and determine the highest temperature and the lowest temperature among the multiple temperatures;
[0211] Among them, the currently collected temperature of the electronic device satisfies the preset temperature conditions, including: the difference between the highest temperature and the lowest temperature satisfies the preset difference range.
[0212] In some embodiments, the determining unit 901 is further configured to determine a first current signal including a step change and a corresponding first voltage signal when a step change generated by the charging current of the battery under test satisfies a second condition.
[0213] In some embodiments, the determining unit 901 is further configured to set the adjustment current of the battery under test to a first current threshold and send it to the charging drive module to control the charging current of the battery under test to be adjusted to the first current threshold; after the adjusted charging current satisfies the first preset stable range and lasts for the first charging time, set the adjustment current of the battery under test to a second current threshold and send it to the charging drive module to control the charging current of the battery under test to be adjusted to the second current threshold; and after the adjusted charging current satisfies the second preset stable range and lasts for the second charging time, it is determined that the step change generated by the charging current of the battery under test satisfies the second condition.
[0214] In some embodiments, the determining unit 901 is further configured to set the adjustment current of the battery under test to a preset value and send it to the charging drive module when the charging path between the battery under test in the electronic device and the power supply device is disconnected, or when the current charging state does not satisfy the first condition, so as to determine that the adjustment current does not control the change of the charging current of the battery under test.
[0215] In some embodiments, the determining unit 901 is further configured to perform time-frequency conversion on the first current signal and the first voltage signal to determine the initial impedance value of the battery under test.
[0216] In some embodiments, the determining unit 901 is further configured to perform Fourier transform on the first current signal and the first voltage signal respectively to determine the current Fourier transform data and the voltage Fourier transform data; perform impedance calculation according to the current Fourier transform data and the voltage Fourier transform data to obtain the initial impedance value.
[0217] In some embodiments, refer to Figure 9, the battery health determination device 90 may further include a normalization unit 905 configured to perform normalization processing on the initial impedance value to determine a target impedance value;
[0218] The mapping unit 903 is further configured to determine a mapping model between the battery impedance value and the battery health according to the model parameters, and determine the target health of the battery under test according to the mapping model and the target impedance value.
[0219] In some embodiments, the normalization unit 905 is further configured to determine a parameter change amount and an influence factor of the impedance influence parameter based on the model configuration parameters; and perform normalization processing on the initial impedance value according to the parameter change amount and the influence factor to determine the target impedance value; wherein, the parameter change amount represents the difference between the measured parameter corresponding to the impedance influence parameter and the reference parameter.
[0220] In some embodiments, when the impedance influence parameter includes a temperature parameter and a state of charge parameter, the normalization unit 905 is further configured to determine a temperature change amount and a temperature influence factor of the temperature parameter and a state of charge change amount and a state of charge influence factor of the state of charge parameter; determine a temperature normalization value according to the temperature change amount and the temperature influence factor; and determine a state of charge normalization value according to the state of charge change amount and the state of charge influence factor; and determine the target impedance value according to the initial impedance value, the temperature normalization value, and the state of charge normalization value.
[0221] It can be understood that in this embodiment, the "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc. Of course, it may also be a module or non-modular. Moreover, the components in this embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software function module.
[0222] When the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0223] Therefore, this embodiment provides a computer-readable storage medium that stores a computer program. When the computer program is executed by at least one processor, it implements the steps of the method described in any one of the foregoing embodiments.
[0224] Based on the composition of the battery health determination device 90 and the computer-readable storage medium described above, Figure 10 This is a schematic diagram of the specific hardware structure of an electronic device provided by an embodiment of the present application. As Figure 10 shown, the electronic device 100 may include: a communication interface 1001, a memory 1002, and a processor 1003; each component is coupled together through a bus system 1004. It can be understood that the bus system 1004 is used to realize the connection and communication between these components. In addition to including a data bus, the bus system 1004 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 10 all kinds of buses are labeled as the bus system 1004. Among them, the communication interface 1001 is used for receiving and sending signals during the process of receiving and sending information to and from a power supply device;
[0225] The memory 1002 is used to store a computer program that can run on the processor 1003;
[0226] The processor 1003 is used to execute, when running the computer program:
[0227] Determine the model configuration parameters in the impedance profile; when a charging path is established between the battery under test in the electronic device and the power supply device and the current charging state meets the first condition, trigger a step change in the charging current of the battery under test based on the first current threshold and the second current threshold in the model configuration parameters, and determine the first current signal including the step change and the corresponding first voltage signal; determine the initial impedance value of the battery under test according to the first current signal and the first voltage signal; determine the target health of the battery under test based on the model parameters in the model configuration parameters and the initial impedance value.
[0228] It can be understood that the memory 1002 in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM). The memory 1002 of the systems and methods described herein is intended to include but not be limited to these and any other suitable types of memory.
[0229] The processor 1003 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 1003 or the instructions in the form of software. The above-mentioned processor 1003 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 1002, and the processor 1003 reads the information in the memory 1002 and combines its hardware to complete the steps of the above method.
[0230] It can be understood that these embodiments described herein can be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application, or a combination thereof.
[0231] For software implementation, the technologies described herein can be implemented by modules (such as procedures, functions, etc.) that execute the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented inside or outside the processor.
[0232] Optionally, as another embodiment, the processor 1003 is further configured to execute the steps of the method described in any one of the foregoing embodiments when running the computer program.
[0233] In still another embodiment of the present application, an embodiment of the present application provides a composition structure of another electronic device. The electronic device 100 may at least include a battery to be tested and the battery health determination device 90 described in any one of the foregoing embodiments.
[0234] In the embodiment of the present application, the model configuration parameters are highly integrated in the impedance profile, so that these parameters can be dynamically adjusted based on the impedance profile, which is convenient for subsequent debugging and project expansion, and makes it have good configurability. Moreover, by indirectly obtaining the temperature of the battery cell body through multiple temperatures in the electronic device, the influence of the temperature rise during the charging process can also be avoided, making the normalization of the battery impedance with respect to temperature more accurate. In this way, the calculation accuracy of the battery health is improved, enabling the device to more accurately display the battery health, making it highly reliable, and thus improving the performance of the electronic device.
[0235] In still another embodiment of the present application, Figure 11 FIG. is a schematic diagram of the composition structure of a charging system provided by an embodiment of the present application. As Figure 11 shown, the charging system 110 may include a power supply device 1101 and an electronic device 1102. Among them, there is a wired / wireless charging connection between the power supply device 1101 and the electronic device 1102.
[0236] In the embodiment of the present application, the electronic device 1102 may be the electronic device described in the foregoing embodiment. Here, the electronic device 1102 includes a battery, and the power supply device 1101, as an adapter, can be used to charge the battery in the electronic device 1102.
[0237] In the embodiment of the present application, for battery charging, the model configuration parameters can be dynamically adjusted based on the impedance profile, which is convenient for debugging and subsequent project expansion, making it highly configurable. On the other hand, the temperature of the battery cell body can be obtained indirectly, enabling the normalization of the battery impedance according to temperature to be more accurate. In this way, the calculation accuracy of the battery health is improved, enabling the device to more accurately display the battery health, making it highly reliable.
[0238] It should be noted that in this application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including such element.
[0239] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.
[0240] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0241] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0242] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0243] As mentioned above, the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for determining battery health, characterized in that: The method comprises: determining model configuration parameters in an impedance profile; When a charging path is established between a battery to be tested in an electronic device and a power supply device and a current charging state satisfies a first condition, a charging current of the battery to be tested is triggered to generate a step change based on a first current threshold and a second current threshold in the model configuration parameters, and a first current signal including the step change and a corresponding first voltage signal are determined; Determining an initial impedance value of the battery to be tested according to the first current signal and the first voltage signal; Based on the model parameters in the model configuration parameters and the initial impedance value, a target health of the battery to be tested is determined.
2. The method according to claim 1, characterized in that: The step of determining the model configuration parameters in the impedance configuration file comprises: When the electronic device is started, obtaining the impedance profile; The impedance configuration file is parsed to determine the model configuration parameters.
3. The method according to claim 2, characterized in that The impedance configuration file includes at least one row; parsing the impedance configuration file to determine the model configuration parameters includes: Get the handle corresponding to the impedance configuration file; Based on the handle, read the line to be processed in the impedance configuration file; When the line to be processed contains a preset character string, performing a numerical conversion on the numerical character string following the preset character string to determine the parsing parameter corresponding to the line to be processed; The model configuration parameters are obtained according to the parsing parameters corresponding to each of the at least one row.
4. The method according to claim 1, characterized in that The current charging state satisfies the first condition, including: The value of the charging attribute parameter is a first value; The current charging parameters of the electronic device meet the preset parameter conditions; The current collected temperature of the electronic device meets a preset temperature condition.
5. The method according to claim 4, characterized in that The method further comprises: Determining a current wake-up mode, a current time, and a most recently recorded sleep time and wake-up time of the electronic device; The current charging parameters of the electronic device satisfy the preset parameter conditions, including: The current wake-up mode is a power supply device access wake-up mode; The difference between the current time and the wake-up time satisfies a first time interval range; The difference between the wake-up time and the sleep time satisfies a second time interval range.
6. The method according to claim 4, characterized in that The method further comprises: Acquire multiple temperatures currently collected by the electronic device, and determine the highest temperature and the lowest temperature among the multiple temperatures; The current collected temperature of the electronic device meets the preset temperature condition, including: The difference between the highest temperature and the lowest temperature satisfies a preset difference range.
7. The method according to claim 1, characterized in that The determining of the first current signal including the step change and the corresponding first voltage signal comprises: When the step change generated by the charging current of the battery to be tested meets the second condition, a first current signal including the step change and a corresponding first voltage signal are determined.
8. The method according to claim 7, characterized in that The method further comprises: Setting the adjusted current of the battery to be tested to the first current threshold and sending it to a charging drive module to control the charging current of the battery to be tested to be adjusted to the first current threshold; After the adjusted charging current meets the first preset stable range and lasts for the first charging time, setting the adjusted current of the battery to be tested to the second current threshold and sending it to the charging driving module to control the charging current of the battery to be tested to be adjusted to the second current threshold; After the adjusted charging current meets the second preset stable range and lasts for the second charging time, it is determined that the step change generated by the charging current of the battery to be tested meets the second condition.
9. The method according to claim 1, characterized in that: The method further comprises: When the charging path between the battery to be tested and the power supply device in the electronic device is disconnected, or the current charging state does not meet the first condition, the adjustment current of the battery to be tested is set to a preset value and sent to a charging drive module to ensure that the adjustment current does not control the charging current change of the battery to be tested.
10. The method according to claim 1, characterized in that The step of determining the initial impedance value of the battery to be tested according to the first current signal and the first voltage signal includes: Performing time-frequency conversion on the first current signal and the first voltage signal to determine an initial impedance value of the battery to be tested.
11. The method according to claim 10, characterized in that The performing time-frequency conversion on the first current signal and the first voltage signal to determine the initial impedance value of the battery to be tested includes: Performing Fourier transform on the first current signal and the first voltage signal respectively to determine current Fourier transform data and voltage Fourier transform data; Impedance calculation is performed according to the current Fourier transform data and the voltage Fourier transform data to obtain the initial impedance value.
12. The method according to any one of claims 1 to 11, characterized in that The determining the target health of the battery to be tested based on the model parameters in the model configuration parameters and the initial impedance value includes: Normalizing the initial impedance value to determine a target impedance value; A mapping model between a battery impedance value and a battery health is determined according to the model parameters, and a target health of the battery to be tested is determined according to the mapping model and the target impedance value.
13. The method according to claim 12, characterized in that The normalizing the initial impedance value to determine the target impedance value includes: Based on the model configuration parameters, determining the parameter change amount and the influencing factor of the impedance influencing parameter; The initial impedance value is normalized according to the parameter change amount and the influencing factor to determine the target impedance value; wherein the parameter change amount represents the difference between the measured parameter corresponding to the impedance influencing parameter and the reference parameter.
14. The method according to claim 13, characterized in that When the impedance influencing parameter includes a temperature parameter and a state of charge parameter, the normalizing the initial impedance value to determine the target impedance value includes: Determining a temperature change amount and a temperature influence factor of the temperature parameter and a state of charge change amount and a state of charge influence factor of the state of charge parameter; Determining a temperature normalization value according to the temperature change and the temperature influence factor; and determining a state of charge normalization value according to the state of charge change and the state of charge influence factor; The target impedance value is determined according to the initial impedance value, the temperature normalized value and the state of charge normalized value.
15. A battery health determination device, characterized in that: The battery health determination device includes a determination unit, a trigger unit and a mapping unit, wherein: The determining unit is configured to determine the model configuration parameters in the impedance configuration file; The trigger unit is configured to establish a charging path between the battery to be tested in the electronic device and the power supply device and when the current charging state meets the first condition, trigger the charging current of the battery to be tested to generate a step change based on the first current threshold and the second current threshold in the model configuration parameter, and determine a first current signal including the step change and a corresponding first voltage signal; The mapping unit is configured to determine an initial impedance value of the battery to be tested according to the first current signal and the first voltage signal; and determine a target health of the battery to be tested based on the model parameters in the model configuration parameters and the initial impedance value.
16. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein: The memory is used to store a computer program that can be run on the processor; The processor is configured to execute the method according to any one of claims 1 to 14 when running the computer program.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by at least one processor, the method according to any one of claims 1 to 14 is implemented.