[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110768315B - Protection method and system for charging interface and storage medium - Google Patents

Protection method and system for charging interface and storage medium Download PDF

Info

Publication number
CN110768315B
CN110768315B CN201810837733.9A CN201810837733A CN110768315B CN 110768315 B CN110768315 B CN 110768315B CN 201810837733 A CN201810837733 A CN 201810837733A CN 110768315 B CN110768315 B CN 110768315B
Authority
CN
China
Prior art keywords
charging
terminal
line
loop
power line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810837733.9A
Other languages
Chinese (zh)
Other versions
CN110768315A (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.)
Xian Zhongxing New Software Co Ltd
Original Assignee
Xian Zhongxing New Software 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 Xian Zhongxing New Software Co Ltd filed Critical Xian Zhongxing New Software Co Ltd
Priority to CN201810837733.9A priority Critical patent/CN110768315B/en
Publication of CN110768315A publication Critical patent/CN110768315A/en
Application granted granted Critical
Publication of CN110768315B publication Critical patent/CN110768315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention discloses a protection method of a charging interface, which is applied to a terminal, wherein the charging interface of the terminal comprises a first power line and a first loop line, a voltage sampling module and a current source are arranged between the first power line and the first loop line, and a first conduction module is arranged on the first power line, and the method comprises the following steps: acquiring a charging detection instruction; responding to a charging detection instruction, sending a detection control signal to a power adapter, controlling the first conduction module to be disconnected, and controlling the first power line, the current source and the first loop to be conducted to form a charging detection loop; detecting the impedance corresponding to the first power line on the charging detection loop through a voltage sampling module to obtain voltage drop information; when the voltage drop information is not greater than a preset voltage drop value, starting charging; when the voltage drop information is larger than the preset voltage drop finger, charging is not started. The embodiment of the invention also discloses a protection system and a storage medium of the charging interface.

Description

Protection method and system for charging interface and storage medium
Technical Field
The present invention relates to charging technologies in the field of electronic technologies, and in particular, to a method and a system for protecting a charging interface, and a storage medium.
Background
The existing terminals are charged by a charger, so that the terminals can be recycled under the environment-friendly condition. The charger is a charging device composed of a power adapter and a charging wire through which a terminal is connected to the power adapter. When the power adapter is externally connected with a power supply, the voltage adapter converts the input alternating voltage of the externally connected power supply into direct voltage, and the direct voltage is transmitted to the terminal through the charging wire to complete charging of the terminal. However, most of the charging interfaces of the terminals are generally exposed to the outside, and the pins of the charging interfaces exposed to the outside for a long time are stained, corroded, oxidized, etc., especially when the pins VBUS of the power line of the charging interfaces are stained, corroded, oxidized, etc., the impedance R of the charging loop is increased; thus, during the charging of the constant current I, according to the power p=i 2 And R, the terminal charging interface can damage the terminal due to overheat, so that the terminal is not available.
In the prior art, when the terminal charging interface is prevented from being damaged due to overheat, a thermistor is usually arranged at the terminal charging interface and used for disconnecting charging when the temperature at the terminal charging interface is detected to exceed a preset temperature threshold; in addition, there is another scheme that impedance on a charging loop is detected during charging, and charging is disconnected when the impedance exceeds a preset impedance threshold. However, in the above detection scheme of the terminal charging interface, both the detection of the temperature at the terminal charging interface and the detection of the impedance on the charging circuit are performed during charging, there is still a risk that the terminal is damaged due to overheating of the terminal charging interface, and the safety usability of the terminal cannot be guaranteed.
Disclosure of Invention
In order to solve the technical problems, embodiments of the present invention are expected to provide a protection method, a system, and a storage medium for a charging interface, which can ensure the safety and usability of a terminal.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a protection method of a charging interface, which is applied to a terminal, wherein the charging interface of the terminal comprises a first power line and a first loop line, a voltage sampling module and a current source are arranged between the first power line and the first loop line, and a first conduction module is arranged on the first power line, and the method comprises the following steps:
acquiring a charging detection instruction;
responding to the charging detection instruction, sending a detection control signal to a power adapter, controlling the first conduction module to be disconnected, and controlling the first power line, the current source and the first loop to be conducted to form a charging detection loop;
detecting the impedance corresponding to the first power line on the charging detection loop through the voltage sampling module to obtain voltage drop information;
when the voltage drop information is not greater than a preset voltage drop value, starting charging;
and when the voltage drop information is larger than the preset voltage drop value, not starting charging.
In the above scheme, the detecting, by the voltage sampling module, the impedance corresponding to the first power line on the charging detection loop to obtain the voltage drop information includes:
respectively acquiring a first voltage value at a first detection point on the first power line and a second voltage value at a second detection point on the first loop through the voltage sampling module;
and calculating a voltage difference value between the first voltage value and the second voltage value to obtain the voltage drop information.
In the above aspect, the starting of charging includes:
sending a charging control signal to the power adapter, controlling the first power line to be conducted through the first conducting module, and setting the current source to be in a high-resistance state;
receiving an electric signal sent by the power adapter according to the charging control signal;
and charging according to the electric signal.
In the above scheme, the first conduction module is a first single pole single throw switch.
In the above scheme, the first conduction module is a first transistor, the first transistor is connected with the first control module, and the first control module is used for controlling the conduction and disconnection of the first transistor.
In the above scheme, the preset voltage drop value is calculated according to a current value corresponding to the current source and a preset loop impedance limit value.
In the above aspect, before the acquiring the charge detection instruction, the method further includes:
detecting whether a voltage exists on the first power line when a second power line of the power adapter is connected with the first power line and a second loop line of the power adapter is connected with the first loop line;
accordingly, the acquiring the charging detection instruction includes:
and when the voltage on the first power line is detected, acquiring the charging detection instruction.
In the above scheme, the first power line is sequentially provided with a connection point corresponding to the voltage sampling module, a connection point corresponding to the current source and a first conduction module from the outer end of the charging interface to the inner end of the terminal, and the first loop line is sequentially provided with a connection point corresponding to the voltage sampling module and a connection point corresponding to the current source from the outer end of the charging interface to the inner end of the terminal.
The embodiment of the invention provides a protection method of a charging interface, which is applied to a power adapter, wherein the charging interface of the power adapter comprises a second power line and a second return line, a second conduction module is arranged on the second power line, and a third conduction module is arranged between the second power line and the second return line, and the method comprises the following steps:
Receiving a detection control signal sent by a terminal;
and according to the detection control signal, controlling the second conduction module to be disconnected and controlling the third conduction module to be conducted to form a charging detection loop.
In the above aspect, after the forming the detection loop, the method further includes:
receiving a charging control signal sent by the terminal;
according to the charging control signal, controlling the second conduction module to be conducted and controlling the third conduction module to be disconnected to form a charging loop;
and sending an electric signal to the terminal through the charging loop.
In the above scheme, the second conduction module is a second single-pole single-throw switch, and the third conduction module is a third single-pole single-throw switch.
In the above scheme, the second conduction module is a second transistor, the third conduction module is a third transistor, the second transistor and the third transistor are respectively connected with a second control module, the second transistor and the third transistor are transistors with opposite level types, and the second control module is used for controlling the conduction of the second transistor and the disconnection of the third transistor, or controlling the disconnection of the second transistor and the conduction of the third transistor.
In the above scheme, the detection control signal sent by the receiving terminal includes:
and when an external power supply is connected, the second power line is connected with the first power line of the terminal, and the second loop line is connected with the first loop line of the terminal, the detection control signal sent by the terminal is received.
In the above scheme, the second power line is sequentially provided with a connection point corresponding to the third conduction module and the second conduction module from the outer end of the charging interface to the inner end of the power adapter.
The embodiment of the invention provides a terminal, a charging interface of the terminal comprises a first power line and a first loop line, a voltage sampling module and a current source are arranged between the first power line and the first loop line, a first conduction module is arranged on the first power line, and the terminal further comprises: the charging interface protection device comprises a processor, a memory, a receiver and a first communication bus, wherein the memory and the receiver are communicated with the processor through the first communication bus, the memory stores one or more programs executable by the processor, and the protection method of the charging interface is executed by the processor when the one or more programs are executed.
The embodiment of the invention provides a computer readable storage medium, which is applied to a terminal, wherein the computer readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the protection method of a charging interface.
The embodiment of the invention provides a power adapter, wherein a charging interface of the power adapter comprises a second power line and a second loop line, a second conduction module is arranged on the second power line, a third conduction module is arranged between the second power line and the second loop line, and the power adapter further comprises a second communication bus, and the second communication bus is communicated with a terminal to realize the protection method of the charging interface.
The embodiment of the invention provides a computer readable storage medium, which is applied to a power adapter and stores one or more programs, wherein the one or more programs can be executed by one or more processors to realize the protection method of a charging interface.
The embodiment of the invention provides a protection method and a system for a charging interface and a storage medium, wherein the charging interface of a terminal comprises a first power line and a first loop line, a voltage sampling module and a current source are arranged between the first power line and the first loop line, and a first conduction module is arranged on the first power line; the charging interface of the power adapter comprises a second power line and a second loop line, a second conduction module is arranged on the second power line, and a third conduction module is arranged between the second power line and the second loop line. Firstly, a terminal acquires a charging detection instruction; then, responding to a charging detection instruction, sending a detection control signal to the power adapter, and controlling the first conduction module to be disconnected, and conducting the first power line, the current source and the first loop line to form a charging detection loop; finally, detecting the impedance corresponding to the first power line on the charging detection loop through the voltage sampling module to obtain voltage drop information; when the voltage drop information is not larger than a preset voltage drop value, starting charging; when the voltage drop information is larger than a preset voltage drop value, charging is not started. By adopting the technical scheme, the first conduction module and the current source are added at the charging interface of the terminal, and the second conduction module and the third conduction module are added at the charging interface of the power adapter, so that a charging detection loop is formed, the voltage sampling module is utilized to collect voltage drop information of the charging detection loop, the charging is carried out when the voltage drop information is smaller than a preset voltage drop value to represent that the impedance detection result is normal, the potential safety hazard existing in the charging loop is detected before the charging, and the safety usability of the terminal is ensured.
Drawings
Fig. 1 is a diagram of a protection system architecture of a charging interface according to an embodiment of the present invention;
fig. 2 is a schematic implementation flow diagram of a protection method applied to a charging interface of a terminal according to an embodiment of the present invention;
fig. 3 is a first structural diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention;
fig. 4 is a second block diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention;
fig. 5 is a schematic implementation flow diagram of a protection method applied to a charging interface of a power adapter according to an embodiment of the present invention;
fig. 6 is a schematic implementation flow chart of a protection method for a charging interface according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating an exemplary method for implementing protection of a charging interface according to an embodiment of the present invention;
fig. 8 is a third block diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention;
fig. 9 is a fourth block diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a power adapter according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Fig. 1 is a schematic diagram of a protection system of a charging interface according to an embodiment of the present invention, where the protection method of the charging interface according to the embodiment of the present invention is implemented on the basis of the structure of the protection system of the charging interface. The protection system 1 of the charging interface in the embodiment of the invention comprises: the charging interface protection method comprises the steps of connecting a power adapter 2, a charging wire 3 and a terminal 4, wherein the power adapter 2 and the terminal 4 are connected through the charging wire 3, and the charging interface protection method provided by the embodiment of the invention is executed; in addition, when the battery line 3 is externally connected with a power supply, the charging operation of the terminal 4 can be realized.
The following embodiments are all implemented based on the system architecture of fig. 1.
Example 1
The embodiment of the invention provides a protection method of a charging interface, which is applied to a terminal, and the terminal performs charging detection according to the protection method of the charging interface. In addition, the charging interface of the terminal comprises a first power line and a first loop line, a voltage sampling module and a current source are arranged between the first power line and the first loop line, and a first conduction module is arranged on the first power line. Specifically, the first power line is sequentially provided with a connection point corresponding to the voltage application module, a connection point corresponding to the current source and a first conduction module from the outer end of the charging interface to the inner end of the terminal, and the first loop line is sequentially provided with a connection point corresponding to the voltage application module and a connection point corresponding to the current source from the outer end of the charging interface to the inner end of the terminal. Fig. 2 is a schematic implementation flow chart of a protection method for a charging interface of a terminal according to an embodiment of the present invention, as shown in fig. 2, in the embodiment of the present invention, the protection method for the charging interface of the terminal includes the following steps:
S101, acquiring a charging detection instruction;
in the embodiment of the invention, when the terminal needs to be charged, the power adapter is connected with the terminal through the charging wire, namely, when the second power wire of the power adapter is connected with the first power wire and the second return wire of the power adapter is connected with the first return wire, at the moment, the terminal can detect whether the power supply exists on the first power wire, when the voltage exists on the first power wire, the terminal indicates that the external power supply, the power adapter, the charging wire and the terminal are connected, and the charging is about to be performed, at the moment, impedance detection can be performed, and the terminal acquires a charging detection instruction.
It should be noted that, in the embodiment of the present invention, an initial state is set, in which the power adapter is externally connected to a power supply, the second power line and the second return line of the power adapter are both conductive, the second power line and the second return line are disconnected, the first power line and the first return line of the terminal are both conductive, the voltage application module does not work, and the current source is disconnected from the first power line and the first return line. The terminal obtains the voltage corresponding to the first power line in the initial state, and when the voltage is zero, the external power supply, the power adapter, the charging line and the terminal are possibly not connected well, and all the components are reconnected.
It should be noted that, for terminals with pins in the charging interface, all terminals include a power line for supplying power to the terminals during charging, for example, a VBUS (Voltage Bus) power line, which is referred to herein as a first power line; and the charging interface of the terminal also comprises other lines besides the power line, such as a GND (Ground) line, a DM (Data Minus) line and a DP (Data Positive) line, where one of the other lines is selected as the first return line in the embodiment of the present invention; in addition, the charge detection instruction is an instruction to construct a charge detection loop for detecting the impedance corresponding to the first power supply line.
It should be noted that pins, called pins or Pin pins, are wires led out from the internal circuit of the integrated circuit or chip to the peripheral circuit, and all the pins form the interface of the integrated circuit or the chip.
It will be appreciated that the terminal provides an execution instruction to execute an operation for the detection of the subsequent impedance by acquiring a charge detection instruction when the terminal is to be charged.
S102, responding to a charging detection instruction, sending a detection control signal to a power adapter, and controlling the first conduction module to be disconnected, and conducting a first power line, a current source and a first loop line to form a charging detection loop;
In the embodiment of the invention, after the terminal acquires the charging detection instruction, the terminal responds to the charging detection instruction, sends a detection control signal to the power adapter, and controls the first on module to be disconnected, namely the first power line is in a disconnected state, and controls the first power line, the current source and the first loop line to be conducted. Thus, the construction of the charge detection loop is completed at the terminal side. The charge detection circuit flows from the first power supply line to the first circuit line through the current source.
It should be noted that, in the embodiment of the present invention, a current source is provided as a part of the charge detection circuit, for providing a constant current in the charge detection circuit, and preferably, the first power line is connected to the positive electrode of the current source when the first power line is turned on with the current source, and the first return line is connected to the negative electrode of the current source when the first return line is turned on with the current source. In addition, the first conduction module is arranged on the first power line and used for controlling the first power line to be conducted and disconnected, specifically, when the charging detection is carried out, the first power line is controlled to be disconnected through the first conduction module, and when the terminal is charged, the first power line is controlled to be conducted through the first conduction module.
Preferably, based on the above description, the first conduction module is a first single pole single throw switch.
Fig. 3 is a schematic diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention, as shown in fig. 3, a first power line and a second power line are VBUS lines, a first return line and a second return line are GND lines, a current source 5 is added between the VBUS lines and the GND lines, and a voltage application module is added to collect and compare voltage drops on a charging detection circuit. At a charging interface of the terminal, a first single-pole single-throw switch S1 is arranged on a first power line, the S1 is closed to realize the conduction of the first power line, and the S1 is opened to realize the disconnection of the first power line; the arrow direction in the current source 5 indicates the current flow, and the current source 5 is used for providing a constant current during charging detection, and the current source 5 is set to a high resistance state during charging, i.e. the connection between the VBUS line and the GND line is disconnected. The voltage sampling module is connected with a first detection point A of the first power line and a second detection point B of the first return line, and a voltage drop value obtained by subtracting the voltage value of A from the voltage value of the point B is the voltage difference value in the embodiment of the invention. In the charge detection, S1 is turned on, and the current source 5 supplies a constant current to form the charge detection circuit 6.
In addition, as another embodiment, the first conduction module is a first transistor, and the first transistor is connected with a first control module, and the first control module is used for controlling the on and off of the first transistor.
Fig. 4 is a schematic diagram of a second protection system of an exemplary charging interface according to an embodiment of the present invention, where, as shown in fig. 4, a VBUS line is selected for the first power line and the second power line, a GND line is selected for the first circuit line and the second circuit line, a current source 5 is added between the VBUS line and the GND line, and a voltage application module is added to collect and compare voltage drops on the charging detection circuit. At the charging interface of the terminal, a first transistor is provided on the first power line, and the first transistor is connected to a first control module, which is a GPIO (General Purpose Input Output, general purpose input/output) in a PMIC (Power Management IC, power management integrated circuit). When the first transistor is a low-level PMOS transistor, the first power line is controlled to be conducted through the first conduction module, namely the GPIO outputs a low level to enable the first transistor to be conducted; when the first transistor is a high-level NMOS transistor, the first conduction module controls the first power line to conduct, namely the GPIO outputs a high level to conduct the first transistor. The terminal performs charging detection, when the first transistor is a low-level PMOS transistor, the first power line is controlled to be disconnected through the first conduction module, namely the GPIO outputs high level to disconnect the first transistor so as to form a charging detection loop 6; when the first transistor is a high level NMOS transistor, the first transistor is turned off by the first turn-on module controlling the first power line to be turned off, i.e., the GPIO outputs a low level, to form the charge detection loop 6.
It is understood that, after responding to the charge detection command, the terminal firstly transmits a detection control signal for constructing a charge detection loop at the power adapter to the power adapter, and at the same time, constructs a charge detection loop at the terminal side, so that the power adapter and the terminal are connected to form a charge detection loop for detecting impedance.
S103, detecting the impedance corresponding to the first power line on the charging detection loop through the voltage sampling module to obtain voltage drop information;
in the embodiment of the invention, after the charge detection loop is constructed, the terminal can detect whether the impedance corresponding to the first power line on the charge detection loop is normal or not by using the voltage sampling module, and the normal and abnormal impedance can be measured by the obtained voltage drop information.
It should be noted that, the charging interface of the terminal is provided with a voltage sampling module, which is specifically disposed between the first power line and the first loop, that is, the voltage sampling module is connected to the first power line and the first loop, and is used for collecting and comparing the voltage drop on the charging detection loop. In addition, the voltage sampling module is connected with the terminal processor, and the terminal processor controls the voltage module to collect and compare the voltage of each sampling point. In addition, after the voltage sampling module collects the voltage information of each sampling point, analog-digital signal conversion is carried out, and finally the voltage drop information of the sampling point can be obtained.
Here, the impedance of the first power line on the charge detection loop, for example, the impedance of the VBUS line or the impedance of the VBUS pin.
Further, in the embodiment of the present invention, the step S103 of detecting, by the voltage sampling module, the impedance corresponding to the first power line on the charging detection circuit by the terminal to obtain the voltage drop information specifically includes steps S103a to S103b, wherein:
s103a, respectively acquiring a first voltage value at a first detection point on a first power line and a second voltage value at a second detection point on a first loop through a voltage sampling module;
in the embodiment of the invention, the terminal acquires and compares the voltage drop on the charging detection loop through the voltage sampling module to determine whether the impedance is normal, and firstly, the terminal needs to acquire a first voltage value at a first detection point on the first power line and a second voltage value at a second detection point on the first loop through the voltage sampling module.
It should be noted that the first detection point is a connection point between the first power line and the voltage sampling module, and the second detection point is a connection point between the first return line and the voltage sampling module.
And S103b, calculating a voltage difference value between the first voltage value and the second voltage value to obtain voltage drop information.
In the embodiment of the invention, after obtaining the first voltage value and the second voltage value, the terminal specifically subtracts the first voltage value from the second voltage value to obtain a voltage difference value. Here, the voltage difference is taken as the voltage drop information.
It can be understood that the voltage application module detects the impedance corresponding to the first power line to obtain corresponding voltage drop information, and judges whether to start charging or not to perform charging according to the voltage drop information, so that the function of protecting a terminal charging interface is achieved.
And S104, when the voltage drop information is not greater than a preset voltage drop value, starting charging.
In the embodiment of the invention, after the terminal detects the impedance of the charging detection loop, when the voltage drop information is determined to be not larger than the preset voltage drop value through judgment, and the impedance corresponding to the first power line is normal, the terminal indicates that the potential safety hazard of burning the charging interface of the terminal due to overlarge impedance does not exist, and at the moment, charging is started.
It can be understood that whether the impedance corresponding to the first power line on the charging detection loop is detected to be too high or not is detected before the terminal is charged, so that the impedance of the charging interface before charging is detected, the safety coefficient is improved, the charging of the terminal is protected, and the condition that the charging interface is overheated and damaged or burnt out due to abnormal impedance caused by dirt, corrosion, oxidation and the like of the charging interface of the terminal is prevented.
Further, in the embodiment of the present invention, the terminal starts charging in S104, specifically including S104a-S104c, where:
S104a, sending a charging control signal to the power adapter, controlling the first power line to be conducted through the first conducting module, and setting the current source to be in a high-resistance state;
in the embodiment of the invention, if the terminal is charged, the terminal sends a charging control signal to the power adapter, and simultaneously, the first power line is controlled to be conducted and the current source is set to be in a high-resistance state through the first conduction module, and at the moment, a charging detection loop formed by the first power line, the current source and the first loop line is disconnected.
It should be noted that, the charging control signal is used for controlling the power adapter side to form a charging loop to receive the power supply of the external power supply. And after the current source is set to be in a high-resistance state, the charging detection loop is disconnected, the structure of the charging loop is not affected, and other modes capable of setting the current source to be in the high-resistance state are also within the scope of the embodiment of the invention.
S104b, receiving an electric signal sent by the power adapter according to the charging control signal;
in the embodiment of the invention, the terminal starts charging, a charging control signal is sent to the power adapter, and after the power adapter receives the charging control signal, the corresponding processing operation is executed according to the charging control signal, and the external power supply is transmitted through the power adapter to supply power.
And S104c, charging according to the electric signals.
In the embodiment of the invention, the terminal receives the power supply electric signal transmitted by the adapter and can be charged by using the electric signal.
In the embodiment of the invention, after the terminal obtains the voltage drop information, the impedance condition corresponding to the first power line can be obtained by comparing the voltage drop information with the preset voltage difference value.
Specifically, when the voltage drop information is larger than a preset voltage difference value, representing that the impedance corresponding to the first power line is abnormal; and when the voltage difference is not larger than the preset voltage difference, the impedance corresponding to the first power line is normal.
In addition, in the embodiment of the present invention, after the terminal obtains the voltage drop information in S103, the protection method of the charging interface further includes S105, specifically:
and S105, when the voltage drop information is larger than a preset voltage drop value, not starting charging.
In the embodiment of the invention, after the terminal obtains the voltage drop information through detection, if the voltage drop information is larger than the preset voltage drop value, the impedance corresponding to the first power line is represented as abnormal, which indicates that the potential safety hazard of burning out the charging interface of the terminal due to overlarge impedance exists, and at the moment, charging is not started.
Specifically, the charging may not be started by sending a charging termination control signal to the power adapter, and disconnecting the charging loop at the power adapter side, specifically controlling the first on module to be disconnected; the terminal side may control the first power line to be disconnected by the first conduction module to disconnect the charging circuit. The embodiment of the present invention is not particularly limited thereto.
It can be understood that when the terminal is connected to the charger, the impedance of the charging loop is detected first, if the impedance of the first power line is too high, the charging is not performed, and the user is prompted, so that the risk of burning of the charging interface caused by dirt, corrosion and the like of the charging interface is avoided, and the purpose of protecting the terminal is achieved.
It should be noted that S105 and S104 are two implementation steps in parallel and opposite in the embodiment of the present invention, and S105 is not executed when S104 is executed; also, when S105 is performed, S104 is not performed.
Further, in the embodiment of the present invention, before comparing the voltage drop information with the preset voltage difference, the protection method of the charging interface further includes S106-S107, where:
s106, acquiring a current value of the current source;
in the embodiment of the invention, the terminal can acquire the current value of the current source because the current source provides the constant current for the charging detection loop.
S107, calculating a preset voltage difference value according to the current value and a preset loop impedance limit value.
In the embodiment of the invention, after the terminal obtains the current value of the current source, the terminal calculates the current value and the preset loop impedance limit value according to the preset loop impedance limit value, so as to obtain the preset voltage difference value. That is, the preset voltage drop value is calculated according to the current value corresponding to the current source and the preset loop impedance limit value.
Here, the terminal is provided with a corresponding preset loop impedance limit value, which may specifically be set according to the performance and actual use of the terminal.
For example, the current of the current source is 10mA, the preset loop impedance limit is 5 omega, and the preset voltage difference is 50mV.
It can be understood that by adding the first conduction module current source at the charging interface of the terminal and adding the second conduction module and the third conduction module at the charging interface of the power adapter, a charging detection loop is formed, so as to form the charging detection loop, and voltage sampling modules are utilized to collect voltage drop information of the charging detection loop, and the charging is performed when the voltage drop information is smaller than a preset voltage drop value to represent that the impedance detection result is normal, so that the potential safety hazard existing in the charging loop is detected before the charging, and the safety usability of the terminal is ensured.
Example two
The embodiment of the invention also provides a protection method of the charging interface, which is applied to the power adapter, and the power adapter performs charging detection according to the protection method of the charging interface. In addition, the charging interface of the power adapter comprises a second power line and a second loop line, a second conduction module is arranged on the second power line, a third conduction module is arranged between the second power line and the second loop line, a connection point corresponding to the third conduction module and the second conduction module are sequentially arranged from the outer end of the charging interface to the inner end of the power adapter on the second power line, and a connection point of the third conduction module is arranged on the second loop line. Fig. 5 is a schematic flow chart of implementation of a protection method for a charging interface of a power adapter according to an embodiment of the present invention, as shown in fig. 5, in an embodiment of the present invention, a method for detecting charging of a power adapter includes the following steps:
S201, receiving a detection control signal sent by a terminal;
in the embodiment of the invention, when the terminal needs to be charged, the power adapter is externally connected with a power supply and is connected with the terminal through the charging wire, namely, when the second power line is connected with the first power line of the terminal and the second loop line is connected with the first loop line of the terminal, the power adapter receives a detection control signal sent by the terminal.
It should be noted that, the power adapter corresponds to the terminal, and the charging interface of the power adapter includes a pin, and correspondingly includes a power line connected to the first power line of the terminal for supplying power to the terminal, for example, a VBUS power line, which is referred to herein as a second power line; and the charging interface of the power adapter also comprises other circuits for the fingerprint of the power line, such as a GND grounding wire, a DM wire and a DP wire, and one circuit is selected from the other circuits to be used as a second circuit line in the embodiment of the invention.
S202, according to the detection control signal, the second conduction module is controlled to be disconnected, and the third conduction module is controlled to be conducted, so that a charging detection loop is formed.
In the embodiment of the invention, after the power adapter receives the detection control signal, the second conduction module is controlled to be disconnected and the third conduction module is controlled to be conducted according to the detection control signal, so that the construction of the charging detection loop is completed on the power adapter side. The charging detection circuit is configured to flow from the second circuit line to the second power supply line.
Preferably, the second conduction module is a second single-pole single-throw switch, and the third conduction module is a third single-pole single-throw switch.
Illustratively, as shown in fig. 3, the first power line and the second power line are VBUS lines, and the first loop line and the second loop line are GND lines. At the charging interface of the power adapter, a second single-pole single-throw switch S2 is arranged on a second power line, the second power line is conducted by closing the S2, and the second power line is disconnected by opening the S2; and a third single-pole single-throw switch S3 is arranged on the second loop line, the S3 is closed to realize the conduction between the second power line and the second loop line, and the S3 is opened to realize the disconnection between the second power line and the second loop line. In the charge detection, S2 is opened and S3 is closed to form a charge detection circuit 6.
As another embodiment, the second conduction module is a second transistor, the third conduction module is a third transistor, the second transistor and the third transistor are respectively connected with the second control module, the second transistor and the third transistor are transistors with opposite level types, and the second control module is used for controlling the conduction of the second transistor and the disconnection of the third transistor or controlling the disconnection of the second transistor and the connection of the third transistor.
Illustratively, as shown in fig. 4, the first power line and the second power line are VBUS lines, and the first loop line and the second loop line are GND lines. At the charging interface of the power adapter, a second transistor is arranged on the second power line, a third transistor is arranged on a connection line of the second power line and the second return line, the second transistor and the third transistor are both connected with the second control module, the level types of the second transistor and the third transistor are opposite (the third transistor is an NMOS transistor if the second transistor is a PMOS transistor ), the second control module can be GPIO, and the GPIO controls the on and off of the second transistor and the third transistor by controlling the height of an output level. The terminal performs charging detection, when the second transistor is a low-level PMOS transistor and the third transistor is a high-level NMOS transistor, the GPIO outputs a high level to enable the second transistor to be disconnected and the third transistor to be conducted so as to form a charging detection loop 6; when the second transistor is a high level NMOS transistor and the third transistor is a high level PMOS transistor, the GPIO outputs a low level to turn off the second transistor and turn on the third transistor, so as to form the charge detection loop 6.
Further, in the embodiment of the present invention, after the power adapter in S202 forms the charging detection loop, the protection method of the charging interface further includes S203 to S205, where:
s203, receiving a charging control signal sent by a terminal;
in the embodiment of the invention, after the charge detection loop is built, when the impedance corresponding to the first power line on the charge detection loop is determined to be normal, the power adapter receives the charge control signal sent by the terminal.
S204, controlling the second conduction module to be conducted and controlling the third conduction module to be disconnected according to the charging control signal to form a charging loop;
in the embodiment of the invention, after receiving the charging control signal, the power adapter forms a charging loop, specifically, controls the second conduction module to be conducted and controls the third conduction module to be disconnected so as to form the charging loop by using the second power line.
And S205, sending an electric signal to the terminal through a charging loop.
In the embodiment of the invention, the power adapter is externally connected with a power supply, so that the electric signal of the power supply of the externally connected power supply is transmitted to the terminal through the charging loop.
Further, in the embodiment of the present invention, after the power adapter in S202 forms the charging detection loop, the protection method of the charging interface further includes: and receiving a charging termination control signal sent by the terminal, and disconnecting the second conduction module according to the charging termination control signal.
In the embodiment of the invention, after the charge detection loop is built, when the impedance abnormality corresponding to the first power line on the charge detection loop is determined, charging is not started. The embodiment in which charging is not started on the power adapter side is as follows: the power adapter receives a termination charging control signal sent by the terminal. Because the termination charging control signal is a signal for indicating the power adapter not to transmit the electric quantity of the external power supply, the power adapter disconnects the second connection module according to the termination charging control signal.
It can be understood that the second conducting module on the second power line of the power adapter is set to be in an off state, and the electric energy of the external power supply cannot be transmitted to the terminal through the second power line of the power adapter, so that the terminal cannot be charged.
It can be further understood that the second conduction module and the third conduction module are added at the charging interface of the power adapter, and the first conduction module and the current source are added at the charging interface of the terminal, so that a charging detection loop is formed, the voltage sampling module is utilized to collect voltage drop information of the charging detection loop, the charging is performed when the voltage drop information is smaller than a preset voltage drop value to represent that the impedance detection result is normal, the potential safety hazard existing in the charging loop is detected before the charging is realized, and the safety usability of the terminal is ensured.
Example III
The embodiment of the invention also provides a protection method of the charging interface, wherein the charging interface of the terminal comprises a first power line and a first loop line, a voltage sampling module and a current source are arranged between the first power line and the first loop line, and a first conduction module is arranged on the first power line. Specifically, a connection point corresponding to a voltage application module, a connection point corresponding to a current source and a first conduction module are sequentially arranged on the first power line from the outer end of the charging interface to the inner end of the terminal; the charging interface of the power adapter comprises a second power line and a second return line, a second conduction module is arranged on the second power line, a third conduction module is arranged between the second power line and the second return line, a connecting point corresponding to the third conduction module and the second conduction module are sequentially arranged from the outer end of the charging interface to the inner end of the power adapter on the second power line, and a connecting point of the third conduction module is arranged on the second return line. Fig. 6 is a schematic implementation flow chart of a protection method for a charging interface according to an embodiment of the present invention, as shown in fig. 6, in an embodiment of the present invention, the protection method for a charging interface includes the following steps:
s301, when a second power line of the power adapter is connected with the first power line and a second loop line of the power adapter is connected with the first loop line, the terminal acquires a charging detection instruction;
In the embodiment of the present invention, the description of the implementation procedure of S301 is identical to the description of the implementation procedure of S101 in the first embodiment, and will not be repeated here.
S302, a terminal responds to a charging detection instruction, sends a detection control signal to a power adapter, controls a first conduction module to be disconnected, and controls the first power line, the current source and the first loop to be conducted;
in the embodiment of the present invention, the description of the implementation procedure of S302 is identical to the description of the implementation procedure of S102 in the first embodiment, and will not be repeated here.
And S303, the power adapter controls the second conduction module to be disconnected and controls the third conduction module to be conducted according to the detection control signal so as to form a charging detection loop.
In the embodiment of the present invention, the description of the implementation procedure of S303 is identical to the description of the implementation procedure of S202 in the second embodiment, and will not be repeated here.
It should be noted that, after S302-S303 are performed, a complete charge detection loop can be formed, and the charge detection loop flows from the current source to the first loop line, and flows through the second loop line, the second power line, and the first power line sequentially back to the current source.
S304, detecting the impedance corresponding to the first power line on the charging detection loop by the terminal through the voltage sampling module to obtain voltage drop information;
In the embodiment of the present invention, the description of the implementation procedure of S304 is identical to the description of the implementation procedure of S103 in the first embodiment, and will not be repeated here.
And S305, when the voltage drop information is not larger than a preset voltage drop value, the terminal starts to charge.
In the embodiment of the present invention, the description of the implementation procedure of S305 is identical to the description of the implementation procedure of S104 in the first embodiment, and will not be repeated here.
Fig. 7 is a flowchart of an exemplary method for implementing protection of a charging interface according to an embodiment of the present invention, as shown in fig. 7, the charging detection starts, first, the power adapter is externally connected to the power supply, and the charging wire connects the power adapter and the terminal; secondly, detecting whether the VBUS line has voltage or not by using the VBUS line for the first power line and the second power line and using the GND line for the first return line and the second return line, namely judging whether the third voltage value in the embodiment of the invention is zero or not, if no voltage exists, connecting the power adapter or the charging line with an external power supply, and connecting the power adapter and the terminal by using the charging line; if voltage exists, the second conduction module is disconnected, the third conduction module is conducted, the VBUS line and the GND line are both conducted with the current source, and the VBUS line is disconnected to form a charging detection loop; thirdly, sampling the voltage of the first detection point and the voltage of the second detection point to obtain a voltage difference value, judging whether the voltage difference value is larger than a preset voltage difference value, if so, indicating that the VBUS pin impedance is overlarge, disconnecting the second conduction module and/or the first conduction module, not conducting charging, and prompting a user; if not, the second conduction module is conducted, the third conduction module is disconnected, the VBUS line is conducted, and the current source is set to be in a high-resistance state, so that a charging loop is formed; and finally, detecting the charging type, carrying out normal charging by using a charging loop, and ending the charging detection.
Fig. 8 is a diagram of a third exemplary protection system structure of a charging interface according to an embodiment of the present invention, as shown in fig. 8, a VBUS line is selected for the first power line and the second power line, a GND line is selected for the first loop line and the second loop line, a current source 5 is added between the VBUS line and the GND line, and a voltage application module is added to collect and compare voltage drops on the charging detection loop. At a charging interface of the terminal, a single-pole double-throw switch S1 is arranged on a first power line, and the conduction of the first power line and the disconnection of the first power line and a current source 5 are realized through the S1, or the conduction of the first power line and the current source 5 and the disconnection of the first power line are realized; the first loop line is provided with a single-pole double-throw switch S2, and the conduction of the first loop line and the disconnection of the first loop line and the current source 5 are realized through the S2, or the conduction of the first loop line and the current source 5 and the disconnection of the first loop line are realized; the voltage sampling module is connected with a first detection point A of the first power line and a second detection point B of the first return line, and a voltage drop value obtained by subtracting the voltage value of A from the voltage value of the point B is the voltage difference value in the embodiment of the invention. At the charging interface of the power adapter, a single-pole single-throw switch S3 is arranged on the second power line, a single-pole single-throw switch S4 is arranged on the second loop line, and a single-pole single-throw switch S5 is arranged on the second power line and the second loop line in succession. When the charging detection is carried out, S3 and S4 are disconnected, S5 is conducted, S1 and S2 are both conducted with a current source, and a charging detection loop 6 is formed; when the VBUS pin impedance is confirmed to be normally charged, S3 and S4 are conducted, S5 is disconnected, S1 is conducted with the first power line, and S2 is conducted with the first loop line; when it is confirmed that the VBUS pin impedance is abnormal, the charging is not performed, S4 is disconnected, or S1 is disconnected from the first power line and the current source.
Fig. 9 is a block diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention, as shown in fig. 9, a first power line and a second power line are VBUS lines, a first return line and a second return line are GND lines, a current source 5 is added between the VBUS lines and the GND lines, and a voltage application module is added to collect and compare voltage drops on a charging detection loop. At a charging interface of the terminal, a low-level transistor PMOS transistor Q1 and a high-level transistor NMOS transistor Q2 are arranged on a first power line, a low-level transistor PMOS transistor Q3 and a high-level transistor NMOS transistor Q4 are arranged on a first loop, and the Q1, the Q2, the Q3 and the Q4 are respectively connected with a first input/output port and GPIO1; the voltage sampling module is connected with a first detection point A of the first power line and a second detection point B of the first return line, and a voltage drop value obtained by subtracting the voltage value of A from the voltage value of the point B is the voltage difference value in the embodiment of the invention. At the charging interface of the power adapter, a low-level transistor PMOS transistor Q5 is arranged on the second power line, a low-level transistor PMOS transistor Q6 is arranged on the second loop line, a high-level transistor NMOS transistor Q7 is arranged on the second power line and the second loop line, and the Q5, the Q6 and the Q7 are respectively connected with a second input/output port connected GPIO 2. When the charging detection is carried out, GPIO1 and GPIO2 both output high level, Q1, Q3, Q5 and Q6 are disconnected, and Q2, Q4 and Q7 are connected to form a charging detection loop 6; when the VBUS pin impedance is confirmed to be normally charged, the GPIO1 and the GPIO2 both output low level, Q1, Q3, Q5 and Q6 are conducted, and Q2, Q4 and Q7 are disconnected; q1 or Q5 is turned off when it is confirmed that VBUS pin impedance abnormality is not charging.
It should be noted that, for the protection method of the charging interface in fig. 8-9, after the charger is inserted, before the terminal is charged, a loop is built by using two wires of VBUS and GND on the data wire as a charging detection loop, so as to detect the voltage drop of the loop, and thus calculate the impedance of the VBUS and GND loop, and finally obtain the impedance of VBUS. And the charging mode is entered when the impedance is normal, and the charging loop is disconnected when the impedance is abnormal, namely the impedance is overlarge, and the terminal interface is used for prompting corresponding prompt information to a user.
It can be understood that the first conduction module and the current source are added at the charging interface of the terminal, and the second conduction module and the third conduction module are added at the charging interface of the power adapter, so that a charging detection loop is formed, the voltage sampling module is utilized to collect voltage drop information of the charging detection loop, the charging is performed when the voltage drop information is smaller than a preset voltage drop value to represent that the impedance detection result is normal, the potential safety hazard existing in the charging loop is detected before the charging is realized, and the safety usability of the terminal is ensured.
Example IV
Based on the inventive concept together with the embodiment, the embodiment of the present invention provides a terminal 4, corresponding to a protection method applied to a charging interface of the terminal, fig. 10 is a schematic structural diagram of the terminal provided by the embodiment of the present invention, as shown in fig. 10, the charging interface 40 of the terminal 4 includes a first power line 401 and a first return line 402, a voltage sampling module 403 and a current source 404 are disposed between the first power line 401 and the first return line 402, and a connection point corresponding to the voltage application module, a connection point corresponding to the current source and a first conduction module 405 are sequentially disposed on the first power line 401 from an outer end of the charging interface to an inner end of the terminal; the terminal 4 further comprises: the charging interface protection method according to the first embodiment is implemented by the processor 41, when the one or more programs are executed, the memory 42 and the receiver 43 are in communication with the processor 41 through the first communication bus 44, and the memory 42 stores the one or more programs executable by the processor 41.
In practical applications, the processor 41 is specifically implemented by a CPU (Central Processing Unit ), MPU (Microprocessor Unit, microprocessor), DSP (Digital Signal Processing, digital signal processor), or field programmable gate array (FPGA, field Programmable Gate Array).
The embodiment of the invention provides a computer readable storage medium, which is applied to a terminal, and the computer readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors 41 to implement the protection method of the charging interface as described in the embodiment one.
It can be understood that by adding the first conduction module and the current source at the charging interface of the terminal and adding the second conduction module and the third conduction module at the charging interface of the power adapter, a charging detection loop is formed, so as to form the charging detection loop, voltage sampling modules are utilized to collect voltage drop information of the charging detection loop, and the charging is performed when the voltage drop information is smaller than a preset voltage drop value to represent that the impedance detection result is normal, so that potential safety hazards existing in the charging loop are detected before charging, and the safety usability of the terminal is ensured.
Example five
Based on the same concept as the second embodiment, the present invention provides a power adapter 2, corresponding to a protection method of a charging interface applied to the power adapter, and fig. 11 is a schematic structural diagram of the power adapter provided in the embodiment of the present invention, as shown in fig. 11, a charging interface 20 of the power adapter 2 includes a second power line 201 and a second return line 202, a second conducting module 203 is disposed on the second power line 201, a third conducting module 204 is disposed between the second power line 201 and the second return line 202, and the power adapter 2 further includes a second communication bus 21, and communicates with a terminal through the second communication bus 21 to implement the protection method of the charging interface according to the second embodiment.
The embodiment of the invention provides a computer readable storage medium, which is applied to a power adapter and stores one or more programs, wherein the one or more programs can be executed by one or more processors to realize the protection method of a charging interface as described in the second embodiment.
It can be understood that by adding the second conduction module and the third conduction module at the charging interface of the power adapter and adding the first conduction module and the current source at the charging interface of the terminal, a charging detection loop is formed, voltage sampling module is utilized to collect voltage drop information of the charging detection loop, and charging is performed when the voltage drop information is smaller than a preset voltage drop value to represent that the impedance detection result is normal, so that potential safety hazards existing in the charging loop are detected before charging, and the safety usability of the terminal is ensured.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention.

Claims (12)

1. The utility model provides a protection method of interface that charges, is applied to the terminal, its characterized in that, the interface that charges of terminal includes first power cord and first return circuit line, first power cord with be equipped with voltage sampling module and current source between the first return circuit line, be equipped with first conduction module on the first power cord, the method includes:
Acquiring a charging detection instruction;
responding to the charging detection instruction, sending a detection control signal to a power adapter, controlling the first conduction module to be disconnected, and controlling the first power line, the current source and the first loop to be conducted to form a charging detection loop;
detecting the impedance corresponding to the first power line on the charging detection loop through the voltage sampling module to obtain voltage drop information;
when the voltage drop information is not greater than a preset voltage drop value, starting charging;
and when the voltage drop information is larger than the preset voltage drop value, not starting charging.
2. The method of claim 1, wherein detecting, by the voltage sampling module, an impedance of the charge detection loop corresponding to the first power line to obtain voltage drop information, comprises:
respectively acquiring a first voltage value at a first detection point on the first power line and a second voltage value at a second detection point on the first loop through the voltage sampling module;
and calculating a voltage difference value between the first voltage value and the second voltage value to obtain the voltage drop information.
3. The method of claim 1, wherein the initiating charging comprises:
Sending a charging control signal to the power adapter, controlling the first power line to be conducted through the first conducting module, and setting the current source to be in a high-resistance state;
receiving an electric signal sent by the power adapter according to the charging control signal;
and charging according to the electric signal.
4. The method of claim 1, wherein the first conduction module is a first single pole single throw switch;
or the first conduction module is a first transistor, the first transistor is connected with the first control module, and the first control module is used for controlling the conduction and disconnection of the first transistor.
5. The method of claim 1, wherein prior to the acquiring the charge detection instruction, the method further comprises:
detecting whether a voltage exists on the first power line when a second power line of the power adapter is connected with the first power line and a second loop line of the power adapter is connected with the first loop line;
accordingly, the acquiring the charging detection instruction includes:
and when the voltage on the first power line is detected, acquiring the charging detection instruction.
6. A protection method of a charging interface, applied to a power adapter, characterized in that the power adapter is adapted to a terminal, and the terminal is used for executing the protection method of the charging interface according to any one of claims 1-5, the charging interface of the power adapter comprises a second power line and a second return line, a second conduction module is arranged on the second power line, and a third conduction module is arranged between the second power line and the second return line, and the method comprises:
receiving a detection control signal sent by a terminal;
and according to the detection control signal, controlling the second conduction module to be disconnected and controlling the third conduction module to be conducted to form a charging detection loop.
7. The method of claim 6, wherein after said configuring said detection loop, said method further comprises:
receiving a charging control signal sent by the terminal;
according to the charging control signal, controlling the second conduction module to be conducted and controlling the third conduction module to be disconnected to form a charging loop;
and sending an electric signal to the terminal through the charging loop.
8. The method of claim 6, wherein the second conduction module is a second single pole single throw switch and the third conduction module is a third single pole single throw switch; or the second conduction module is a second transistor, the third conduction module is a third transistor, the second transistor and the third transistor are respectively connected with a second control module, the second transistor and the third transistor are transistors with opposite level types, and the second control module is used for controlling the conduction of the second transistor and the disconnection of the third transistor or controlling the disconnection of the second transistor and the connection of the third transistor.
9. The method of claim 6, wherein the receiving the detection control signal sent by the terminal comprises: and when an external power supply is connected, the second power line is connected with the first power line of the terminal, and the second loop line is connected with the first loop line of the terminal, the detection control signal sent by the terminal is received.
10. The utility model provides a terminal, its characterized in that, the interface that charges of terminal includes first power cord and first return circuit line, first power cord with be equipped with voltage sampling module and current source between the first return circuit line, be equipped with first conduction module on the first power cord, the terminal still includes: a processor, a memory, a receiver, and a first communication bus, the memory and the receiver in communication with the processor through the first communication bus, the memory storing one or more programs executable by the processor, the one or more programs, when executed, performing the method of any of claims 1-5 by the processor.
11. A power adapter, characterized in that the charging interface of the power adapter comprises a second power line and a second return line, a second conducting module is arranged on the second power line, a third conducting module is arranged between the second power line and the second return line, and the power adapter further comprises a second communication bus through which communication with a terminal is performed to implement the method according to any one of claims 6-9.
12. A computer readable storage medium, for application to a terminal, the computer readable storage medium storing one or more programs executable by one or more processors to implement the method of any of claims 1-5; alternatively, applied to a power adapter, the computer readable storage medium stores one or more programs executable by one or more processors to implement the method of any of claims 6-9.
CN201810837733.9A 2018-07-26 2018-07-26 Protection method and system for charging interface and storage medium Active CN110768315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810837733.9A CN110768315B (en) 2018-07-26 2018-07-26 Protection method and system for charging interface and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810837733.9A CN110768315B (en) 2018-07-26 2018-07-26 Protection method and system for charging interface and storage medium

Publications (2)

Publication Number Publication Date
CN110768315A CN110768315A (en) 2020-02-07
CN110768315B true CN110768315B (en) 2023-11-17

Family

ID=69328018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810837733.9A Active CN110768315B (en) 2018-07-26 2018-07-26 Protection method and system for charging interface and storage medium

Country Status (1)

Country Link
CN (1) CN110768315B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262314A (en) * 2020-03-31 2020-06-09 歌尔科技有限公司 Charger, charging control method and electronic product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105140985A (en) * 2015-08-05 2015-12-09 青岛海信移动通信技术股份有限公司 Mobile terminal, direct-charge power adapter and charging method
CN106505660A (en) * 2016-10-31 2017-03-15 宇龙计算机通信科技(深圳)有限公司 A kind of charge protection method, charging protector and terminal
CN106546822A (en) * 2016-10-26 2017-03-29 珠海市魅族科技有限公司 The impedance detection method of the charging circuit of load, chip and mobile terminal
CN106549468A (en) * 2017-01-25 2017-03-29 宇龙计算机通信科技(深圳)有限公司 A kind of mobile terminal charging data line and charger
CN106787026A (en) * 2014-01-28 2017-05-31 广东欧珀移动通信有限公司 Charge mode switching circuit and method
CN107949969A (en) * 2016-02-05 2018-04-20 广东欧珀移动通信有限公司 For the charging system of terminal, charging method and power supply adaptor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107069853B (en) * 2014-01-28 2019-04-26 Oppo广东移动通信有限公司 Start the detection circuit and method of charging

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106787026A (en) * 2014-01-28 2017-05-31 广东欧珀移动通信有限公司 Charge mode switching circuit and method
CN105140985A (en) * 2015-08-05 2015-12-09 青岛海信移动通信技术股份有限公司 Mobile terminal, direct-charge power adapter and charging method
CN107949969A (en) * 2016-02-05 2018-04-20 广东欧珀移动通信有限公司 For the charging system of terminal, charging method and power supply adaptor
CN106546822A (en) * 2016-10-26 2017-03-29 珠海市魅族科技有限公司 The impedance detection method of the charging circuit of load, chip and mobile terminal
CN106505660A (en) * 2016-10-31 2017-03-15 宇龙计算机通信科技(深圳)有限公司 A kind of charge protection method, charging protector and terminal
CN106549468A (en) * 2017-01-25 2017-03-29 宇龙计算机通信科技(深圳)有限公司 A kind of mobile terminal charging data line and charger

Also Published As

Publication number Publication date
CN110768315A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US10778031B2 (en) Charger, terminal device, and charging system
CN103299504B (en) Charging device
EP3101762B1 (en) Power adapter, terminal, and method for processing impedance anomalies in charging circuit
CN107894567B (en) Battery pack and detection system and detection method for interface state of battery pack
TWI427892B (en) Power supply system for power saving and method thereof
US9142985B2 (en) Battery charger for portable electronic equipment
TWI657641B (en) A charging circuit and battery charging protection control method
EP2854253B1 (en) Charger, charging terminal, charging system and control method for charging
EP3206279A1 (en) Charging control method and device, power adapter, and mobile terminal
CN112152276B (en) Abnormality detection method and apparatus, and storage medium
WO2018076623A1 (en) Method and device for detecting charging abnormality and power adapter
CN101339981B (en) Accumulator with fuse protector
CN105471008A (en) Information processing method, first electronic equipment and second electronic equipment
CN105829990A (en) Method and apparatus for charging electronic device with USB connection
US10554058B2 (en) Systems and methods for monitoring an operating status of a connector
US20180278082A1 (en) Electronic device and charging method thereof
US20150207353A1 (en) Electronic device
CN105896639B (en) Charging control method and electronic equipment
CN110768315B (en) Protection method and system for charging interface and storage medium
CN110492562B (en) Mobile power supply equipment, power supply control method and device thereof, and power supply equipment
KR101389740B1 (en) Battery charger for portable terminal and charging method thereof
CN106856289B (en) Electronic equipment and circuit thereof, switching equipment and circuit thereof and signal processing system
CN106487061B (en) Charging circuit and method
CN105071488A (en) Charging method and apparatus of terminal having data exchange function
CN106684960B (en) A kind of charge control method, charging system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant