CN108594120B - Battery state detection method and device and computer readable storage medium - Google Patents

Battery state detection method and device and computer readable storage medium Download PDF

Info

Publication number
CN108594120B
CN108594120B CN201711467598.5A CN201711467598A CN108594120B CN 108594120 B CN108594120 B CN 108594120B CN 201711467598 A CN201711467598 A CN 201711467598A CN 108594120 B CN108594120 B CN 108594120B
Authority
CN
China
Prior art keywords
battery
current
voltage
charging
preset
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
Application number
CN201711467598.5A
Other languages
Chinese (zh)
Other versions
CN108594120A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711467598.5A priority Critical patent/CN108594120B/en
Publication of CN108594120A publication Critical patent/CN108594120A/en
Application granted granted Critical
Publication of CN108594120B publication Critical patent/CN108594120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a method and a device for detecting a battery state and a computer storage medium, wherein the method for detecting the battery state comprises the steps of acquiring the current mode of a battery when a detection instruction of the battery state is detected, and acquiring the current voltage of the battery when the current mode is a charging mode; judging whether the current charging current of the battery is higher than a preset threshold value or not according to the current voltage and a preset rule; and if the voltage is higher than the preset threshold value, determining that the state of the battery is abnormal. The invention accurately judges whether the charging current of the battery is abnormal or not, and prevents the abnormal heating state of the terminal caused by the abnormal charging current. The service life of the battery is prolonged, the use safety of the battery can be guaranteed, serious faults such as battery explosion are avoided, and the technical problem that the terminal heating abnormity caused by charging of the terminal battery cannot be detected in time is solved.

Description

Battery state detection method and device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a battery state, and a computer-readable storage medium.
Background
With the increase of the integrated functions on the mobile terminal, the power consumption of the terminal is also increased, and with the miniaturization of the terminal, the increase of the heat productivity of the terminal is increased. Particularly, in the charging process of the terminal battery, the charging current is easy to be overlarge, so that the temperature of the terminal equipment is rapidly increased, and the internal temperature of the terminal is overhigh. Therefore, the terminal heating abnormality caused by the charging of the terminal battery cannot be detected in time, so that the user experience is reduced, and serious faults such as battery explosion are easily caused.
Disclosure of Invention
The invention mainly aims to provide a battery state detection method, a battery state detection device and a computer readable storage medium, and aims to solve the technical problem that the terminal heating abnormity caused by charging of a terminal battery cannot be detected in time.
In order to achieve the above object, the present invention provides a method for detecting a battery state, including the steps of:
when a detection instruction of a battery state is detected, acquiring a current mode of a battery, and when the current mode is a charging mode, acquiring a current voltage of the battery;
judging whether the current charging current of the battery is higher than a preset threshold value or not according to the current voltage and a preset rule;
and if the voltage is higher than the preset threshold value, determining that the state of the battery is abnormal.
Preferably, the step of determining whether the current charging current of the battery is higher than a preset threshold according to the current voltage and a preset rule specifically includes:
determining a charging current threshold of the battery according to the current voltage, and using the charging current threshold as a preset threshold;
and acquiring the current charging current of the battery, and judging whether the current charging current is higher than the preset threshold value.
Preferably, after the step of determining the charging current threshold of the battery according to the current voltage as the preset threshold, the method further includes:
judging whether the current voltage is lower than a first preset voltage value or not;
determining that the battery is in a trickle charge mode when the current voltage is less than a first preset voltage value;
determining a trickle charge threshold of the battery as a preset threshold according to the trickle charge mode.
Preferably, after the step of determining whether the current voltage is lower than a first preset voltage value, the method further includes:
when the current voltage is higher than or equal to the first preset voltage value, judging whether the current voltage is lower than or equal to a second preset voltage value;
when the current voltage is lower than or equal to a second preset voltage value, determining that the battery is in a constant current charging mode;
and determining a constant current charging threshold value of the battery according to the constant current charging mode, wherein the constant current charging threshold value is used as a preset threshold value.
Preferably, after the step of determining that the present voltage is lower than or equal to a second preset voltage value when the present voltage is higher than or equal to the first preset voltage value, the method further includes:
when the current voltage is higher than the second preset voltage value, judging whether the current voltage is lower than or equal to a third preset voltage value;
when the current voltage is lower than or equal to a third preset voltage value, determining that the battery is in a constant-voltage charging mode;
and determining a constant voltage charging threshold value of the battery according to the constant voltage charging mode, wherein the constant voltage charging threshold value is used as a preset threshold value.
Preferably, after the step of determining whether the present voltage is lower than or equal to a third preset voltage value when the present voltage is higher than the second preset voltage value, the method further includes:
determining that the battery is in a trickle charge mode when the current voltage is greater than the third preset voltage value;
determining a trickle charge threshold of the battery as a preset threshold according to the trickle charge mode.
Preferably, after the step of acquiring the current mode of the battery when the detection instruction of the battery state is detected, and acquiring the current voltage of the battery when the current mode is the charging mode, the method further includes:
when the current mode is not the charging mode, acquiring the minimum starting voltage or the automatic shutdown voltage of the battery;
judging whether the minimum starting voltage or the automatic shutdown voltage of the battery meets a preset voltage standard or not;
and generating a corresponding battery abnormity reminding message when the minimum starting voltage or the automatic shutdown voltage does not meet the preset voltage standard.
Preferably, the method for detecting the battery state further includes:
calculating the state score of the battery according to a preset weight, the current charging current and a preset scoring rule;
and generating corresponding state score reminding information according to the state score.
In addition, in order to achieve the above object, the present invention further provides a battery status detection apparatus, which includes a processor, a memory, and a battery status detection program stored in the memory and executable on the processor, wherein the battery status detection program implements the steps of the battery status detection method as described above when executed by the processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a detection program of a battery state, which when executed by a processor, implements the steps of the detection method of a battery state as described above.
The invention provides a method and a device for detecting a battery state and a computer storage medium, wherein the method for detecting the battery state comprises the steps of acquiring the current mode of a battery when a detection instruction of the battery state is detected, and acquiring the current voltage of the battery when the current mode is a charging mode; judging whether the current charging current of the battery is higher than a preset threshold value or not according to the current voltage and a preset rule; and if the voltage is higher than the preset threshold value, determining that the state of the battery is abnormal. Through the manner, the charging current of the battery in the charging mode is monitored in real time, and the specific charging current threshold is determined by combining the current voltage of the battery, so that whether the charging current of the battery is abnormal or not is accurately judged, and the abnormal heating state of the terminal caused by the abnormal charging current is prevented. Therefore, the invention not only prolongs the service life of the battery, but also can ensure the use safety of the battery, avoid serious faults such as battery explosion and the like, and solve the technical problem that the abnormal terminal heating caused by the charging of the terminal battery cannot be detected in time.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a communication network system architecture diagram provided in the embodiment of the present invention
FIG. 3 is a schematic flow chart illustrating a method for detecting a battery status according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for detecting a battery status according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for detecting a battery status according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access2000 ), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures 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 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 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 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. 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 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 109 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 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving GateWay) 2034, a PGW (PDN GateWay) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Referring to fig. 3, fig. 3 is a schematic flow chart of a battery state detection method according to a first embodiment of the present invention.
In this embodiment, the method for detecting the battery state includes the following steps:
step S10, when a detection instruction of the battery state is detected, acquiring the current mode of the battery, and when the current mode is a charging mode, acquiring the current voltage of the battery;
along with the rapid development of the electronic industry, the intelligent degree of the mobile terminal is higher and higher. In addition to paying more attention to intelligent and humanized design, mobile terminal research and development companies integrate more and more functions on mobile terminals. As the integrated performance of the mobile terminal increases, the power consumption of the terminal also increases. In addition, the contradiction between the miniaturization requirement of the terminal and the increase of the power consumption of the terminal further increases the increase of the heat productivity of the terminal. Particularly, in the charging process of the terminal battery, the charging current is easy to be overlarge, so that the temperature of the terminal equipment is rapidly increased. However, the temperature of the terminal exceeds the preset temperature, the heating time of the terminal is long, or the heating value of the terminal is large, which easily causes the internal temperature of the terminal to be too high, and since the user cannot identify whether the heating of the terminal is normal heating or abnormal heating, the heating abnormality of the terminal is easily caused, and the abnormal heating of the terminal not only reduces the user experience, but also easily causes serious and serious faults such as battery explosion. In this embodiment, the charging current of the battery in the charging mode is monitored in real time, and the specific charging current threshold is determined by combining the current voltage of the battery, so as to accurately judge whether the charging current of the battery is abnormal, thereby being capable of finding out the abnormal heating state of the terminal in time, and taking corresponding measures according to the abnormal heating state of the terminal to prevent the abnormal heating state of the terminal caused by the abnormal charging current. Specifically, the battery state detection device obtains the current mode of the terminal battery, such as a charging mode, a shutdown mode, a startup mode, a call mode, and the like, when receiving a detection instruction of the terminal battery state. Each mode corresponds to different charging standards, and after the mode of the battery is determined, whether the current charging parameters of the battery meet the requirements or not is judged according to the charging parameter threshold value corresponding to the mode. And when the current mode of the battery is determined to be the charging mode, acquiring the current voltage of the battery, namely the current electric quantity. The detection instruction can be a detection instruction triggered by a user through a button for detecting the battery state on a terminal display interface, or can be a detection instruction automatically triggered when the battery voltage of the terminal rises.
Step S20, judging whether the current charging current of the battery is higher than a preset threshold value according to the current voltage and a preset rule;
specifically, the acquired present charging current is compared with a charging current threshold according to pre-stored voltage value data and the corresponding charging current threshold. In the charging process of the battery, the charging current mode of the battery changes along with the increase of the charging capacity. The preset rule is that a charging current mode of the battery, such as a trickle charging mode, a constant current charging mode, a constant voltage charging mode and the like, is determined according to the current voltage, a corresponding charging current threshold value is determined according to the charging current mode, and then the current charging current is compared with the charging current threshold value for judgment. In addition, the charging current thresholds corresponding to the charging current modes are different from each other. The charging current threshold corresponding to the trickle charging mode is smaller than the charging current threshold corresponding to the constant-current charging mode, and the charging current threshold corresponding to the constant-current charging mode is smaller than the charging current threshold corresponding to the constant-voltage charging mode. Wherein the charging current threshold value indicates that the battery is charged at a current below the current threshold value, and the charging speed of the battery is not too high, so that abnormal heating is not caused.
And step S30, if the current value is higher than the preset threshold, determining that the state of the battery is abnormal.
Specifically, when the current charging current of the battery is higher than the preset threshold, that is, the current charging current of the battery is too large, the battery is easily damaged or exploded. If the battery is determined to be abnormal, relevant measures need to be taken according to the abnormal state of the battery, and therefore the situation that some original devices with low requirements on the environment temperature cannot work normally due to overhigh temperature of the internal environment of the terminal or the battery in the terminal is exploded due to overhigh temperature is prevented. The relevant measure may be to stop charging the battery of the terminal or to change the charging plug with a lower charging current. The mobile terminal supplier can carry out the delivery test of the relevant mobile terminal according to the invention, thereby preventing the battery of the mobile terminal from being heated and abnormal easily after delivery due to the battery parameter, and reducing the user experience or causing the occurrence of malignant faults.
The embodiment provides a method and a device for detecting a battery state and a computer storage medium, wherein the method for detecting the battery state comprises the steps of obtaining a current mode of a battery when a detection instruction of the battery state is detected, and obtaining a current voltage of the battery when the current mode is a charging mode; judging whether the current charging current of the battery is higher than a preset threshold value or not according to the current voltage and a preset rule; and if the voltage is higher than the preset threshold value, determining that the state of the battery is abnormal. Through the manner, the charging current of the battery in the charging mode is monitored in real time, and the specific charging current threshold is determined by combining the current voltage of the battery, so that whether the charging current of the battery is abnormal or not is accurately judged, and the abnormal heating state of the terminal caused by the abnormal charging current is prevented. Therefore, the invention not only prolongs the service life of the battery, but also can ensure the use safety of the battery, avoid serious faults such as battery explosion and the like, and solve the technical problem that the abnormal terminal heating caused by the charging of the terminal battery cannot be detected in time.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for detecting a battery status according to a second embodiment of the present invention.
In this embodiment, based on the embodiment described in fig. 3, the method for detecting a battery state in the present invention specifically includes, in step S20:
step S21, determining a charging current threshold of the battery according to the current voltage as a preset threshold;
in this embodiment, the current charging current mode of the battery is further determined according to the voltage value. Specifically, the present voltage is compared to various ranges of voltage thresholds. The voltage value corresponds to the electric quantity value of the battery. The voltage threshold comprises a first preset voltage threshold, a second preset voltage threshold and a third preset voltage threshold. The first preset voltage threshold is smaller than the second preset voltage threshold, and the second preset voltage threshold is smaller than the third preset voltage threshold. The third preset voltage threshold is a voltage value at which the battery is close to saturation. And determining a charging current mode, such as a trickle charging mode, a constant-current charging mode, a constant-voltage charging mode and the like, in which the current voltage is located according to the first preset voltage threshold, the second preset voltage threshold or the third preset voltage threshold, and determining a charging current threshold, namely a preset threshold, according to the charging current mode. Such as a trickle charge threshold corresponding to the trickle charge mode, a constant current charge threshold corresponding to the constant current charge mode, a constant voltage charge threshold corresponding to the constant voltage charge mode, etc.
Step S22, obtaining a current charging current of the battery, and determining whether the current charging current is higher than the preset threshold.
Specifically, the current charging current of the battery is obtained, and the current charging current is compared with the preset threshold value for judgment. Namely, the current charging current is compared and judged with a trickle charging threshold value, a constant current charging threshold value or a constant voltage charging threshold value. And when the current charging current exceeds the trickle charging threshold, the constant current charging threshold or the constant voltage charging threshold, judging that the current charging current is too large, and generating a corresponding reminding message or taking other related measures.
The embodiment provides a method and a device for detecting a battery state and a computer storage medium, wherein the method for detecting the battery state comprises the steps of obtaining a current mode of a battery when a detection instruction of the battery state is detected, and obtaining a current voltage of the battery when the current mode is a charging mode; judging whether the current charging current of the battery is higher than a preset threshold value or not according to the current voltage and a preset rule; and if the voltage is higher than the preset threshold value, determining that the state of the battery is abnormal. Through the manner, the charging current of the battery in the charging mode is monitored in real time, and the specific charging current threshold is determined by combining the current voltage of the battery, so that whether the charging current of the battery is abnormal or not is accurately judged, and the abnormal heating state of the terminal caused by the abnormal charging current is prevented. Therefore, the invention not only prolongs the service life of the battery, but also can ensure the use safety of the battery, avoid serious faults such as battery explosion and the like, and solve the technical problem that the abnormal terminal heating caused by the charging of the terminal battery cannot be detected in time.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for detecting a battery status according to a second embodiment of the present invention.
In this embodiment, based on the embodiment described in fig. 3, the method for detecting a battery state in the present invention specifically includes, in step S21:
step S211, judging whether the current voltage is lower than a first preset voltage value;
specifically, the current voltage is compared with the first preset voltage value for judgment, and the current electric quantity of the battery is determined. The first preset voltage value is the lowest voltage value of the battery which is not overdischarged, and the battery is in an overdischarge state when the first preset voltage value is lower than the first preset voltage value. The battery charging mode in the over-discharge state should correspondingly adopt the trickle charging mode to prevent the over-discharge battery from being damaged due to the excessive current.
Step S212, when the current voltage is lower than a first preset voltage value, determining that the battery is in a trickle charge mode;
specifically, when the current voltage is determined to be lower than the first preset voltage value, the battery is determined to be an overdischarge battery, and the battery is determined to adopt a trickle charge mode. The trickle charge mode is to charge the battery by a small current value and then increase the charge current when the electric quantity or voltage of the battery exceeds a certain value.
Step S213, determining a trickle charge threshold of the battery according to the trickle charge mode as a preset threshold.
Specifically, according to pre-stored data, the trickle charge mode is acquired to determine a corresponding trickle charge threshold value, namely a preset threshold value. The trickle charge threshold is a very small current value, such as 300mA, which is a current value of 300mA per hour to charge the battery in an overdischarged state.
The embodiment provides a method and a device for detecting a battery state and a computer storage medium, wherein the method for detecting the battery state comprises the steps of obtaining a current mode of a battery when a detection instruction of the battery state is detected, and obtaining a current voltage of the battery when the current mode is a charging mode; judging whether the current charging current of the battery is higher than a preset threshold value or not according to the current voltage and a preset rule; and if the voltage is higher than the preset threshold value, determining that the state of the battery is abnormal. Through the manner, the charging current of the battery in the charging mode is monitored in real time, and the specific charging current threshold is determined by combining the current voltage of the battery, so that whether the charging current of the battery is abnormal or not is accurately judged, and the abnormal heating state of the terminal caused by the abnormal charging current is prevented. Therefore, the invention not only prolongs the service life of the battery, but also can ensure the use safety of the battery, avoid serious faults such as battery explosion and the like, and solve the technical problem that the abnormal terminal heating caused by the charging of the terminal battery cannot be detected in time.
Further, the method for detecting the battery state of the present invention further includes:
step S214, when the current voltage is higher than or equal to the first preset voltage value, judging whether the current voltage is lower than or equal to a second preset voltage value;
specifically, when it is determined that the current voltage is higher than or equal to the first preset voltage value, that is, the battery is a battery with normal electric quantity, the electric quantity or voltage of the battery is further specifically determined. Firstly, the current voltage of the battery is compared with the second preset voltage value, and whether the current voltage of the battery is lower than or equal to the second preset voltage value is judged. Wherein the second preset voltage value indicates that the battery is not over-discharged but contains less power. The second preset voltage value corresponds to a constant current charging mode, i.e., the charging can be performed with the maximum allowable charging current.
Step S215, when the current voltage is lower than or equal to a second preset voltage value, determining that the battery is in a constant current charging mode;
specifically, when it is determined that the current voltage is lower than or equal to the second preset voltage value, it is determined that the battery is in a constant current charging mode. And the constant current charging threshold corresponding to the constant current charging mode is the maximum charging threshold. The constant current charging threshold is greater than the trickle charging threshold, and the constant current charging threshold is greater than the constant voltage charging threshold.
And step S56, determining the constant current charging threshold value of the battery according to the constant current charging mode, and using the constant current charging threshold value as a preset threshold value.
Specifically, according to pre-stored data, the constant current charging mode is acquired, and a corresponding constant current charging threshold, that is, a preset threshold, is determined. The constant current charging threshold is the maximum current value, such as 400mA, that is, the battery in the state of less electric quantity is charged with a current value of 400mA per hour.
Further, the method for detecting the battery state of the present invention further includes:
step S216, when the current voltage is higher than the second preset voltage value, judging whether the current voltage is lower than or equal to a third preset voltage value;
specifically, when it is determined that the current voltage is higher than or equal to the second preset voltage value, that is, the battery is a battery with a large amount of electricity, the electricity amount or the voltage of the battery is further specifically determined. Firstly, the current voltage of the battery is compared with the third preset voltage value, and whether the current voltage of the battery is lower than or equal to the third preset voltage value is judged. And the third preset voltage value indicates that the battery has more electric quantity, and the charging current needs to be reduced so as to transition to charging the battery with the electric quantity close to the saturation state. The third predetermined voltage value corresponds to a constant voltage charging mode, i.e., charging can be performed with a small charging current.
Step S217, when the current voltage is lower than or equal to a third preset voltage value, determining that the battery is in a constant voltage charging mode;
specifically, when it is determined that the current voltage is lower than or equal to the third preset voltage value, it is determined that the battery is in the constant voltage charging mode. And the constant voltage charging threshold corresponding to the constant voltage charging mode is a larger charging threshold. The constant voltage charging threshold is greater than the trickle charging threshold and less than the constant voltage charging threshold.
Step S218, determining a constant voltage charging threshold of the battery according to the constant voltage charging mode, as a preset threshold.
Specifically, according to pre-stored data, the constant voltage charging mode is acquired to determine a corresponding constant voltage charging threshold, i.e. a preset threshold. The constant voltage charging threshold is a larger current value, for example, 350mA, that is, a battery in a low-power state is charged at a current value of 350mA per hour.
Further, the method for detecting the battery state of the present invention further includes:
step S219, when the current voltage is higher than the third preset voltage value, determining that the battery is in a trickle charge mode;
specifically, when it is determined that the current voltage is higher than or equal to the third preset voltage value, it indicates that the battery contains a charge close to a saturation state. Exceeding said third preset voltage value corresponds to a trickle charge mode, i.e. continuing the charging with the minimum charging current. The trickle charge mode is applied to the state that the battery is over-discharged or is about to be charged or is already charged, so that the electric quantity consumed by the battery can be supplemented, and the battery is not subjected to excessive current charging to cause damage to the battery.
Step S220, determining the trickle charge threshold value of the battery according to the trickle charge mode as a preset threshold value.
Specifically, when the current voltage is determined to be lower than the first preset voltage value, the battery is determined to be an overdischarge battery, and the battery is determined to adopt a trickle charge mode. The trickle charge mode is to charge the battery by a small current value and then increase the charge current when the electric quantity or voltage of the battery exceeds a certain value. And acquiring the trickle charge mode according to pre-stored data to determine a corresponding trickle charge threshold value, namely a preset threshold value. The trickle charge threshold is a very small current value, such as 300mA, which is a current value of 300mA per hour to charge the battery in an overdischarged state.
Further, the method for detecting the battery state of the present invention further includes:
step S41, when the current mode is not the charging mode, acquiring a minimum startup voltage or an automatic shutdown voltage of the battery;
specifically, when it is determined that the current mode of the battery is not the charging mode, the minimum startup voltage of the battery may be obtained by obtaining the minimum startup voltage of the battery when the battery is started, and the automatic shutdown voltage of the battery may be obtained when the battery is shut down. The automatic shutdown voltage comprises a standby automatic shutdown voltage or an automatic shutdown voltage in a call. The standby automatic shutdown voltage, the automatic shutdown voltage in the call or the minimum startup voltage are parameters for measuring the quality of the battery, and a manufacturer can detect whether the performance of the battery reaches the standard or not by detecting the parameters of the battery.
Step S42, judging whether the minimum starting voltage or the automatic shutdown voltage of the battery meets the preset voltage standard;
specifically, a pre-stored standard parameter of the battery, that is, a preset voltage parameter, is obtained, the minimum startup voltage or the automatic shutdown voltage of the battery is compared with the preset voltage standard parameter, and whether the minimum startup voltage or the automatic shutdown voltage is smaller than the preset voltage standard parameter is determined.
And step S43, when the minimum startup voltage or the automatic shutdown voltage does not meet the preset voltage standard, generating a corresponding battery abnormity prompting message.
Specifically, when the minimum startup voltage or the automatic shutdown voltage is greater than a preset voltage standard parameter, that is, the minimum startup voltage or the automatic shutdown voltage does not meet a preset voltage standard. And generating a corresponding reminding message to remind a user or a manufacturer that the startup or shutdown parameters of the battery do not meet the relevant requirements.
Further, the method for detecting the battery state of the present invention further includes:
step S51, calculating the state score of the battery according to the preset weight, the current charging current and the preset scoring rule;
specifically, according to the magnitude of the heat generation influence of the charging current mode on the battery, a corresponding preset weight is set, that is, the weight of the heat generation influence of the charging current mode on the battery is large. For example, in the constant current charging mode, the charging current is the largest, and the amount of heat generation is most likely to occur. Therefore, the charging current in the constant current charging mode has the largest influence on the heat generation of the battery, and the weight should be set to be the largest, such as 0.6. The charging current in the trickle charge mode is the smallest and most difficult to generate heat, i.e. the charging current in the trickle charge mode has the smallest influence on the battery heat generation, and the weight should be set to the smallest, e.g. 0.1. And multiplying the corresponding weight by each charging mode score to calculate the state score of the battery.
And step S52, generating corresponding state score reminding information according to the state score.
Specifically, the higher the state score of the battery is, the more the heat generation amount of the battery is, that is, the more the battery is prone to operating failure. And generating related battery state score reminding information when the battery state score is higher so as to remind a user that the battery is large in current heating, easily damages a terminal and needs to suspend charging.
The invention also provides a mobile terminal.
The mobile terminal comprises a processor, a memory and a battery state detection program which is stored on the memory and can run on the processor, wherein the battery state detection program realizes the steps of the battery state detection method when being executed by the processor.
The method implemented when the detection program of the battery state is executed may refer to each embodiment of the method for re-editing a picture of the present invention, and details thereof are not repeated herein.
The invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores thereon a battery status detection program that, when executed by a processor, implements the steps of the picture re-editing method as described above.
The method implemented when the detection program of the battery state is executed may refer to each embodiment of the method for re-editing a picture of the present invention, and details thereof are not repeated herein.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 battery state detection method is characterized by comprising the following steps:
when a detection instruction of a battery state is detected, acquiring a current mode of a battery, and when the current mode is a charging mode, acquiring a current voltage of the battery;
judging whether the current charging current of the battery is higher than a preset threshold value or not according to the current voltage and a preset rule;
if the current charging current is higher than a preset threshold value, determining that the state of the battery is abnormal;
the battery state detection method further comprises the following steps:
determining a current charging mode of the battery according to the current voltage, wherein the current charging mode comprises at least one of a trickle charging mode, a constant current charging mode and a constant voltage charging mode;
calculating the state score of the battery according to a preset weight, a preset scoring rule and the current charging mode;
and generating corresponding state score reminding information according to the state score.
2. The method for detecting a battery status according to claim 1, wherein the step of determining whether the current charging current of the battery is higher than a preset threshold according to the current voltage and a preset rule specifically comprises:
determining a charging current threshold of the battery according to the current voltage, and using the charging current threshold as a preset threshold;
and acquiring the current charging current of the battery, and judging whether the current charging current is higher than the preset threshold value.
3. The method for detecting the battery status according to claim 2, wherein the step of determining the charging current threshold of the battery according to the present voltage as a preset threshold further comprises:
judging whether the current voltage is lower than a first preset voltage value or not;
determining that the battery is in a trickle charge mode when the current voltage is less than a first preset voltage value;
determining a trickle charge threshold of the battery as a preset threshold according to the trickle charge mode.
4. The method for detecting the battery status according to claim 3, wherein after the step of determining whether the current voltage is lower than a first preset voltage value, the method further comprises:
when the current voltage is higher than or equal to the first preset voltage value, judging whether the current voltage is lower than or equal to a second preset voltage value;
when the current voltage is lower than or equal to a second preset voltage value, determining that the battery is in a constant current charging mode;
and determining a constant current charging threshold value of the battery according to the constant current charging mode, wherein the constant current charging threshold value is used as a preset threshold value.
5. The method for detecting the battery status according to claim 4, wherein after the step of determining that the present voltage is lower than or equal to a second preset voltage value when the present voltage is higher than or equal to the first preset voltage value, the method further comprises:
when the current voltage is higher than the second preset voltage value, judging whether the current voltage is lower than or equal to a third preset voltage value;
when the current voltage is lower than or equal to a third preset voltage value, determining that the battery is in a constant-voltage charging mode;
and determining a constant voltage charging threshold value of the battery according to the constant voltage charging mode, wherein the constant voltage charging threshold value is used as a preset threshold value.
6. The method for detecting a battery state according to claim 5, wherein after the step of determining whether the present voltage is lower than or equal to a third preset voltage value when the present voltage is higher than the second preset voltage value, the method further comprises:
determining that the battery is in a trickle charge mode when the current voltage is greater than the third preset voltage value;
determining a trickle charge threshold of the battery as a preset threshold according to the trickle charge mode.
7. The method for detecting a battery status according to claim 6, wherein the step of acquiring a current mode of the battery when the detection instruction of the battery status is detected, and acquiring a current voltage of the battery when the current mode is a charging mode is further followed by the steps of:
when the current mode is not the charging mode, acquiring the minimum starting voltage or the automatic shutdown voltage of the battery;
judging whether the minimum starting voltage or the automatic shutdown voltage of the battery meets a preset voltage standard or not;
and generating a corresponding battery abnormity reminding message when the minimum starting voltage or the automatic shutdown voltage does not meet the preset voltage standard.
8. A battery state detection device, characterized in that the battery state detection device comprises a processor, a memory and a battery state detection program stored in the memory and operable on the processor, wherein the battery state detection program, when executed by the processor, implements the steps of the battery state detection method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that a battery status detection program is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the battery status detection method according to any one of claims 1 to 7.
CN201711467598.5A 2017-12-28 2017-12-28 Battery state detection method and device and computer readable storage medium Active CN108594120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711467598.5A CN108594120B (en) 2017-12-28 2017-12-28 Battery state detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711467598.5A CN108594120B (en) 2017-12-28 2017-12-28 Battery state detection method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108594120A CN108594120A (en) 2018-09-28
CN108594120B true CN108594120B (en) 2021-06-18

Family

ID=63633420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711467598.5A Active CN108594120B (en) 2017-12-28 2017-12-28 Battery state detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108594120B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112805987B (en) * 2018-11-21 2022-05-17 深圳市欢太科技有限公司 Startup process control method, startup process control device, terminal equipment and computer readable storage medium
CN110824286B (en) * 2019-11-29 2022-07-19 恒大恒驰新能源汽车研究院(上海)有限公司 Charging abnormality detection method, charging device, computer device, and storage medium
CN113049871A (en) * 2019-12-27 2021-06-29 杭州海康微影传感科技有限公司 Voltage abnormity monitoring method and device and electronic equipment
CN113258627A (en) * 2020-02-12 2021-08-13 北京小米移动软件有限公司 Reverse charging method, device, terminal and storage medium
CN111552330B (en) * 2020-04-03 2021-08-03 深圳市优***科技股份有限公司 Screen heating control method and system applied to terminal starting
CN111679206B (en) * 2020-06-01 2022-09-06 Oppo(重庆)智能科技有限公司 Electric quantity detection method and device, and storage medium
CN112072196A (en) * 2020-09-11 2020-12-11 罗福英 Quick charging method and device for lithium ion battery
CN112731165B (en) * 2020-12-10 2023-10-24 中国西安卫星测控中心 Satellite storage battery current data anomaly type identification method and device
CN116298441B (en) * 2023-02-28 2023-11-07 东莞市冠达自动化设备有限公司 Outdoor power supply charge and discharge control method, equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI431835B (en) * 2011-09-08 2014-03-21 Askey Technology Jiang Su Ltd System and method for managing battery charge/discharge
CN202663151U (en) * 2012-06-29 2013-01-09 温州大学 Quick charge system for lead-acid storage batteries in photovoltaic system
CN102736034B (en) * 2012-06-29 2015-02-18 力神迈尔斯动力电池***有限公司 Method for detecting internal states of lithium ion batteries and nondestructively screening lithium ion batteries
CN103762391A (en) * 2013-12-31 2014-04-30 江苏嘉钰新能源技术有限公司 Charge method of lead-acid storage battery
CN106451627A (en) * 2016-10-21 2017-02-22 广州极飞科技有限公司 Intelligent cell charging system and control method thereof, and intelligent cell device
KR20170109485A (en) * 2016-12-12 2017-09-29 유니온라이트 주식회사 An emergency lighting with battery diagnosis function and control method thereof
CN107332316B (en) * 2017-08-23 2021-11-02 努比亚技术有限公司 Stepped charging method, mobile terminal and computer-readable storage medium

Also Published As

Publication number Publication date
CN108594120A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108594120B (en) Battery state detection method and device and computer readable storage medium
CN107546808B (en) Charging identification circuit, identification method and terminal equipment
CN107332316B (en) Stepped charging method, mobile terminal and computer-readable storage medium
CN107645189B (en) Charging protection method and mobile terminal
CN109310035B (en) Heat dissipation control method, mobile terminal and computer-readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN110399000B (en) Mobile terminal and temperature control method thereof
CN107832032B (en) Screen locking display method and mobile terminal
CN108121681B (en) Hot plug implementation method, terminal and storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN108600489B (en) Earphone, calibration method of loudspeaker, mobile terminal and readable storage medium
CN110098651B (en) Charging method, charging device, electronic equipment and readable storage medium
CN107249085B (en) Mobile terminal electric quantity display method, mobile terminal and computer readable storage medium
CN109862278B (en) Light supplementing method and device for face recognition and computer readable storage medium
CN108415549B (en) Method for improving endurance of mobile terminal, mobile terminal and readable storage medium
CN107911778B (en) Playing method based on parallel loudspeaker, mobile terminal and readable storage medium
CN113485899A (en) Information processing method, terminal device and storage medium
CN107465469B (en) Receiving sensitivity testing method, testing device and computer readable storage medium
CN113391968A (en) Static detection method and device and computer readable storage medium
CN112165136A (en) Interface arrangement and mobile terminal charge
CN107728789B (en) Starting method of one-hand operation mode, terminal and storage medium
CN107517487B (en) Call control method and mobile terminal
CN113407016A (en) Temperature control method and device, mobile terminal and storage medium
CN114498202A (en) Interface circuit device and 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
GR01 Patent grant
GR01 Patent grant