CN109142953B - Leakage current monitoring method and electronic equipment - Google Patents
Leakage current monitoring method and electronic equipment Download PDFInfo
- Publication number
- CN109142953B CN109142953B CN201810965514.9A CN201810965514A CN109142953B CN 109142953 B CN109142953 B CN 109142953B CN 201810965514 A CN201810965514 A CN 201810965514A CN 109142953 B CN109142953 B CN 109142953B
- Authority
- CN
- China
- Prior art keywords
- current value
- charging
- leakage current
- battery
- electric quantity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/50—Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Secondary Cells (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention provides a leakage current monitoring method and electronic equipment, wherein the method comprises the following steps: collecting the charging electric quantity and the charging time of a battery of the electronic equipment in the charging process; calculating a leakage current value of the battery based on the charging electric quantity and the charging time length; and if the leakage current value is greater than or equal to a preset current value, processing corresponding to the preset current value. The leakage current monitoring method and the electronic equipment provided by the invention can prolong the service life and safety of the battery and the electronic equipment.
Description
Technical Field
The invention relates to the technical field of safety, in particular to a leakage current monitoring method and electronic equipment.
Background
The battery is an indispensable important part of the electronic equipment as a device for providing working electric energy for the electronic equipment, and the service life and the safety of the battery directly influence the service life of the electronic equipment in many cases, so that the service life and the safety of the battery are always important concerns when consumers purchase the electronic equipment.
In the prior art, a battery protection board is added in a lithium ion battery pack to protect the lithium ion battery from overcharge, overdischarge, overhigh temperature and the like, so that the purpose of prolonging the service life of the lithium ion battery is achieved. However, the conventional protection measures cannot prevent accidents such as fire and explosion caused by internal faults of the lithium ion battery, and have the problem of low safety.
Disclosure of Invention
The embodiment of the invention provides a leakage current monitoring method and electronic equipment, and aims to solve the problem that accidents such as fire and explosion and the like cannot be prevented due to internal faults of a lithium ion battery.
In order to solve the technical problem, the invention is realized as follows: a leakage current monitoring method is applied to electronic equipment, and comprises the following steps:
collecting the charging electric quantity and the charging time of a battery of the electronic equipment in the charging process;
calculating a leakage current value of the battery based on the charging electric quantity and the charging time length;
and if the leakage current value is greater than or equal to a preset current value, processing corresponding to the preset current value.
In a first aspect, an embodiment of the present invention provides a leakage current monitoring method, which is applied to an electronic device, and the method includes:
collecting the charging electric quantity and the charging time of a battery of the electronic equipment in the charging process;
calculating a leakage current value of the battery based on the charging electric quantity and the charging time length;
and if the leakage current value is greater than or equal to a preset current value, processing corresponding to the preset current value.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the acquisition module is used for acquiring the charging electric quantity and the charging time of the battery of the electronic equipment in the charging process;
the calculation module is used for calculating the leakage current value of the battery based on the charging electric quantity and the charging time;
and the processing module is used for carrying out processing corresponding to the preset current value if the leakage current value is greater than or equal to the preset current value.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the leakage current monitoring method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the leakage current monitoring method described above are implemented.
In the embodiment of the invention, the charging electric quantity and the charging time of the battery of the electronic equipment in the charging process are collected; calculating a leakage current value of the battery based on the charging electric quantity and the charging time length; and if the leakage current value is greater than or equal to a preset current value, processing corresponding to the preset current value. Like this, electronic equipment can realize the control through the leakage current to the battery is inside, and the prevention is fired accident such as unusual, battery fire and explosion by the electronic equipment that the inside leakage current of battery caused, promotes battery and electronic equipment's life and security.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a leakage current monitoring method according to an embodiment of the present invention;
FIG. 2 is a diagram of an equivalent circuit for charging and discharging a battery within an electronic device implementing various embodiments of the invention;
fig. 3 is a flowchart of another leakage current monitoring method according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention;
FIG. 5 is a block diagram of another electronic device provided in an embodiment of the invention;
FIG. 6 is a block diagram of another electronic device provided in an embodiment of the invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a leakage current monitoring method according to an embodiment of the invention. As shown in fig. 1, the method comprises the following steps:
in an embodiment of the present invention, an equivalent schematic diagram of charging and discharging of a battery in an electronic device is shown in fig. 2, and includes an Integrated Power Management Circuit (PMIC), a Central Processing Unit (CPU), an electricity meter, a first resistor R1, a second resistor R2, a third resistor R3, and a battery, one end of the first resistor R1 is connected with the positive electrode of the battery core inside the battery, one end of the second resistor R2 is connected with the positive electrode of the battery core inside the battery, the other end of the second resistor R2 is connected with the negative electrode and the grounding end of the battery core inside the battery respectively, one end of the third resistor R3 is connected with the other end of the first resistor R1, the other end of the third resistor R3 is connected with the input end of the PMIC, one end of the fuel gauge is connected with one end of the third resistor R3, the other end of the fuel gauge is connected with the other end of the third resistor R3, and the output end of the fuel gauge and the output end of the PMIC are both connected with the CPU.
The first resistor R1 is equivalent to the internal resistance of the battery, and the second resistor R2 is equivalent to the internal resistance of the leakage circuit inside the battery, so that the current I flowing through the battery cell inside the battery1Leakage current I equivalent to current flowing through the second resistor R22The sum of which is equal to the current I flowing through the third resistor R33I.e. I3=I1+I2。
The electric quantity charged into the battery or the electric quantity discharged from the battery can be collected through the electricity meter, and the charging or discharging time can be acquired through the CPU.
And 102, calculating the leakage current value of the battery based on the charging electric quantity and the charging time.
Based on the data collected in step 101 and the circuit relationship shown in fig. 2, the leakage current value of the battery in the electronic device can be calculated. For example: in a complete charge-discharge cycle, the electricity meter collects the quantity Q of electricity charged in the battery module1(Q1Equal to the quantity of electricity Q charged into the internal cell2And the power consumption Q in the charging process of the leakage circuit3Sum, i.e. Q1=Q2+Q3) And the quantity of electricity Q discharged by the battery module4(Q4Equal to the electric quantity Q discharged by the internal electric core5And the power consumption Q in the discharging process of the leakage circuit6The difference, i.e. Q4=Q5-Q6) Since the capacity of the internal cell is constant, the charging capacity Q is2And discharge capacity Q5Are equal, therefore Q is1-Q4Obtaining the total power consumption Q of the leakage circuit in the charge-discharge cycle process3+Q6Is mixing Q with3+Q6And dividing by the total time t in the charge-discharge cycle process to obtain the leakage current value in the charge-discharge cycle process.
It should be noted that the method is only one implementation manner of obtaining the leakage current value for a complete charge and discharge cycle, and the leakage current value may also be obtained by other implementation manners for a complete charge and discharge cycle, or may also be obtained for a battery charging process, and the like, which is not limited in the embodiment of the present invention.
And 103, if the leakage current value is greater than or equal to the preset current value, performing processing corresponding to the preset current value.
The specific processing mode is preset, and when the detected leakage current value is larger than or equal to the preset current value, a processing program is triggered, and the electronic equipment completes processing. For example: the preset processing mode is that alarm information is displayed in a display screen of the electronic equipment, and when the leakage current value is larger than a preset current value, the alarm information is displayed in the display screen of the electronic equipment; or, the preset processing mode is to make an alarm sound, and the electronic device makes an alarm sound when the leakage current value is greater than the preset current value; the present invention may also be implemented in a manner of vibration of an electronic device, and the embodiment of the present invention does not limit what processing manner is specifically adopted.
In an embodiment of the present invention, the electronic device may be any electronic device including a battery, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
In the embodiment of the invention, the charging electric quantity and the charging time of the battery of the electronic equipment in the charging process are collected; calculating the leakage current value of the battery based on the charging electric quantity and the charging time; and if the leakage current value is greater than or equal to the preset current value, processing corresponding to the preset current value. Like this, electronic equipment can realize the control through the leakage current to the battery is inside, and the prevention is fired accident such as unusual, battery fire and explosion by the electronic equipment that the inside leakage current of battery caused, promotes battery and electronic equipment's life and security.
Referring to fig. 3, fig. 3 is a flowchart of another leakage current monitoring method according to an embodiment of the present invention. The present embodiment is mainly different from the embodiment shown in fig. 1 in that the preset current value includes a first preset current value and a second preset current value. As shown in fig. 3, the method comprises the following steps:
and step 302, calculating a leakage current value of the battery based on the charging electric quantity and the charging time length.
The implementation process and beneficial effects of step 301 and step 302 may refer to the descriptions in step 101 and step 102, and are not described herein again.
Optionally, the step of collecting the charging amount and the charging duration of the battery of the electronic device in the charging process when the battery in the electronic device is in the charging state may include:
collecting first charging electric quantity of a battery in the electronic equipment, second charging electric quantity of a battery core in the battery and first charging time;
the step of calculating the leakage current value of the battery based on the charging capacity and the charging duration comprises the following steps:
calculating the leakage current value of the battery in the electronic equipment, wherein the leakage current value is the difference between the first charging capacity and the second charging capacity divided by the first charging duration.
As shown in FIG. 2, it can be seen that the amount of charge Q in the battery is in the charged state1Equal to the quantity of electricity Q charged into the internal cell2And the power consumption Q in the charging process of the leakage circuit3Sum, i.e. Q1=Q2+Q3. By collecting electricity charged into the electronic deviceFirst charge Q of the pool1And a second charge quantity Q of the battery cell2The power consumption of the leakage circuit in the charging process can be known, and then the current calculation formula is adopted: and dividing the power consumption of the leakage circuit by the first charging time period to obtain a leakage current value. Specifically, the above-mentioned Q1Can be detected by an ammeter, the above Q2The charging quantity fed back by the intelligent battery is obtained, Q1And Q2The collection mode is not limited to the above mode, and the collection mode can be calculated through the charging progress, the charging efficiency and other modes fed back by the intelligent battery.
Generally, the battery accident rate of the charging process of the electronic equipment is higher, in the embodiment, the leakage current value in the battery can be directly monitored in the charging process of the battery of the electronic equipment, the condition that the leakage current value is larger in the charging process can be found in time, and the processing module is provided for carrying out corresponding processing, so that the accidents that the electronic equipment is abnormal in heating, the battery is on fire, explosion and the like caused by the overlarge leakage current value in the charging process can be avoided in time, and the service life and the safety of the battery and the electronic equipment are improved.
It should be noted that, a first charging capacity of a battery in the electronic device, a second charging capacity of a battery cell in the battery, and a first charging duration are collected; calculating the leakage current value of the battery in the electronic device, where the leakage current value is the difference between the first charging capacity and the second charging capacity divided by the first charging duration, is an optional implementation, i.e., is not limited to the manner of calculating the leakage current value of the battery based on the charging capacity and the charging duration. In addition, the present embodiment is also applicable to the embodiment shown in fig. 1, and has the same beneficial effects, which are not described herein again.
Optionally, the step of collecting the charging capacity and the charging duration of the battery of the electronic device in the charging process when the battery in the electronic device is in a charging and discharging cycle state may include:
collecting third charging electric quantity charged into the battery and second charging time length for charging the third charging electric quantity;
after the step of collecting the charging quantity and the charging duration of the battery of the electronic device in the charging process, the method further comprises the following steps:
collecting first discharge electric quantity emitted by a battery and discharge duration for emitting the first discharge electric quantity;
the step of calculating the leakage current value of the battery based on the charging capacity and the charging duration comprises the following steps:
and calculating the leakage current value of the battery in the electronic equipment, wherein the leakage current value is the difference between the third charging electric quantity and the first discharging electric quantity divided by the sum of the second charging time length and the discharging time length.
As shown in FIG. 2, it can be seen that the amount of charge Q in the battery is in the charged state1Equal to the quantity of electricity Q charged into the internal cell2And the power consumption Q in the charging process of the leakage circuit3Sum, i.e. Q1=Q2+Q3(ii) a Quantity of electricity Q discharged from battery in discharge state4Equal to the electric quantity Q discharged by the internal electric core5And the power consumption Q in the discharging process of the leakage circuit6The difference, i.e. Q4=Q5-Q6. Wherein, the capacity of the internal battery cell is fixed, so the charging capacity Q is2And discharge capacity Q5Are equal, therefore Q is1-Q4Obtaining the total power consumption Q of the leakage circuit in the charge-discharge cycle process3+Q6Then, the current calculation formula is: i is Q/t, and Q is3+Q6And dividing by the total time t in the charge-discharge cycle process to obtain the leakage current value in the charge-discharge cycle process.
Specifically, the above-mentioned Q1And Q4The total time t of the charging and discharging cycle process can be obtained through a CPU or a timer.
In this embodiment, the leakage current value may be calculated during the charging and discharging cycle of the battery of the electronic device, and the calculated leakage current value may comprehensively represent the situation of the leakage current value during the charging process and the overall situation of the leakage current value during the discharging process, so as to avoid the situation that the leakage current value is higher and the overall leakage current value is lower at a certain time, which may cause the processing module to improperly process the electronic device.
It should be noted that, the third charging electric quantity charged into the battery and the second charging time length for charging the third charging electric quantity are collected; collecting first discharge electric quantity emitted by a battery and discharge duration for emitting the first discharge electric quantity; calculating the leakage current value of the battery in the electronic device, where the leakage current value is the difference between the third charging electric quantity and the first discharging electric quantity divided by the sum of the second charging time period and the discharging time period, is an optional embodiment, i.e. is not limited to the manner of calculating the leakage current value of the battery based on the charging electric quantity and the charging time period. In addition, the present embodiment is also applicable to the embodiment shown in fig. 1, and has the same beneficial effects, which are not described herein again.
in this embodiment, the preset current value includes a first preset current value and a second preset current value. After the leakage current value calculated in step 302 is obtained, the leakage current value is compared with a first preset current value and a second preset current value, when the leakage current value is greater than or equal to the first preset current value and less than the second preset current value, it can be considered that the leakage current is close to the leakage current causing a dangerous accident, and at this time, the electronic device outputs prompt information to prompt a user.
The specific way of outputting the prompt information by the electronic device may be various, for example: displaying a prompt information frame indicating that the leakage current is close to danger in the display screen under the condition that the electronic equipment comprises the display screen; in the case where the electronic device includes a speaker, emitting a prompt sound indicating that the leakage current is approaching danger through the speaker; in the case where the electronic device includes a vibration motor, a vibration frequency indicating that the leakage current is close to danger is emitted by the vibration motor.
After the leakage current value calculated in step 302 is obtained, the leakage current value is compared with a second preset current value, and when the leakage current value is greater than or equal to the second preset current value, the leakage current value is considered to reach the leakage current causing a dangerous accident, and at this time, the electronic device is shut down, so that the electronic device is prevented from being damaged by the battery. Optionally, when the electronic device is in a charging state and the leakage current value is greater than or equal to the second preset current value, the connection between the battery and the charging interface may be cut off while the electronic device is powered off.
Optionally, before step 303 and/or step 305, the following steps may be further included:
acquiring the cycle number of a battery in the electronic equipment, and determining the loss rate corresponding to the cycle number;
a preset current value corresponding to the loss rate is determined.
The more the number of cycles of the battery is, the more the battery is aged, the greater the internal resistance of the battery is, and the more the battery generates heat than a new battery under the same leakage current, so that the problems of abnormal heat generation, ignition and explosion of the battery and the like are more likely to occur.
The cycle number of the battery is in direct proportion to the loss rate of the battery, the loss rate of the battery is larger as the cycle number is larger, and the specific modes of determining the loss rate according to the cycle number and determining the preset current value according to the loss rate are determined by table lookup, a linear calculation formula and the like. In this embodiment, a table look-up manner is adopted, the loss rate of the battery can be determined after the cycle number of the battery in the electronic device is obtained, and the corresponding preset current value is obtained by table look-up after the loss rate is determined.
Because the internal resistance of the battery increases along with the increase of the loss rate of the battery, in order to ensure that the monitoring of the leakage current can prevent the leakage current from causing a harmful accident, the preset current value needs to be set to be reduced along with the increase of the loss rate of the battery, so that the heat emitted by the battery can be lower than the safe heat, and the use safety of the battery is ensured.
The cycle number of the battery is used as an input parameter for determining the preset current value, so that the preset current value compared with the leakage current value measured by different battery cycle numbers is more suitable for the condition of the current battery under the safety requirement, and the safety of the battery for monitoring the leakage current is further improved.
The above steps are also applicable to the embodiment shown in fig. 1 before step 103, and have the same beneficial effects, and are not described again.
Further, in this embodiment, in the case that the preset current value includes a first preset current value and a second preset current value, the step of determining the preset current value corresponding to the loss ratio may include:
and determining a first preset current value and a second preset current value, wherein the first preset current value is inversely proportional to the loss rate, and the second preset current value is inversely proportional to the loss rate.
The first preset current value and the second preset current value are associated with the cycle times of the battery to form an inverse proportion relation, so that the first preset current value and the second preset current value which are compared with the leakage current value measured by the cycle times of different batteries are more suitable for the condition of the current battery under the safety requirement, and the safety of the battery for monitoring the leakage current is further improved.
Optionally, whether the above steps are included before step 303 and/or step 304, after step 302, the method may further include:
comparing the leakage current value with a pre-stored historical leakage current value to obtain a difference result;
and if the difference result is greater than the preset threshold, generating a file containing parameters of the battery in a target time period, wherein the starting time of the target time period is the acquisition time of the historical leakage current value, and the ending time of the target time period is the acquisition time of the leakage current value.
The historical leakage current value is prestored in the electronic device, and is the previously acquired leakage current value of the battery, and the historical leakage current value may be the leakage current value measured for the first time and is not updated any more, or may be updated every preset period. The following description will be given by taking an example in which the initial historical leakage current value is the leakage current value measured for the first time and is updated every preset period: the preset period is one week, the initial historical leakage current value is the leakage current value measured for the first time, the leakage current values measured in the next week are compared with the initial historical leakage current value, the historical leakage current value is updated to be the newly measured leakage current value after one week, the leakage current values measured in the next week are compared with the updated historical leakage current value, and the like.
The preset threshold value is related to whether the historical leakage current value is updated or not, under the condition that the historical leakage current value is updated at regular time, the preset threshold value is the maximum change value allowed by the leakage current value in the battery in the updating period, the leakage current value is in direct proportion to the updating period, the larger the updating period is, the larger the preset threshold value is, the smaller the updating period is and the smaller the preset threshold value is; and under the condition that the historical leakage current value is not updated, the preset threshold value is the maximum value of the allowable change of the leakage current value in the battery, and the leakage current value is a fixed value.
If the difference result obtained after comparison is larger than the preset threshold value, the leakage current of the battery is considered to be abnormal, a file containing parameters of the battery in the target time period is generated, the starting time of the target time period is the acquisition time of the historical leakage current value, and the ending time of the target time period is the acquisition time of the leakage current value. Under the condition that the historical leakage current value is updated at regular time, the target time period is from the acquisition time of the historical leakage current value to the acquisition time of the abnormal leakage current value; in the case where the history leakage current value is not updated, the target time period is from the acquisition time of the first leakage current value to the acquisition time of the leakage current value in which there is an abnormality. Files of parameters for a particular battery include, but are not limited to: capacity, internal resistance value, charging current value, discharging current value, nominal voltage value, environmental temperature value, charging and discharging speed and self-discharging rate.
Through generating the file that contains the parameter of battery in the target time quantum for maintenance person can know the overall process of each battery parameter of electronic equipment's battery from normal condition to abnormal state through looking over this file, thereby be convenient for maintenance person to seek the reason that the battery appears unusually, promote the maintenance efficiency and the maintenance success rate of battery, and then promote the possibility that prolongs electronic equipment's life.
The above steps are also applicable after step 102 in the embodiment shown in fig. 1, and have the same beneficial effects, and are not described again.
In this embodiment, the preset current value includes a first preset current value and a second preset current value, and the calculated leakage current value is compared with the first preset current value and the second preset current value respectively, and different processing is performed according to different comparison results, so that the processing mode is more diversified, the purpose of reminding a user can be achieved, and the occurrence of a hazard accident can be prevented under a necessary condition.
Referring to fig. 4, a schematic structural diagram of an electronic device according to an embodiment of the present invention is shown in fig. 4, where the electronic device 400 includes an acquisition module 401, a calculation module 402, and a processing module 403 that are connected to each other, where:
the acquisition module 401 is configured to acquire a charging electric quantity and a charging duration of a battery of the electronic device in a charging process;
a calculating module 402, configured to calculate a leakage current value of the battery based on the charging amount and the charging duration;
the processing module 403 is configured to perform processing corresponding to a preset current value if the leakage current value is greater than or equal to the preset current value.
Optionally, the preset current value includes a first preset current value and a second preset current value, and the processing module 403 includes:
the output unit is used for outputting prompt information if the leakage current value is greater than or equal to a first preset current value and less than a second preset current value; and/or the presence of a gas in the gas,
and the shutdown unit is used for controlling the electronic equipment to shut down if the leakage current value is greater than or equal to a second preset current value.
Optionally, as shown in fig. 5, the electronic device 400 further includes:
an obtaining module 404, configured to obtain cycle times of a battery in the electronic device, and determine a loss rate corresponding to the cycle times;
a determining module 405, configured to determine a preset current value corresponding to the loss rate.
Optionally, the collecting module 401 is configured to collect a first charging amount of a battery charged into the electronic device, a second charging amount of a battery cell charged into the battery, and a first charging duration;
the calculating module 402 is configured to calculate a leakage current value of a battery in the electronic device, where the leakage current value is a difference between the first charging capacity and the second charging capacity divided by the first charging duration.
Optionally, the acquiring module 401 is configured to acquire a third charging amount of the battery and a second charging duration of the third charging amount; the battery is also used for collecting the first discharge electric quantity emitted by the battery and the discharge time length for emitting the first discharge electric quantity;
a calculating module 402, configured to calculate a leakage current value of a battery in the electronic device, where the leakage current value is a difference between the third charging capacity and the first discharging capacity divided by a sum of the second charging duration and the discharging duration.
Optionally, as shown in fig. 6, the electronic device 400 further includes:
a comparison module 406, configured to compare the leakage current value with a pre-stored historical leakage current value to obtain a difference result;
the generating module 407 is configured to generate a file including parameters of the battery in a target time period if the difference result is greater than a preset threshold, where a starting time of the target time period is an obtaining time of the historical leakage current value, and an ending time of the target time period is an obtaining time of the leakage current value.
The electronic device 400 can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 3, and details are not repeated here to avoid repetition.
The electronic device 400 according to the embodiment of the invention can prevent the accidents of abnormal heating of the electronic device, battery ignition, explosion and the like caused by the leakage current in the battery by monitoring the leakage current in the battery, and improve the service life and the safety of the battery and the electronic device.
Please refer to fig. 7, which is a schematic diagram of a hardware structure of an electronic device 700 for implementing various embodiments of the present invention, wherein the electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to acquire a charging electric quantity and a charging duration of a battery of the electronic device in a charging process; calculating the leakage current value of the battery based on the charging electric quantity and the charging time; and if the leakage current value is greater than or equal to the preset current value, processing corresponding to the preset current value.
Optionally, the preset current value includes a first preset current value and a second preset current value;
the processor 710 is configured to, if the leakage current value is greater than or equal to the preset current value, perform a process corresponding to the preset current value, to: if the leakage current value is greater than or equal to the first preset current value and less than the second preset current value, outputting prompt information; and/or controlling the electronic equipment to shut down if the leakage current value is greater than or equal to a second preset current value.
Optionally, before the step of performing the processing corresponding to the preset current value if the leakage current value is greater than or equal to the preset current value, the processor 710 is further configured to: acquiring the cycle number of a battery in the electronic equipment, and determining the loss rate corresponding to the cycle number; a preset current value corresponding to the loss rate is determined.
Optionally, the processor 710, when the electronic device is in the charging state, is configured to, in the step of acquiring the charging capacity and the charging duration of the battery of the electronic device in the charging process: collecting first charging electric quantity of a battery in the electronic equipment, second charging electric quantity of a battery core in the battery and first charging time; in the step of calculating the leakage current value of the battery based on the charging electric quantity and the charging time period, the step of: calculating the leakage current value of the battery in the electronic equipment, wherein the leakage current value is the difference between the first charging capacity and the second charging capacity divided by the first charging duration.
Optionally, the processor 710, in the step of acquiring the charging amount and the charging duration of the battery of the electronic device in the charging process, is configured to: collecting third charging electric quantity charged into the battery and second charging time length for charging the third charging electric quantity; after the step of collecting the charging electric quantity and the charging time of the battery of the electronic equipment in the charging process, the step of collecting the first discharging electric quantity and the discharging time of the first discharging electric quantity emitted by the battery; and in the step of calculating the leakage current value of the battery based on the charging electric quantity and the charging time length, the leakage current value is used for calculating the leakage current value of the battery in the electronic equipment, and the leakage current value is the difference between the third charging electric quantity and the first discharging electric quantity divided by the sum of the second charging time length and the discharging time length.
Optionally, after the step of calculating the leakage current value of the battery based on the charging amount and the charging duration, the processor 710 is further configured to: comparing the leakage current value with a pre-stored historical leakage current value to obtain a difference result; and if the difference result is greater than the preset threshold, generating a file containing parameters of the battery in a target time period, wherein the starting time of the target time period is the acquisition time of the historical leakage current value, and the ending time of the target time period is the acquisition time of the leakage current value.
The electronic device 700 is capable of implementing the processes implemented by the electronic device in the foregoing embodiments, and in order to avoid repetition, the details are not described here.
The electronic device 700 according to the embodiment of the invention can prevent the accidents of abnormal heating of the electronic device, battery ignition, explosion and the like caused by the leakage current in the battery by monitoring the leakage current in the battery, and improve the service life and the safety of the battery and the electronic device.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the electronic device 700 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby monitoring the whole electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-mentioned image processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (9)
1. A leakage current monitoring method is applied to electronic equipment, and is characterized by comprising the following steps:
collecting the charging electric quantity and the charging time of a battery of the electronic equipment in the charging process;
calculating a leakage current value of the battery based on the charging electric quantity and the charging time length;
if the leakage current value is larger than or equal to a preset current value, processing corresponding to the preset current value;
the step of collecting the charging quantity and the charging duration of the battery of the electronic equipment in the charging process comprises the following steps:
collecting a first charging electric quantity charged into the battery, a second charging electric quantity charged into a battery core in the battery and a first charging time;
the step of calculating the leakage current value of the battery based on the charging electric quantity and the charging duration comprises the following steps:
calculating a leakage current value of a battery in the electronic equipment, wherein the leakage current value is the difference between the first charging electric quantity and the second charging electric quantity divided by the first charging time length; or the like, or, alternatively,
the step of gathering the electric quantity and the length of time of charging of battery of electronic equipment in charging process still includes:
acquiring third charging electric quantity charged into a battery and second charging time of the third charging electric quantity when the battery in the electronic equipment is in a one-time complete charging and discharging cycle state;
after the step of collecting the charging quantity and the charging duration of the battery of the electronic equipment in the charging process, the method further comprises the following steps:
collecting first discharging electric quantity discharged by the battery and discharging time length for discharging the first discharging electric quantity;
the step of calculating the leakage current value of the battery based on the charging electric quantity and the charging duration further includes:
and calculating a leakage current value of a battery in the electronic equipment, wherein the leakage current value is the difference between the third charging electric quantity and the first discharging electric quantity divided by the sum of the second charging time length and the discharging time length.
2. A leakage current monitoring method according to claim 1, wherein the preset current value includes a first preset current value and a second preset current value; if the leakage current value is greater than or equal to a preset current value, performing processing corresponding to the preset current value, including:
if the leakage current value is greater than or equal to a first preset current value and less than a second preset current value, outputting prompt information; and/or the presence of a gas in the gas,
and if the leakage current value is greater than or equal to the second preset current value, controlling the electronic equipment to shut down.
3. The leakage current monitoring method according to claim 1, wherein before the step of performing the processing corresponding to the preset current value if the leakage current value is greater than or equal to the preset current value, the method further comprises:
acquiring the cycle number of a battery in the electronic equipment, and determining the loss rate corresponding to the cycle number;
and determining a preset current value corresponding to the loss rate.
4. The leakage current monitoring method according to claim 1, wherein after the step of calculating the leakage current value of the battery based on the charged electric quantity and the charged time period, the method further comprises:
comparing the leakage current value with a pre-stored historical leakage current value to obtain a difference result;
and if the difference result is greater than a preset threshold value, generating a file containing parameters of the battery in a target time period, wherein the starting time of the target time period is the acquisition time of the historical leakage current value, and the ending time of the target time period is the acquisition time of the leakage current value.
5. An electronic device, comprising:
the acquisition module is used for acquiring the charging electric quantity and the charging time of the battery of the electronic equipment in the charging process;
the calculation module is used for calculating the leakage current value of the battery based on the charging electric quantity and the charging time;
the processing module is used for carrying out processing corresponding to a preset current value if the leakage current value is greater than or equal to the preset current value;
the acquisition module is further used for acquiring a first charging electric quantity charged into the battery, a second charging electric quantity charged into the battery cell and a first charging time;
the calculation module is further configured to calculate a leakage current value of a battery in the electronic device, where the leakage current value is a difference between the first charging electric quantity and the second charging electric quantity divided by the first charging duration; or the like, or, alternatively,
the acquisition module is further used for acquiring third charging electric quantity charged into the battery and second charging time of the third charging electric quantity when the battery in the electronic equipment is in a one-time complete charging and discharging cycle state; the battery is also used for collecting first discharge electric quantity emitted by the battery and discharge time length for emitting the first discharge electric quantity;
the calculation module is further configured to calculate a leakage current value of a battery in the electronic device, where the leakage current value is a difference between the third charging electric quantity and the first discharging electric quantity divided by a sum of the second charging duration and the discharging duration.
6. The electronic device of claim 5, wherein the preset current value comprises a first preset current value and a second preset current value; the processing module comprises:
the output unit is used for outputting prompt information if the leakage current value is greater than or equal to a first preset current value and less than a second preset current value; and/or the presence of a gas in the gas,
and the shutdown unit is used for controlling the electronic equipment to shut down if the leakage current value is greater than or equal to the second preset current value.
7. The electronic device of claim 5, further comprising:
the acquisition module is used for acquiring the cycle number of a battery in the electronic equipment and determining the loss rate corresponding to the cycle number;
and the determining module is used for determining a preset current value corresponding to the loss rate.
8. The electronic device of claim 5, further comprising:
the comparison module is used for comparing the leakage current value with a pre-stored historical leakage current value to obtain a difference value result;
and the generating module is used for generating a file containing parameters of the battery in a target time period if the difference result is greater than a preset threshold, wherein the starting time of the target time period is the acquisition time of the historical leakage current value, and the ending time of the target time period is the acquisition time of the leakage current value.
9. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the leakage current monitoring method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810965514.9A CN109142953B (en) | 2018-08-23 | 2018-08-23 | Leakage current monitoring method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810965514.9A CN109142953B (en) | 2018-08-23 | 2018-08-23 | Leakage current monitoring method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109142953A CN109142953A (en) | 2019-01-04 |
CN109142953B true CN109142953B (en) | 2022-02-18 |
Family
ID=64791389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810965514.9A Active CN109142953B (en) | 2018-08-23 | 2018-08-23 | Leakage current monitoring method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109142953B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110687467A (en) * | 2019-11-13 | 2020-01-14 | 珠海冠宇电池有限公司 | Method for detecting leakage current of lithium battery |
CN111679201B (en) * | 2020-06-30 | 2022-06-14 | 重庆长安新能源汽车科技有限公司 | Method for detecting short circuit in power battery pack |
CN111736096B (en) * | 2020-07-27 | 2023-02-10 | 镇江大全赛雪龙牵引电气有限公司 | Direct current switch cabinet frame insulation monitoring and positioning system |
CN112698224B (en) * | 2020-12-03 | 2023-01-06 | Oppo广东移动通信有限公司 | Method, device and equipment for estimating residual electric quantity and readable storage medium |
CN114487914B (en) * | 2022-04-13 | 2022-08-19 | 荣耀终端有限公司 | Electronic equipment and leakage current testing method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0390876A (en) * | 1989-09-04 | 1991-04-16 | Mk Seiko Co Ltd | Diagnosic device for on-vehicle battery |
CN1821801A (en) * | 2005-02-18 | 2006-08-23 | 松下电器产业株式会社 | Internal short detection apparatus for secondary-battery, internal short detection method for secondary-battery, battery-pack, and electronic equipment |
CN106597298A (en) * | 2016-11-18 | 2017-04-26 | 努比亚技术有限公司 | Battery cell electric leakage determination device and method |
CN106655389A (en) * | 2016-12-30 | 2017-05-10 | 维沃移动通信有限公司 | Charging protection method, device and circuit |
CN106959386A (en) * | 2017-03-30 | 2017-07-18 | 维沃移动通信有限公司 | A kind of creepage detection method and mobile terminal |
CN107843802A (en) * | 2017-10-23 | 2018-03-27 | 北京小米移动软件有限公司 | Internal short-circuit detection method and device |
CN107870301A (en) * | 2016-09-27 | 2018-04-03 | 华为技术有限公司 | A kind of detection method and device of battery micro-short circuit |
CN108241102A (en) * | 2016-12-23 | 2018-07-03 | 华为技术有限公司 | A kind of detection method and device of battery micro-short circuit |
-
2018
- 2018-08-23 CN CN201810965514.9A patent/CN109142953B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0390876A (en) * | 1989-09-04 | 1991-04-16 | Mk Seiko Co Ltd | Diagnosic device for on-vehicle battery |
CN1821801A (en) * | 2005-02-18 | 2006-08-23 | 松下电器产业株式会社 | Internal short detection apparatus for secondary-battery, internal short detection method for secondary-battery, battery-pack, and electronic equipment |
CN107870301A (en) * | 2016-09-27 | 2018-04-03 | 华为技术有限公司 | A kind of detection method and device of battery micro-short circuit |
CN106597298A (en) * | 2016-11-18 | 2017-04-26 | 努比亚技术有限公司 | Battery cell electric leakage determination device and method |
CN108241102A (en) * | 2016-12-23 | 2018-07-03 | 华为技术有限公司 | A kind of detection method and device of battery micro-short circuit |
CN106655389A (en) * | 2016-12-30 | 2017-05-10 | 维沃移动通信有限公司 | Charging protection method, device and circuit |
CN106959386A (en) * | 2017-03-30 | 2017-07-18 | 维沃移动通信有限公司 | A kind of creepage detection method and mobile terminal |
CN107843802A (en) * | 2017-10-23 | 2018-03-27 | 北京小米移动软件有限公司 | Internal short-circuit detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109142953A (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109142953B (en) | Leakage current monitoring method and electronic equipment | |
CN110712560B (en) | Exception handling method, device, equipment and medium | |
CN108896911B (en) | Charging abnormity detection method and device for electronic equipment | |
CN108594120B (en) | Battery state detection method and device and computer readable storage medium | |
CN108663627B (en) | Battery self-discharge detection method and battery self-discharge detection device | |
CN110838748B (en) | Electronic equipment and charging control system thereof | |
US11476684B2 (en) | Charging protection method, terminal, and charger | |
CN107887947B (en) | Protection method for charging port and mobile terminal | |
CN109962514B (en) | Charging method and mobile terminal | |
CN108802835B (en) | Wireless charging detection method and device, mobile terminal and wireless charging system | |
CN107450029B (en) | Battery state checking method and device, computer equipment and computer readable storage medium | |
CN111293744B (en) | Charging method, charging device, electronic device, and medium | |
CN107834640B (en) | Charging method and terminal | |
CN108282000A (en) | Wireless charging method, wireless transmitter, wireless charging receiving terminal and adapter | |
WO2023236972A1 (en) | Communication environment security warning method and apparatus, terminal device, and storage medium | |
CN108810284B (en) | Mode switching method of camera and electronic equipment | |
CN110957785B (en) | Battery assembly, charging control method and system | |
CN107769324B (en) | Charging method, charger, mobile terminal and server | |
CN108874111B (en) | Battery over-discharge protection control method and mobile terminal | |
CN110190641B (en) | Charging control circuit, terminal equipment and data line | |
CN111181218A (en) | Charging prompting method, electronic device and medium | |
CN107817397B (en) | Charging heating abnormity detection method and terminal equipment | |
CN108845261B (en) | Electric quantity prompting method and terminal equipment | |
CN115503535A (en) | Secure charging method, apparatus, device and computer readable storage medium | |
CN113038439B (en) | Data transmission method and device for electric tool, electric tool and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |