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

CN110768315A - 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
CN110768315A
CN110768315A CN201810837733.9A CN201810837733A CN110768315A CN 110768315 A CN110768315 A CN 110768315A CN 201810837733 A CN201810837733 A CN 201810837733A CN 110768315 A CN110768315 A CN 110768315A
Authority
CN
China
Prior art keywords
charging
line
terminal
module
loop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810837733.9A
Other languages
Chinese (zh)
Other versions
CN110768315B (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

Images

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 the charging detection instruction, sending a detection control signal to the power adapter, controlling the first conduction module to be disconnected, and controlling the first power line, the current source and the first loop line to be conducted to form a charging detection loop; detecting impedance corresponding to a 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 the preset voltage drop value, starting charging; and when the voltage drop information is larger than the preset voltage drop finger, the 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 terminal is charged by adopting a charger so as to recycle the terminal under the environment-friendly condition. The charger is a charging device composed of a power adapter and a charging wire, and the terminal is connected with the power adapter through the charging wire. When the power adapter is externally connected with a power supply, the voltage adapter converts the input alternating voltage of the external power supply into direct voltage, and the direct voltage is transmitted to the terminal through the charging wire to complete the charging of the terminal. However, most of the charging interfaces of the terminals are exposed outside generally for a long timeThe pins of the charging interface exposed outside can be polluted, corroded, oxidized and the like, and especially when the pins VBUS of the power line of the charging interface are polluted, corroded, oxidized and the like, the impedance R of the charging loop can be increased; in this way, during the charging of the constant current I, the power P is I2And R, the terminal charging interface can damage the terminal due to overheating, so that the terminal is unavailable.
In the prior art, when a terminal charging interface is prevented from being damaged due to overheating, 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 an impedance on the charging circuit is detected during charging, and the charging is disconnected when the impedance exceeds a preset impedance threshold. However, in the above detection scheme of the terminal charging interface, both the temperature detection at the terminal charging interface and the impedance detection on the charging loop are performed during charging, and there is still a risk that the terminal is damaged due to overheating of the terminal charging interface, and the safety and usability of the terminal cannot be ensured.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are expected to provide a method and a system for protecting a charging interface, and a storage medium, which can ensure the security and availability 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, 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 line to be conducted to form a charging detection loop;
detecting 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 foregoing solution, the detecting, by the voltage sampling module, the impedance corresponding to the first power line on the charging detection loop to obtain 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 line 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 scheme, 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-impedance 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 conducting module is a first single-pole single-throw switch.
In the above scheme, the first conducting module is a first transistor, the first transistor is connected to a first control module, and the first control module is configured to control the conduction and the 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 foregoing solution, before the obtaining of the charging detection instruction, the method further includes:
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, detecting whether voltage exists on the first power line;
accordingly, the obtaining 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 the connection point corresponding to the voltage sampling module, the connection point corresponding to the current source and the first conduction module from the outer end of the charging interface to the inner end of the terminal, and the first power line is sequentially provided with the connection point corresponding to the voltage sampling module and the 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 controlling the second conduction module to be disconnected and controlling the third conduction module to be conducted according to the detection control signal 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 conducting module is a second single-pole single-throw switch, and the third conducting module is a third single-pole single-throw switch.
In the above scheme, the second turning-on module is a second transistor, the third turning-on module is a third transistor, the second transistor and the third transistor are respectively connected to a second control module, the second transistor and the third transistor are transistors with opposite level types, and the second control module is configured to control turning-on of the second transistor and turning-off of the third transistor, or to control turning-off of the second transistor and turning-on of the third transistor.
In the above scheme, the detecting control signal sent by the receiving terminal includes:
and when the 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, a connection point corresponding to the third conduction module and the second conduction module are sequentially arranged on the second power line from the outer end of the charging interface to the inner end of the power adapter.
The embodiment of the invention provides a terminal, wherein 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 protection method 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 when the one or more programs are executed, the protection method of the charging interface is executed through the processor.
The embodiment of the present invention provides a computer-readable storage medium applied to a terminal, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the protection method for a charging interface as described above.
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 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, the power adapter further comprises a second communication bus, and the protection method of the charging interface is realized by communicating with a terminal through the second communication bus.
The embodiment of the invention provides a computer-readable storage medium applied to a power adapter, 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 implement the protection method of the charging interface.
The embodiment of the invention provides a protection method and a system of 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 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. 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 the first power line, the current source and the first loop line to be conducted to form a charging detection loop; finally, detecting impedance corresponding to a 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 the preset voltage drop value, starting charging; and when the voltage drop information is larger than the preset voltage drop value, the 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, the second conduction module and the third conduction module are added at the charging interface of the power adapter to form the charging detection circuit, the voltage drop information of the charging detection circuit is acquired by the voltage sampling module, and the charging is carried out when the voltage drop information is smaller than the preset voltage drop value to represent that the impedance detection result is normal, so that the potential safety hazard existing in the charging circuit is detected before the charging, and the safety and usability of the terminal are ensured.
Drawings
Fig. 1 is a schematic diagram of a protection system of a charging interface according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation 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 diagram of a protection system structure of an exemplary charging interface according to an embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating an implementation 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 flow chart illustrating an implementation process of a protection method for a charging interface according to an embodiment of the present invention;
fig. 7 is a schematic 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 structural diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention;
fig. 9 is a fourth structural 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 solution 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 an architecture diagram of a protection system of a charging interface according to an embodiment of the present invention, where a protection method of a charging interface according to an embodiment of the present invention is implemented on the basis of an architecture of the protection system of the charging interface. The protection system 1 of the charging interface in the embodiment of the invention comprises: the protection method comprises the following steps that a power adapter 2, a charging wire 3 and a terminal 4 are connected, wherein the charging wire 3 is connected with the power adapter 2 and the terminal 4 to execute the protection method of the charging interface provided by the embodiment of the invention; in addition, when the battery cord 3 is externally connected to a power source, 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 one
The embodiment of the invention provides a protection method of a charging interface, which is applied to a terminal, and the terminal carries out 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, be equipped with the tie point that voltage adopted the module to correspond, the tie point that the electric current source corresponds and first module that switches on in proper order from the interface outer end that charges to the terminal inner end on the first power cord, be equipped with the tie point that voltage adopted the module to correspond and the tie point that the electric current source corresponds in proper order from the interface outer end that charges to the terminal inner end on the first return circuit cord. Fig. 2 is a schematic flow chart illustrating an implementation of a protection method applied to a charging interface of a terminal according to an embodiment of the present invention, as shown in fig. 2, in an 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 and the terminal are connected through the charging wire, namely, when the second power line of the power adapter is connected with the first power line and the second loop line of the power adapter is connected with the first loop line, at the moment, the terminal can detect whether the power supply exists on the first power line, when the voltage exists on the first power line, the connection among the external power supply, the power adapter, the charging wire and the terminal is indicated to be good, the charging is about to be carried out, at the moment, the impedance detection can be carried out, and the terminal obtains the charging detection instruction.
It should be noted that, in the embodiment of the present invention, an initial state is set, in the initial state, the power adapter is externally connected with a power supply, the second power line and the second return line of the power adapter are both connected, 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 connected, the voltage-applying module does not work, and the current source is disconnected from both 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 wire and the terminal are not connected, and all parts are reconnected.
It should be noted that, for the terminals of the charging interface including the pin, the terminal includes a power line for supplying power to the terminal during charging, for example, a VBUS (Voltage Bus) power line, which is referred to as a first power line; the charging interface of the terminal further includes 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 a first return line in the embodiment of the present invention; in addition, the charging detection instruction is an instruction to construct a charging detection loop for detecting the impedance corresponding to the first power line.
It should be noted that the pins, also called pins or Pin pins, are connections led out from the integrated circuit or the internal circuit of the chip to the peripheral circuit, and all the pins constitute the interface of the integrated circuit or the chip.
It can be understood that, when the terminal is to be charged, the terminal provides an execution instruction for executing an operation for subsequent impedance detection by acquiring a charging detection instruction.
S102, 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 the first power line, the current source and the first loop line to be conducted to form a charging detection loop;
in the embodiment of the present invention, after the terminal acquires the charge detection instruction, the terminal sends a detection control signal to the power adapter in response to the charge detection instruction, and controls the first conduction module to be turned off, that is, the first power line is in an off state, and controls the first power line, the current source, and the first loop line to be turned on. Thus, on the terminal side, the construction of the charge detection loop is completed. The charge detection circuit flows from the first power supply line to the first loop 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 loop for providing a constant current in the charge detection loop, and preferably, the first power line is connected to the positive pole of the current source when the first power line is conducted with the current source, and the first loop line is connected to the negative pole of the current source when the first loop line is conducted 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 charging detection is carried out, the first conduction module controls the first power line to be disconnected, and when the terminal is charged, the first conduction module controls the first power line to be conducted.
Preferably, based on the above description, the first conducting module is a first single-pole single-throw switch.
Fig. 3 is a first structural diagram of a protection system of an exemplary charging interface according to an embodiment of the present invention, as shown in fig. 3, a VBUS line is used as a first power line and a second power line, a GND line is used as a first return line and a second return line, a current source 5 is added between the VBUS line and the GND line, and a voltage sampling module is added to collect and compare a voltage drop across a charging detection loop. At a charging interface of the terminal, a first single-pole single-throw switch S1 is arranged on a first power line, S1 is closed to realize the conduction of the first power line, and S1 is opened to realize the disconnection of the first power line; and the direction of the arrow in the current source 5 represents the current direction, the current source 5 is used for supplying constant current during charging detection, and the current source 5 is set to be in a high resistance state during charging, namely, 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 loop line, and a voltage drop value obtained by subtracting the voltage value of A from the voltage value of the point B is a voltage difference value in the embodiment of the invention. At the time of charge detection, S1 is turned on, and the current source 5 supplies a constant current to form the charge detection circuit 6.
In another embodiment, the first conducting module is a first transistor, the first transistor is connected to a first control module, and the first control module is configured to control the first transistor to be turned on and off.
Fig. 4 is a second exemplary structure diagram of a protection system of a charging interface according to an embodiment of the present invention, as shown in fig. 4, a VBUS line is used as the first power line and the second power line, a GND line is used as the first return line and the second return line, a current source 5 is added between the VBUS line and the GND line, and a voltage sampling module is added to collect and compare a voltage drop across the charging detection circuit. At a charging interface of the terminal, a first transistor is arranged on a first Power line, the first transistor is connected with a first control module, and the first control module is a General Purpose Input/Output (GPIO) in a Power Management Integrated Circuit (PMIC). The terminal is charged, and when the first transistor is a low-level PMOS transistor, the first conduction module controls the first power line to be conducted, namely the GPIO outputs 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 be conducted, namely the GPIO outputs high level to enable the first transistor to be conducted. The terminal carries out charging detection, when the first transistor is a low-level PMOS transistor, the first conducting module controls the first power line to be disconnected, namely the GPIO outputs high level to disconnect the first transistor, so that a charging detection loop 6 is formed; 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, so as to form the charge detection loop 6.
It can be understood that, after responding to the charging detection command, the terminal sends a detection control signal for constructing a charging detection loop at the power adapter to the power adapter, and at the same time, constructs a charging detection loop at the terminal side, so that the power adapter and the terminal form a charging detection loop for detecting impedance after being connected.
S103, detecting impedance corresponding to a first power line on the charging detection loop through a voltage sampling module to obtain voltage drop information;
in the embodiment of the invention, after the charging detection circuit is constructed, the terminal can detect whether the impedance corresponding to the first power line on the charging detection circuit is normal or not by using the voltage sampling module, and the normality and the abnormality of the impedance are measured by the obtained voltage drop information.
It should be noted that, a voltage sampling module is arranged at the charging interface of the terminal, and is specifically arranged between the first power line and the first loop line, that is, the voltage sampling module is connected to the first power line and the first loop line, 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-to-digital signal conversion is carried out, and finally, the voltage drop information of the sampling points 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 detecting, by the voltage sampling module, the impedance corresponding to the first power line on the charge detection loop at the terminal in S103 to obtain the voltage drop information specifically includes S103a-S103b, where:
s103a, 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 line through a voltage sampling module;
in the embodiment of the invention, the terminal determines whether the impedance is normal or not by collecting and comparing the voltage drop on the charging detection loop through the voltage sampling module, and firstly, the terminal needs to respectively obtain a first voltage value at a first detection point on a first power supply line and a second voltage value at a second detection point on the first loop line 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 loop line and the voltage sampling module.
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 present 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 voltage drop information.
It can be understood that the voltage detection module detects the impedance corresponding to the first power line to obtain corresponding voltage drop information, and determines whether to start charging or not to charge according to the voltage drop information, thereby playing a role in protecting the terminal charging interface.
And S104, when the voltage drop information is not greater than the preset voltage drop value, starting charging.
In the embodiment of the invention, after the terminal performs impedance detection on the charging detection loop, when the voltage drop information is determined to be not greater than the preset voltage drop value through judgment and the impedance corresponding to the first power line is represented to be normal, the potential safety hazard that the charging interface of the terminal is burnt due to overlarge impedance does not exist, and at the moment, charging is started.
It can be understood that the terminal detects whether the impedance corresponding to the first power line on the charging detection loop is too high before charging, so that the detection of the impedance of the charging interface before charging is realized, the safety coefficient is improved, the terminal charging is protected, and the situation that the charging interface is damaged or burnt due to overheating caused by the abnormal impedance caused by the dirt, corrosion, oxidation and the like of the charging interface of the terminal is prevented.
Further, in the embodiment of the present invention, the charging of the terminal in S104 specifically includes S104a-S104c, where:
s104a, sending a charging control signal to the power adapter, controlling the first power line to be conducted through the first conduction module, and setting the current source to be in a high-impedance state;
in the embodiment of the invention, if the terminal is charged, the terminal sends a charging control signal to the power adapter, and at the same time, the first power line is controlled to be switched on and the current source is set to be in a high-impedance state through the first switching-on module, and at this time, 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 to control the power adapter side to form a charging loop to receive power supplied by the external power supply. After the current source is set to the high-impedance state, the charging detection loop is disconnected, so that the structure of the charging loop is not affected, and other ways of setting the current source to the high-impedance state are also within the protection 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 and sends a charging control signal to the power adapter, and after the power adapter receives the charging control signal, the power adapter executes corresponding processing operation according to the charging control signal and supplies power to an external power supply through the power adapter.
And S104c, charging according to the electric signal.
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 greater than a preset voltage difference value, the impedance corresponding to the first power line is represented to be abnormal; and when the voltage difference is not larger than the preset voltage difference, the impedance corresponding to the first power line is represented to be normal.
In addition, in the embodiment of the present invention, after the terminal obtains the voltage drop information in S103, the protection method for the charging interface further includes S105, specifically:
and S105, when the voltage drop information is larger than the preset voltage drop value, the charging is not started.
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 to represent the impedance abnormality corresponding to the first power line, the potential safety hazard that the charging interface of the terminal is burnt due to overlarge impedance exists, and at the moment, the charging is not started.
Specifically, the charging does not start by sending a charging termination control signal to the power adapter, and disconnecting the charging loop on the power adapter side, specifically, controlling the first conduction module to be disconnected; the charging circuit may also be disconnected by the first conducting module controlling the first power line to be disconnected on the terminal side. The embodiment of the present invention is not particularly limited thereto.
It can be understood that when the terminal is connected with the charger, the impedance detection of the charging loop is firstly carried out, if the impedance of the first power line is too large, the charging is not carried out and the user is prompted, the risk of burning 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 parallel and opposite implementation steps in the embodiment of the present invention, and when S104 is executed, S105 is not executed; similarly, when S105 is executed, S104 is not executed.
Further, in this embodiment of the present invention, before the terminal compares the voltage drop information with the preset voltage difference value, the method for protecting a charging interface further includes S106-S107, where:
s106, acquiring a current value of the current source;
in the embodiment of the present invention, since the current source provides a constant current for the charge detection loop, the terminal can obtain the current value of the current source.
And S107, calculating a preset voltage difference value according to the current value and the preset loop impedance limit value.
In the embodiment of the invention, after the terminal acquires the current value of the current source, the preset voltage difference value can be obtained by calculating the current value and the preset loop impedance limit value according to the preset loop impedance limit 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 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 value is 5 Ω, and the preset voltage difference value is 50 mV.
It can be understood that a first conduction module current source is added at a charging interface of the terminal, a second conduction module and a third conduction module are added at the charging interface of the power adapter to form a charging detection loop, the charging detection loop is formed, voltage drop information acquisition is carried out on the charging detection loop by using the voltage sampling module, charging is carried out when the voltage drop information is smaller than a preset voltage drop value to represent that an impedance detection result is normal, the potential safety hazard existing in the charging loop is detected before charging, and the safety availability 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 carries out charging detection according to the protection method of the charging interface. In addition, the interface that charges of power adapter includes second power cord and second return route, is equipped with the second on the second power cord and switches on the module, is equipped with the third between second power cord and the second return route and switches on the module to, be equipped with the tie point and the second that the third switched on the module and correspond from the outer end of the interface that charges to power adapter on the second power cord in proper order and switch on the module, be equipped with the tie point that the third switched on the module on the second return route. Fig. 5 is a schematic flow chart illustrating an implementation of a protection method applied to 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 the 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 a charging wire, namely, when the second power wire is connected with the first power wire of the terminal and the second loop wire is connected with the first loop wire of the terminal, the power adapter receives the 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 also includes a power line, such as a VBUS power line, which is connected to a first power line of the terminal to supply power to the terminal, and is referred to herein as a second power line; the charging interface of the power adapter also includes other lines of the power line fingerprint, such as a GND ground line, a DM line and a DP line, and one of the other lines is selected as the second loop line in the embodiment of the present invention.
And S202, controlling the second conduction module to be disconnected and controlling the third conduction module to be conducted according to the detection control signal to form a charging detection loop.
In the embodiment of the present invention, after the power adapter receives the detection control signal, the second conducting module is controlled to be turned off and the third conducting module is controlled to be turned on according to the detection control signal, so that the construction of the charging detection loop is completed on the power adapter side. The flow of the charge detection circuit is from the second circuit line to the second power supply line.
Preferably, the second conducting module is a second single-pole single-throw switch, and the third conducting 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 return line and the second return line are GND lines. At a charging interface of the power adapter, a second single-pole single-throw switch S2 is arranged on a second power line, S2 is closed to realize the conduction of the second power line, and S2 is opened to realize the disconnection of the second power line; and a third single-pole single-throw switch S3 is arranged on the second return line, S3 is closed to realize the conduction of the second power line and the second return line, and S3 is opened to realize the disconnection of the second power line and the second return line. At the time of charge detection, S2 opens and S3 closes, forming the charge detection circuit 6.
In another embodiment, the second turning-on module is a second transistor, the third turning-on module is a third transistor, the second transistor and the third transistor are respectively connected to the second control module, the second transistor and the third transistor are transistors with opposite level types, and the second control module is configured to control turning-on of the second transistor and turning-off of the third transistor, or to control turning-off of the second transistor and turning-on 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 return line and the second return line are GND lines. At the charging interface of the power adapter, a second power line is provided with a second transistor, a third transistor is arranged on a connecting line of the second power line and a second return line, the second transistor and the third transistor are both connected with a second control module, and the level types of the second transistor and the third transistor are opposite (if the second transistor is a PMOS transistor, the third transistor is an NMOS transistor, and if the second transistor is a PMOS transistor, the third transistor is an NMOS transistor), the second control module can be a GPIO (general purpose input/output) which controls the on/off of the second transistor and the third transistor by controlling the height of an output level. The terminal carries out charge detection, when the second transistor is a low-level PMOS transistor and the third transistor is a high-level NMOS transistor, the GPIO outputs high level to enable the second transistor to be disconnected and the third transistor to be connected, so that a charge detection loop 6 is formed; 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 circuit 6.
Further, in the embodiment of the present invention, after the power adapter forms the charging detection loop in S202, the method for protecting the charging interface further includes S203-S205, where:
s203, receiving a charging control signal sent by a terminal;
in the embodiment of the present invention, after the charging detection circuit is constructed, when it is determined that the impedance corresponding to the first power line on the charging detection circuit is normal, the power adapter receives the charging 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 present invention, after the power adapter receives the charging control signal, a charging loop is formed, specifically, the second conducting module is controlled to be conducted, and the third conducting module is controlled to be disconnected, so that the charging loop is formed by using the second power line.
And S205, sending the electric signal to the terminal through the 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 external power supply is transmitted to the terminal through the charging loop.
Further, in this embodiment of the present invention, after the power adapter forms the charging detection loop in S202, the method for protecting 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 charging detection circuit is constructed, when the impedance corresponding to the first power line on the charging detection circuit is determined to be abnormal, the charging is not started. The embodiment in which charging is not started on the power adapter side is: the power adapter receives a charge termination control signal sent by the terminal. The charging termination control signal is a signal indicating that the power adapter does not transmit the electric quantity of the external power supply, so that the power adapter disconnects the second conduction module according to the charging termination 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 also be understood that the second conduction module and the third conduction module are added at the charging interface of the power adapter, the first conduction module and the current source are added at the charging interface of the terminal to form a charging detection circuit, the voltage sampling module is used for collecting voltage drop information of the charging detection circuit, and charging is carried out when the voltage drop information is smaller than a preset voltage drop value to represent that an impedance detection result is normal, so that the potential safety hazard existing in the charging circuit is detected before charging, and the safety and usability of the terminal are ensured.
EXAMPLE III
The embodiment of the invention also provides a protection method for a 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 the voltage adoption module, a connection point corresponding to the 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 interface that charges of power adapter includes second power cord and second return line, is equipped with the second on the second power cord and switches on the module, is equipped with the third between second power cord and the second return line and switches on the module to, be equipped with the tie point and the second that the third switched on the module and corresponds from the outer end of the interface that charges to power adapter on the second power cord in proper order and switch on the module, be equipped with the tie point that the third switched on the module on the second return line. Fig. 6 is a schematic flow chart of an implementation process 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 the 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 process of S301 is consistent with the description of the implementation process of S101 in the first embodiment, and is not described herein again.
S302, the terminal responds to a charging detection instruction, sends a detection control signal to the power adapter, controls the first conduction module to be disconnected, and controls the first power line, the current source and the first loop line to be conducted;
in the embodiment of the present invention, the description of the implementation process of S302 is consistent with the description of the implementation process of S102 in the first embodiment, and is not 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 that a charging detection loop is formed.
In the embodiment of the present invention, the description of the implementation process of S303 is consistent with the description of the implementation process of S202 in the second embodiment, and is not repeated here.
It should be noted that after S302-S303 are executed, a complete charge detection loop can be formed, and the charge detection loop flows from the current source to the first loop line, and then flows through the second loop line, the second power line and the first power line in sequence to return to the current source.
S304, the terminal detects impedance corresponding to a first power line on the charging detection loop through the voltage sampling module to obtain voltage drop information;
in the embodiment of the present invention, the description of the implementation process of S304 is consistent with the description of the implementation process of S103 in the first embodiment, and is not described herein again.
And S305, when the voltage drop information is not greater than the preset voltage drop value, the terminal starts to charge.
In the embodiment of the present invention, the description of the implementation process of S305 is consistent with the description of the implementation process of S104 in the first embodiment, and is not repeated here.
Fig. 7 is a schematic flowchart of an exemplary method for implementing protection of a charging interface according to an embodiment of the present invention, and as shown in fig. 7, when charging detection starts, first, a power adapter is connected to an external power supply, and a charging line is connected to the power adapter and a terminal; secondly, the first power line and the second power line are VBUS lines, the first return line and the second return line are GND lines, whether the VBUS lines have voltage or not is detected, namely whether a third voltage value in the embodiment of the invention is zero or not is judged, if no voltage exists, the power adapter or the charging line is not connected well, the power adapter is continuously connected with an external power supply, and the charging line is connected with the power adapter and the terminal; if the voltage exists, the second conduction module is disconnected, the third conduction module is connected, the VBUS line and the GND line are both connected with the current source, and the VBUS line is disconnected, so that a charging detection loop is formed; thirdly, sampling the voltages of the first detection point and 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 impedance of the VBUS pin is too large, disconnecting the second conduction module and/or the first conduction module, not charging, and prompting a user; if not, the second conduction module is conducted, the third conduction module is disconnected, the VBUS wire 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 the charging loop, and finishing the charging detection.
Fig. 8 is a third structural diagram of an exemplary protection system of a charging interface according to an embodiment of the present invention, as shown in fig. 8, a VBUS line is used for a first power line and a second power line, a GND line is used for a first return line and a second return line, a current source 5 is added between the VBUS line and the GND line, and a voltage applying module is added to collect and compare a voltage drop across a charging detection circuit. At a charging interface of the terminal, a single-pole double-throw switch S1 is arranged on the first power line, and the conduction of the first power line and the disconnection of the first power line and the current source 5 are realized through S1, or the conduction of the first power line and the current source 5 and the disconnection of the first power line are realized; a single-pole double-throw switch S2 is provided on the first loop line, and the conduction of the first loop line and the disconnection of the first loop line and the current source 5 are realized through 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 loop line, and a voltage drop value obtained by subtracting the voltage value of A from the voltage value of the point B is a 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 return line, and a single-pole single-throw switch S5 is arranged on the continuity of the second power line and the second return line. When the charging detection is carried out, S3 and S4 are disconnected, S5 is conducted, and S1 and S2 are both conducted with a current source to form a charging detection loop 6; when the VBUS pin impedance is confirmed to be normally charged, S3 and S4 are turned on, S5 is turned off, S1 is turned on with the first power line, and S2 is turned on with the first loop line; when it is confirmed that the VBUS pin impedance is abnormal and the charging is not performed, S4 is turned off, or S1 is made non-conductive with the first power source line and the current source.
Fig. 9 is a fourth structural diagram of an exemplary protection system of a charging interface according to an embodiment of the present invention, as shown in fig. 9, a VBUS line is used as a first power line and a second power line, a GND line is used as a first return line and a second return line, a current source 5 is added between the VBUS line and the GND line, and a voltage applying module is added to collect and compare a voltage drop across a charging detection circuit. At a charging interface of a terminal, a low-level transistor PMOS (P-channel metal oxide semiconductor) transistor Q1 and a high-level transistor NMOS (N-channel metal oxide semiconductor) 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 line, and Q1, Q2, Q3 and Q4 are respectively connected with a first input/output port to GPIO 1; 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 loop line, and a voltage drop value obtained by subtracting the voltage value of A from the voltage value of the point B is a voltage difference value in the embodiment of the invention. At the charging interface of the power adapter, a low-level transistor PMOS tube Q5 is arranged on the second power line, a low-level transistor PMOS tube Q6 is arranged on the second return line, a high-level transistor NMOS tube Q7 is arranged on the second power line and the second return line, and Q5, Q6 and Q7 are respectively connected with a second input/output port connecting GPIO 2. When the charging detection is carried out, the GPIO1 and the 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 charged normally, both GPIO1 and GPIO2 output low level, Q1, Q3, Q5 and Q6 are conducted, and Q2, Q4 and Q7 are disconnected; when it is confirmed that the VBUS pin impedance is abnormal and charging is not performed, Q1 or Q5 is turned off.
It should be noted that, in the protection method for the charging interface in fig. 8 to 9, after the charger is inserted and before the terminal is charged, a loop is established as a charging detection loop by using two lines VBUS and GND on the data line, and then the voltage drop of the loop is detected, so as to calculate the impedance of the VBUS and the GND loop, and finally obtain the impedance of the VBUS. And when the impedance is normal, the charging mode is entered, and when the impedance is abnormal, namely the impedance is overlarge, the charging loop is disconnected, and corresponding prompt information is prompted to a user by using a terminal interface.
It can be understood that the first conduction module and the current source are added at the charging interface of the terminal, the second conduction module and the third conduction module are added at the charging interface of the power adapter to form a charging detection circuit, the voltage sampling module is used for collecting voltage drop information of the charging detection circuit, and charging is carried out when the voltage drop information is smaller than a preset voltage drop value to represent that an impedance detection result is normal, so that the potential safety hazard existing in the charging circuit before charging is detected, and the safety and usability of the terminal are ensured.
Example four
Based on the same inventive concept as the embodiment, an embodiment of the present invention provides a terminal 4, which corresponds to a protection method applied to a charging interface of the terminal, and fig. 10 is a schematic structural diagram of the terminal provided in 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 loop line 402, a voltage sampling module 403 and a current source 404 are disposed between the first power line 401 and the first loop line 402, and a connection point corresponding to the voltage sampling 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: a processor 41, a memory 42, a receiver 43, and a first communication bus 44, wherein the memory 42 and the receiver 43 communicate with the processor 41 through the first communication bus 44, the memory 42 stores one or more programs executable by the processor 41, and when the one or more programs are executed, the processor 41 executes the protection method of the charging interface according to the first embodiment.
In practical applications, the processor 41 is realized by a CPU (Central Processing Unit), an MPU (Microprocessor Unit), a DSP (Digital Signal processor), a Field Programmable Gate Array (FPGA), or the like.
The embodiment of the present invention provides a computer-readable storage medium applied to a terminal, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors 41 to implement the protection method for a charging interface according to the first embodiment.
It can be understood that the first conduction module and the current source are added at the charging interface of the terminal, the second conduction module and the third conduction module are added at the charging interface of the power adapter to form a charging detection loop, the charging detection loop is formed, the voltage drop information of the charging detection loop is acquired by the voltage sampling module, the charging is carried out when the voltage drop information is smaller than a preset voltage drop value to represent that an impedance detection result is normal, the potential safety hazard existing in the charging loop is detected before the charging, and the safety availability of the terminal is ensured.
EXAMPLE five
Based on the same inventive concept as the second embodiment, the second embodiment of the present invention provides a power adapter 2, which corresponds to a protection method applied to a charging interface of the power adapter, fig. 11 is a schematic structural diagram of the power adapter provided in the second 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, the power adapter 2 further includes a second communication bus 21, and the second communication bus 21 communicates with a terminal to implement the protection method of the charging interface as described in the second embodiment.
The embodiment of the invention provides a computer-readable storage medium applied to a power adapter, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the protection method for a charging interface according to the second embodiment.
The charging detection circuit comprises a first conduction module, a second conduction module, a third conduction module, a voltage sampling module, a voltage drop detection module, a voltage sampling module and a current source, wherein the first conduction module and the third conduction module are added at a charging interface of a power adapter, the first conduction module and the current source are added at a charging interface of a terminal to form a charging detection circuit, the voltage drop detection module is used for collecting voltage drop information of the charging detection circuit, and charging is carried out when the voltage drop information is smaller than a preset voltage drop value to represent an impedance detection result, so that potential safety hazards existing in the charging circuit before charging are detected, and the safety and usability of.
As will be appreciated by one skilled in the art, 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, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (12)

1. The protection method of the charging interface is applied to a terminal, and is characterized in that 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, 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 line to be conducted to form a charging detection loop;
detecting 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 the detecting, by the voltage sampling module, the impedance corresponding to the first power line on the charge detection loop 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 line 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-impedance 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 conducting module is a first single pole, single throw switch; or, the first conduction module is a first transistor, the first transistor is connected with a first control module, and the first control module is used for controlling the conduction and the disconnection of the first transistor.
5. The method of claim 1, wherein prior to obtaining the charge detection instruction, the method further comprises:
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, detecting whether voltage exists on the first power line;
accordingly, the obtaining 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 is applied to a power adapter and is characterized in that 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, and the method comprises the following steps:
receiving a detection control signal sent by a terminal;
and controlling the second conduction module to be disconnected and controlling the third conduction module to be conducted according to the detection control signal to form a charging detection loop.
7. The method of claim 6, wherein after said forming 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 conducting module is a second single-pole single-throw switch and the third conducting module is a third single-pole single-throw switch; or the second conducting module is a second transistor, the third conducting 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.
9. The method of claim 6, wherein the receiving the detection control signal sent by the terminal comprises:
and when the 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 the first module that switches on the first power cord, the terminal still includes: a processor, a memory, a receiver, and a first communication bus through which the memory and the receiver communicate with the processor, the memory storing one or more programs executable by the processor, the one or more programs, when executed, causing the processor to perform the method of any of claims 1-5.
11. A power adapter, characterized in that a 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, the power adapter further comprises a second communication bus, and the second communication bus is used for communicating with a terminal to implement the method according to any one of claims 6 to 9.
12. A computer-readable storage medium applied 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 one of claims 1-5; or, applied to a power adapter, the computer-readable storage medium storing one or more programs which are executable by one or more processors to implement the method of any one 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 true CN110768315A (en) 2020-02-07
CN110768315B 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)

Cited By (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 (7)

* 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
US20170085102A1 (en) * 2014-01-28 2017-03-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Detection circuit and method for starting charging
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170085102A1 (en) * 2014-01-28 2017-03-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Detection circuit and method for starting charging
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

Cited By (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

Also Published As

Publication number Publication date
CN110768315B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
EP3101762B1 (en) Power adapter, terminal, and method for processing impedance anomalies in charging circuit
US10601242B2 (en) Micro short protection for charger, terminal device, and charging system
CN107894567B (en) Battery pack and detection system and detection method for interface state of battery pack
CN107221970B (en) System and method for charging a battery pack
EP1964235B1 (en) Battery full-charge detection for charge-and-play circuits
CN103299504B (en) Charging device
EP3101759B1 (en) Detection circuit and method for charging start
CN101339981B (en) Accumulator with fuse protector
CN112152276B (en) Abnormality detection method and apparatus, and storage medium
US11249448B2 (en) Devices, control modules, and controllers
CN107991571A (en) It is a kind of to detect the abnormal method, apparatus of charging and power supply adaptor
US20180048166A1 (en) Battery charging system and battery charging protection control method
CN105471008A (en) Information processing method, first electronic equipment and second electronic equipment
CN110492575B (en) Quick charging system and method for handheld device and handheld device
US10554058B2 (en) Systems and methods for monitoring an operating status of a connector
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN110492562B (en) Mobile power supply equipment, power supply control method and device thereof, and power supply equipment
CN110768315B (en) Protection method and system for charging interface and storage medium
US9742131B2 (en) Power transfer systems
KR20130098515A (en) Battery charger for portable terminal and charging method thereof
US20080203970A1 (en) Battery-powered apparatus for portable system
WO2016165908A1 (en) Charger control circuit and method for charger control
JPWO2020084689A1 (en) Charge control device
JP2017099125A (en) Battery system, battery monitoring system of secondary battery, and monitoring method of secondary battery
JP2014003896A (en) Charging system and processing unit

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