Battery monitoring method and device, electronic equipment, storage medium and product

By monitoring the current status information of the battery and electrochemical impedance spectrum data in electronic devices, the potential damage problem of fast charging technology to the battery is solved, and the accurate monitoring of the battery operating status and the effect of extending the battery life is achieved.

CN119496235APending Publication Date: 2025-02-21GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311037348.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-16
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

Fast charging technology may cause damage to the battery under certain conditions, such as lithium battery evolution, which affects the battery's service life.

Method used

By implementing the battery monitoring method in an electronic device, the current status information of the battery and the electrochemical impedance spectrum data are obtained, and the operating status of the battery is monitored based on these data.

Benefits of technology

It realizes comprehensive monitoring of the battery operating status, improves the accuracy of monitoring, promptly discovers and solves potential battery problems, and extends the service life of the battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496235A_ABST
    Figure CN119496235A_ABST
Patent Text Reader

Abstract

The invention relates to a battery monitoring method and device, electronic equipment, a storage medium and a product, and the method comprises the steps that the electronic equipment obtains the current state information of a battery when the electronic equipment meets a state information obtaining condition; wherein the state information acquisition condition comprises a condition that a battery of the electronic equipment is in a charging state and a condition that a screen of the electronic equipment is in a screen-off state. As the screen of the electronic equipment is in the screen-off state and the battery of the electronic equipment is in the charging state, the charging current of the electronic equipment tends to be stable at the moment, and the charging current of the battery can be controlled to have a relatively large amplitude step in the charging process; therefore, the charging current of the electronic equipment is beneficial to accurately calculating the electrochemical impedance spectroscopy data of the battery. Therefore, the operation state of the battery is comprehensively monitored from the two dimensions of the current state information and the electrochemical impedance spectrum data, and the accuracy of monitoring the operation state of the battery is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a battery monitoring method, device, electronic device, storage medium, and product. Background Art

[0002] With the rapid development of fast charging technology, the fast charging power is increasing, and the speed of fast charging batteries in electronic devices is also increasing, bringing more and more convenience to people. However, with the continuous increase in fast charging power, fast charging technology may cause damage to the battery under certain conditions. For example, the phenomenon of battery lithium deposition occurs, which affects the battery life.

[0003] Therefore, it is necessary to monitor the operating status information of the battery during the use of the electronic device to analyze the use status of the battery. Therefore, it is urgent to provide a method for monitoring the operating status information of the battery. Summary of the invention

[0004] The embodiments of the present application provide a battery monitoring method, device, electronic device, and computer-readable storage medium, which can monitor the operating status information of a battery.

[0005] In one aspect, a battery monitoring method is provided, which is applied to an electronic device, and the method comprises:

[0006] When the electronic device satisfies a condition for obtaining status information, obtaining current status information of the battery; the condition for obtaining status information includes a condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state;

[0007] Acquiring electrochemical impedance spectroscopy data of the battery according to current state information of the battery;

[0008] The operating state of the battery is monitored according to the current state information and the electrochemical impedance spectroscopy data.

[0009] In another aspect, a battery monitoring device is provided, which is applied to an electronic device, and the device comprises:

[0010] A first acquisition module, configured to acquire current status information of a battery when the electronic device satisfies a status information acquisition condition; the status information acquisition condition includes a condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state;

[0011] A second acquisition module, used to acquire electrochemical impedance spectroscopy data of the battery according to current state information of the battery;

[0012] The operating status monitoring module is used to monitor the operating status of the battery according to the current status information and the electrochemical impedance spectroscopy data.

[0013] On the other hand, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the battery monitoring method as described above.

[0014] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the battery monitoring method described above are implemented.

[0015] On the other hand, a computer program product is provided, comprising a computer program, which implements the steps of the battery monitoring method described above when executed by a processor.

[0016] The above-mentioned battery monitoring method, device, electronic device, storage medium, and product, when the electronic device meets the status information acquisition conditions, the electronic device obtains the current status information of the battery. Among them, the status information acquisition conditions include the conditions that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state. Because the screen of the electronic device is in an off state and the battery of the electronic device is in a charging state, the charging current of the electronic device tends to be stable at this time, and the charging current of the battery can be controlled to have a large amplitude step during the charging process, so that the charging current of the electronic device is conducive to accurately calculating the electrochemical impedance spectrum data of the battery.

[0017] Then, when the electronic device meets the state information acquisition conditions, the current state information of the battery can be obtained. Then, the electronic device obtains the electrochemical impedance spectrum data of the battery based on the current state information of the battery. Finally, the operating state of the battery is monitored based on the current state information and the electrochemical impedance spectrum data. Therefore, the operating state of the battery is comprehensively monitored from the two dimensions of the current state information and the electrochemical impedance spectrum data, and the accuracy of monitoring the operating state of the battery is further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A diagram showing an application environment of a battery monitoring method in an embodiment;

[0020] Figure 2 A flowchart of a battery monitoring method in one embodiment;

[0021] Figure 3 for Figure 2 A flowchart of a method for obtaining current status information of a battery when the electronic device meets the status information acquisition condition;

[0022] Figure 4 is a flow chart of a method for obtaining electrochemical impedance spectroscopy data of a battery according to current state information of the battery in one embodiment;

[0023] Figure 5 is a flow chart of a method for obtaining electrochemical impedance spectroscopy data of a battery according to current state information of the battery in another embodiment;

[0024] Figure 6 is a flow chart of a battery monitoring method in another embodiment;

[0025] Figure 7 A flowchart of a battery monitoring method in another embodiment;

[0026] Figure 8 is a schematic diagram of a battery monitoring method in an exemplary embodiment;

[0027] Fig. 9 is a structural block diagram of a battery monitoring device in one embodiment;

[0028] Fig.10 A structural block diagram of a battery monitoring device in another embodiment;

[0029] Fig.11 FIG. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0031] With the rapid development of fast charging technology, the fast charging power is increasing, and the speed of fast charging batteries in electronic devices is also increasing, bringing more and more convenience to people. However, with the continuous increase in fast charging power, fast charging technology may cause damage to the battery under certain conditions. For example, the phenomenon of battery lithium deposition occurs, which affects the battery life.

[0032] Therefore, it is necessary to monitor the operating status information of the battery during the use of the electronic device to analyze the use status of the battery. Therefore, it is urgent to provide a method for monitoring the operating status information of the battery.

[0033] Figure 1 FIG. 1 is a schematic diagram of an application environment of a battery monitoring method in an embodiment. Figure 1 As shown, the application environment includes an electronic device 120, and the electronic device 120 can obtain the current state information of the battery when the electronic device meets the state information acquisition condition; the state information acquisition condition includes the condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state; according to the current state information of the battery, the electrochemical impedance spectrum data of the battery is obtained; according to the current state information and the electrochemical impedance spectrum data, the operating state of the battery is monitored. Among them, the electronic device 120 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, smart cars, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0034] Figure 2 FIG. 1 is a flow chart of a battery monitoring method in one embodiment. The battery monitoring method in this embodiment is operated at Figure 1 The electronic device in the example is used to describe. Figure 2 As shown, the battery monitoring method includes steps 220 to 260, wherein:

[0035] Step 220, when the electronic device meets the status information acquisition condition, obtain the current status information of the battery; the status information acquisition condition includes that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state.

[0036] The battery monitoring method in the present application can be used in the process of debugging and analyzing the battery of an electronic device, and can also be used in the process of real-time daily monitoring of the battery of an electronic device after it is put on the market or shipped out of the factory, and the present application does not limit this.

[0037] In the process of monitoring the operating status of the battery, the electronic device first determines whether the electronic device meets the status information acquisition condition, wherein the status information acquisition condition can be understood as the condition for the electronic device to obtain the current status information of the battery. The current status information of the battery obtained by the electronic device under this condition is conducive to accurately calculating the electrochemical impedance spectrum data of the battery. Optionally, the status information acquisition condition includes the condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off-screen state. Since the screen of the electronic device is in an off-screen state and the battery of the electronic device is in a charging state, the charging current of the electronic device tends to be stable at this time, and the charging current of the battery can be controlled to have a large amplitude step during the charging process, so that the current status information of the battery (such as the charging current) is conducive to accurately calculating the electrochemical impedance spectrum data of the battery. Subsequently, the operating status of the battery can be monitored based on the electrochemical impedance spectrum data of the battery.

[0038] If it is determined that the charging current of the electronic device is conducive to accurately calculating the electrochemical impedance spectrum data of the battery, it is concluded that the electronic device meets the status information acquisition conditions. Then, if the electronic device meets the status information acquisition conditions, the current status information of the battery can be obtained. It can be understood that when the screen of the electronic device is in the off state and the battery of the electronic device is in the charging state, the current status information of the battery can be obtained at this time. Here, the current status information includes at least one of the battery voltage, battery current, battery temperature, remaining battery power and the temperature of the electronic device casing, and this application does not limit this.

[0039] Step 240: Obtain electrochemical impedance spectroscopy data of the battery according to the current state information of the battery.

[0040] Electrochemical impedance spectroscopy (EIS) technology is also called AC impedance spectroscopy technology, which is used to measure the AC impedance of the working electrode. The AC impedance here can also be called electrochemical impedance spectroscopy data. In the process of measuring the AC impedance of the working electrode using electrochemical impedance spectroscopy technology, an AC signal of a sinusoidal voltage (current) is applied to the electrode system. When the electrode system is disturbed by the AC signal, a corresponding current (voltage) response signal will be generated, and the impedance of the electrode can be obtained from these signals. If it is necessary to use EIS technology in an electronic device to obtain the electrochemical impedance spectroscopy data of the battery, the current in the battery in the electronic device needs to produce a step change as described above, and then the step change in current (current) will cause a step change in the battery voltage (voltage), and finally the electrochemical impedance spectroscopy data of the battery can be calculated. Here, the electrochemical impedance spectroscopy data of the battery can refer to the impedance K of the battery.

[0041] As EIS technology has been more and more widely used in electronic devices, the electrochemical impedance spectroscopy data of the battery can be obtained through EIS technology. Since the electronic device meets the conditions for obtaining state information, that is, the battery of the electronic device is in a charging state, and the screen of the electronic device is in an off state, then the charging current of the electronic device tends to be stable at this time, and the charging current of the battery can be controlled to have a large amplitude step during the charging process. It can be seen that the charging current of the electronic device at this time meets the current step requirements in the EIS technology.

[0042] Then, under the premise that the charging current of the electronic device meets the current step requirements in the EIS technology, the electrochemical impedance spectrum data of the battery can be obtained according to the current state information of the battery. That is, it can be understood as converting at least one of the battery voltage, battery current, battery temperature, battery remaining power and electronic device shell temperature of the battery from a time domain signal to a frequency domain signal, thereby obtaining the electrochemical impedance spectrum data of the battery, which is not limited in this application.

[0043] Step 260 , monitoring the operating state of the battery according to the current state information and the electrochemical impedance spectroscopy data.

[0044] After the electrochemical impedance spectroscopy data of the battery is obtained by using the EIS technology, the electronic device can monitor the operating state of the battery based on the current state information and the electrochemical impedance spectroscopy data. Optionally, the electronic device can perform an accuracy analysis on the electrochemical impedance spectroscopy data of the battery based on the current state information of the battery. Then, the electronic device can monitor the operating state of the battery based on the accurate electrochemical impedance spectroscopy data. Optionally, the electronic device can infer the equivalent circuit of the battery based on the accurate electrochemical impedance spectroscopy data, and then analyze the kinetic process and mechanism of the battery based on the equivalent circuit of the battery, which is not limited in this application. Thereby, the operating state of the battery is monitored.

[0045] Since electronic devices can accurately analyze the electrochemical impedance spectrum data of the battery based on the current status information of the battery, it can help developers / testers to more fully and intuitively analyze the process of calculating the electrochemical impedance spectrum data of the battery using EIS technology, thereby quickly and accurately locating and analyzing problems in the process. And electronic devices can monitor the operating status of the battery based on accurate electrochemical impedance spectrum data, which can improve the accuracy of monitoring the operating status of the battery.

[0046] In an embodiment of the present application, when the electronic device meets the status information acquisition condition, the electronic device acquires the current status information of the battery. Among them, the status information acquisition condition includes the condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state. Since the screen of the electronic device is in an off state and the battery of the electronic device is in a charging state, the charging current of the electronic device tends to be stable at this time, and the charging current of the battery can be controlled to have a large amplitude step during the charging process, so that the charging current of the electronic device is conducive to accurately calculating the electrochemical impedance spectrum data of the battery.

[0047] Then, when the electronic device meets the state information acquisition conditions, the current state information of the battery can be obtained. Then, the electronic device obtains the electrochemical impedance spectrum data of the battery based on the current state information of the battery. Finally, the operating state of the battery is monitored based on the current state information and the electrochemical impedance spectrum data. Therefore, the operating state of the battery is comprehensively monitored from the two dimensions of the current state information and the electrochemical impedance spectrum data, and the accuracy of monitoring the operating state of the battery is further improved.

[0048] In the previous embodiment, the process of comprehensively monitoring the operating status of the battery from two dimensions, current status information and electrochemical impedance spectroscopy data, is described. Figure 3 As shown, step 220 is further described, when the electronic device meets the status information acquisition condition, obtaining the current status information of the battery includes:

[0049] Step 222: When the electronic device meets the condition for obtaining the status information, a preset thread is awakened; the preset thread is used to obtain the current status information of the battery by means of electrochemical impedance spectroscopy.

[0050] Since the current state information of the battery obtained by the electronic device under the state information acquisition condition is conducive to accurately calculating the electrochemical impedance spectrum data of the battery, the preset thread can be awakened when the electronic device meets the state information acquisition condition. Among them, the preset thread is a thread created in the interface description language layer, and the preset thread is used to obtain the current state information of the battery by electrochemical impedance spectroscopy. In this way, after the current state information of the battery is obtained by the preset thread using the electrochemical impedance spectroscopy method, the electrochemical impedance spectroscopy data can be accurately calculated based on the current state information of the battery, and then the operating state of the battery can be monitored.

[0051] Here, the preset thread can also be referred to as the EIS thread. The EIS thread is a thread that uses the EIS technology to calculate the electrochemical impedance spectroscopy data of the battery, and can also be referred to as the EIS calculation thread. When the electronic device is started, the hidl service is loaded and run, and the EIS thread is created in the hidl service and the EIS thread is initialized. Then, the initialized EIS thread is suspended and waits to be awakened. When the electronic device meets the status information acquisition conditions, that is, when the screen of the electronic device is in the off state and the battery of the electronic device is in the charging state, the EIS thread is awakened.

[0052] Step 224, obtaining the current state information of the battery by means of electrochemical impedance spectroscopy through a preset thread; the current state information includes at least one of the battery voltage, battery current, battery temperature, remaining battery power and temperature of the electronic device housing.

[0053] The current state information of the battery is obtained by using the electrochemical impedance spectroscopy method through the EIS thread. Optionally, at least one of the battery voltage, battery current, battery temperature, battery remaining capacity and electronic device housing temperature of the battery is obtained by using the electrochemical impedance spectroscopy method through the EIS thread.

[0054] In an embodiment of the present application, when the electronic device meets the conditions for obtaining status information, the electronic device wakes up the preset thread. Since the screen of the electronic device is in the off state and the battery of the electronic device is in the charging state, the charging current of the electronic device tends to be stable at this time, and the charging current of the battery can be controlled to have a large amplitude step during the charging process, so that the charging current of the electronic device is conducive to accurately calculating the electrochemical impedance spectrum data of the battery. Therefore, at this time, the electronic device wakes up the preset thread, and obtains the current state information of the battery by the preset thread using the electrochemical impedance spectrum method. In this way, the current state information of the battery obtained by waking up the preset thread can be used to accurately calculate the electrochemical impedance spectrum data of the battery subsequently. It avoids the continuous operation of the preset thread, resulting in a waste of CPU resources in the electronic device, and also avoids obtaining a large amount of current state information that cannot be used to accurately calculate the electrochemical impedance spectrum data of the battery subsequently.

[0055] In the previous embodiment, it is described that when the electronic device meets the condition for obtaining the status information, the electronic device wakes up the preset thread, and then obtains the current status information of the battery by using the electrochemical impedance spectroscopy method through the preset thread. Figure 4 As shown, step 240 is further described, obtaining electrochemical impedance spectroscopy data of the battery according to the current state information of the battery, including:

[0056] Step 242, if the electronic device meets the status information acquisition condition, obtain the current status information of the battery;

[0057] Step 244, determining whether the current state information of the battery satisfies the preset Fourier transform condition; if so, proceeding to step 246; if not, proceeding to step 242, until the current state information of the battery satisfies the preset Fourier transform condition;

[0058] Step 246, according to the current state information of the battery, using Fourier transform method to obtain electrochemical impedance spectrum data of the battery.

[0059] For example, since the screen of the electronic device is off and the battery of the electronic device is in a charging state, the charging current of the electronic device tends to be stable, and the charging current of the battery can be controlled to have a large amplitude step during the charging process, so that the charging current of the electronic device is conducive to accurately calculating the electrochemical impedance spectrum data of the battery. Therefore, at this time, the electronic device wakes up the preset thread and obtains the current state information of the battery by electrochemical impedance spectroscopy through the preset thread.

[0060] After obtaining the current state information of the battery, it is necessary to further determine whether the current state information of the battery meets the preset Fourier transform conditions. If so, the electrochemical impedance spectrum data of the battery is obtained by Fourier transform according to the current state information of the battery. Here, the preset Fourier transform conditions refer to the conditions for using Fourier transform. By determining whether the current state information of the battery meets the preset Fourier transform conditions, the electrochemical impedance spectrum data of the battery can be obtained more accurately by using Fourier transform under the preset Fourier transform conditions.

[0061] If this is a discrete Fourier transform, then optionally, the use condition of the discrete Fourier transform can be that the input data is discrete data and is periodic data, and this application does not limit this. If this is a discrete Fourier transform, then further determine whether the current state information of the battery meets the preset Fourier transform conditions, that is, to further determine whether the current state information of the battery is discrete data and is periodic data. If so, the electrochemical impedance spectrum data of the battery is obtained by discrete Fourier transform according to the current state information of the battery. If not, proceed to step 242, and obtain the current state information of the battery when the electronic device meets the state information acquisition condition; step 244, determine whether the current state information of the battery meets the preset Fourier transform condition; until the current state information of the battery meets the preset Fourier transform condition.

[0062] Continue to execute the step of obtaining the electrochemical impedance spectrum data of the battery by using a discrete Fourier transform method according to the current state information of the battery.

[0063] In the embodiment of the present application, when the electronic device obtains the electrochemical impedance spectrum data of the battery according to the current state information of the battery, first, it is determined whether the current state information of the battery satisfies the preset Fourier transform condition. If the current state information of the battery satisfies the preset Fourier transform condition, the electrochemical impedance spectrum data of the battery is obtained by Fourier transform according to the current state information of the battery. If the current state information of the battery does not meet the preset Fourier transform condition, the step of obtaining the current state information of the battery and determining whether the current state information of the battery meets the preset Fourier transform condition is entered until the current state information of the battery meets the preset Fourier transform condition.

[0064] By determining whether the current state information of the battery meets the preset Fourier transform condition, the preset Fourier transform method can be used to more accurately obtain the electrochemical impedance spectrum data of the battery under the preset Fourier transform condition. Furthermore, based on the more accurate electrochemical impedance spectrum data, the operating state of the battery is monitored, which can further improve the accuracy of monitoring the operating state of the battery.

[0065] In the previous embodiment, it is described that after the electronic device satisfies the state information acquisition condition, the current state information of the battery is acquired, and then whether the current state information of the battery satisfies the preset Fourier transform condition is further determined; if the current state information of the battery satisfies the preset Fourier transform condition, the process of acquiring the electrochemical impedance spectrum data of the battery by Fourier transform is performed according to the current state information of the battery. In this embodiment, it is further described that the electrochemical impedance spectrum data of the battery is acquired by using the preset Fourier transform method according to the current state information of the battery, including:

[0066] A preset Fourier transform method is used to extract frequency spectrum features from the battery voltage and battery current of the battery to obtain impedance distribution data of the battery;

[0067] Based on the impedance distribution data of the battery, the electrochemical impedance spectroscopy data of the battery is obtained.

[0068] Among them, the Fourier transform method is used to convert the time domain signal into a frequency domain signal. In the process of obtaining the electrochemical impedance spectrum data of the battery using a preset Fourier transform method according to the current state information of the battery, the electronic device can optionally firstly extract the frequency spectrum characteristics from the battery voltage and battery current of the battery using a preset Fourier transform method to obtain the impedance distribution data of the battery; secondly, based on the impedance distribution data of the battery, obtain the electrochemical impedance spectrum data of the battery.

[0069] Because in the aforementioned steps the electronic device determines whether the current state information of the battery satisfies the preset Fourier transform conditions, when the current state information of the battery satisfies the preset Fourier transform conditions, the preset Fourier transform method can be used to perform time-frequency conversion on the current state information of the battery to obtain the electrochemical impedance spectrum data of the battery.

[0070] Exemplarily, the current state information of the battery may be converted into time-frequency using the following formula (1):

[0071]

[0072] Among them, the following formula in Formula 1 is a deformation of the above formula, that is, the two formulas in Formula 1 are equivalent formulas. x(n) represents the sampled data, that is, the current state information of the battery obtained by sampling, which is time domain data; X(k) represents the data output after x(n) is processed by a preset Fourier transform, which is frequency domain data.

[0073] Here, x(n) may be at least one of a battery voltage, a battery current, a battery temperature, a remaining battery capacity, and a housing temperature of the electronic device.

[0074] In the embodiment of the present application, when the electronic device uses a preset Fourier transform method to obtain the electrochemical impedance spectrum data of the battery according to the current state information of the battery, first, the preset Fourier transform method is used to extract the spectrum characteristics from the battery voltage and battery current of the battery to obtain the impedance distribution data of the battery. Secondly, based on the impedance distribution data of the battery, the electrochemical impedance spectrum data of the battery is obtained.

[0075] When the current state information of the battery meets the preset Fourier transform condition, the current state information of the battery is converted into time-frequency using the preset Fourier transform method, so that the electrochemical impedance spectrum data of the battery can be obtained more accurately. Furthermore, based on the more accurate electrochemical impedance spectrum data, the operating state of the battery is monitored, which can further improve the accuracy of monitoring the operating state of the battery.

[0076] In the previous embodiment, the process of performing time-frequency conversion on the current state information of the battery using a preset Fourier transform method is described when the current state information of the battery satisfies the preset Fourier transform condition. Figure 5 As shown, step 260 is further described, monitoring the operating state of the battery according to the current state information and the electrochemical impedance spectroscopy data, including:

[0077] Step 262, using a preset data structure through a preset thread, stores the current state information and electrochemical impedance spectrum data into a preset record file of the interface description language layer; the preset thread is a thread created in the interface description language layer.

[0078] Among them, the preset thread is a thread created in the interface description language layer, and the preset thread is used to obtain the current state information of the battery by electrochemical impedance spectroscopy. Here, the preset thread can also be referred to as an EIS thread. In the above embodiment, it is described that when the electronic device meets the state information acquisition conditions, the EIS thread is awakened; and the process of obtaining the current state information of the battery by electrochemical impedance spectroscopy is used through the EIS thread. Therefore, the electronic device can use the preset data structure through the EIS thread to store the current state information of the battery and the electrochemical impedance spectroscopy data in the preset record file of the interface description language layer.

[0079] The preset data structure is a data structure that stores the current state information and electrochemical impedance spectrum data of the battery in a preset record file of the interface description language layer. Optionally, the current state information and electrochemical impedance spectrum data of the battery obtained at each different time can be stored in the preset data structure preset record file in different rows using the preset data structure.

[0080] Step 264 , through the communication node between the interface description language layer and the kernel layer, the current state information and electrochemical impedance spectrum data stored in the preset record file are sent to the kernel layer using structure variables.

[0081] After the current state information and electrochemical impedance spectrum data are stored in the preset record file of the interface description language layer, the current state information and electrochemical impedance spectrum data stored in the preset record file can be sent to the kernel layer. Optionally, the current state information and electrochemical impedance spectrum data stored in the preset record file can be sent to the kernel layer through a communication node between the interface description language layer and the kernel layer.

[0082] Among them, in the Android system, there is a communication node between the interface description language layer and the kernel layer, and the communication node is used to exchange information between the description language layer and the kernel layer. Therefore, the electronic device can use the structure variable to send the current state information and electrochemical impedance spectrum data stored in the preset record file to the kernel layer through the communication node between the interface description language layer and the kernel layer.

[0083] Among them, a structure variable is a data structure, a collection of values, and these values ​​are called member variables.

[0084] Step 266, parse the structure variables through the kernel layer, and upload the current state information and electrochemical impedance spectrum data obtained by the analysis to the server as embedded point data; the embedded point data is used to instruct the server to monitor the operating status of the battery.

[0085] After receiving the structure variable, the kernel layer parses the structure variable to obtain the current state information and electrochemical impedance spectrum data of the battery. The kernel layer then generates the buried point data based on the current state information and electrochemical impedance spectrum data of the battery, and uploads the buried point data to the server. After the server receives the buried point data, it can monitor the operating status of the battery based on the buried point data.

[0086] In the embodiment of the present application, first, the electronic device uses a preset data structure through a preset thread to store the current state information and electrochemical impedance spectrum data in a preset record file of the interface description language layer. Secondly, through the communication node between the interface description language layer and the kernel layer, the current state information and electrochemical impedance spectrum data stored in the preset record file are sent to the kernel layer using a structure variable. Furthermore, the current state information and electrochemical impedance spectrum data of the battery are stored in the form of a record file, which is convenient for developers / testers to analyze and compare data.

[0087] Finally, the structure variables are parsed through the kernel layer, and the current status information and electrochemical impedance spectrum data obtained by parsing are uploaded to the server as buried data; the buried data is used to instruct the server to monitor the operating status of the battery. The electronic device uploads the current status information and electrochemical impedance spectrum data obtained by parsing to the server as buried data, so that the server can monitor the operating status of the battery in real time based on the buried data, so as to detect and solve problems in time.

[0088] In the previous embodiment, it is described that the electronic device can store the current state information and electrochemical impedance spectrum data in the preset record file of the interface description language layer. And the process of uploading the current state information and electrochemical impedance spectrum data to the server as buried point data. In this embodiment, step 262 is further described, and the current state information and electrochemical impedance spectrum data are stored in the preset record file of the interface description language layer by using a preset thread and a preset data structure, including:

[0089] Fill the current state information and electrochemical impedance spectrum data into the preset array through the preset thread;

[0090] Convert each element in the preset array into a string and fill it into the preset string buffer;

[0091] Each character string in the preset character string buffer is stored in a preset record file of the interface description language layer according to different lines.

[0092] like Figure 6 As shown, a battery monitoring method is provided, comprising:

[0093] Step 602, when the electronic device meets the state information acquisition condition, wake up the EIS thread;

[0094] Step 604, obtaining the current state information of the battery by using electrochemical impedance spectroscopy through the EIS thread;

[0095] Step 606, determining whether the current state information of the battery meets the preset Fourier transform condition; if so, proceeding to step 608; if not, proceeding to step 610;

[0096] Step 608, according to the current state information of the battery, using a preset Fourier transform method to obtain the electrochemical impedance spectrum data of the battery; proceed to step 612;

[0097] Step 610, delay for a preset time period (e.g., 1 second), and loop to step 602;

[0098] Step 612, determining whether the electronic device satisfies the condition that the battery is in a charging state (online=1) and the current state information of the battery and the electrochemical impedance spectrum data are not recorded in the preset recording file of the interface description language layer (recording=false); if so, proceeding to step 614; if not, proceeding to step 620;

[0099] Step 614, obtain the current system time (eg, year, month, day, hour, minute, second) through the API interface;

[0100] Step 616, create a record file based on the system time time, and assign a file operation pointer record_fp; for example, obtain the current UTC (Coordinated Universal Time) system time time through the Linux API function, such as 20230620080810 (08:08:10 on June 20, 2023), and then use this time as the file name of the record file to create a time_eis.csv file, such as creating a 20230620080810_eis.csv file, and set the file operation pointer record_fp to point to the file.

[0101] Step 618, set the recording flag equal to true, and write the specific string as a line into the record file; proceed to step 620;

[0102] Step 620, obtaining the current state information and electrochemical impedance spectrum data of the battery, and filling them into a preset array Array (the array being recorded);

[0103] Step 622, looping to convert each element in the preset array into a string, and filling it into the preset string buffer buffer; for example, the special string filled is "time, center_f_volt, center_f_curr, center_a_volt, center_a_curr, batt_r, batt_soc, batt_temp, shell_temp\n";

[0104] Step 624, storing each character string in the preset character string buffer buffer in different rows into a preset record file of the interface description language layer; for example, the preset record file may be as shown in Table 1 below:

[0105] Table 1

[0106]

[0107] In Table 1, "time" indicates system time; "center_f_volt" indicates the voltage at the center point of the voltage in the first half of the step; "center_f_curr" indicates the current at the center point of the current in the first half of the step; "center_a_volt" indicates the voltage at the center point of the voltage in the second half of the step; "center_a_curr" indicates the current at the center point of the current in the second half of the step; "batt_r" indicates battery current; "batt_soc" indicates the battery charge SOC, in other words, the remaining battery charge; "batt_temp" indicates the battery temperature; and "shell_temp" indicates the shell temperature of the electronic device. In this case, SOC (State of charger) indicates the state of charge of the battery, which can also be understood as the battery state of charge or the remaining battery charge.

[0108] Step 626, assemble each character string in the preset character string buffer into the embedded point data by combining it with the embedded point data identification flag, and upload the embedded point data to the server;

[0109] Step 628, delay for a preset time period (eg, 1 second), and loop back to step 602.

[0110] In an embodiment of the present application, the current state information and electrochemical impedance spectrum data are filled into a preset array through a preset thread. Each element in the preset array is then converted into a string and filled into a preset string buffer. Each string in the preset string buffer is stored in a preset record file of the interface description language layer according to different rows. The current state information and electrochemical impedance spectrum data of the battery are stored in the form of a record file, which is convenient for developers / testers to analyze and compare data.

[0111] In the previous embodiment, the detailed process of storing the current state information and electrochemical impedance spectrum data of the battery in the form of a record file is described. In this embodiment, step 266 is further described, parsing the structure variables through the kernel layer, and uploading the current state information and electrochemical impedance spectrum data obtained by the parsing to the server as buried point data, including:

[0112] Parse the structure variables through the parsing component in the kernel layer to obtain the command prompt, current status information and electrochemical impedance spectroscopy data;

[0113] Determine whether the current state information and electrochemical impedance spectroscopy data are data to be buried based on the command prompt;

[0114] If the current state information and electrochemical impedance spectroscopy data are the data to be buried, the buried data is generated based on the current state information and electrochemical impedance spectroscopy data by the buried data component in the kernel layer, and the buried data is uploaded to the server.

[0115] Among them, the kernel layer of the Android system includes a parsing component and a tracking component. The parsing component is used to parse the structure variables sent to the communication nodes between the interface description language layer and the kernel layer through the communication node between the interface description language layer and the kernel layer. The tracking component is used to generate tracking data based on the current state information of the battery and the electrochemical impedance spectrum data.

[0116] After the kernel layer receives the structure variable sent by the communication node between the interface description language layer and the kernel layer, the structure variable is parsed by the parsing component in the kernel layer to obtain the command prompt (command, CMD), the current state information of the battery and the electrochemical impedance spectrum data. Then, the kernel layer determines whether the current state information and the electrochemical impedance spectrum data are the data to be buried based on the command prompt (CMD). If the current state information and the electrochemical impedance spectrum data are the data to be buried, the buried point data is generated based on the current state information and the electrochemical impedance spectrum data by the buried point component in the kernel layer, and the buried point data is uploaded to the server.

[0117] Optionally, if the current state information and electrochemical impedance spectroscopy data are to be buried data, set the buried data identifier flag_reason = eis_info. And parse the current state information and electrochemical impedance spectroscopy data obtained from a string, and pack them into one buried data with the buried data identifier flag_reason = eis_info, and upload multiple buried data to the server in sequence. For example, the format of one buried data is as follows:

[0118] charge_monitor$$type_reason@@general_record$$flag_reason@@eis_info$$ti me@@[2023-06-20-03:44:17]$$status_info@@center_f_volt=4193, center_f_curr=4886, center_a_volt=4147, center_a_curr=3893, batt_r=0.050214, batt_soc=38, batt_temp=420, shell_temp=379

[0119] In an embodiment of the present application, the EIS thread in the electronic device parses the structure variables through the parsing component in the kernel layer to obtain the command prompt, current state information and electrochemical impedance spectrum data. Based on the command prompt, it is determined whether the current state information and electrochemical impedance spectrum data are the data to be buried. If the current state information and electrochemical impedance spectrum data are the data to be buried, the buried point data is generated based on the current state information and electrochemical impedance spectrum data by the buried point component in the kernel layer, and the buried point data is uploaded to the server.

[0120] The electronic device will upload the current status information and electrochemical impedance spectrum data obtained by analysis to the server as buried data, so that the server can monitor the operating status of the battery in real time based on the buried data, so as to detect and solve problems in time.

[0121] In the previous embodiment, it is described how to parse the structure variables through the kernel layer and upload the current state information and electrochemical impedance spectrum data obtained by the parsing to the server as the buried point data. Figure 7 As shown, a battery monitoring method is further described, further comprising:

[0122] Step 280: If it is monitored that the operating state of the battery fails, a fault analysis is performed on the battery according to the current state information and the electrochemical impedance spectroscopy data to obtain a fault analysis result.

[0123] The electronic device can analyze the accuracy of the electrochemical impedance spectroscopy data of the battery according to the current state information of the battery. Then, the electronic device can monitor the operating state of the battery based on the accurate electrochemical impedance spectroscopy data. Optionally, the electronic device can infer the equivalent circuit of the battery based on the accurate electrochemical impedance spectroscopy data, and then analyze the kinetic process and mechanism of the battery based on the equivalent circuit of the battery, which is not limited in this application. Thus, the operating state of the battery is monitored.

[0124] If a fault is detected in the operating state of the battery, the battery can be fault analyzed from two aspects: the current state information and the electrochemical impedance spectrum data to obtain a fault analysis result. Optionally, it is possible to determine whether the change pattern of the electrochemical impedance spectrum data of the battery is close to or consistent with the change pattern of the electrochemical impedance spectrum data of the battery in the laboratory. If it is close or consistent, the fault analysis result of the battery is normal; otherwise, the fault analysis result of the battery is abnormal. Alternatively, it is also possible to determine whether the change pattern of the electrochemical impedance spectrum data of the battery is close to or consistent with the historical change pattern of the electrochemical impedance spectrum data of the battery. Similarly, if it is close or consistent, the fault analysis result of the battery is normal; otherwise, the fault analysis result of the battery is abnormal.

[0125] When the fault analysis result of the battery is abnormal, the fault analysis of the battery is performed in combination with the current state information of the battery to obtain the fault analysis result. Since the current state information includes at least one of the battery voltage, battery current, battery temperature, remaining battery power and the temperature of the electronic device casing, it is possible to analyze in which dimension the battery has failed. It is also possible to reversely infer the problems existing in the calculation mechanism of the EIS technology based on the current state information of the battery and the electrochemical impedance spectroscopy data.

[0126] In the embodiment of the present application, when the electronic device satisfies the condition that the battery is in a charging state and the screen of the electronic device is in an off state, the electronic device obtains the current state information of the battery. Since the screen of the electronic device is in an off state and the battery of the electronic device is in a charging state, the charging current of the electronic device tends to be stable at this time, and the charging current of the battery can be controlled to have a large amplitude step during the charging process, so that the charging current of the electronic device is conducive to accurately calculating the electrochemical impedance spectrum data of the battery.

[0127] Then, when the electronic device meets the state information acquisition conditions, the current state information of the battery can be obtained. Then, the electronic device obtains the electrochemical impedance spectrum data of the battery based on the current state information of the battery. Finally, the operating state of the battery is monitored based on the current state information and the electrochemical impedance spectrum data. Therefore, the operating state of the battery is comprehensively monitored from the two dimensions of the current state information and the electrochemical impedance spectrum data, and the accuracy of monitoring the operating state of the battery is further improved.

[0128] And when the fault analysis result of the battery is abnormal, the fault analysis of the battery is performed in combination with the current state information of the battery to obtain the fault analysis result. Therefore, it is possible to analyze in which dimension the battery has a fault from each dimension in the current state information of the battery, and it is also possible to reversely infer the problems existing in the calculation mechanism of the EIS technology based on the current state information of the battery and the electrochemical impedance spectrum data. Furthermore, the fault of the battery can be accurately analyzed, as well as the calculation mechanism of the EIS technology.

[0129] In an exemplary embodiment, Figure 8 As shown, a battery monitoring method is provided, which is applied to an electronic device, wherein the electronic device includes a charging component, a display component (which may be an LCD component or an LED component) and an EIS component, and the method includes:

[0130] Step 802, sending the battery charging status information through the charging component and the screen display status information through the display component to the EIS component;

[0131] Optionally, when the battery charging status information and the screen display status information change, they can be sent to the EIS component in the form of notification information; the battery charging status information can be determined by determining whether the battery of the electronic device is electrically connected to the charger; the battery charging status information can be represented by the character online, if the battery of the electronic device is electrically connected to the charger, then online = 1; if the battery of the electronic device is not electrically connected to the charger, then online = 0. The screen display status information can be represented by the character screen, if the screen of the electronic device is in the off state, then screen = 0; if the screen of the electronic device is in the on state, then screen = 1;

[0132] Step 804, determine whether the charging status information is the charging state (online=1) and whether the display status information is the screen-off state (screen=0) through the EIS component; if both are yes, proceed to step 806; if any one of the conditions is no, proceed to step 806;

[0133] Step 806, the EIS thread is suspended and waits to be awakened;

[0134] Step 808, when the electronic device meets the state information acquisition condition, wake up the EIS thread;

[0135] Step 810, obtaining the current state information of the battery by using electrochemical impedance spectroscopy through the EIS thread;

[0136] Step 812, determining whether the current state information of the battery meets the preset Fourier transform condition; if so, proceeding to step 814; if not, proceeding to step 816;

[0137] Step 814, according to the current state information of the battery, using a preset Fourier transform method to obtain electrochemical impedance spectrum data of the battery;

[0138] Step 816, delay for a preset time period (e.g., 1 second), and loop back to step 802;

[0139] Step 818, determining whether the electronic device satisfies the condition that the battery is in a charging state (online=1) and the current state information of the battery and the electrochemical impedance spectrum data (recording=false) are not recorded in the preset recording file of the interface description language layer; if so, proceeding to step 820; if not, proceeding to step 826;

[0140] During a charging process, the screen of an electronic device may turn on or off multiple times, but a corresponding record file will be generated for each charging process. Therefore, when the charger connected to the battery of the electronic device is unplugged, that is, when online = 0, it will be determined whether the file pointer of debug_fp is empty. If it is not empty, it is necessary to close the file pointed to by the file pointer record_fp (that is, release the permission to operate the file), and then set recording = false, indicating that no recording will be performed on the file at this time.

[0141] Step 820, obtain the current system time (eg, year, month, day, hour, minute, second) through the API interface;

[0142] Step 822, create a record file based on the system time time, and assign a file operation pointer record_fp;

[0143] Step 824, set the recording flag equal to true, and write the specific string as a line into the record file; go to step 826; set the recording flag equal to true, indicating that the recording continues on the file at this time;

[0144] Step 826, obtaining the current state information and electrochemical impedance spectrum data of the battery, and filling them into a preset array Array (the array being recorded);

[0145] Step 828, looping to convert each element in the preset array into a string and filling it into the preset string buffer;

[0146] Step 830, storing each character string in the preset character string buffer buffer in different rows into a preset record file of the interface description language layer;

[0147] Step 832, assemble each character string in the preset character string buffer into the embedded point data by combining it with the embedded point data identification flag, and upload the embedded point data to the server;

[0148] Step 834, delay for a preset time period (eg, 1 second), and loop to step 808.

[0149] In an embodiment of the present application, when the electronic device meets the status information acquisition condition, the electronic device acquires the current status information of the battery. Among them, the status information acquisition condition includes the condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state. Since the screen of the electronic device is in an off state and the battery of the electronic device is in a charging state, the charging current of the electronic device tends to be stable at this time, and the charging current of the battery can be controlled to have a large amplitude step during the charging process, so that the charging current of the electronic device is conducive to accurately calculating the electrochemical impedance spectrum data of the battery.

[0150] Then, when the electronic device meets the state information acquisition conditions, the current state information of the battery can be obtained. Then, the electronic device obtains the electrochemical impedance spectrum data of the battery based on the current state information of the battery. Finally, the operating state of the battery is monitored based on the current state information and the electrochemical impedance spectrum data. Therefore, the operating state of the battery is comprehensively monitored from the two dimensions of the current state information and the electrochemical impedance spectrum data, and the accuracy of monitoring the operating state of the battery is further improved.

[0151] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0152] Based on the same inventive concept, Fig. 9 As shown, in this embodiment, a battery monitoring device 900 is further described, which is applied to an electronic device, and the device includes:

[0153] The first acquisition module 920 is used to acquire the current status information of the battery when the electronic device meets the status information acquisition condition; the status information acquisition condition includes the condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state;

[0154] A second acquisition module 940 is used to acquire electrochemical impedance spectroscopy data of the battery according to the current state information of the battery;

[0155] The operating status monitoring module 960 is used to monitor the operating status of the battery according to the current status information and electrochemical impedance spectroscopy data.

[0156] In one embodiment, the first acquisition module 920 is also used to wake up a preset thread when the electronic device meets the status information acquisition conditions; the preset thread is used to obtain the current status information of the battery by electrochemical impedance spectroscopy; the current status information of the battery is obtained by the preset thread using electrochemical impedance spectroscopy; the current status information includes at least one of the battery voltage, battery current, battery temperature, remaining battery power and the temperature of the electronic device casing.

[0157] In one embodiment, the second acquisition module 940 is also used to determine whether the current state information of the battery meets the preset Fourier transform condition; if the current state information of the battery meets the preset Fourier transform condition, the electrochemical impedance spectrum data of the battery is obtained by using a preset Fourier transform method according to the current state information of the battery.

[0158] In one embodiment, the second acquisition module 940 is also used to enter the step of acquiring the current status information of the battery and determining whether the current status information of the battery meets the preset Fourier transform condition if the current status information of the battery does not meet the preset Fourier transform condition, until the current status information of the battery meets the preset Fourier transform condition.

[0159] In one embodiment, the second acquisition module 940 is further used to extract frequency spectrum features from the battery voltage and battery current of the battery by using a preset Fourier transform method to obtain the impedance distribution data of the battery; and obtain the electrochemical impedance spectrum data of the battery based on the impedance distribution data of the battery.

[0160] In one embodiment, the operation status monitoring module 960 includes:

[0161] A preset record file storage unit is used to store current state information and electrochemical impedance spectrum data in a preset record file of the interface description language layer by using a preset thread and a preset data structure; the preset thread is a thread created in the interface description language layer;

[0162] A data sending unit, used to send the current state information and electrochemical impedance spectrum data stored in the preset record file to the kernel layer by using a structure variable through the communication node between the interface description language layer and the kernel layer;

[0163] The buried point data uploading unit is used to parse the structure variables through the kernel layer, and upload the current state information and electrochemical impedance spectrum data obtained by the analysis to the server as buried point data; the buried point data is used to instruct the server to monitor the operating status of the battery.

[0164] In one embodiment, the preset record file storage unit is also used to fill the current state information and electrochemical impedance spectrum data into the preset array through the preset thread; convert each element in the preset array into a string and fill it into the preset string buffer; store each string in the preset string buffer in different rows in the preset record file of the interface description language layer.

[0165] In one embodiment, the buried point data uploading unit is also used to parse the structure variables through the parsing component in the kernel layer to obtain the command prompt, current state information and electrochemical impedance spectrum data; determine whether the current state information and the electrochemical impedance spectrum data are the buried point data to be buried based on the command prompt; if the current state information and the electrochemical impedance spectrum data are the buried point data to be buried, the buried point data is generated based on the current state information and the electrochemical impedance spectrum data through the buried point component in the kernel layer, and the buried point data is uploaded to the server.

[0166] In one embodiment, Fig.10 As shown, a battery monitoring device 900 is provided, which is applied to an electronic device, and the device also includes:

[0167] The fault analysis module 980 is used to perform a fault analysis on the battery according to the current state information and electrochemical impedance spectrum data to obtain a fault analysis result if a fault is detected in the operating state of the battery.

[0168] The division of the modules in the above battery monitoring device is only for illustration. In other embodiments, the battery monitoring device may be divided into different modules as needed to complete all or part of the functions of the above battery monitoring device.

[0169] For the specific definition of the battery monitoring device, please refer to the definition of the battery monitoring method above, which will not be repeated here. Each module in the above-mentioned battery monitoring device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0170] Fig.11Schematic diagram of the internal structure of an electronic device in an embodiment. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc. The electronic device includes a processor and a memory connected via a system bus. Among them, the processor may include one or more processing units. The processor may be a CPU (Central Processing Unit) or a DSP (Digital Signal Processing), etc. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a battery monitoring method provided in each of the following embodiments. The internal memory provides a cache operating environment for the operating system computer program in the non-volatile storage medium.

[0171] The implementation of each module in the battery monitoring device provided in the embodiment of the present application may be in the form of a computer program. The computer program can be run on an electronic device. The program module constituted by the computer program can be stored in the memory of the electronic device. When the computer program is executed by the processor, the steps of the method described in the embodiment of the present application are implemented.

[0172] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the battery monitoring method.

[0173] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a battery monitoring method.

[0174] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0175] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include ROM (Read-Only Memory), PROM (Programmable Read-only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-only Memory) or flash memory. Volatile memory may include RAM (Random Access Memory), which is used as an external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous Dynamic Random Access Memory), Double Data Rate DDRSDRAM (Double Data Rate Synchronous Dynamic Random Access memory), ESDRAM (Enhanced Synchronous Dynamic Random Access memory), SLDRAM (Sync Link Dynamic Random Access Memory), RDRAM (Rambus Dynamic Random Access Memory), and DRDRAM (Direct Rambus Dynamic Random Access Memory).

[0176] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A battery monitoring method, characterized in that: Applied to electronic equipment, the method comprises: When the electronic device satisfies a condition for obtaining status information, obtaining current status information of the battery; the condition for obtaining status information includes a condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state; Acquiring electrochemical impedance spectroscopy data of the battery according to current state information of the battery; The operating state of the battery is monitored according to the current state information and the electrochemical impedance spectroscopy data.

2. The method according to claim 1, characterized in that The step of obtaining the current status information of the battery when the electronic device meets the status information obtaining condition includes: When the electronic device meets the state information acquisition condition, a preset thread is awakened; the preset thread is used to obtain the current state information of the battery by electrochemical impedance spectroscopy; The current status information of the battery is obtained by the preset thread using the electrochemical impedance spectroscopy method; the current status information includes at least one of the battery voltage, battery current, battery temperature, remaining battery power and housing temperature of the electronic device.

3. The method according to claim 1 or 2, characterized in that: The step of obtaining electrochemical impedance spectroscopy data of the battery according to the current state information of the battery includes: Determining whether the current state information of the battery meets a preset Fourier transform condition; If the current state information of the battery meets the preset Fourier transform condition, the electrochemical impedance spectrum data of the battery is acquired by adopting the preset Fourier transform method according to the current state information of the battery.

4. The method according to claim 3, characterized in that The method further comprises: If the current state information of the battery does not meet the preset Fourier transform condition, the step of obtaining the current state information of the battery and determining whether the current state information of the battery meets the preset Fourier transform condition is entered until the current state information of the battery meets the preset Fourier transform condition.

5. The method according to claim 3, characterized in that: The method of acquiring electrochemical impedance spectrum data of the battery by using the preset Fourier transform method according to the current state information of the battery includes: Extracting frequency spectrum features from the battery voltage and battery current of the battery using the preset Fourier transform method to obtain impedance distribution data of the battery; Based on the impedance distribution data of the battery, electrochemical impedance spectrum data of the battery is obtained.

6. The method according to claim 2, characterized in that The step of monitoring the operating state of the battery according to the current state information and the electrochemical impedance spectrum data includes: The current state information and the electrochemical impedance spectrum data are stored in a preset record file of the interface description language layer by using a preset data structure through the preset thread; the preset thread is a thread created in the interface description language layer; The current state information and the electrochemical impedance spectrum data stored in the preset record file are sent to the kernel layer by using a structure variable through a communication node between the interface description language layer and the kernel layer; The structure variables are parsed through the kernel layer, and the current state information and the electrochemical impedance spectrum data obtained by the parsing are uploaded to the server as embedded point data; the embedded point data is used to instruct the server to monitor the operating status of the battery.

7. The method according to claim 6, characterized in that The method of storing the current state information and the electrochemical impedance spectrum data in a preset record file of an interface description language layer by using a preset data structure through the preset thread includes: Filling the current state information and the electrochemical impedance spectrum data into a preset array through the preset thread; Convert each element in the preset array into a string and fill it into a preset string buffer; Each character string in the preset character string buffer is stored in a preset record file of the interface description language layer according to different rows.

8. The method according to claim 6 or 7, characterized in that: The step of parsing the structure variables through the kernel layer and uploading the current state information and the electrochemical impedance spectrum data obtained by the parsing to a server as buried point data includes: Parsing the structure variables by the parsing component in the kernel layer to obtain a command prompt, the current state information and the electrochemical impedance spectroscopy data; Determine whether the current state information and the electrochemical impedance spectroscopy data are data for buried points based on the command prompt; If the current state information and the electrochemical impedance spectrum data are the data to be buried, the buried point data are generated based on the current state information and the electrochemical impedance spectrum data by the buried point component in the core layer, and the buried point data are uploaded to the server.

9. The method according to claim 1, characterized in that: The method further comprises: If it is monitored that the operating state of the battery fails, a fault analysis is performed on the battery according to the current state information and the electrochemical impedance spectrum data to obtain a fault analysis result.

10. A battery monitoring device, characterized in that: Applied to electronic equipment, the device comprises: A first acquisition module, configured to acquire current status information of a battery when the electronic device satisfies a status information acquisition condition; the status information acquisition condition includes a condition that the battery of the electronic device is in a charging state and the screen of the electronic device is in an off state; A second acquisition module, used to acquire electrochemical impedance spectroscopy data of the battery according to current state information of the battery; The operating status monitoring module is used to monitor the operating status of the battery according to the current status information and the electrochemical impedance spectroscopy data.

11. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the battery monitoring method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the battery monitoring method according to any one of claims 1 to 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the battery monitoring method according to any one of claims 1 to 9 are implemented.