CN110988717A - Battery detection method, storage medium and terminal device - Google Patents

Battery detection method, storage medium and terminal device Download PDF

Info

Publication number
CN110988717A
CN110988717A CN201911261030.7A CN201911261030A CN110988717A CN 110988717 A CN110988717 A CN 110988717A CN 201911261030 A CN201911261030 A CN 201911261030A CN 110988717 A CN110988717 A CN 110988717A
Authority
CN
China
Prior art keywords
battery
square wave
area
ratio
voltage waveform
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.)
Granted
Application number
CN201911261030.7A
Other languages
Chinese (zh)
Other versions
CN110988717B (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.)
Shenzhen Huaxi Investment Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201911261030.7A priority Critical patent/CN110988717B/en
Publication of CN110988717A publication Critical patent/CN110988717A/en
Application granted granted Critical
Publication of CN110988717B publication Critical patent/CN110988717B/en
Active 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/392Determining battery ageing or deterioration, e.g. state of health

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Tests Of Electric Status Of Batteries (AREA)

Abstract

The invention discloses a battery detection method, a storage medium and a terminal device, wherein the method comprises the following steps: the square waves output by a square wave generator are superposed on two electrodes of the battery; performing interrupt signal synchronization on the input square wave; sampling a voltage waveform of one of the electrodes of the battery; acquiring a voltage waveform rising edge shadow area and a voltage waveform falling edge shadow area of the one electrode of the battery; calculating the ratio of the shadow area of the rising edge of the voltage waveform to the area of the rising square wave to generate a first ratio; and calculating the ratio of the area of the falling edge shadow of the voltage waveform to the area of the falling square wave to generate a second ratio. The method for testing the battery can quickly detect the service life of the battery.

Description

Battery detection method, storage medium and terminal device
Technical Field
The invention relates to the technical field of batteries, in particular to a battery detection method, a storage medium and a terminal device.
Background
With the development of communication technology, for example, terminal devices such as mobile phones become necessary for life, and users can use the terminal devices to surf the internet, watch videos, read news and the like. For a better usage experience, more and more users tend to select larger screen terminal devices.
In the use process, the larger screen leads to the direct consequence that the power consumption is increased along with the larger screen, and the charging times of the user are increased. In addition, the battery of the terminal device is damaged by frequent turning on or off of the mobile phone by the user, so that the normal use of the terminal device is affected, and therefore, performance detection needs to be performed on the battery.
However, in performance detection, a tester mostly uses a multimeter to detect the resistance of each pin of the battery, and then determines the performance of the battery according to the resistance. The error of the detection method is large, and the battery connector is easy to damage by a meter pen of the multimeter. In addition, the resistance of the battery does not fully reflect the performance of the battery.
In view of the above, a new fast battery detection method is needed so that a user can know the battery life of his/her electronic device at any time.
Disclosure of Invention
The invention aims to provide a battery detection method, a storage medium and a terminal device, which can effectively solve the problem that the service life of a current non-detachable battery cannot be quickly detected.
According to an aspect of the present invention, an embodiment of the present invention provides a battery detection method, including the following steps: the square waves output by a square wave generator are superposed on two electrodes of the battery; performing interrupt signal synchronization on the input square wave; sampling a voltage waveform of one of the electrodes of the battery; acquiring a voltage waveform rising edge shadow area and a voltage waveform falling edge shadow area of the one electrode of the battery; calculating the ratio of the shadow area of the rising edge of the voltage waveform to the area of the rising square wave to generate a first ratio; and calculating the ratio of the area of the falling edge shadow of the voltage waveform to the area of the falling square wave to generate a second ratio.
Further, after the step of calculating a ratio of a falling edge shaded area to a falling square wave area of the voltage waveform to generate a second ratio, the method further comprises: and comparing the first ratio and the second ratio with a battery life mapping table to obtain the battery life.
Further, the area of the rising square wave is equal to the square wave amplitude x the width of the rising edge of the square wave; the falling square wave area is the square wave amplitude x the width of the falling edge of the square wave.
Further, in the step of sampling the voltage waveform of the first electrode of the battery, the sampling frequency is N times of 10 times of the square wave frequency, where N is a natural number greater than or equal to 1.
Further, before the step of superimposing the square wave output by the square wave generator on the two electrodes of the battery, the method further comprises: judging whether to execute quick detection; and when judging that the rapid detection is performed, superposing the square waves output by a square wave generator at two ends of the battery.
Further, after determining whether to perform the fast detection step, the method further comprises: when the fast detection is judged not to be executed, judging whether normal detection is carried out for the first time; and when judging that the normal detection is carried out for the first time, superposing the square waves output by a square wave generator on two electrodes of the battery.
Further, after determining whether the normal detection step is performed for the first time when it is determined that the rapid detection is not performed, the method further includes: and when judging that the normal detection is not carried out for the first time, acquiring the battery charging and discharging data stored in the terminal equipment.
Further, after the step of obtaining the battery charging and discharging data stored in the terminal device, the method further comprises: and calculating the service life of the battery according to the acquired battery charging and discharging data.
According to another aspect of the present invention, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, the instructions being suitable for being loaded by a processor to execute the above battery detection method.
According to another aspect of the present invention, an embodiment of the present invention provides a terminal device, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the battery detection method described above.
The invention has the advantages that the invention supports two methods for judging the service life of the battery, namely, the method adopts the steps of recharging to a full value after complete discharging, and checking the ratio of the sum of the charging quantity and the nominal capacity of the battery to judge the quality, and the method is most accurate but needs a complete charging and complete discharging process. And secondly, quick electric quantity judgment is supported, and especially when the electric quantity of a new buyer and a purchased mobile phone is in a problem, service suggestions can be provided through quick identification, so that the satisfaction degree of a user can be improved to the maximum extent, and more time is saved for the user.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating steps of a battery detection method according to an embodiment of the present invention.
Fig. 2 is an image of a battery life mapping table provided by an embodiment of the present invention when the battery capacity is 100%.
Fig. 3 is an equivalent circuit diagram of the battery charging and discharging according to the embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Fig. 5 is another schematic structural diagram of the terminal device according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments, and all other embodiments obtained by those skilled in the art without any inventive work based on the embodiments of the present invention belong to the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, whereby features defined as "first", "second" may explicitly or implicitly include one or more of those features, in the description of the invention "plurality" means two or more unless explicitly defined otherwise.
As shown in fig. 1, a flowchart of steps of a battery detection method according to an embodiment of the present invention is provided, where the method includes the following steps:
step S110: determining whether to perform a fast check
Step S120: the square wave output by a square wave generator is superposed on two electrodes of the battery.
When it is determined that the fast detection is performed after the step S110 is performed, the step S120 is performed.
In step S120, the output square wave is superimposed on the two electrodes of the battery, and the discharging current exceeds half of the rated charging current.
Step S130: and synchronizing the interrupt signals of the input square waves.
In step S130, the square wave output port detects the interrupt signal mainly for synchronizing with the rising edge and the falling edge of the square wave.
Step S140: the voltage waveform of one of the electrodes of the cell is sampled.
In step S140, the sampling frequency is N times of 10 times the square wave frequency, where N is a natural number greater than or equal to 1. And as the sampling frequency is increased, the sampling area obtained by each sampling is closer to the actual shadow area of the square wave. The electrode for specific sampling is the positive electrode.
See also figure 2.
Step S150: obtaining a rising edge shaded area S1 of the voltage waveform and a falling edge shaded area S2 of the voltage waveform for the one electrode of the cell.
The rising edge shaded area S1 of the voltage waveform and the falling edge shaded area S2 of the voltage waveform are the sum of the areas of each sample after a plurality of samples. Where the sampling area is the sampled voltage value multiplied by the sampling time interval.
In actual operation, pulses with a certain specific frequency are given to the anode and the cathode of the battery, the waveform response of the anode of the battery is observed, and how long it takes for the voltage at the two ends of the battery to recover to the rising edge and the falling edge of the square wave is measured. Since the battery itself can be regarded as a huge capacitor, when the rising edge of the square wave comes, it is equivalent to a pulse energy applied to the battery, and then the battery will absorb the energy of the pulse current, and the voltage continuously rises in the absorbing process, and takes the shape of an arc curve, reaches the upper edge of the square wave voltage, and then stabilizes at the upper edge. When the falling edge of the square wave comes, the battery discharges through the square wave generating circuit, the voltage of the battery rapidly drops to form an arc-shaped curve, and the battery reaches the lower edge of the square wave.
The battery life map shown in fig. 2 is measured when the measured value of the remaining capacity (remaining life) of the battery is 100%. The ratio of the shaded area to the square wave area is different. Different patterns are obtained due to different remaining battery capacities. Thus, the life of the battery can be determined according to the ratio of the shaded areas (i.e., S1 and S2) in the different patterns. According to the shadow area ratio difference, sampling 0-100 times for a certain type of battery to obtain the battery life mapping table of the type. When a battery to be measured is randomly given, the terminal equipment can obtain the percentage value of the service life of the battery according to the measured shadow area percentage.
Step S160: the ratio of the rising edge shaded area S1 of the voltage waveform to the rising square wave area is calculated, generating a first ratio.
Step S170: the ratio of the falling edge shaded area S2 of the voltage waveform to the falling square wave area is calculated, generating a second ratio.
In step S160 and step S170, the area of the rising square wave is equal to the square wave amplitude x the width of the rising edge of the square wave. The falling square wave area is the square wave amplitude (i.e., H as shown in fig. 2) x the width of the falling edge of the square wave. When the user obtains the first ratio and the second ratio, the battery life can be roughly judged according to specific data.
Step S180: and comparing the first ratio and the second ratio with a battery life mapping table to obtain the battery life.
This step is an optional step, and in order to let the client know the condition of the battery life more accurately, the obtained first ratio and second ratio can be compared with the battery life mapping table to obtain the specific value of the battery life.
Step S121: and judging whether normal detection is carried out for the first time.
When it is determined that the rapid detection is not performed after the step S110 is performed, it is determined whether the normal detection is performed for the first time.
Step S122: and acquiring battery charging and discharging data stored in the terminal equipment.
And when judging that the normal detection is not carried out for the first time, acquiring the battery charging and discharging data stored in the terminal equipment.
Referring to fig. 3, according to the schematic diagram of the present discharge circuit, the specific method for acquiring the charging and discharging data can take the battery 1 and the internal resistance 2 into consideration, and divide the battery 1 completely without the internal resistance 2 into a battery 1 connected in series with the internal resistance 2 with a small resistance. In this case, if the external load is light (i.e., there are few electronic components connected across the battery), the voltage distributed across the internal resistance 1 is small, whereas if the external load is heavy (i.e., there are many electronic components connected across the battery), the voltage distributed across the internal resistance 1 is relatively large, and a part of the power is consumed at the internal resistance 1 (which may be converted into heat or some complicated reverse electrochemical reaction). The internal resistance 2 of a rechargeable battery 1 when leaving the factory is relatively small, but after long-term use, due to the exhaustion of the electrolyte inside the battery 1 and the reduction of the activity of the chemical substances inside the battery 1, the internal resistance 2 will gradually increase until the internal resistance 2 is so large that the electric quantity inside the battery 1 cannot be normally released, and at this time, the remaining life percentage of the battery 1 is very low. Specifically, the value of the inner group 2 in the battery 1 can be obtained by comparing the fully charged battery 1 with the original capacity of the battery 1.
Step S123: and calculating the service life of the battery according to the acquired battery charging and discharging data.
After each complete charging and discharging period, the charging and discharging data is recorded in the terminal equipment.
The invention has the advantages that the invention supports two methods for judging the service life of the battery, namely, the method adopts the steps of recharging to a full value after complete discharge, and checking the ratio of the sum of the charged electric quantity and the nominal capacity of the battery to judge the quality. This approach is most accurate, but requires a complete charging and a complete discharging process. And secondly, quick electric quantity judgment is supported, and especially when the electric quantity of a new buyer and a purchased mobile phone is in a problem, service suggestions can be provided through quick identification, so that the satisfaction degree of a user can be improved to the maximum extent, and more time is saved for the user.
As shown in fig. 4, a terminal device is further provided for the embodiment of the present invention, and the terminal device may be a mobile phone, a tablet computer, a television, a display, a notebook computer, a digital photo frame, and a navigator, but is not limited thereto. Specifically, as shown in fig. 4, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of memory partitions, the plurality of memory partitions includes a system partition and a target partition, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
the square wave output by a square wave generator is superposed on two electrodes of the battery, wherein the two electrodes comprise a first electrode;
performing interrupt synchronization on the input square waves;
sampling a voltage waveform of one of the electrodes of the battery;
acquiring a voltage waveform rising edge shadow area and a voltage waveform falling edge shadow area of the one electrode of the battery;
calculating the ratio of the shadow area of the rising edge of the voltage waveform to the area of the rising square wave to generate a first ratio; and
and calculating the ratio of the area of the falling edge shadow of the voltage waveform to the area of the falling square wave to generate a second ratio.
Fig. 5 is a block diagram showing a specific structure of a terminal device according to an embodiment of the present invention, where the terminal device may be used to implement the battery detection method provided in the foregoing embodiment. The terminal device 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access for Wireless communications, Wi-Max), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the battery detection method in the above-mentioned embodiment, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the battery detection method. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means 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 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 5, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the 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 gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
the square wave output by a square wave generator is superposed on two electrodes of the battery, wherein the two electrodes comprise a first electrode;
performing interrupt synchronization on the input square waves;
sampling a voltage waveform of one of the electrodes of the battery;
acquiring a voltage waveform rising edge shadow area and a voltage waveform falling edge shadow area of the one electrode of the battery;
calculating the ratio of the shadow area of the rising edge of the voltage waveform to the area of the rising square wave to generate a first ratio; and
and calculating the ratio of the area of the falling edge shadow of the voltage waveform to the area of the falling square wave to generate a second ratio.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any audio signal invoking method provided by the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any battery detection method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any battery detection method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (10)

1. A battery detection method is characterized by comprising the following steps:
the square waves output by a square wave generator are superposed on two electrodes of the battery;
performing interrupt signal synchronization on the input square wave;
sampling a voltage waveform of one of the electrodes of the battery;
acquiring a voltage waveform rising edge shadow area and a voltage waveform falling edge shadow area of the one electrode of the battery;
calculating the ratio of the shadow area of the rising edge of the voltage waveform to the area of the rising square wave to generate a first ratio; and
and calculating the ratio of the area of the falling edge shadow of the voltage waveform to the area of the falling square wave to generate a second ratio.
2. The battery test method of claim 1, further comprising, after the step of calculating a ratio of a trailing edge shadow area to a falling square wave area of the voltage waveform to generate the second ratio, the step of:
and comparing the first ratio and the second ratio with a battery life mapping table to obtain the battery life.
3. The battery test method of claim 1, wherein the area of the rising square wave is square wave amplitude x width of the rising edge of the square wave;
the falling square wave area is the square wave amplitude x the width of the falling edge of the square wave.
4. The battery test method of claim 1, wherein in the step of sampling the voltage waveform of the first electrode of the battery, the sampling frequency is N times of 10 times the square wave frequency, where N is a natural number greater than or equal to 1.
5. The battery test method according to claim 1, further comprising, before the step of superimposing the square wave output by the square wave generator on both electrodes of the battery:
judging whether to execute quick detection; and
when it is judged that the rapid detection is performed, the square waves output by the square wave generator are superimposed on both ends of the battery.
6. The battery test method of claim 5, after determining whether to perform the rapid test step, further comprising:
when the fast detection is judged not to be executed, judging whether normal detection is carried out for the first time; and
when the normal detection is judged to be carried out for the first time, the square waves output by the square wave generator are superposed on the two electrodes of the battery.
7. The battery test method according to claim 6, further comprising, after determining whether the normal test step is performed for the first time when it is determined that the rapid test is not performed:
and when judging that the normal detection is not carried out for the first time, acquiring the battery charging and discharging data stored in the terminal equipment.
8. The battery test method of claim 7, further comprising, after the step of obtaining battery charge-discharge data stored in the terminal device:
and calculating the service life of the battery according to the acquired battery charging and discharging data.
9. A computer readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the battery test method of any of claims 1 to 8.
10. A terminal device comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the battery detection method according to any one of claims 1 to 8.
CN201911261030.7A 2019-12-10 2019-12-10 Battery detection method, storage medium and terminal device Active CN110988717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911261030.7A CN110988717B (en) 2019-12-10 2019-12-10 Battery detection method, storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911261030.7A CN110988717B (en) 2019-12-10 2019-12-10 Battery detection method, storage medium and terminal device

Publications (2)

Publication Number Publication Date
CN110988717A true CN110988717A (en) 2020-04-10
CN110988717B CN110988717B (en) 2022-03-25

Family

ID=70091942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911261030.7A Active CN110988717B (en) 2019-12-10 2019-12-10 Battery detection method, storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN110988717B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117607710A (en) * 2024-01-24 2024-02-27 山东秦鲁能源科技有限公司 New energy battery performance detection circuit

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200965566Y (en) * 2006-10-11 2007-10-24 李宏茂 A storage battery automatic detection device
CN101383436A (en) * 2008-09-10 2009-03-11 崧顺电子(深圳)有限公司 Battery charging method and apparatus
CN102638078A (en) * 2012-04-12 2012-08-15 北京航空航天大学 Multifunctional power supply system for field work
CN103675692A (en) * 2012-09-26 2014-03-26 财团法人车辆研究测试中心 Battery state-of-health detecting method and device
TW201413272A (en) * 2012-09-21 2014-04-01 Automotive Res & Testing Ct Method and device for detecting state-of-health (SOH) of batteries
CN104064718A (en) * 2013-08-16 2014-09-24 超威电源有限公司 Lead-acid storage battery and electric vehicle applying same
US20160011274A1 (en) * 2013-03-26 2016-01-14 Kabushiki Kaisha Toshiba Battery life estimation method and battery life estimation apparatus
CN106528951A (en) * 2016-10-18 2017-03-22 张家港莫特普数据科技有限公司 Life prediction and safety warning methods and apparatuses for power battery
CN109116241A (en) * 2018-06-28 2019-01-01 厦门美图移动科技有限公司 A kind of battery testing method, mobile terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200965566Y (en) * 2006-10-11 2007-10-24 李宏茂 A storage battery automatic detection device
CN101383436A (en) * 2008-09-10 2009-03-11 崧顺电子(深圳)有限公司 Battery charging method and apparatus
CN102638078A (en) * 2012-04-12 2012-08-15 北京航空航天大学 Multifunctional power supply system for field work
TW201413272A (en) * 2012-09-21 2014-04-01 Automotive Res & Testing Ct Method and device for detecting state-of-health (SOH) of batteries
CN103675692A (en) * 2012-09-26 2014-03-26 财团法人车辆研究测试中心 Battery state-of-health detecting method and device
US20160011274A1 (en) * 2013-03-26 2016-01-14 Kabushiki Kaisha Toshiba Battery life estimation method and battery life estimation apparatus
CN104064718A (en) * 2013-08-16 2014-09-24 超威电源有限公司 Lead-acid storage battery and electric vehicle applying same
CN106528951A (en) * 2016-10-18 2017-03-22 张家港莫特普数据科技有限公司 Life prediction and safety warning methods and apparatuses for power battery
CN109116241A (en) * 2018-06-28 2019-01-01 厦门美图移动科技有限公司 A kind of battery testing method, mobile terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李川江: "锂离子电池健康智能评估方法研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117607710A (en) * 2024-01-24 2024-02-27 山东秦鲁能源科技有限公司 New energy battery performance detection circuit
CN117607710B (en) * 2024-01-24 2024-04-12 山东秦鲁能源科技有限公司 New energy battery performance detection circuit

Also Published As

Publication number Publication date
CN110988717B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN108663627B (en) Battery self-discharge detection method and battery self-discharge detection device
CN107450029B (en) Battery state checking method and device, computer equipment and computer readable storage medium
CN111092671B (en) Signal strength reporting method and device, storage medium and terminal equipment
EP2903246A1 (en) Voice recognition function realizing method and device
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN110994052B (en) Method and device for prolonging battery endurance, storage medium and terminal equipment
CN110988717B (en) Battery detection method, storage medium and terminal device
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN111313986A (en) Test circuit structure and antenna test method
CN107817397B (en) Charging heating abnormity detection method and terminal equipment
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN111603154A (en) Heart rhythm detection method and device, storage medium and mobile terminal
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN112531835B (en) Mobile terminal charging method and device, storage medium and mobile terminal
CN109561415B (en) NFC function detection method and device, storage medium and mobile terminal
CN112202464B (en) Identification card detection method and device, storage medium and mobile terminal
CN111521375B (en) Gamma value determination method and device
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230407

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen Huaxi Investment Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.