CN112152276A - Abnormality detection method and apparatus, and storage medium - Google Patents

Abnormality detection method and apparatus, and storage medium Download PDF

Info

Publication number
CN112152276A
CN112152276A CN201910579156.2A CN201910579156A CN112152276A CN 112152276 A CN112152276 A CN 112152276A CN 201910579156 A CN201910579156 A CN 201910579156A CN 112152276 A CN112152276 A CN 112152276A
Authority
CN
China
Prior art keywords
parameter value
charging interface
charging
electrical parameter
circuit
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.)
Pending
Application number
CN201910579156.2A
Other languages
Chinese (zh)
Inventor
史岩松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910579156.2A priority Critical patent/CN112152276A/en
Publication of CN112152276A publication Critical patent/CN112152276A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0036Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Abstract

The embodiment of the application discloses an anomaly detection method, equipment and a storage medium, wherein the method comprises the following steps: when the electronic equipment is in a charging state, determining a first electrical parameter value between two ends of a connecting circuit in a charging module of the electronic equipment; the connecting circuit is used for establishing electric connection between the output end of a charging interface in the charging module and the input end of a rechargeable battery in the charging module; determining a second electrical parameter value from the input of the charging interface to the input of the rechargeable battery; and carrying out abnormity detection on the electric parameter value of the charging interface according to the relation between the first electric parameter value and a preset first threshold value and the relation between the second electric parameter value and a preset second threshold value.

Description

Abnormality detection method and apparatus, and storage medium
Technical Field
The embodiment of the application relates to electronic technology, and relates to but is not limited to an abnormality detection method, abnormality detection equipment and a storage medium.
Background
With the development of the charging technology, the charging speed of the terminal is greatly improved. However, the problem of how to ensure charging safety comes with it. A common technical means is that, when the power adapter is connected to a power supply to charge the terminal, the power adapter obtains a path impedance of a charging module in the terminal, and adjusts a charging current according to the path impedance. For example, when the path impedance is greater than the preset threshold, it is determined that the path impedance is abnormal, and at this time, the power adapter reduces the charging current, thereby ensuring charging safety. However, this method cannot determine which position in the charging module is abnormal, and the path impedance is abnormal. It should be noted that the charging module is a circuit in the terminal, which is used for cooperating with the power adapter to charge the terminal.
Based on this, in order to detect whether there is an abnormality at the charging interface in the charging module, a thermistor is usually connected to the charging interface, and whether the impedance of the charging interface is abnormal is determined by the thermistor. However, the sensitivity of the thermistor is low, so that the thermistor cannot timely judge the occurrence of the impedance abnormality, i.e., the judgment result has a large delay in time.
Disclosure of Invention
In view of the above, embodiments of the present application provide an abnormality detection method and apparatus, and a storage medium to solve at least one problem in the related art.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides an anomaly detection method, where the method includes:
when the electronic equipment is in a charging state, determining a first electrical parameter value between two ends of a connecting circuit in a charging module of the electronic equipment; the connecting circuit is used for establishing electric connection between the output end of a charging interface in the charging module and the input end of a rechargeable battery in the charging module;
determining a second electrical parameter value from the input of the charging interface to the input of the rechargeable battery;
and carrying out abnormity detection on the electric parameter value of the charging interface according to the relation between the first electric parameter value and a preset first threshold value and the relation between the second electric parameter value and a preset second threshold value.
In other embodiments, the determining a first impedance across the connection circuit comprises:
reading an input voltage, an output voltage and an input current of the connection circuit through a CPU;
determining a first impedance between two ends of the connection circuit according to the input voltage, the output voltage and the input current of the connection circuit.
In other embodiments, the performing abnormality detection on the electrical parameter value of the charging interface according to the relationship between the first electrical parameter value and a preset first threshold value and the relationship between the second electrical parameter value and a preset second threshold value includes:
and if the first electrical parameter value is smaller than or equal to the first threshold value and the second electrical parameter value is larger than the second threshold value, determining that the electrical parameter value of the charging interface is abnormal.
In other embodiments, the method further comprises:
and if the electric parameter value of the charging interface is abnormal or the first electric parameter value is larger than the first threshold value, controlling the connection circuit to be disconnected so as to disconnect the electric connection between the charging interface and the rechargeable battery.
In other embodiments, the method further comprises:
if the electric parameter value of the charging interface is abnormal, generating result data, wherein the result data carries indication information representing that the charging interface is abnormal;
and sending the result data to the power adapter connected with the charging interface so that the power adapter adjusts the output current of the power adapter according to the result data or disconnects the electric connection with the charging interface to quit the charging state.
In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device includes: a charging module and a processor; the charging module comprises a charging interface, a connecting circuit and a rechargeable battery, wherein one end of the connecting circuit is connected with one end of the charging interface, the other end of the connecting circuit is connected with the rechargeable battery, and the connecting circuit is used for establishing electric connection between the charging interface and the rechargeable battery;
the processor is configured to perform the steps of:
when the charging interface is electrically connected with a power adapter, determining a first electrical parameter value between two ends of the connecting circuit;
determining a second electrical parameter value from the input of the charging interface to the input of the rechargeable battery;
and carrying out abnormity detection on the electric parameter value of the charging interface according to the relation between the first electric parameter value and a preset first threshold value and the relation between the second electric parameter value and a preset second threshold value.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor implements the steps in the above-mentioned abnormality detection method when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the above-mentioned abnormality detection method.
In the embodiment of the application, since the first electrical parameter value and the second electrical parameter value can be quickly and accurately obtained by the processor or the controller, compared with an abnormality detection method based on a thermistor, the embodiment of the application can detect whether the electrical parameter value of the charging interface is abnormal in time, so as to determine whether the connection between the charging interface and the power adapter is abnormal.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an implementation flow of an anomaly detection method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating another implementation of an anomaly detection method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, specific technical solutions of the present application will be described in further detail below with reference to the accompanying drawings in the embodiments of the present application. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
It should be noted that the terms "first \ second \ third" referred to in the embodiments of the present application are only used for distinguishing similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under specific ordering or sequence if allowed, so that the embodiments of the present application described herein can be implemented in other orders than illustrated or described herein.
In order to facilitate readers to understand an abnormality detection method provided in the following embodiments, an embodiment of the present application first provides an electronic device, fig. 1 is a schematic structural diagram of the electronic device in the embodiment of the present application, and as shown in fig. 1, an electronic device 10 at least includes: the charging module 11, the charging module 11 includes a charging interface 111, a connection circuit 112 and a rechargeable battery 113; one end of the connecting circuit 112 is connected with the charging interface 111, and the other end of the connecting circuit is connected with the rechargeable battery 113; in other words, with the flow direction of the charging current as the reference direction, the input terminal of the connection circuit 112 is connected to the output terminal of the charging interface 111, and the output terminal of the connection circuit 112 is connected to the input terminal of the rechargeable battery 113. The connection circuit 112 is used to establish electrical connection between the output terminal of the charging interface 111 and the input terminal of the rechargeable battery 113.
Embodiments of the abnormality detection method will be described below with reference to the schematic configuration diagram of the electronic device shown in fig. 1. In embodiments of the present application, the electronic device may be any terminal having a charging capability, for example, the electronic device is a mobile phone, a tablet computer, a notebook computer, an e-reader, or the like; the electronic equipment can also be other products, for example, the electronic equipment is electric automobile, electric bicycle, unmanned aerial vehicle, portable power source, electron cigarette, wrist-watch, bracelet, intelligent glasses, the robot of sweeping the floor, wireless earphone, bluetooth stereo set, electric toothbrush, chargeable wireless mouse etc.. That is, in the embodiment of the present application, the product form of the electronic device is not limited.
An embodiment of the present application provides an anomaly detection method, and fig. 2 is a schematic flow chart illustrating an implementation of the anomaly detection method according to the embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
step 201, when the electronic device 10 is in a charging state, the electronic device 10 determines a first electrical parameter value between two ends of the connection circuit 112 in the charging module 11; the connection circuit 112 is configured to establish electrical connection between an output end of the charging interface 111 in the charging module 11 and an input end of the rechargeable battery 113 in the charging module 11;
it should be noted that, in the embodiment of the present application, the parameter type of the first electrical parameter value is not limited, and the first electrical parameter value may be a first voltage, a first impedance, or a first power between two ends of the connection circuit 112. The structure of the connection circuit 112 may also be various. For example, the connection circuit 112 includes two back-to-back MOS transistors, and such a connection circuit 112 is also referred to as a switch circuit. The electronic device 10 can control the electrical connection state (including on and off correspondingly) between the charging interface 111 and the rechargeable battery 113 by controlling the operating states (including on and off) of the two MOS transistors.
Step 202, the electronic device 10 determines a second electrical parameter value from the input end of the charging interface 111 to the input end of the rechargeable battery 113;
in general, the second electrical parameter value and the first electrical parameter value are parameter values of the same type of electrical parameter, but of course, the second electrical parameter value and the first electrical parameter value may not be parameter values of the same type of electrical parameter. For example, the first electrical parameter value is an impedance and the second electrical parameter value is a voltage.
It should be noted that the execution sequence of step 201 and step 202 is not limited herein, and in other embodiments, step 202 may be executed first, and then step 201 may be executed; alternatively, step 201 and step 202 are executed in parallel, and when step 201 and step 202 are executed in parallel, they may be processed in parallel by two chips in electronic device 10, for example, step 201 is processed by a CPU in electronic device 10, and step 202 is processed by a Micro Control Unit (MCU) in electronic device 10.
In step 203, the electronic device 10 performs abnormality detection on the electrical parameter value of the charging interface 111 according to the relationship between the first electrical parameter value and the preset first threshold value and the relationship between the second electrical parameter value and the preset second threshold value.
It will be appreciated that the exit of the charging module 11 from the charging state may be triggered if a first electrical parameter value (e.g. a first impedance) between the two ends of the connection circuit 112 is greater than said first threshold value, indicating an anomaly at the connection circuit 112. Taking the first electrical parameter value as an example of the first impedance, setting the first threshold value to be 30 milliohms, when the first impedance is greater than 30 milliohms, determining that an abnormality exists at the connection circuit 112, and if the connection circuit 112 is a switch circuit, triggering the switch circuit to enter a cut-off state; alternatively, the power adapter is notified to exit the charging state to stop charging the rechargeable battery 113.
In other embodiments, if the first electrical parameter value (e.g., the first impedance, the first voltage, or the first power) is less than or equal to a preset first threshold value, it indicates that there is no abnormality at the connection circuit 112, and if the second electrical parameter value is greater than the second threshold value, it indicates that there is an abnormality between the input terminal of the charging interface 111 and the input terminal of the rechargeable battery 113, and therefore, the cause of the abnormality between the input terminal of the charging interface 111 and the input terminal of the rechargeable battery 113 should be: the electrical connection between the charging interface 111 and the power adapter is abnormal, and at this time, the electronic device may determine that the electrical parameter value of the charging interface 111 is abnormal.
Still taking the example where the first electrical parameter value is a first impedance and the second electrical parameter value is a second impedance, the second threshold may be set to 150 milliohms.
It is understood that the reason why the abnormality exists in the electric parameter value of charging interface 111 may be: when the adapter of the power adapter or the plug of the data line is not in full contact with the charging interface 111, the impedance at the charging interface 111 is abnormal, and thus the impedance from the input end of the charging interface 111 to the input end of the rechargeable battery 113 is abnormal.
It should be noted that the preset threshold values of the different types of electrical parameters are different. That is, the unit of the first electrical parameter value and the first threshold value is the same.
In the embodiment of the present application, an abnormality detection method is provided, when an electronic device 10 having a charging module 11 is in a charging state, determining a first electrical parameter value and a second electrical parameter value, and performing abnormality detection on an electrical parameter value of a charging interface 111 according to a relationship between the first electrical parameter value and a preset first threshold value and a relationship between the second electrical parameter value and a preset second threshold value, so as to determine whether there is an abnormality in electrical connection between the charging interface 111 and a power adapter. Since the first electrical parameter value and the second electrical parameter value can be quickly and accurately obtained by a processor or a controller in the electronic device 10, the embodiment of the present application can detect whether there is a connection abnormality between the charging interface and the power adapter in time, as compared with an abnormality detection method based on a thermistor.
An embodiment of the present application provides another anomaly detection method, and fig. 3 is a schematic flow chart illustrating an implementation of another anomaly detection method according to an embodiment of the present application, and as shown in fig. 3, the method includes the following steps:
step 301, when the electronic device 10 is in a charging state, the electronic device 10 determines a first electrical parameter value between two ends of the connection circuit 112 in the charging module 11; the connection circuit 112 is configured to establish electrical connection between an output end of the charging interface 111 in the charging module 11 and an input end of the rechargeable battery 113 in the charging module 11;
step 302, the electronic device 10 determines a second electrical parameter value from the input terminal of the charging interface 111 to the input terminal of the rechargeable battery 113;
step 303, the electronic device 10 determines whether the second electrical parameter value is greater than a preset second threshold value; if so, go to step 304; otherwise, returning to execute the step 301;
it is understood that if the second electrical parameter value is greater than the second preset threshold, indicating that there is an abnormality at a certain position between the input end of the charging interface 111 and the input end of the rechargeable battery 113, a further detection is performed, that is, step 304 is performed, to detect whether the first electrical parameter value between the two ends of the connection circuit 112 is less than or equal to the first preset threshold, and if so, it is determined that there is no abnormality at the connection circuit 112, but there is an abnormality in the electrical parameter value of the charging interface 111; otherwise, it is determined that the connection circuit 112 is abnormal, and at this time, the connection circuit may be disconnected to disconnect the electrical connection between the charging interface 111 and the rechargeable battery 113, so as to ensure charging safety and reduce the risk of burning out the connection circuit 112.
Step 304, the electronic device 10 determines whether the first electrical parameter value is less than or equal to a preset first threshold value; if so, go to step 305; otherwise, go to step 307;
in other embodiments, step 303 and step 304 may also be performed in parallel, i.e. the relationship between the first electrical parameter value and the first threshold value, the relationship between the second electrical parameter value and the second threshold value is determined in parallel. Alternatively, the relationship between the first electrical parameter value and the first threshold value is determined first, and then the relationship between the second electrical parameter value and the second threshold value is determined. When the above two relationships satisfy the condition that the first electrical parameter value is less than or equal to the first threshold value and the second electrical parameter value is greater than the second threshold value, the electronic device 10 may determine that an abnormality occurs at the charging interface 111.
Step 305, the electronic device 10 determines that the electrical parameter value of the charging interface 111 is abnormal; then step 306 is entered;
step 306, the electronic device 10 generates result data and sends the result data to the power adapter connected to the charging interface, so that the power adapter adjusts its output current or disconnects the electrical connection with the charging interface according to the result data to exit the charging state; the result data carries indication information representing that the charging interface is abnormal;
when there is an abnormality in the electrical parameter value of the charging interface 111, the electronic device 10 generates result data and transmits the result data to the power adapter instead of transmitting the first electrical parameter value or the second electrical parameter value to the power adapter to cause the power adapter to perform abnormality detection, which is advantageous in that the power adapter can be caused to quickly and efficiently adjust the output current (e.g., reduce the output current) or break the electrical connection with the charging interface 111 to exit the charging state.
When the electrical parameter value of the charging interface 111 is abnormal, the electronic device 10 may output a prompt message to prompt the user to check whether the charging interface is correctly connected to the power adapter.
In other embodiments, when there is an abnormality in the electrical parameter value of the charging interface 111, the electronic device 10 may further disconnect through the control connection circuit 112 to disconnect the electrical connection between the charging interface 111 and the rechargeable battery 113 to stop charging the rechargeable battery 113.
In step 307, the electronic device 10 triggers the connection circuit 112 to disconnect the electrical connection between the charging interface 111 and the rechargeable battery 113.
In the embodiment of the application, if the first electrical parameter value is smaller than or equal to the first threshold value and the second electrical parameter value is larger than the second threshold value, it is determined that the electrical parameter value of the charging interface is abnormal, and the charging of the rechargeable battery is stopped at the moment, so that the charging safety is ensured, and the risk that the charging interface is burnt out is reduced.
The embodiment of the application provides another abnormality detection method, which comprises the following steps:
step 401, when the electronic device 10 is in a charging state, the electronic device 10 determines a second impedance from the input terminal of the charging interface 111 to the input terminal of the rechargeable battery 113;
the second impedance is also commonly referred to as a path impedance.
Step 402, the electronic device 10 determines whether the second impedance is greater than a preset second threshold; if yes, go to step 403; otherwise, returning to execute the step 401;
it is understood that if the second impedance is greater than the preset second threshold, it indicates that the path impedance is abnormal, i.e. an abnormality occurs at a certain position between the input end of the charging interface 111 and the input end of the rechargeable battery 113, and in order to determine which position the abnormality occurs specifically, the electronic device 10 needs to further detect, i.e. execute steps 403 and 404 to determine whether there is an abnormality in the electrical parameter value of the charging interface 111.
In step 403, the electronic device 10 determines a first impedance between two ends of the connection circuit 112 in the charging module 11; the connection circuit 112 is configured to establish electrical connection between an output end of the charging interface 111 in the charging module 11 and an input end of the rechargeable battery 113 in the charging module 11;
in implementation, the electronic device 10 may read the input voltage, the output voltage, and the input current of the connection circuit 112 through the CPU; a first impedance across the connecting circuit 112 is then determined based on the input voltage, the output voltage, and the input current of the connecting circuit 112. That is, the first impedance (the difference between the input voltage and the output voltage)/the input current.
It can be understood that, since the CPU can quickly and accurately read the electrical parameter values such as the input voltage, the output voltage, and the input current of the connection circuit 112, the first impedance between the two ends of the connection circuit can be determined more quickly and accurately, thereby improving the abnormality detection efficiency.
It should be noted that, the order of executing the steps 401 to 404 is not limited here, and the relationship between the first impedance and the first threshold and the relationship between the second impedance and the second threshold may be determined in parallel. If the first impedance is smaller than or equal to the first threshold value and the second impedance is larger than the second threshold value, it is determined that an abnormality exists in the electrical parameter value of the charging interface 111.
Step 404, the electronic device 10 determines whether the first impedance is smaller than or equal to a preset first threshold; if so, go to step 405; otherwise, go to step 407;
it is understood that if the first impedance is less than or equal to the first threshold, indicating that there is no abnormality at the connection circuit 112, an abnormality may occur at the charging interface 111; similarly, if the first impedance is greater than the first threshold, it indicates that there is an abnormality in the connection circuit 112, and at this time, in order to ensure charging safety and reduce the risk of burning out the connection circuit 112, the charging module 11 is triggered to exit the charging state.
Step 405, the electronic device 10 determines that the electrical parameter value of the charging interface 111 is abnormal, and then step 406 and/or step 407 are/is performed;
step 406, the electronic device 10 outputs a prompt message to prompt a user of the electronic device 10 to check whether the connection between the charging interface and the power adapter is correct;
in step 407, the electronic device 10 triggers the charging module 11 to exit the charging state.
When implemented, step 407 can be implemented in two ways: first, when the connection circuit 112 is a switch circuit, the electronic device 10 directly triggers the connection circuit to enter a cut-off state, so that the charging module 11 exits the charging state; secondly, the electronic device 10 generates result data and transmits the result data to the power adapter connected to the charging interface, so that the power adapter is electrically disconnected from the charging interface 111, thereby exiting the charging state.
An embodiment of the present application further provides an electronic device, fig. 4 is a schematic structural diagram of another electronic device in an embodiment of the present application, and as shown in fig. 4, the electronic device 40 at least includes: a charging module 41, a memory 42, a processor 43, and a controller 44; wherein the content of the first and second substances,
the charging module 41 comprises a charging interface 411, a connecting circuit 412 and a charging battery 413; one end of the connection circuit 412 is connected to the charging interface 411, and the other end of the connection circuit 412 is connected to the rechargeable battery 413; in other words, with the flow direction of the charging current as a reference direction, the input terminal of the connection circuit 412 is connected to the output terminal of the charging interface 411, and the output terminal of the connection circuit 412 is connected to the input terminal of the rechargeable battery 413. The connection circuit 412 is used for establishing electrical connection between the output end of the charging interface 411 and the input end of the rechargeable battery 413;
the memory 42 stores a computer program operable on the processor 43, and the processor 43 executes the computer program to implement the steps of the abnormality detection method according to any of the embodiments of the present application. In one example of the use of a magnetic resonance imaging system,
a processor 43 configured to: when the charging interface 411 and the power adapter are electrically connected to the charging battery 413 for charging, determining a first electrical parameter value between two ends of the connection circuit 412, generating a communication signal representing whether the connection circuit 412 is abnormal or not according to a relation between the first electrical parameter value and a preset first threshold value, and sending the communication signal to the controller 44;
in implementations, the communication signal may be a train of pulse signals. If said first electrical parameter value is less than or equal to said first threshold value, processor 43 may send a pulse signal comprising the number N of interrupts to controller 44, or may not send any information to controller 44; if said first electrical parameter value is greater than said first threshold value, processor 43 sends a pulse signal comprising a number M of interrupts to the controller. N is not equal to M, N and M are integers larger than 0, and the values of N and M can be preset.
A controller 44 configured to: receiving the communication signal; determining a second electrical parameter value from the input of charging interface 411 to the input of rechargeable battery 413; and performing abnormality detection on the electrical connection between the charging interface 411 and the power adapter according to the relationship among the communication signal, the second electrical parameter value and a preset second threshold value.
When implemented, the controller 44 may be an MCU. The controller 44 may determine whether there is an abnormality in the connection circuit 412 according to the number of interrupts carried by the received pulse signal, and when the number of interrupts carried by the pulse signal is N, determine that there is no abnormality in the connection circuit 412; when the number of interrupts carried by the pulse signal is M, it is determined that there is an abnormality in the connection circuit 412.
In other embodiments, the processor 43 is configured to: when the charging interface 411 and the power adapter are electrically connected to charge the rechargeable battery 413, determining a first impedance between two ends of the connection circuit 412, and taking the first impedance as the first electrical parameter value; if the first electrical parameter value is greater than the preset first threshold value, generating a communication signal representing the impedance abnormality of the connection circuit 412, and sending the communication signal representing the impedance abnormality of the connection circuit 412 to the controller 44; if the first electrical parameter value is less than the first threshold value, a communication signal is generated that is indicative of a normal impedance across the connection circuit 412, and the communication signal is sent to the controller 44 that is indicative of a normal impedance across the connection circuit 412.
In implementation, the processor 43 may be a CPU, and compared with an MCU, the CPU can detect the first electrical parameter value and the second electrical parameter value more accurately and quickly, and can process the detected electrical parameter values quickly, generate the communication signal, and send the communication signal to the MCU.
In other embodiments, the processor 43 is configured to: reading the input voltage, output voltage, and input current of the connection circuit 412; a first impedance across the connection circuit 412 is determined based on the input voltage, the output voltage, and the input current of the connection circuit 412.
In other embodiments, the controller 44 is configured to: determining a second impedance from the input of the charging interface 411 to the input of the rechargeable battery 413; if the second impedance is greater than the preset second threshold value and the communication signal indicates that the impedance between the two ends of the connection circuit 412 is normal, the charging module 41 is controlled to exit the charging state, and a prompt message is output to prompt the user to check the connection condition at the charging interface 411.
In the embodiment of the present application, the connection circuit 412 may be a connection circuit having various structures as long as the electrical connection between the charging interface 411 and the rechargeable battery 413 can be achieved. For example, the connection circuit 412 is a switch circuit, and the controller 44 controls whether or not to charge the rechargeable battery 413 by controlling the operating state (including an off state and an on state) of the switch circuit. In other embodiments, the connection circuit 412 may not be a switch circuit.
An embodiment of the present application further provides an electronic device, fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application, and as shown in fig. 5, the electronic device 50 at least includes: a charging module 51, a memory 52 and a processor 53; wherein the content of the first and second substances,
the charging module 51 comprises a charging interface 511, a connecting circuit 512 and a charging battery 513, wherein one end of the connecting circuit 512 is connected with one end of the charging interface 511, and the other end of the connecting circuit 512 is connected with the charging battery 513; in other words, with the flow direction of the charging current as a reference direction, the input terminal of the connection circuit 512 is connected to the output terminal of the charging interface 511, and the output terminal of the connection circuit 512 is connected to the input terminal of the charging battery 513. The connection circuit 512 is used for establishing electrical connection between the charging interface 511 and the charging battery 513;
the processor 53 is configured to perform the following steps:
when the charging interface 511 is electrically connected with the power adapter, determining a first electrical parameter value between two ends of the connecting circuit 512;
determining a second electrical parameter value from the input of the charging interface 511 to the input of the rechargeable battery 513;
and performing abnormity detection on the electric parameter value of the charging interface 511 according to the relation between the first electric parameter value and a preset first threshold value and the relation between the second electric parameter value and a preset second threshold value, so as to determine whether the electric connection between the charging interface 511 and the power adapter is abnormal.
In some embodiments, if the battery is charged quickly by direct charging, the constant voltage stage and the constant current stage are both controlled by the power adapter, and the mobile phone is used to control the quick charging MCU 605, and the switch circuit (an example of the connection circuit in the above embodiments) is controlled to control the switch of the quick charging path (an example of the charging module).
The mobile phone end quick charging MCU 605 (i.e., an example of the controller described in the above embodiment) communicates with the power adapter to notify the power adapter of the current battery voltage, and the power adapter adjusts the charging current and the charging voltage according to the communication content, thereby completing the charging process.
The current quick charging technology defines that the charging current and the charging voltage are controlled based on the path impedance, and when the path impedance is greater than a preset value, the power adapter correspondingly reduces the charging current or exits the quick charging mode; wherein the path resistance RTThe formula of (c) is as follows:
RT=(VVBUS-VBAT)/ICH (1);
in the formula, VVBUSThe voltage at a pin VBUS on a charging interface is referred to, namely the input voltage of the charging interface; vBATRefers to the voltage at the battery end, i.e. the input voltage of the rechargeable battery; i isCHRefers to the charging current, i.e. the input current of the charging interface.
The method detects the impedance of the whole quick charging path, namely the impedance on the whole path from the output of the power adapter (namely the input end of the charging interface) to the battery end (namely the input end of the rechargeable battery). When the impedance on the fast charging path is abnormal, it cannot be determined which part of the fast charging path has a problem. If the user does not contact the connector (namely the charging interface of the mobile phone end) well by using the adapter or the plug wire, the path abnormity detection can only detect the impedance abnormity on the quick charging path, so that the charging current is reduced, but the position of the impedance abnormity can not be effectively judged to improve the problem pertinently, and the user experience is influenced.
When the impedance at the connector position is abnormal, heat is continuously generated and heated during charging, which risks burning the connector. Although a Negative Temperature Coefficient (NTC) resistor is placed at a connector position during circuit design, the NTC resistor has low response sensitivity, and thus, it is not always possible to accurately and early determine a position where an impedance abnormality occurs.
Based on this, an exemplary application of the embodiment of the present application in a practical application scenario will be described below. In an embodiment, the electronic device may be a mobile terminal (e.g., a mobile phone), fig. 6 shows a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure, and as shown in fig. 6, the mobile terminal 600 includes a charging connector 601 (i.e., an example of the charging interface), a switch circuit 602 (i.e., an example of the connection circuit), a rechargeable battery 603, a CPU 604 (i.e., an example of the processor), and a fast-charging MCU 605 (i.e., an example of the controller).
As shown in fig. 6, in the embodiment of the present application, on the basis of the fast charging scheme, a communication mechanism between a CPU 604 and a fast charging MCU 605 is added. Since the CPU 604 can accurately detect the voltage (i.e., the charging voltage and the battery voltage) and the charging current across the switching circuit 602 (i.e., an example of the connection circuit), and then calculate the impedance R of the switching circuit 602 by the following formula (2)S(i.e., the first impedance):
RS=(VCH-VBAT)/ICH (2);
in the formula, VCHRefers to the charging voltage. In this way, the present impedance of the switch circuit 602 can be accurately determined. The normal impedance of the pre-switch circuit 602 is set to R1That is, when the CPU 604 detects the impedance R of the switch circuit 602SLess than R1When the impedance is defined as normal impedance, the CPU 604 does not send an instruction to the fast charge MCU 605, or the CPU 604 sends a normal pulse train 1 to the fast charge MCU 605 (the pulse train sends a specified number of interrupt numbers on the transmission communication line, and the number can be customized); when the CPU 604 detects RSWhen the impedance is greater than R1, it is defined as an abnormal impedance, at this time, the CPU 604 sends an abnormal pulse train 2 to the fast charge MCU 605, and the fast charge MCU 605605 determines whether the impedance of the current switching circuit 602 is normal or not by the number of interrupts of the received pulse train.
When the impedance of the whole path is detected to be abnormal, the fast charging MCU 605 determines whether the impedance of the switching circuit 602 is normal by determining the pulse train transmitted from the CPU 604; if the impedance of the switch circuit 602 is determined to be normal, it is determined that the impedance abnormality is derived from the position of the charging connector of the mobile phone (that is, if there are two conditions here, the path impedance is abnormal, and if the impedance of the switch circuit 602 is normal, it is determined that the impedance at the position of the charging connector 601 is abnormal), at this time, the charging is stopped and the user is prompted to check the connection condition of the charging connector 601.
In the embodiment of the application, the communication mechanism between the CPU and the fast charging MCU 605 is added to accurately determine that the impedance of the charging connector 601 is abnormal in the fast charging process, so as to improve the user experience and enhance the charging safety.
An embodiment of the present application provides an electronic device, fig. 7 is a schematic diagram of a hardware entity of the electronic device according to the embodiment of the present application, and as shown in fig. 7, the hardware entity of the electronic device 700 includes: comprising a memory 701 and a processor 702, said memory 701 storing a computer program operable on said processor 702, said processor 702 implementing the steps in the anomaly detection method provided in the above embodiments when executing said program.
The Memory 701 is configured to store instructions and applications executable by the processor 702, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 702 and modules in the electronic device 700, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the abnormality detection method provided in the above embodiments.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
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.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or a part contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including a plurality of instructions for enabling an electronic device (which may be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An anomaly detection method, characterized in that it comprises:
when the electronic equipment is in a charging state, determining a first electrical parameter value between two ends of a connecting circuit in a charging module of the electronic equipment; the connecting circuit is used for establishing electric connection between the output end of a charging interface in the charging module and the input end of a rechargeable battery in the charging module;
determining a second electrical parameter value from the input of the charging interface to the input of the rechargeable battery;
and carrying out abnormity detection on the electric parameter value of the charging interface according to the relation between the first electric parameter value and a preset first threshold value and the relation between the second electric parameter value and a preset second threshold value.
2. The method of claim 1, wherein determining the first electrical parameter value between two ends of a connection circuit in a charging module of the electronic device comprises:
determining a first impedance between the two ends of the connection circuit, the first impedance being taken as the first electrical parameter value.
3. The method of claim 2, wherein determining the first impedance across the connection circuit comprises:
detecting an input voltage, an output voltage and an input current of the connection circuit through a CPU;
determining a first impedance between two ends of the connection circuit according to the input voltage, the output voltage and the input current of the connection circuit.
4. The method according to any one of claims 1 to 3, wherein the detecting an abnormality of the electrical parameter value of the charging interface based on the relationship between the first electrical parameter value and a preset first threshold value and the relationship between the second electrical parameter value and a preset second threshold value comprises:
and if the first electrical parameter value is smaller than or equal to the first threshold value and the second electrical parameter value is larger than the second threshold value, determining that the electrical parameter value of the charging interface is abnormal.
5. The method of claim 4, further comprising:
and if the electric parameter value of the charging interface is abnormal or the first electric parameter value is larger than the first threshold value, controlling the connection circuit to be disconnected so as to disconnect the electric connection between the charging interface and the rechargeable battery.
6. The method of claim 4, further comprising:
if the electric parameter value of the charging interface is abnormal, generating result data, wherein the result data carries indication information representing that the charging interface is abnormal;
and sending the result data to a power adapter connected with the charging interface, so that the power adapter adjusts the output current of the power adapter according to the result data or disconnects the electric connection with the charging interface to quit the charging state.
7. An electronic device, characterized in that the device comprises: a charging module and a processor; the charging module comprises a charging interface, a connecting circuit and a rechargeable battery, wherein one end of the connecting circuit is connected with one end of the charging interface, the other end of the connecting circuit is connected with the rechargeable battery, and the connecting circuit is used for establishing electric connection between the charging interface and the rechargeable battery;
the processor is configured to perform the steps of:
when the charging interface is electrically connected with a power adapter, determining a first electrical parameter value between two ends of the connecting circuit;
determining a second electrical parameter value from the input of the charging interface to the input of the rechargeable battery;
and carrying out abnormity detection on the electric parameter value of the charging interface according to the relation between the first electric parameter value and a preset first threshold value and the relation between the second electric parameter value and a preset second threshold value.
8. The electronic device of claim 7, wherein the processor comprises an information processing device and a control device, wherein,
the information processing device is configured to determine a first electrical parameter value between two ends of the connecting circuit when the charging interface and the power adapter are electrically connected to charge the rechargeable battery, generate a communication signal representing whether the connecting circuit is abnormal or not according to a relation between the first electrical parameter value and a preset first threshold value, and send the communication signal to the control device;
the control device is configured to receive the communication signal; determining a second electrical parameter value from the input of the charging interface to the input of the rechargeable battery; and according to the communication signal, the second electrical parameter value and a preset second threshold value, carrying out abnormity detection on the electrical parameter value of the charging interface.
9. An electronic device comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor implements the steps in the anomaly detection method of any one of claims 1 to 6 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the anomaly detection method according to any one of claims 1 to 6.
CN201910579156.2A 2019-06-28 2019-06-28 Abnormality detection method and apparatus, and storage medium Pending CN112152276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579156.2A CN112152276A (en) 2019-06-28 2019-06-28 Abnormality detection method and apparatus, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910579156.2A CN112152276A (en) 2019-06-28 2019-06-28 Abnormality detection method and apparatus, and storage medium
PCT/CN2020/098608 WO2020259700A1 (en) 2019-06-28 2020-06-28 Anomaly detection method and device, and storage medium

Publications (1)

Publication Number Publication Date
CN112152276A true CN112152276A (en) 2020-12-29

Family

ID=73891308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579156.2A Pending CN112152276A (en) 2019-06-28 2019-06-28 Abnormality detection method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN112152276A (en)
WO (1) WO2020259700A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634072A (en) * 2016-02-26 2016-06-01 郑州宇通客车股份有限公司 Reliability judgment method and system for high-voltage link of electric vehicle charging system
CN106374567A (en) * 2016-09-27 2017-02-01 奇酷互联网络科技(深圳)有限公司 Terminal equipment, charging method thereof and load capability detection device
CN106849244A (en) * 2017-02-28 2017-06-13 维沃移动通信有限公司 A kind of voltage control method of charging inlet, charger and mobile terminal
CN108281991A (en) * 2017-01-06 2018-07-13 中兴通讯股份有限公司 A kind of circuit protection circuit, method and power cable

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109768593B (en) * 2019-01-04 2020-10-02 维沃移动通信有限公司 Charging protection method and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634072A (en) * 2016-02-26 2016-06-01 郑州宇通客车股份有限公司 Reliability judgment method and system for high-voltage link of electric vehicle charging system
CN106374567A (en) * 2016-09-27 2017-02-01 奇酷互联网络科技(深圳)有限公司 Terminal equipment, charging method thereof and load capability detection device
CN108281991A (en) * 2017-01-06 2018-07-13 中兴通讯股份有限公司 A kind of circuit protection circuit, method and power cable
CN106849244A (en) * 2017-02-28 2017-06-13 维沃移动通信有限公司 A kind of voltage control method of charging inlet, charger and mobile terminal

Also Published As

Publication number Publication date
WO2020259700A1 (en) 2020-12-30

Similar Documents

Publication Publication Date Title
EP3627652B1 (en) Charger, terminal device, and charging system
AU2014415910B2 (en) Charging protection method and apparatus
US10020664B2 (en) Wireless communication controlled battery charging station
TWI626814B (en) Method and device for controlling charging, power adapter and mobile terminal
WO2015113462A1 (en) Power adapter, terminal, and method for processing impedance anomalies in charging circuit
EP3574546B1 (en) Control method and electronic device based on battery leakage state
US20210255246A1 (en) Method for acquiring information about state of battery on basis of voltage change amount of battery during charging, and electronic device for supporting same
JP2006339070A (en) Electronic device, electronic device system, and attesting method of the same
CN112152276A (en) Abnormality detection method and apparatus, and storage medium
US20060091859A1 (en) Battery detecting system
CN106356913A (en) Electronic equipment charging control method and device
US20200220371A1 (en) Method and device for controlling charging on basis of state of battery
JP2009187720A (en) Secondary battery pack, its charging control circuit, and electronic apparatus
WO2018155270A1 (en) Charging system, battery pack, and protection device
US9197083B2 (en) Electronic apparatus, control method, and recording medium
WO2018090174A1 (en) Charging method and related device
US8084989B2 (en) Battery charger with charging reminding capability
CN211655734U (en) Over-temperature protection circuit and charging device
CN109428245B (en) Charging cable
US9368985B2 (en) Electrical system, input apparatus and charging method for input apparatus
KR20210014906A (en) Method for controlling wireless transmit power and electronic device including the same
KR20210031172A (en) Method for diagnosing status of battery, the electronic device and storage medium therefor
KR20210121885A (en) Battery and electronic device having the same
WO2018133643A1 (en) Charging control method and apparatus
JP5992282B2 (en) Electronic device, control program, and battery abnormality determination method

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