CN107450029B - Battery state checking method and device, computer equipment and computer readable storage medium - Google Patents

Battery state checking method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN107450029B
CN107450029B CN201710607837.6A CN201710607837A CN107450029B CN 107450029 B CN107450029 B CN 107450029B CN 201710607837 A CN201710607837 A CN 201710607837A CN 107450029 B CN107450029 B CN 107450029B
Authority
CN
China
Prior art keywords
battery
charging
temperature
preset
parameters
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.)
Expired - Fee Related
Application number
CN201710607837.6A
Other languages
Chinese (zh)
Other versions
CN107450029A (en
Inventor
陈朝迎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710607837.6A priority Critical patent/CN107450029B/en
Publication of CN107450029A publication Critical patent/CN107450029A/en
Application granted granted Critical
Publication of CN107450029B publication Critical patent/CN107450029B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The embodiment of the invention provides a battery state checking method and device, computer equipment and a computer readable storage medium. The method comprises the following steps: acquiring index parameters of the battery; if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal; if the difference value between the battery temperature and the mainboard temperature is larger than a preset difference value, charging the battery by adopting a preset charging current; and if the charging parameters of the battery are preset charging parameters in the charging process, judging that the battery is in a normal working state. The battery state checking method and device, the computer equipment and the computer readable storage medium improve the accuracy of battery working state detection.

Description

Battery state checking method and device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a battery status checking method and apparatus, a computer device, and a computer-readable storage medium.
Background
The development of mobile terminals is more and more diversified, and users often select different mobile terminals according to different requirements. For example, a user who likes to take pictures may select a mobile terminal with a good picture taking effect, and a user who likes to play games may select a mobile terminal with a large memory and a high running speed. The operation of each function of the mobile terminal depends on the power supply of the battery, so the performance of the battery also determines the performance of the mobile terminal to a great extent. As the service life of the mobile terminal is prolonged, the performance of the battery is affected, and if the performance of the battery is lowered, the mobile terminal may be dangerous in use. Therefore, the detection of the battery performance is very important in the use process of the mobile terminal.
The traditional detection method is to judge the working state of the battery directly according to the temperature of the battery, and the abnormal working state is judged when the temperature of the battery is too high or too low. The detection of the battery working state needs to be completed through a detection circuit. That is, the detection result may be affected not only by the performance of the battery itself but also by the performance of the detection circuit. For example, when the device such as the resistor and the capacitor of the detection circuit is damaged due to moisture, the detection result may be inaccurate, and if the detection result is inaccurate, the use of the mobile terminal may be affected.
Disclosure of Invention
The embodiment of the invention provides a battery state checking method and device, computer equipment and a computer readable storage medium, which can improve the accuracy of battery state detection.
A battery state verification method, the method comprising:
acquiring index parameters of the battery;
if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal;
if the difference value between the battery temperature and the mainboard temperature is larger than a preset difference value, charging the battery by adopting a preset charging current; and
and if the charging parameters of the battery are preset charging parameters in the charging process, judging that the battery is in a normal working state.
A battery condition verification apparatus, the apparatus comprising:
the parameter acquisition module is used for acquiring index parameters of the battery;
the temperature acquisition module is used for acquiring the battery temperature and the mainboard temperature of the current mobile terminal if the index parameter is within a preset index range;
the charging module is used for charging the battery by adopting a preset charging current if the difference value between the battery temperature and the mainboard temperature is greater than a preset difference value;
and the state checking module is used for judging that the battery is in a normal working state if the charging parameters of the battery are preset charging parameters in the charging process.
A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of:
acquiring index parameters of the battery;
if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal;
if the difference value between the battery temperature and the mainboard temperature is larger than a preset difference value, charging the battery by adopting a preset charging current; and
and if the charging parameters of the battery are preset charging parameters in the charging process, judging that the battery is in a normal working state.
One or more non-transitory computer-readable storage media embodying computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of:
acquiring index parameters of the battery;
if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal;
if the difference value between the battery temperature and the mainboard temperature is larger than a preset difference value, charging the battery by adopting a preset charging current; and
and if the charging parameters of the battery are preset charging parameters in the charging process, judging that the battery is in a normal working state.
According to the battery state checking method and device, the computer device and the computer readable storage medium provided by the embodiment of the invention, the index parameter of the battery is firstly obtained, and if the index parameter is within the preset index range, the battery temperature and the mainboard temperature of the mobile terminal are obtained. And if the difference value between the battery temperature and the mainboard temperature is greater than the preset difference value, charging the battery by adopting a preset charging current. And judging the working state of the battery according to the charging parameters generated in the charging process of the battery. The working state of the battery is verified in various aspects such as index parameters of the battery, the temperature difference between the battery temperature and the mainboard temperature, the charging parameters of the battery and the like, the indexes of the battery are considered, meanwhile, the verification is carried out in the charging process, and the accuracy of the detection of the working state of the battery is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram showing an internal structure of an electronic apparatus according to an embodiment;
FIG. 2 is a flow diagram of a battery status verification method in one embodiment;
FIG. 3 is a flow chart of a battery status verification method in another embodiment;
FIG. 4 is a diagram showing a variation curve of a battery voltage and a battery capacity during constant current charging in the embodiment;
FIG. 5 is a flow chart of a battery status verification method in yet another embodiment;
FIG. 6 is a schematic structural diagram of a battery status verification apparatus according to an embodiment;
FIG. 7 is a schematic structural diagram of a battery status verification apparatus in another embodiment;
fig. 8 is a block diagram of a partial structure of a cellular phone related to a computer device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 1, the electronic apparatus includes a processor, a nonvolatile storage medium, an internal memory, a display screen, and an input device, which are connected by a system bus. Wherein the non-volatile storage medium of the terminal stores an operating system and computer readable instructions. The computer readable instructions, when executed by a processor, implement a battery state verification method. The processor is used for providing calculation and control capability and supporting the operation of the whole terminal. Internal memory in the electronic device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device may be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the terminal housing, or an external keyboard, a touch pad or a mouse. The input device can be used for inputting a battery state verification instruction, the display screen can be used for displaying a battery state verification result, and a user can check the battery state verification result through the display screen. The electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device, etc. Those skilled in the art will appreciate that the configuration shown in fig. 1 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
FIG. 2 is a flow diagram of a battery status verification method in one embodiment. As shown in fig. 2, the battery status verification method includes:
step 202, acquiring index parameters of the battery.
In the embodiments provided in the present invention, the battery refers to a device that can convert chemical energy into electrical energy so as to enable the electronic device to work normally. Such as a lithium battery in a mobile terminal. Generally, the battery may be an integral structure of the electronic device or may be a separate structure in the electronic device.
The index parameter is a relevant parameter for evaluating whether the battery is abnormal. In the working process of the mobile terminal, whether the working state of the battery is normal or abnormal needs to be detected, and if the working state is abnormal, a solution needs to be taken in time to ensure the safe operation of the mobile terminal. Generally, the operating state of the battery can be determined by detecting one or more index parameters of the battery. And when the one or more index parameters are displayed to be abnormal, judging that the battery is in an abnormal working state.
For example, the index parameter may be, but is not limited to, a voltage of the battery, a self-discharge rate, an internal resistance of the battery, and the like. The self-discharge rate of the battery refers to the rate percentage of the electric quantity lost by the battery in a natural state. The internal resistance of the battery refers to the magnitude of resistance formed inside the battery.
And 204, if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal.
In one embodiment, the preset index range refers to a preset value range of an index parameter of the battery in a normal working state. That is, if the index parameter is within the preset index range, the battery is considered to be possibly in a normal working state; and if the index parameter exceeds the preset index range, the battery is considered to work in an abnormal state.
And if the index parameter is within the preset index range, further verifying the battery temperature and the mainboard temperature of the mobile terminal. The battery temperature refers to the temperature of a battery in the mobile terminal, and the mainboard temperature refers to the temperature of a hardware mainboard of the mobile terminal.
In step 206, if the difference between the battery temperature and the motherboard temperature is greater than the preset difference, the battery is charged by using a preset charging current.
In one embodiment, the preset difference is a temperature difference between a battery temperature and a motherboard temperature in a normal operating state of the mobile terminal. If the difference between the battery temperature and the mainboard temperature is smaller than the preset difference, namely the temperature difference between the battery and the mainboard is smaller, the battery temperature change caused by the mainboard temperature is considered, and the battery is in a normal working state; on the contrary, when the temperature difference between the battery and the motherboard is large, the temperature change caused by the battery itself is considered, and at this time, the battery is considered to be in an abnormal working state, and further judgment needs to be performed according to the charging parameters.
The preset charging current is a preset current for checking whether the battery is in a normal working state, and generally, the preset charging current is relatively small for ensuring the safe working of the battery. And charging the battery by using the preset charging current, and verifying whether the battery is in a normal working state or not by using related parameters generated in the charging process.
In step 208, if the charging parameter of the battery is the preset charging parameter during the charging process, it is determined that the battery is in a normal working state.
In the embodiment provided by the invention, the charging parameter refers to a relevant parameter of the battery in the charging process of the battery, and the charging parameter can reflect the state change of the battery in the charging process. For example, the charging parameters may be, but are not limited to, a charging current of the battery during charging, a battery voltage, a battery capacity, a battery resistance, and the like.
Generally, a battery changes according to a curve in the charging and discharging processes, and the curve can reflect the change rule of the charging parameters of the battery and the corresponding relationship of each charging parameter. The preset charging parameter refers to a charging parameter in the curve corresponding to a certain moment, and whether the battery is in a normal working state in the charging process is judged according to the preset charging parameter.
According to the battery state checking method, firstly, index parameters of the battery are obtained, and if the index parameters are within a preset index range, the battery temperature and the mainboard temperature of the mobile terminal are obtained. And if the difference value between the battery temperature and the mainboard temperature is greater than the preset difference value, charging the battery by adopting a preset charging current. And judging the working state of the battery according to the charging parameters generated in the charging process of the battery. The working state of the battery is verified in various aspects such as index parameters of the battery, the temperature difference between the battery temperature and the mainboard temperature, the charging parameters of the battery and the like, the indexes of the battery are considered, meanwhile, the verification is carried out in the charging process, the abnormal detection result caused by the abnormal parameter is prevented, and the accuracy of the working state detection of the battery is improved.
Fig. 3 is a flowchart of a battery status checking method in another embodiment. As shown in fig. 3, the battery status verification method includes:
step 302, battery temperature is obtained.
In embodiments provided herein, the battery temperature refers to a temperature of a battery in the mobile terminal. Generally, the battery temperature can reflect the working condition of the battery, and the working state of the battery can be preliminarily judged through the battery temperature.
And 304, if the temperature of the battery exceeds a preset temperature range, acquiring index parameters of the battery.
In this embodiment, the battery of the mobile terminal has a normal temperature range in a normal operating state. The preset temperature range refers to a range of temperature generated by the battery in a normal operation state of the battery, and the battery is considered to be in an abnormal operation state when the temperature of the battery is lower or higher than the temperature range.
Specifically, the battery temperature of the mobile terminal is detected in real time, if the battery temperature exceeds a preset temperature range, the battery is considered to be in an abnormal working state, a battery state verification mechanism is started, and index parameters of the battery are obtained.
And step 306, if the index parameter is within the preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal.
In one embodiment, the battery structure comprises a temperature-sensitive resistor, and the resistance value of the temperature-sensitive resistor is in a linear relation with the battery temperature, namely, when the battery temperature changes, the resistance of the temperature-sensitive resistor changes linearly along with the battery temperature. The resistance value of the temperature-sensitive resistor can be calculated by measuring the voltage of the temperature-sensitive resistor, and the corresponding battery temperature can be obtained through the resistance value.
Generally, a Central Processing Unit (CPU) of the mobile terminal includes a temperature probe capable of detecting a hardware temperature, and the temperature of a motherboard in the mobile terminal can be obtained only by reading data of the temperature probe.
And 308, if the difference value between the battery temperature and the mainboard temperature is greater than a preset difference value, charging the battery by adopting a preset charging current.
The safety charging current is provided in the process of charging the battery, and the safety of the battery can be ensured by charging the battery in the safety charging current. Generally, the safe charging current has a corresponding relationship with the temperature of the motherboard, that is, the corresponding safe charging current can be obtained according to the temperature of the motherboard.
In one embodiment, the working state of the battery is verified in the charging process, and the specific process is as follows: and giving a charging current, detecting whether each charging parameter of the battery is normal in the process of charging by adopting the charging current, and if each charging parameter is normal, indicating that the battery works normally.
It is understood that one or more charging currents within the safe charging current may be selected to charge the battery and verify the operating state of the battery during charging. The method specifically comprises the following steps: and if the difference value between the battery temperature and the mainboard temperature is greater than a preset difference value, selecting one or more charging currents within a preset upper limit charging current to charge the battery. The preset upper limit charging current is the safe charging current corresponding to the temperature of the mainboard.
For example, if the safe operating current of the battery is 1A, 1mA, 10mA, 100mA and 1A are selected to charge the battery respectively, and whether the charging parameters of the battery are normal is checked respectively.
In step 310, if the charging parameter of the battery is a preset charging parameter during the charging process, it is determined that the battery is in a normal working state.
In one embodiment, if a plurality of charging currents are selected from the preset upper limit charging current to charge the battery, the charging parameter generated by the battery during the charging process corresponding to each charging current meets the preset charging parameter, and the battery is considered to be in a normal working state. Namely, step 310 includes: and if the charging parameters corresponding to the charging current are all preset charging parameters in the charging process, judging that the battery is in a normal working state.
Specifically, a plurality of charging currents may be set, and the minimum charging current is selected to charge the battery first, and it is verified whether the charging parameter generated by the battery is the preset charging parameter. And if the verification is passed, increasing the charging current and continuing to verify until the charging current reaches the preset upper limit charging current. And if the charging parameters corresponding to all the charging currents accord with the preset charging parameters, judging that the battery is in a normal working state.
In other embodiments provided by the present invention, the charging parameters may include, but are not limited to, battery voltage and battery capacity. During the charging process, the battery voltage and the battery capacity are changed according to a certain curve, namely, under the normal working state, the curve is certain. Then, whether the working state of the battery is normal can be verified by verifying whether the change curves of the battery voltage and the battery capacity in the charging process are preset curves.
Step 310 includes one or both of the following steps: if the change curve of the battery voltage in the charging process conforms to the preset voltage change curve, judging that the battery is in a normal working state; and if the change curve of the battery capacity in the charging process accords with the preset capacity change curve, judging that the battery is in a normal working state.
It can be understood that when the battery charging process is verified, a constant current charging mode is adopted, and the battery voltage and the battery capacity change curve corresponding to different charging currents are different. Specifically, the battery voltage and the battery capacity of the battery can be collected in real time in the process of charging by adopting the preset charging current, and a battery voltage change curve and a battery capacity change curve are generated. And if the change curve of the battery voltage conforms to the preset voltage change curve and/or the change curve of the battery capacity conforms to the preset capacity change curve, judging that the battery is in a normal working state.
Fig. 4 is a schematic diagram showing a variation curve of the battery voltage and the battery capacity during the constant current charging in the embodiment. As shown in fig. 4, the schematic diagram includes variation curves of the battery voltage and the battery capacity, and the variation curves of the battery voltage and the battery capacity corresponding to different charging currents are different. Generally, the change curves of the battery voltage and the battery capacity are parabolic in the constant current charging process.
According to the battery state checking method, when the temperature of the battery exceeds the normal temperature range, the battery is considered to be in an abnormal working state. And then checking the working state of the battery through various aspects such as index parameters of the battery, the temperature difference between the battery temperature and the mainboard temperature, the charging parameters of the battery and the like, and checking the working state of the battery through a checking process. The check process not only considers the indexes of the battery, but also considers various charging parameters in the charging process, thereby preventing the detection result from being abnormal due to the abnormality of a certain parameter and improving the accuracy of the detection of the working state of the battery.
Fig. 5 is a flow chart of a battery status verification method in yet another embodiment. As shown in fig. 5, the battery status verification method includes:
step 502, detecting that the battery temperature exceeds a preset temperature range.
In one embodiment, the battery has a normal temperature range, and is considered abnormal if the battery temperature is above or below the normal temperature range. The inventor finds out through a great deal of experiments and practices that the over-high or under-low temperature of the battery is not necessarily caused by the abnormality of the battery itself, but also caused by the abnormality of other hardware structures or the abnormality of a temperature detection circuit. Therefore, when the temperature of the battery is too high or too low, the battery may be in an abnormal operating state, and an operating state verifying mechanism of the battery needs to be further started to verify the operating state of the battery.
Step 504, detecting whether the battery voltage is normal, if so, executing step 506; if not, go to step 518.
In the present embodiment, it is first detected whether the battery voltage is normal. Generally, the voltage of the battery varies within a certain range in a normal operation state, and if it is detected that the voltage of the battery exceeds this range, the voltage is considered abnormal. That is, if it is detected that the battery voltage exceeds the preset voltage range, it is determined that the battery is in an abnormal operating state. The preset voltage range refers to a preset voltage variation range of the battery in a normal working state. And if the battery voltage is normal, performing the next verification.
Step 506, detecting whether the difference between the battery temperature and the motherboard temperature is normal, if not, executing step 508.
Generally, if the difference between the battery temperature and the motherboard temperature is small, the battery temperature is considered to be normal if the battery temperature abnormality is caused by the motherboard temperature abnormality. If the difference is larger, the battery is further verified through a charging process.
And step 508, charging the battery by adopting a preset charging current.
In one embodiment, the preset charging current is a charging current for verifying the operating state of the battery, and thus the preset charging current is often a value much smaller than the normal charging current. For example, the normal charging current is 1.5A, and the preset charging current may be 1 mA.
Step 510, detecting whether the battery voltage and the battery capacity are normal, if so, executing the step 510; if not, go to step 518.
Generally speaking, in the charging process, the voltage and the capacity of a battery are changed according to a certain curve, the voltage and the capacity of the battery generated by the battery in the charging process are verified, if the change curve of the voltage and the capacity of the battery conforms to a preset change curve, the voltage and the capacity of the battery are considered to be normally changed, and the battery is in a normal working state; otherwise, the battery is in an abnormal working state.
Step 512, increase the charging current of the battery.
Step 514, determining whether the charging current of the battery reaches a preset upper limit charging current, if yes, executing step 516; if not, go to step 510.
In one embodiment, the charging current is increased continuously within a preset upper limit charging current, and the battery voltage and the battery capacity are verified.
And 516, judging that the battery is in a normal working state, and controlling the charging current of the battery by adopting the temperature of the mainboard to charge the battery.
And if the obtained battery voltage and the battery capacity are normal when the charging current is increased every time, the battery is considered to be in a normal working state. And the charging current is controlled through the temperature of the mainboard to charge the battery, namely the temperature of the mainboard and the charging current have a corresponding relation, the charging current is obtained through the temperature of the mainboard and the corresponding relation, and the battery is charged by adopting the charging current.
In step 518, it is determined that the battery is in an abnormal operating state.
Fig. 6 is a schematic structural diagram of a battery status verification apparatus in one embodiment. As shown in fig. 6, the battery status verification apparatus 600 includes a parameter obtaining module 602, a temperature obtaining module 604, a charging module 606, and a status verification module 608. Wherein:
the parameter obtaining module 602 is configured to obtain an index parameter of the battery.
A temperature obtaining module 604, configured to obtain a current battery temperature and a current motherboard temperature of the mobile terminal if the index parameter is within a preset index range.
And the charging module 606 is configured to charge the battery by using a preset charging current if the difference between the battery temperature and the motherboard temperature is greater than a preset difference.
The state checking module 608 is configured to determine that the battery is in a normal working state if the charging parameter of the battery is a preset charging parameter during the charging process.
The battery state checking device firstly obtains the index parameter of the battery, and if the index parameter is within the preset index range, the battery temperature and the mainboard temperature of the mobile terminal are obtained. And if the difference value between the battery temperature and the mainboard temperature is greater than the preset difference value, charging the battery by adopting a preset charging current. And judging the working state of the battery according to the charging parameters generated in the charging process of the battery. The working state of the battery is verified in various aspects such as index parameters of the battery, the temperature difference between the battery temperature and the mainboard temperature, the charging parameters of the battery and the like, the indexes of the battery are considered, meanwhile, the verification is carried out in the charging process, and the accuracy of the detection of the working state of the battery is improved.
Fig. 7 is a schematic structural diagram of a battery state verifying apparatus in another embodiment. As shown in fig. 7, the battery status verification apparatus 700 includes a battery temperature acquisition module 702, a parameter acquisition module 704, a temperature acquisition module 706, a charging module 708, and a status verification module 710. Wherein:
a battery temperature obtaining module 702, configured to obtain a battery temperature.
The parameter obtaining module 704 obtains an index parameter of the battery if the battery temperature exceeds a preset temperature range.
A temperature obtaining module 706, configured to obtain a current battery temperature and a current motherboard temperature of the mobile terminal if the index parameter is within a preset index range.
The charging module 708 is configured to charge the battery with a preset charging current if a difference between the battery temperature and the motherboard temperature is greater than a preset difference.
The state checking module 710 is configured to determine that the battery is in a normal working state if the charging parameter of the battery is a preset charging parameter during the charging process.
In one embodiment, the charging module is further configured to select one or more charging currents within a preset upper limit charging current to charge the battery if a difference between the battery temperature and the motherboard temperature is greater than a preset difference.
In one embodiment, the state checking module is further configured to determine that the battery is in a normal working state if the charging parameters corresponding to the charging current are all preset charging parameters in the charging process.
In other embodiments provided by the present invention, the state checking module is further configured to determine that the battery is in a normal operating state if a variation curve of a battery voltage during the charging process conforms to a preset voltage variation curve; and/or if the change curve of the battery capacity in the charging process accords with a preset capacity change curve, judging that the battery is in a normal working state.
The division of each module in the battery status checking device is only for illustration, and in other embodiments, the battery status checking device may be divided into different modules as needed to complete all or part of the functions of the battery status checking device.
The embodiment of the invention also provides a computer readable storage medium. One or more non-transitory computer-readable storage media embodying computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of:
acquiring index parameters of the battery;
if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal;
if the difference value between the battery temperature and the mainboard temperature is larger than a preset difference value, charging the battery by adopting a preset charging current; and
and if the charging parameters of the battery are preset charging parameters in the charging process, judging that the battery is in a normal working state.
In one embodiment, the obtaining of the index parameter of the battery executed by the processor further comprises:
acquiring the temperature of the battery;
the acquiring of the index parameters of the battery comprises the following steps:
and if the battery temperature exceeds a preset temperature range, acquiring index parameters of the battery.
In one embodiment, the step of charging the battery by using a preset charging current if the difference between the battery temperature and the motherboard temperature executed by the processor is greater than a preset difference includes:
and if the difference value between the battery temperature and the mainboard temperature is greater than a preset difference value, selecting one or more charging currents within a preset upper limit charging current to charge the battery.
In another embodiment, the determining, executed by the processor, that the battery is in the normal operating state if the charging parameter of the battery is a preset charging parameter during the charging process includes:
and if the charging parameters corresponding to the charging current are all preset charging parameters in the charging process, judging that the battery is in a normal working state.
In an embodiment of the present invention, the determining that the battery is in the normal operating state if the charging parameter of the battery is the preset charging parameter during the charging process executed by the processor includes one or two of the following steps:
if the change curve of the battery voltage in the charging process conforms to the preset voltage change curve, judging that the battery is in a normal working state;
and if the change curve of the battery capacity in the charging process accords with the preset capacity change curve, judging that the battery is in a normal working state.
The embodiment of the invention also provides computer equipment. As shown in fig. 8, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technique are not disclosed, please refer to the method portion of the embodiment of the present invention. The computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the computer device as the mobile phone as an example:
fig. 8 is a block diagram of a partial structure of a cellular phone related to a computer device provided in an embodiment of the present invention. Referring to fig. 8, the handset includes: radio Frequency (RF) circuitry 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, wireless fidelity (WiFi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the downlink information to the processor 880; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 820 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 input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 800. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, which may also be referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 831 can include two portions, 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 it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 840 may include a display panel 841. In one embodiment, the Display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 800 may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuitry 860, speaker 861 and microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is output to the processor 880 for processing, and then the audio data may be transmitted to another mobile phone through the RF circuit 810, or the audio data may be output to the memory 820 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it is not an essential component of cell phone 800 and may be omitted as desired.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. In one embodiment, processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The cell phone 800 also includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 880 via a power management system that may be used to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 800 may also include a camera, a bluetooth module, and the like.
In an embodiment of the present invention, the processor 880 comprised by the mobile terminal implements the following steps when executing the computer program stored on the memory:
acquiring index parameters of the battery;
if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal;
if the difference value between the battery temperature and the mainboard temperature is larger than a preset difference value, charging the battery by adopting a preset charging current; and
and if the charging parameters of the battery are preset charging parameters in the charging process, judging that the battery is in a normal working state.
In one embodiment, the obtaining of the index parameter of the battery executed by the processor further comprises:
acquiring the temperature of the battery;
the acquiring of the index parameters of the battery comprises the following steps:
and if the battery temperature exceeds a preset temperature range, acquiring index parameters of the battery.
In one embodiment, the step of charging the battery by using a preset charging current if the difference between the battery temperature and the motherboard temperature executed by the processor is greater than a preset difference includes:
and if the difference value between the battery temperature and the mainboard temperature is greater than a preset difference value, selecting one or more charging currents within a preset upper limit charging current to charge the battery.
In another embodiment, the determining, executed by the processor, that the battery is in the normal operating state if the charging parameter of the battery is a preset charging parameter during the charging process includes:
and if the charging parameters corresponding to the charging current are all preset charging parameters in the charging process, judging that the battery is in a normal working state.
In an embodiment of the present invention, the determining that the battery is in the normal operating state if the charging parameter of the battery is the preset charging parameter during the charging process executed by the processor includes one or two of the following steps:
if the change curve of the battery voltage in the charging process conforms to the preset voltage change curve, judging that the battery is in a normal working state;
and if the change curve of the battery capacity in the charging process accords with the preset capacity change curve, judging that the battery is in a normal working state.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A battery state verification method, the method comprising:
acquiring index parameters of the battery; if the index parameter is within a preset index range, acquiring the battery temperature and the mainboard temperature of the current mobile terminal;
if the difference value between the battery temperature and the mainboard temperature is larger than a preset difference value, charging the battery by adopting a preset charging current, wherein the preset difference value is the temperature difference value between the battery temperature and the mainboard temperature in the normal working state of the mobile terminal, and the preset charging current is obtained according to the mainboard temperature; and
and if the charging parameters of the battery are preset charging parameters in the charging process, judging that the battery is in a normal working state.
2. The battery status verification method according to claim 1, wherein the obtaining of the index parameter of the battery further comprises:
acquiring the temperature of the battery;
the acquiring of the index parameters of the battery comprises the following steps:
and if the battery temperature exceeds a preset temperature range, acquiring index parameters of the battery.
3. The battery state verification method according to claim 1, wherein if the difference between the battery temperature and the motherboard temperature is greater than a preset difference, charging the battery with a preset charging current comprises:
and if the difference value between the battery temperature and the mainboard temperature is greater than a preset difference value, selecting one or more charging currents within a preset upper limit charging current to charge the battery.
4. The battery status verification method according to claim 3, wherein if the charging parameter of the battery is a preset charging parameter during the charging process, determining that the battery is in a normal operating state comprises:
and if the charging parameters corresponding to the charging current are all preset charging parameters in the charging process, judging that the battery is in a normal working state.
5. The battery state verification method according to any one of claims 1 to 4, wherein if the charging parameter of the battery is a preset charging parameter during the charging process, the determining that the battery is in a normal operating state includes one or two of the following steps:
if the change curve of the battery voltage in the charging process conforms to the preset voltage change curve, judging that the battery is in a normal working state;
and if the change curve of the battery capacity in the charging process accords with the preset capacity change curve, judging that the battery is in a normal working state.
6. A battery condition verification apparatus, the apparatus comprising:
the parameter acquisition module is used for acquiring index parameters of the battery;
the temperature acquisition module is used for acquiring the battery temperature and the mainboard temperature of the current mobile terminal if the index parameter is within a preset index range;
the charging module is used for charging the battery by adopting a preset charging current if the difference value between the battery temperature and the mainboard temperature is greater than a preset difference value; the preset difference value is the temperature difference value between the battery temperature and the mainboard temperature in the normal working state of the mobile terminal; the preset charging current is obtained according to the temperature of the mainboard;
and the state checking module is used for judging that the battery is in a normal working state if the charging parameters of the battery are preset charging parameters in the charging process.
7. The battery status verification apparatus according to claim 6, wherein the charging module is further configured to select one or more charging currents within a preset upper limit charging current to charge the battery if the difference between the battery temperature and the motherboard temperature is greater than a preset difference.
8. The battery status verification apparatus according to claim 7, wherein the status verification module is further configured to determine that the battery is in a normal operating status if the charging parameters corresponding to the charging current are preset charging parameters during the charging process.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a battery status verification method as claimed in any one of claims 1 to 5.
10. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the battery state verification method of any of claims 1-5.
CN201710607837.6A 2017-07-24 2017-07-24 Battery state checking method and device, computer equipment and computer readable storage medium Expired - Fee Related CN107450029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710607837.6A CN107450029B (en) 2017-07-24 2017-07-24 Battery state checking method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710607837.6A CN107450029B (en) 2017-07-24 2017-07-24 Battery state checking method and device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107450029A CN107450029A (en) 2017-12-08
CN107450029B true CN107450029B (en) 2020-07-03

Family

ID=60487168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710607837.6A Expired - Fee Related CN107450029B (en) 2017-07-24 2017-07-24 Battery state checking method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107450029B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109507593A (en) * 2018-12-21 2019-03-22 惠州Tcl移动通信有限公司 Enabled method, relevant apparatus and the storage medium of battery of mobile terminal
CN110427305B (en) * 2019-08-06 2023-04-11 Oppo广东移动通信有限公司 Battery leakage processing method and device, electronic equipment and readable storage medium
CN110874693A (en) * 2019-11-12 2020-03-10 东软睿驰汽车技术(沈阳)有限公司 Determination method, detection method and device for abnormal working condition of battery pack
CN111697645B (en) * 2020-06-02 2024-01-30 Oppo广东移动通信有限公司 Charging control method and device, electronic equipment and computer readable storage medium
CN114088251A (en) * 2021-11-16 2022-02-25 深圳市捷宇鑫电子有限公司 Intelligent automatic reset thermometer calibration method, system, device and storage medium
CN114252785B (en) * 2021-12-13 2024-02-27 深圳市道通智能航空技术股份有限公司 Unmanned aerial vehicle control method, electronic equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604773B (en) * 2008-06-15 2012-10-24 苏州宝时得电动工具有限公司 Battery pack and method for testing working status of same
JP6148882B2 (en) * 2013-03-13 2017-06-14 株式会社マキタ Battery pack and charger
CN103593032B (en) * 2013-11-20 2019-07-05 上海斐讯数据通信技术有限公司 A kind of electronic equipment and its control method
CN103904377B (en) * 2014-03-28 2016-03-30 努比亚技术有限公司 Fast charge method and mobile terminal
CN106329609A (en) * 2015-07-10 2017-01-11 深圳市蓝魔数码科技有限公司 Mobile terminal and temperature control method
CN106571650A (en) * 2015-10-12 2017-04-19 小米科技有限责任公司 Charging warning method and device of mobile terminal, and mobile terminal
CN105912087B (en) * 2016-04-29 2019-01-18 北京小米移动软件有限公司 A kind of mobile terminal
CN106058976B (en) * 2016-06-16 2018-11-20 重庆蓝岸通讯技术有限公司 Method for controlling heating of electronic product by adjusting charging current
CN106340933B (en) * 2016-10-18 2023-04-18 上海传英信息技术有限公司 Charging method and user terminal
CN106655397B (en) * 2017-01-13 2019-06-14 Oppo广东移动通信有限公司 Charge control method, device and electronic equipment
CN107831386A (en) * 2017-10-31 2018-03-23 奇酷互联网络科技(深圳)有限公司 Identification charging abnormal method, equipment, mobile terminal and computer-readable storage medium

Also Published As

Publication number Publication date
CN107450029A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107450029B (en) Battery state checking method and device, computer equipment and computer readable storage medium
CN104852885B (en) Method, device and system for verifying verification code
US9432391B2 (en) Method, device and apparatus for acquiring security state of mobile terminal
CN107172348B (en) Mobile terminal and distribution method and device of motion signals of mobile terminal
CN106911848B (en) Method for outputting prompt message and terminal equipment
CN108988421B (en) Battery charging method, charging circuit and terminal
US10714943B2 (en) Power management method, electronic device, and power adapter
WO2015007232A1 (en) Method, device and mobile terminal for checking message
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN111092671B (en) Signal strength reporting method and device, storage medium and terminal equipment
US11476684B2 (en) Charging protection method, terminal, and charger
US20190257887A1 (en) Method and device for ascertaining required charging time
WO2018161540A1 (en) Fingerprint registration method and related product
US20170097725A1 (en) Device and method for starting mobile terminal application and mobile terminal
CN104077211A (en) Test method and test system for mobile terminal software
CN105610878B (en) Directory uploading method, data publishing method, terminal and server
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN107291280B (en) Method and device for adjusting sensitivity of touch screen and terminal equipment
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
US9826568B2 (en) Method, system and computer-readable storage medium for reducing data transmission delay
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN107817397B (en) Charging heating abnormity detection method and terminal equipment
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN110994052B (en) Method and device for prolonging battery endurance, storage medium and terminal equipment

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200703

CF01 Termination of patent right due to non-payment of annual fee