WO2018076623A1 - 一种检测充电异常的方法、装置及电源适配器 - Google Patents
一种检测充电异常的方法、装置及电源适配器 Download PDFInfo
- Publication number
- WO2018076623A1 WO2018076623A1 PCT/CN2017/080752 CN2017080752W WO2018076623A1 WO 2018076623 A1 WO2018076623 A1 WO 2018076623A1 CN 2017080752 W CN2017080752 W CN 2017080752W WO 2018076623 A1 WO2018076623 A1 WO 2018076623A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current
- charging
- value
- current value
- voltage
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/50—Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
- G01R31/52—Testing for short-circuits, leakage current or ground faults
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/0036—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H3/00—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
- H02H3/02—Details
- H02H3/04—Details with warning or supervision in addition to disconnection, e.g. for indicating that protective apparatus has functioned
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H3/00—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
- H02H3/08—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current
- H02H3/087—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current for dc applications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H3/00—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
- H02H3/16—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to fault current to earth, frame or mass
Definitions
- the present application relates to, but is not limited to, the field of communications, and more particularly to a method, device and power adapter for detecting charging anomalies.
- the charging circuit is short-circuited or leaks.
- the lighter causes the mobile phone to be unable to charge or the charging is slow, and the heavy one may expand into a fire and other problems, causing a greater disaster.
- the detection/protection scheme of the charging circuit of the mobile phone is mostly for detecting and protecting the abnormality of the battery, such as temperature protection, overcurrent protection, overcharge protection, over discharge protection, and the like.
- the charging chip generally also has protection and detection measures such as temperature protection.
- the mobile phone lacks a detection scheme for charging abnormalities such as a short circuit or a leakage current of a peripheral circuit such as a USB connector, an ESD (Electro-Static discharge) protection, and a surge protection circuit of a charging circuit.
- a charging peripheral circuit is short-circuited or leaks, The user cannot be notified in time to stop charging and perform necessary hedging treatment.
- embodiments of the present invention are directed to a method, apparatus, and power adapter for detecting an abnormality in charging, which are capable of detecting abnormal conditions during charging, such as short circuiting or leakage of a peripheral circuit.
- An embodiment of the present invention provides a method for detecting a charging abnormality, where the method includes:
- the detection current value of the detection current detecting circuit includes:
- the detected current value is obtained according to the detected voltage value and the resistance value of the current detecting resistor.
- the voltage across the current-sense resistor of the current-sense circuit is detected by the analog-to-digital converter of the current-sense circuit to obtain a first voltage value and a second voltage value;
- sending the detection current value to the terminal by using the detection current value through the output interface includes:
- the detection current is transmitted to the terminal in the form of data through a data negative signal line and a data positive signal line of the output interface.
- the embodiment of the invention further provides a method for detecting a charging abnormality, the method comprising:
- the charging abnormality is determined.
- the method after receiving the detected current value sent by the power adapter, the method further includes:
- the method before acquiring the charging current value received from the charging interface, the method further includes:
- the determining that the charging current value does not match the detected current value comprises:
- the method further includes:
- a stop charging command is triggered to indicate that charging is stopped.
- the embodiment of the present invention further provides a power adapter, the power adapter includes: an output interface, a power converter, a current detecting circuit, and a micro control unit MCU; wherein the current detecting circuit is connected in series with a power line of the output interface Between the outputs of the power converter; the MCU is electrically coupled to the current sensing circuit.
- the MCU detects a detected current value of the current detecting circuit, and sends the detected current value to the terminal through the output interface. And causing the terminal to determine whether the charging is abnormal according to the detected current.
- the current detecting circuit includes a current detecting resistor and an analog to digital converter; the first port and the second port of the analog to digital converter are respectively connected to both ends of the current detecting resistor.
- the analog-to-digital converter collects voltage values across the current-sense resistor through the first port and the second port to obtain a first voltage value and a second voltage value;
- the MCU obtains a detected voltage value of the current detecting resistor according to the first voltage value and the second voltage value; and the detected current value is obtained according to the detected voltage value and a resistance value of the current detecting resistor.
- the analog to digital converter is set to:
- the MCU is connected to a data negative signal line and a data positive signal line of the output interface
- the MCU transmits the detection current in the form of data to the terminal through the data negative signal line and the data positive signal line.
- the embodiment of the invention further provides an apparatus for detecting an abnormality of a current, the apparatus comprising: an acquisition module, a receiving module and a determining module; wherein
- the obtaining module is configured to acquire a charging current value received from the charging interface when detecting that the charging interface is connected to the power adapter and is in a charging state;
- the receiving module is configured to receive a detection current value sent by the power adapter
- the determining module is configured to determine that the charging abnormality is when the charging current value does not match the detected current value.
- the device further includes: a comparison module, configured to:
- the device further includes: a setting module configured to set a current difference threshold;
- the comparison module is set to:
- the apparatus further includes: a control module configured to trigger a stop charging command to determine to stop performing charging after determining the charging abnormality.
- An embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are executed by a processor to implement the foregoing method for detecting a charging abnormality. law.
- a method, a device, and a power adapter for detecting a charging abnormality comprising: detecting a detected current value of a current detecting circuit when the power adapter detects that the output interface is in a charging state; wherein the current detecting The circuit is connected in series between the output of the power converter and the power line of the output interface; the detected current value is transmitted to the terminal through the output interface, so that the terminal determines whether the charging is abnormal according to the detected current.
- the terminal When the terminal detects that the charging interface is in a charging state, acquiring a charging current value of the charging current received from the charging interface; receiving a detection current value sent by the power adapter; and when the charging current value does not match the detected current value , to determine the charging abnormality.
- the magnitude of the current value sent by the power adapter to the terminal is determined by the detected current value of the current detecting circuit connected between the output end of the power converter and the power line of the output interface, according to the current
- the magnitude of the value determines whether the terminal is in the charging abnormal state; when the terminal receives the detected current value and determines that the detected current value does not match the magnitude of the charging current, it is determined that the terminal is in the charging abnormal state.
- the terminal does not perform any hardware modification, and the detection of the abnormality of the charging of the terminal is realized, thereby avoiding the occurrence of a larger abnormality and loss due to the occurrence of a charging abnormality such as a leakage after a short circuit such as a USB connector.
- FIG. 1 is a schematic flowchart of a method for detecting a charging abnormality according to Embodiment 1 of the present invention
- FIG. 2 is a schematic flowchart of a method for detecting a charging abnormality according to Embodiment 2 of the present invention
- FIG. 3 is a schematic flowchart of a method for detecting a charging abnormality according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic structural diagram of a power adapter according to Embodiment 4 of the present invention.
- FIG. 5 is a schematic structural diagram of another power adapter according to Embodiment 4 of the present invention.
- FIG. 6 is a schematic structural diagram of an apparatus for detecting a charging abnormality according to Embodiment 5 of the present invention.
- FIG. 7 is a schematic structural diagram of another apparatus for detecting a charging abnormality according to Embodiment 5 of the present invention.
- FIG. 8 is a schematic structural diagram of a system apparatus for detecting a charging abnormality according to Embodiment 7 of the present invention.
- a first embodiment of the present invention provides a method for detecting a charging abnormality, which is applied to a power adapter end. As shown in FIG. 1, the method includes:
- the power adapter detects that its own output interface is connected with a USB cable, connects to the terminal through the USB cable, and charges the connected terminal, it is determined that the output interface is connected to the terminal and is in a charging state.
- the power adapter charges the terminal, detecting the magnitude of the detected current value of the current detecting circuit, wherein the detecting circuit is connected in series between the output end of the power adapter of the power adapter and the output interface of the power adapter, wherein the power converter
- the received voltage is converted to a voltage that is adapted to the currently charged terminal to charge the terminal.
- a current output from the power converter for charging the terminal flows through the galvanic circuit to the output port, and is connected to the USB cable through the power line of the output port, and is sent to the terminal to charge the terminal, where
- the current through the current detecting circuit is called the current detecting current, and the current is the current that the power adapter charges to the terminal.
- the magnitude of the detected current value is the magnitude of the current sent to the terminal when the power adapter charges the terminal.
- the current detecting circuit may include a current detecting resistor and an analog to digital converter, wherein the analog to digital converter may be implemented by an analog to digital conversion module, and the current detecting resistor may be selected according to requirements, and the resistance value of the current detecting resistor is The size can be 5 to 15 m ⁇ .
- the detecting current value of the detecting current detecting circuit includes: detecting, by the analog-to-digital converter of the current detecting circuit, a voltage across the current detecting resistor of the current detecting circuit to obtain a first voltage value and a second voltage value; The first voltage value and the second voltage value obtain a detected voltage value of the current detecting resistor; and the detected current value is obtained according to the detected voltage value and a resistance value of the current detecting resistor.
- the analog-to-digital converter of the current detecting circuit detects the current detection of the current detecting circuit a voltage across the resistor, obtaining a first voltage value and a second voltage value; comprising: collecting, by the analog-to-digital converter, a voltage across the current-sense resistor to obtain a first voltage and a second voltage, respectively; The voltage is subjected to analog-to-digital conversion to obtain the first voltage value, and the second voltage is subjected to analog-to-digital conversion to obtain the second voltage value.
- the first port and the second port are respectively connected to the two ends of the current detecting resistor by the analog-to-digital converter, and the voltages across the current detecting resistor are respectively collected through the first port and the second port, and the voltage collected by the first port is The first voltage and the voltage collected by the second port are the second voltage.
- the analog-to-digital converter collects the first voltage and the second voltage, converting the collected first voltage and the second voltage into corresponding first voltage values and second voltage values by analog-to-digital conversion, and converting the obtained
- the first voltage value and the second voltage value are sent to a power control microcontroller unit (MCU), wherein the micro control unit is electrically connected to the current detecting circuit to receive the first voltage value and the second voltage of the current detecting circuit.
- MCU power control microcontroller unit
- the MCU can be connected only to the analog-to-digital converter in the current detecting circuit.
- the analog-to-digital converter performs analog-to-digital conversion on the first voltage and the second voltage
- the first voltage obtained by analog-to-digital conversion is obtained.
- the value and the second voltage value are sent to the MCU.
- the power adapter calculates the voltage value of the current detecting resistor through the MCU.
- the voltage of the current detecting resistor is referred to as a detecting voltage
- the detected voltage value of the current detecting resistor can subtract the first voltage value and the second voltage value. A difference between the first voltage value and the second voltage value is obtained, that is, the detected voltage value.
- the current-based output direction is from the output end of the power converter to the output interface, and the voltage value of one end of the current-sense resistor connected to the output end of the power converter is greater than the voltage value of a section of the current-sense resistor connected to the power line of the output interface.
- the relationship between the first voltage value, the second voltage value, and the voltage value of one end of the current-sense resistor connected to the output end of the power converter, and the voltage value of the section where the current-sense resistor is connected to the power line of the output interface is not Limited.
- the current flowing through the current detecting resistor is calculated by the detected voltage value and the resistance value of the current detecting resistor, which is the detected current value of the current detecting circuit.
- the resistance value of the current-sense resistor is stored in advance in the MCU.
- the detected current value is passed Transmitting, by the output interface, the detection current to a terminal that is charging, wherein transmitting the detection current to the terminal through the output interface includes: data passing through the output interface
- the negative signal line and the data positive signal line transmit the detected current to the terminal in the form of data.
- the detected current value calculated by the MCU is a data signal
- the obtained data signal is transmitted to the terminal connected to the power adapter through the data negative signal line and the data positive signal line and the USB line connected to the USB line through the output interface.
- the characterizing terminal When the terminal receives the detected current value, the characterizing terminal knows the magnitude of the current sent by the power adapter when charging the terminal. At this time, determining whether the charging of the terminal occurs according to the received detecting current value and the charging current value received by the terminal itself. abnormal.
- the detection current value capable of characterizing the magnitude of the current value sent by the power adapter to the terminal during the charging process is detected in the power adapter, and the detected detection current value is sent to the terminal, so that the terminal performs the detection according to the detection.
- the current value detecting terminal has a charging abnormality such as a short circuit of a peripheral circuit or a leakage.
- the method for detecting an abnormality provided by the embodiment of the present invention adds a current detecting circuit between the power line of the output interface of the power adapter and the output end of the voltage converter to detect the current value of the current value sent by the power adapter to the terminal during the charging process.
- the addition of additional hardware devices in the terminal is avoided, so that the charging abnormality of the terminal is detected under the condition that the power adapter is simply modified without increasing the production cost of the terminal.
- a method for detecting a charging abnormality is provided, which is applied to a terminal. As shown in FIG. 2, the method includes:
- the terminal When the terminal detects that the charging interface is connected to the power adapter and is in a charging state, when charging the terminal through the power adapter, detecting the magnitude of the charging current obtained by the terminal, where the charging received from the charger can be detected by the charging module of the terminal. The magnitude of the current and the detected value of the charging current characterizing the magnitude of the charging current is sent to the processor of the terminal.
- the charging current of the terminal When the terminal is connected to the power adapter for charging, the charging current of the terminal itself is detected. Receiving a detected current value detected by the charger sent by the charger, where the detected current value sent by the charger is a current detecting circuit connected between the output end of the power converter and the power line of the output interface through the charger. The detected current value and the detected current value characterize the magnitude of the current charged to the terminal when the charger is charging the terminal.
- the method further includes: comparing the charging current value with the detected current value; when there is a current difference between the charging current value and the detected current value, It is determined that the charging current value does not match the detected current value.
- the charging current value After receiving the detected current value, comparing the received detected current value with the obtained charging current value to determine whether there is a current difference between the two, and when there is a current difference, indicating the current charged by the charger to the terminal There is a certain difference between the current received by the charging module and the charging module.
- the charging current value does not match the detection current value. When there is no current difference, it indicates that the charger charges the terminal and the charging module receives the terminal. The currents are equal, and the charging current value matches the detected current value.
- the method Before acquiring a charging current value of a charging current received from the charging interface, the method further includes setting a current difference threshold, the determining that the charging current value does not match the detected current value comprises: when the current When the difference is greater than the current difference threshold, it is determined that the charging current value does not match the detected current value.
- the charging current value is compared with the detected current value, when there is a current difference between the charging current value and the detected current value, it is further determined whether the current difference is within a range of the current difference threshold, when the current When the difference is greater than the current difference threshold, determining that the charging current value does not match the detected current value; when the current difference is not greater than the current difference threshold and does not exceed the range of the current difference threshold, determining the charging current value and The detection current value matches.
- the terminal determines that the charging current value does not match the detected current value, it indicates that the current received by the charging module of the terminal, that is, the current received from the output end of the charging interface is less than the current charged by the power adapter to the terminal, for example, the input of the charging interface.
- the current received by the terminal is less than the current output at the output of the charging interface.
- the input end and the input end of the charging interface are charged with respect to the current charging direction, when the power adapter charges the terminal, the end of the charging interface connected to the power adapter is the input. At the input end, one end connected to the charging module inside the terminal is an output terminal.
- the method may further include: triggering a stop charging instruction to instruct to stop performing charging.
- determining the charging abnormality it is determined that the peripheral circuit such as the USB connector, the ESD protection or the surge protection circuit has a short circuit or a leakage current, stops the charging, and sends an alarm message to the user, and the user is required to make an emergency response. .
- the order of obtaining the charging current value and the execution order of the detection current value transmitted by the receiving power source are not limited.
- the method for detecting a charging abnormality enables the terminal to compare the current value with the magnitude of its own charging current in the case of knowing the magnitude of the current that the power adapter charges to the terminal, and accurately detect the current value.
- Current peripheral circuits such as USB connectors, ESD protection, or surge protection circuits have abnormalities such as short circuits or leakage.
- a method for detecting a charging abnormality provided by the embodiment of the present invention is described in the application scenario of charging a mobile phone by using a power adapter. As shown in FIG. 3, the method includes:
- the power adapter charges the connection of the mobile phone
- the mobile phone detects that an adapter is inserted, it starts to charge after shaking hands with the power adapter.
- the power adapter detects that its output interface is connected to the terminal and is in a charging state, and the mobile phone detects that its charging interface is connected to the power adapter and is in a charging state.
- the mobile phone obtains a charging current value of the charging current
- the mobile phone side detects the mobile phone side charging current value I_charger through the charging management module.
- the power adapter collects the voltage across the current-sense resistor to calculate the detection current
- the power adapter sends the detection current to the mobile phone
- the I_BUS is transmitted to the mobile phone via the USB in the form of data, and the mobile phone side receives the detection current value output by the power adapter, and calculates the charging current value and detection of the charging module.
- the current value of the current value I_leakage I_BUS-I_charger.
- the current difference value I_leakage is the magnitude of the leakage current of the peripheral circuit.
- the I_leakage is larger than the current difference threshold (that is, the maximum allowable leakage current of all peripheral circuits including the USB connector, the ESD protection circuit, and the anti-surge circuit), and it can be judged that there is a short circuit or The leakage occurs, and there is a case where the charging is abnormal. If it is determined that I_leakage is equal to or smaller than the current difference threshold, the charging is normal.
- the current difference threshold that is, the maximum allowable leakage current of all peripheral circuits including the USB connector, the ESD protection circuit, and the anti-surge circuit
- the mobile phone performs stop charging.
- the embodiment of the present invention provides a power adapter.
- the power adapter includes an output interface 401, a power converter 402, a current detecting circuit 403, and a micro control unit.
- the MCU 404 wherein the current detecting circuit 403 is connected in series between the power supply line of the output interface 401 and the output end of the power converter 402; the MCU 404 is electrically connected to the current detecting circuit 403.
- the MCU 404 detects the detected current value of the current detecting circuit 403, and transmits the detected current value to the terminal through the output interface 401, so that the terminal according to the detected current Determine the charging abnormality.
- the current detecting circuit 403 includes a current detecting resistor 4031 and an analog to digital converter 4032; the first port and the second port of the analog to digital converter 4032 are respectively connected to both ends of the current detecting resistor 4031.
- the analog-to-digital converter 4032 obtains a first voltage value and a second voltage value by collecting voltage values across the current detecting resistor 4031 through the first port and the second port;
- the MCU 404 obtains the detected voltage value of the current detecting resistor 4031 according to the first voltage value and the second voltage value, and obtains the detecting according to the detected voltage value and the resistance value of the current detecting resistor 4031. Current value.
- the analog-to-digital converter 4032 is configured to: collect voltages across the current-sense resistor 4031 to obtain a first voltage and a second voltage, respectively; perform analog-to-digital conversion on the first voltage to obtain the first voltage value, and the second The voltage is analog-to-digital converted to obtain the second voltage value, and the first voltage value and the second voltage value are sent to the MCU 404.
- the MCU 404 is connected to the data negative signal line and the data positive signal line of the output interface 401;
- the MCU 404 transmits the detection current in the form of data to the terminal through the data negative signal line and the data positive signal line.
- the embodiment of the present invention provides a device for detecting a current abnormality, which is applied to a terminal.
- the device includes: an obtaining module 601, a receiving module 602, and Determining module 603; wherein
- the obtaining module 601 is configured to acquire a charging current value of the charging current received from the charging interface when detecting that the charging interface is connected to the power adapter and is in a charging state;
- the receiving module 602 is configured to receive a detection current value sent by the power adapter
- the determining module 603 is configured to determine that the charging abnormality is when the charging current value does not match the detected current value.
- the apparatus may further include: a comparison module 604, configured to:
- the device further includes: a setting module 605, configured to set a current difference threshold;
- the comparing module determines that the charging current value does not match the detected current value, including:
- the apparatus may further include: a control module 606 configured to determine a charging difference The stop charging command is then triggered to indicate that charging is stopped.
- an embodiment of the present invention further provides a terminal, where the terminal includes a charging interface, a processor, and a memory, wherein the memory has computer executable code, and the processor is configured to perform the following operations according to the computer executable instruction.
- the processor is also set to do the following:
- determining that the charging current value does not match the detected current value comprises:
- the processor is further configured to trigger a stop charging command to instruct to stop performing charging.
- the system includes a mobile phone 81 and a power adapter 82.
- the mobile phone 81 functions as a charging device with a charging management module 812 and a charging management module.
- the 812 is connected to the battery 813.
- the current (I_CHARGER) and voltage (V_BUS) from the power adapter 82 via the data line to the charge management module 812 can be monitored.
- the current-sense power line of the output interface 401 of the power adapter 82 is connected to the current-sense resistor R4031.
- I_LEAKAGE I_BUS-I_CHARGER, if I_LEAKAGE exceeds the current difference threshold, such as 100mA, then it can be judged that the charging peripheral circuit is short-circuited or leaked, stop charging, and send an alarm message to the user, please ask the user for emergency treatment.
- the current difference threshold such as 100mA
- the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the processor to implement the above method for detecting a charging abnormality.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- the current value sent by the power adapter to the terminal is determined by the detected current value of the current detecting circuit connected between the output end of the power converter and the power line of the output interface. Whether the terminal is in the charging abnormal state is determined according to the magnitude of the current value; when the terminal receives the detected current value and determines that the detected current value does not match the magnitude of the charging current, it is determined that the terminal is in the charging abnormal state.
- the terminal does not perform any hardware modification, and the detection of the abnormality of the charging of the terminal is realized, thereby avoiding the occurrence of a larger abnormality and loss due to the occurrence of a charging abnormality such as a leakage after a short circuit such as a USB connector.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Secondary Cells (AREA)
Abstract
一种检测充电异常的方法、装置及电源适配器,所述方法包括:当检测到输出接口与终端连接且为充电状态时,检测检流电路的检测电流值;其中,所述检流电路串联在电源转换器的输出端和输出接口的电源线之间(101);通过所述输出接口将所述检测电流值发送至所述终端,使得所述终端根据所述检测电流确定充电是否异常(102)。
Description
本申请涉及但不限于通信领域,尤指一种检测充电异常的方法、装置及电源适配器。
长期的手机研发中发现,部分客退原因是由于手机USB(Universal Serial Bus,通用串行总线)口出现短路烧毁,或手机充电电路的外围电路出现部分漏电导致的手机充电缓慢等问题。充电电路短路或者漏电,轻者导致手机不能充电或者充电缓慢,重者可能扩大为火灾等问题,造成更大的灾难。而手机的充电电路的检测/保护方案多是针对电池异常情况的检测和保护,比如:温度保护、过流保护、过充保护、过放保护等。充电芯片一般也有温度保护等保护和检测措施。
发明概述
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
手机对充电电路的外围电路如USB连接器、ESD(Electro-Static discharge,静电释放)保护和浪涌保护电路等的短路或漏电等充电异常缺乏检测方案,当出现充电外围电路短路或者漏电时,无法及时通知用户停止充电,并进行必要的避险处理。
有鉴于此,本发明实施例希望提供一种检测充电异常的方法、装置及电源适配器,能够对充电时的异常情况比如外围电路短路或者漏电进行检测。
本发明实施例提供一种检测充电异常的方法,所述方法包括:
当检测到输出接口与终端连接且为充电状态时,检测检流电路的检测电流值;其中,所述检流电路串联在电源转换器的输出端和所述输出接口
的电源线之间;
通过所述输出接口将所述检测电流值发送至所述终端,使得所述终端根据所述检测电流确定充电是否异常。
在上述方案中,所述检测检流电路的检测电流值包括:
通过所述检流电路的模数转换器检测所述检流电路的检流电阻两端的电压,得到第一电压值和第二电压值;
根据所述第一电压值和所述第二电压值得到所述检流电阻的检测电压值;
根据所述检测电压值和所述检流电阻的电阻值得到所述检测电流值。
在上述方案中,所述通过所述检流电路的模数转换器检测所述检流电路的检流电阻两端的电压,得到第一电压值和第二电压值;包括:
通过所述模数转换器采集所述检流电阻两端的电压,分别得到第一电压和第二电压;
对所述第一电压进行模数转换得到所述第一电压值,对所述第二电压进行模数转换得到所述第二电压值。
在上述方案中,将所述检测电流值通过所述输出接口将所述检测电流发送至所述终端包括:
通过所述输出接口的数据负信号线和数据正信号线将所述检测电流以数据的形式发送至所述终端。
本发明实施例还提供一种检测充电异常的方法,所述方法包括:
当检测到充电接口与电源适配器相连且为充电状态时,获取从所述充电接口接收的充电电流值;
接收电源适配器发送的检测电流值;
当所述充电电流值与所述检测电流值不匹配时,确定充电异常。
在上述方案中,在接收电源适配器发送的检测电流值之后,所述方法还包括:
将所述充电电流值与所述检测电流值进行比较;
当所述充电电流值与所述检测电流值存在电流差值时,确定所述充电电流值与所述检测电流值不匹配。
在上述方案中,在获取从所述充电接口接收的充电电流值之前,所述方法还包括:
设置电流差值阈值;
所述确定所述充电电流值与所述检测电流值不匹配包括:
当所述电流差值大于所述电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配。
在上述方案中,在确定充电异常后,所述方法还包括:
触发停止充电指令以指示停止执行充电。
本发明实施例还提供一种电源适配器,所述电源适配器包括:输出接口、电源转换器,检流电路以及微控制单元MCU;其中,所述检流电路串联在所述输出接口的电源线与所述电源转换器的输出端之间;所述MCU与所述检流电路电连接。
在上述方案中,当所述输出接口与终端连接且为充电状态时,所述MCU检测所述检流电路的检测电流值,并通过所述输出接口将所述检测电流值发送至所述终端,使得所述终端根据所述检测电流确定充电是否异常。
在上述方案中,所述检流电路包括检流电阻和模数转换器;所述模数转换器的第一端口和第二端口分别连接至所述检流电阻的两端。
在上述方案中,所述模数转换器通过所述第一端口和第二端口采集所述检流电阻两端的电压值,得到第一电压值和第二电压值;
所述MCU根据所述第一电压值和所述第二电压值得到所述检流电阻的检测电压值;根据所述检测电压值和所述检流电阻的电阻值得到所述检测电流值。
在上述方案中,所述模数转换器设置为:
采集所述检流电阻两端的电压,分别得到第一电压和第二电压;
对所述第一电压进行模数转换得到所述第一电压值,对所述第二电压进行模数转换得到所述第二电压值,将所述第一电压值和所述第二电压值发送至所述MCU。
在上述方案中,所述MCU与所述输出接口的数据负信号线和数据正信号线相连;
所述MCU通过所述数据负信号线和所述数据正信号线将所述检测电流以数据的形式发送至终端。
本发明实施例还提供一种检测电流异常的装置,所述装置包括:获取模块,接收模块和确定模块;其中,
所述获取模块,设置为当检测到充电接口与电源适配器相连且为充电状态时,获取从所述充电接口接收的充电电流值;
所述接收模块,设置为接收电源适配器发送的检测电流值;
所述确定模块,设置为当所述充电电流值与所述检测电流值不匹配时,确定充电异常。
在上述方案中,所述装置还包括:比较模块,设置为:
将所述充电电流值与所述检测电流值进行比较;
当所述充电电流值与所述检测电流值存在电流差值时,确定所述充电电流值与所述检测电流值不匹配。
在上述方案中,所述装置还包括:设置模块,设置为设置电流差值阈值;
所述比较模块设置为:
当所述电流差值大于所述电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配。
在上述方案中,所述装置还包括:控制模块,设置为在确定充电异常后触发停止充电指令以指示停止执行充电。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述检测充电异常的方
法。
本发明实施例的一种检测充电异常的方法、装置及电源适配器,所述方法包括:当电源适配器检测到输出接口为充电状态时,检测检流电路的检测电流值;其中,所述检流电路串联在电源转换器的输出端和输出接口的电源线之间;通过所述输出接口将所述检测电流值发送至终端,使得所述终端根据所述检测电流确定充电是否异常。当终端检测到充电接口为充电状态时,获取从所述充电接口接收的充电电流的充电电流值;接收电源适配器发送的检测电流值;当所述充电电流值与所述检测电流值不匹配时,确定充电异常。如此,在电源适配器处于充电状态时,通过连接在电源转换器的输出端和输出接口的电源线之间的检流电路的检测电流值确定电源适配器发送给终端的电流值的大小,根据该电流值的大小确定终端是否处于充电异常状态;当终端接收到检测电流值,确定检测电流值和充电电流的大小不匹配时,则确定终端处于充电异常状态。本方案中对终端不进行任何硬件的改动的前提下,实现了终端的充电异常的检测,避免因USB连接器等短路后漏电等充电异常情况的发生而导致更大故障和损失。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例一提供的检测充电异常的方法的流程示意图;
图2为本发明实施例二提供的检测充电异常的方法的流程示意图;
图3为本发明实施例三提供的检测充电异常的方法的流程示意图;
图4为本发明实施例四提供的一种电源适配器的结构示意图;
图5为本发明实施例四提供的另一种电源适配器的结构示意图;
图6为本发明实施例五提供的一种检测充电异常的装置的结构示意图;
图7为本发明实施例五提供的另一种检测充电异常的装置的结构示意图;
图8为本发明实施例七提供的一种检测充电异常的系统装置的结构示意图。
详述
下面结合附图对技术方案的实施进行描述。
实施例一
本发明实施例一提供一种检测充电异常的方法,应用于电源适配器端,如图1所示,所述方法包括:
S101、当检测到输出接口与终端连接且为充电状态时,检测检流电路的检测电流值;其中,所述检流电路串联在电源转换器的输出端和输出接口的电源线之间;
这里,当电源适配器检测到本身的输出接口连接有USB线,通过该USB线与终端连接,并向连接的终端进行充电时,确定输出接口与终端连接且为充电状态。当电源适配器向终端进行充电时,检测检流电路的检测电流值的大小,其中,检测电路为串联在电源适配器的电源转换器的输出端和电源适配器的输出接口之间,其中,电源转换器将接收的电压转换为与当前充电的终端适配的电压,向终端进行充电。
当进行充电时,从电源转换器输出的用于向终端充电的电流流经检流电路到达输出端口,通过输出端口的电源线与USB线连接发送至终端,向终端进行充电,这里,将流经检流电路的电流称为检流电流,检流电流即为电源适配器向终端充电的电流,检测电流值的大小表征电源适配器向终端充电时发送给终端的电流的大小。
这里,检流电路可包括检流电阻和模数转换器,其中这里的模数转换器可通过一模数转换模块来实现,检流电阻的可根据需求进行选择,检流电阻的电阻值的大小可为5至15mΩ。所述检测检流电路的检测电流值包括:通过所述检流电路的模数转换器检测所述检流电路的检流电阻两端的电压,得到第一电压值和第二电压值;根据所述第一电压值和所述第二电压值得到所述检流电阻的检测电压值;根据所述检测电压值和所述检流电阻的电阻值得到所述检测电流值。
这里,所述通过所述检流电路的模数转换器检测所述检流电路的检流
电阻两端的电压,得到第一电压值和第二电压值;包括:通过所述模数转换器采集所述检流电阻两端的电压,分别得到第一电压和第二电压;对所述第一电压进行模数转换得到所述第一电压值,对所述第二电压进行模数转换得到所述第二电压值。
其中,由模数转换器通过第一端口和第二端口分别与检流电阻的两端相连,并通过第一端口和第二端口分别采集检流电阻两端的电压,第一端口采集的电压为第一电压,第二端口采集的电压为第二电压。当模数转换器采集到第一电压和第二电压时,通过模数转换将采集的第一电压和第二电压转换为对应的第一电压值和第二电压值,并将转换后得到的第一电压值和第二电压值发送给电源适配的微控制单元(Microcontroller Unit;MCU),其中,微控制单元与检流电路电连接,以接收检流电路的第一电压值和第二电压值,这里,MCU可只与检流电路中的模数转换器连接,当模数转换器对第一电压、第二电压进行模数转换后,将经模数转换后得到的第一电压值和第二电压值发送至MCU。
电源适配器通过MCU来计算检流电阻的电压值,这里,将检流电阻的电压称为检测电压,其中,检流电阻的检测电压值可将第一电压值和第二电压值进行减运算,得到第一电压值和第二电压值的差值,即为检测电压值。
基于电流的输出方向为从电源转换器的输出端至输出接口,检流电阻与电源转换器的输出端连接的一端的电压值大于检流电阻与输出接口的电源线连接的一段的电压值。这里,对第一电压值、第二电压值与检流电阻与电源转换器的输出端连接的一端的电压值、检流电阻与输出接口的电源线连接的一段的电压值之间的关系不进行限定。
当得到检测电压值时,通过对检测电压值和检流电阻的电阻值计算得到流经检流电阻的电流,即为检流电路的检测电流值。这里,检流电阻的电阻值预先保存在MCU中。
S102、通过所述输出接口将所述检测电流值发送至所述终端,使得所述终端根据所述检测电流确定是否充电异常。
当电源适配器通过MCU计算得到检测电流值时,将所述检测电流值通
过所述输出接口将所述检测电流发送至正在进行充电的终端,其中,将所述检测电流值通过所述输出接口将所述检测电流发送至所述终端包括:通过所述输出接口的数据负信号线和数据正信号线将所述检测电流以数据的形式发送至所述终端。这里,通过MCU计算得到的检测电流值为数据信号,将得到的数据信号通过输出接口与USB线连接的数据负信号线和数据正信号线以及USB线发送至与电源适配器连接的终端。
当终端接收到检测电流值时,表征终端获知电源适配器向终端进行充电时发送的电流的大小,此时,根据接收到的检测电流值和终端本身接收到的充电电流值确定终端的充电是否出现异常。
在本发明实施例中,在电源适配器中检测检能够表征充电过程中电源适配器发送给终端的电流值的大小的检测电流值,将检测得到的检测电流值发送至终端,来使得终端根据该检测电流值检测终端是否存在外围电路短路或者漏电等充电异常情况的发生。进一步的,本发明实施例提供的检测异常的方法在电源适配器的输出接口的电源线和电压转换器的输出端之间增加检流电路来检测充电过程中电源适配器发送给终端的电流值的大小,避免了在终端中增加额外的硬件设备,从而在只对电源适配器进行简单改造不增加终端生产成本的情况下,对终端的充电异常进行检测。
实施例二
在本发明实施例中,提供一种检测充电异常的方法,应用于终端,如图2所示,所述方法包括:
S201、当检测到充电接口与电源适配器相连且为充电状态时,获取从所述充电接口接收的充电电流的充电电流值;
当终端检测到充电接口与电源适配器相连时并且处于充电状态,通过电源适配器向终端进行充电时,检测终端得到的充电电流的大小,这里,可通过终端的充电模块来检测从充电器接收的充电电流的大小,并将检测的表征充电电流大小的充电电流值发送至终端的处理器。
S202、接收电源适配器发送的检测电流值;
当终端与电源适配器连接进行充电时,检测终端本身的充电电流的同
时,接收充电器发送的充电器检测的检测电流值,这里,充电器发送的检测电流值为通过充电器的串联在电源转换器的输出端和输出接口的电源线之间的检流电路而检测的电流值,检测电流值表征充电器向终端充电时,向终端充电的电流的大小。
在接收电源适配器发送的检测电流值之后,所述方法还包括:将所述充电电流值与所述检测电流值进行比较;当所述充电电流值与所述检测电流值存在电流差值时,确定所述充电电流值与所述检测电流值不匹配。
这里,在接收到检测电流值之后,将接收到的检测电流值与获取的充电电流值进行比较,确定二者是否存在电流差值,当存在电流差值时,表明充电器向终端充电的电流和终端充电时的充电模块接收到的电流存在一定的出入,充电电流值与检测电流值不匹配;当不存在电流差值时,表明充电器向终端充电的电流和终端充电时的充电模块接收到的电流相等,充电电流值与检测电流值匹配。
在获取从所述充电接口接收的充电电流的充电电流值之前,所述方法还包括设置电流差值阈值,所述确定所述充电电流值与所述检测电流值不匹配包括:当所述电流差值大于所述电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配。此时,在将充电电流值与检测电流值进行比较时,当充电电流值与检测电流值存在电流差值的情况下,进一步的确定电流差值是否在电流差值阈值的范围内,当电流差值大于电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配;当电流差值不大于电流差值阈值,未超出电流差值阈值的范围,则确定充电电流值与检测电流值匹配。
S203、当所述充电电流值与所述检测电流值不匹配时,确定充电异常。
当终端确定充电电流值与检测电流值不匹配时,则表明终端的充电模块接收到的电流即从充电接口的输出端接收到的电流小于电源适配器向终端充电的电流,例如:充电接口的输入端接收到的电流小于充电接口输出端输出的电流。这里,充电接口的输入端与输入端相对于当前的充电方向而言,电源适配器向终端充电时,充电接口与电源适配器连接的一端为输
入端,与终端内部的充电模块连接的一端为输出端。
终端在确定充电异常后,所述方法还可包括:触发停止充电指令以指示停止执行充电。这里,确定充电异常时,则确定外围电路如:USB连接器、ESD保护或浪涌保护电路等电路存在短路或者漏电的情况,停止执行充电,并给用户发出告警信息,请用户做出应急处理。
在本发明实施例中,获取充电电流值的步骤和接收电源适配发送的检测电流值的执行顺序不进行限定。
通过本发发明实施例提供的检测充电异常的方法,使得终端在获知电源适配器向终端充电的电流的大小的情况下,将该电流值和自身的充电电流的大小进行比对,精确的检测出当前的外围电路如:USB连接器、ESD保护或浪涌保护电路是否存在短路或漏电等异常情况。
实施例三
本发明实施例中,以通过电源适配器对手机进行充电为应用场景对本发明实施例提供的检测充电异常的方法进行说明,如图3所示,包括:
S301、电源适配器对手机连接进行充电;
将USB数据线一头插入电源适配器,并且适配器接上电,USB数据线的另一头插入手机。这里,手机检测到有适配器插入后,与电源适配器握手后开始充电。此时,电源适配器检测到其输出接口与终端连接且为充电状态,手机检测到其充电接口与电源适配器相连且为充电状态。
S302、手机获取充电电流的充电电流值;
手机侧通过充电管理模块检测手机侧充电电流值I_charger。
S303、电源适配器采集检流电阻两端的电压计算检测电流;
适配器通过模数转换器ADC检测电源适配器内部检流电阻两端的电压,并将检测的电压经过模数转换得到两端的电压值,分别为Va、Vb,将Va、Vb发送至MCU。当MCU获取检流电阻两端电压值Va、Vb后,计算流经检流电阻的检测电流即适配器输出电流I_BUS,其中,I_BUS=(Va-Vb)/R。
S304、电源适配器将检测电流发送至手机;
电源适配器的MCU获取检测电流(适配器输出电流)I_BUS的值后,将I_BUS以数据的形式经USB传输给手机,手机侧接收电源适配器输出的检测电流值后,计算充电模块的充电电流值和检测电流值的电流差值I_leakage=I_BUS-I_charger。这里,电流差值I_leakage即为外围电路的漏电电流的大小。
S305、将电流差值与电流差值阈值进行比较,确定充电异常情况。
根据计算得到的I_leakage确定I_leakage比电流差值阈值(即手机充电外围电路包括USB连接器、ESD保护电路和防浪涌电路等所有外围电路的最大允许漏电电流)要大,则可以判断有短路或者漏电产生,存在充电异常的情况,若确定I_leakage等于或小于电流差值阈值,则充电正常。
S306、手机执行停止充电。
当检测到有短路或漏电产生等充电异常后,停止执行充电,并给用户发出告警信息,请用户做出应急处理。
实施例四
为实现实施例一提供的检测充电异常的方法,本发明实施例提供一种电源适配器,如图4所示,电源适配器包括:输出接口401、电源转换器402,检流电路403以及微控制单元MCU404;其中,检流电路403串联在输出接口401的电源线与电源转换器402的输出端之间;MCU404与检流电路403电连接。
这里,当输出接口401与终端连接且为充电状态时,MCU404检测检流电路403的检测电流值,并通过输出接口401将检测电流值发送至所述终端,使得所述终端根据所述检测电流确定充电异常。
如图5所示,检流电路403包括检流电阻4031和模数转换器4032;模数转换器4032的第一端口和第二端口分别连接至检流电阻4031的两端。
模数转换器4032通过所述第一端口和第二端口采集检流电阻4031两端的电压值得到第一电压值和第二电压值;
MCU404根据所述第一电压值、所述第二电压值得到检流电阻4031的检测电压值;根据所述检测电压值、检流电阻4031的电阻值得到所述检测
电流值。
模数转换器4032设置为:采集检流电阻4031两端的电压,分别得到第一电压和第二电压;对所述第一电压进行模数转换得到所述第一电压值,对所述第二电压进行模数转换得到所述第二电压值,将所述第一电压值和所述第二电压值发送至MCU404。
这里,MCU404与输出接口401的数据负信号线和数据正信号线相连;
MCU404通过所述数据负信号线和所述数据正信号线将所述检测电流以数据的形式发送至终端。
实施例五
为实现上述实施例二提供的检测充电异常的方法,本发明实施例提供一种检测电流异常的装置,应用于终端,如图6所示,所述装置包括:获取模块601,接收模块602和确定模块603;其中,
获取模块601,设置为当检测到充电接口与电源适配器相连且为充电状态时,获取从所述充电接口接收的充电电流的充电电流值;
接收模块602,设置为接收电源适配器发送的检测电流值;
确定模块603,设置为当所述充电电流值与所述检测电流值不匹配时,确定充电异常。
如图7所示,所述装置还可包括:比较模块604,设置为:
将所述充电电流值与所述检测电流值进行比较;
当所述充电电流值与所述检测电流值存在电流差值时,确定所述充电电流值与所述检测电流值不匹配。
如图7所示,所述装置还包括:设置模块605,设置为设置电流差值阈值;
所述比较模块确定所述充电电流值与所述检测电流值不匹配包括:
当所述电流差值大于所述电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配。
如图7所示,所述装置还可包括:控制模块606,设置为在确定充电异
常后触发停止充电指令以指示停止执行充电。
实施例六
为实现上述方法,本发明实施例还提供一种终端,该终端包括充电接口、处理器和存储器,其中,存储器中有计算机可执行代码,处理器设置为根据所述计算机可执行指令执行以下操作:当检测到充电接口与电源适配器相连且为充电状态时,获取从所述充电接口接收的充电电流的充电电流值;接收电源适配器发送的检测电流值;当所述充电电流值与所述检测电流值不匹配时,确定充电异常。
其中,处理器还设置为执行以下操作:
将所述充电电流值与所述检测电流值进行比较;当所述充电电流值与所述检测电流值存在电流差值时,确定所述充电电流值与所述检测电流值不匹配。
这里,在获取从所述充电接口接收的充电电流的充电电流值之前,设置电流差值阈值;相应地,所述确定所述充电电流值与所述检测电流值不匹配包括:
当所述电流差值大于所述电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配。
在确定充电异常后,处理器还设置为触发停止充电指令以指示停止执行充电。
实施例七
在本发明实施例中,提供一种检测充电异常的系统,如图8所示,该系统包括手机81和电源适配器82,其中,手机81作为被充电设备自带充电管理模块812,充电管理模块812与电池813相连。可以监测从电源适配器82经数据线后到充电管理模块812的电流(I_CHARGER)和电压(V_BUS)。这里,电源适配器82中的输出接口401的电源power线路中串入检流电阻R4031,自带ADC模块4032可以采集检流电阻4031两端电压Va和Vb,电源适配器82内的MCU404获取Va和Vb后,可以通过如下公式计算得到电源适配器82输出电流值:I_BUS=(Va-Vb)/R。电源适配器
82通过MCU404将I_BUS数据经USB线的数据负信号线(USB_DM)和数据正信号线(USB_DP)传递给手机81,手机81通过充电接口814接收I_BUS后,通过处理器811将I_BUS与I_CHARGER做对比,即I_LEAKAGE=I_BUS-I_CHARGER,如果I_LEAKAGE超过电流差值阈值,比如100mA,那么此时可判断充电外围电路出现短路或者漏电,停止执行充电,并给用户发出告警信息,请用户做出应急处理。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述检测充电异常的方法。
本申请是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的实施例而已,并非用于限定本申请的保护范围。
在本发明实施中,电源适配器处于充电状态时,通过连接在电源转换器的输出端和输出接口的电源线之间的检流电路的检测电流值确定电源适配器发送给终端的电流值的大小,根据该电流值的大小确定终端是否处于充电异常状态;当终端接收到检测电流值,确定检测电流值和充电电流的大小不匹配时,则确定终端处于充电异常状态。本方案中对终端不进行任何硬件的改动的前提下,实现了终端的充电异常的检测,避免因USB连接器等短路后漏电等充电异常情况的发生而导致更大故障和损失。
Claims (18)
- 一种检测充电异常的方法,所述方法包括:当检测到输出接口与终端连接且为充电状态时,检测检流电路的检测电流值;其中,所述检流电路串联在电源转换器的输出端和所述输出接口的电源线之间;通过所述输出接口将所述检测电流值发送至所述终端,使得所述终端根据所述检测电流确定充电是否异常。
- 根据权利要求1所述的方法,其中,所述检测检流电路的检测电流值包括:通过所述检流电路的模数转换器检测所述检流电路的检流电阻两端的电压,得到第一电压值和第二电压值;根据所述第一电压值和所述第二电压值得到所述检流电阻的检测电压值;根据所述检测电压值和所述检流电阻的电阻值得到所述检测电流值。
- 根据权利要求2所述的方法,其中,所述通过所述检流电路的模数转换器检测所述检流电路的检流电阻两端的电压,得到第一电压值和第二电压值;包括:通过所述模数转换器采集所述检流电阻两端的电压,分别得到第一电压和第二电压;对所述第一电压进行模数转换得到所述第一电压值,对所述第二电压进行模数转换得到所述第二电压值。
- 根据权利要求1所述的方法,其中,将所述检测电流值通过所述输出接口将所述检测电流发送至所述终端包括:通过所述输出接口的数据负信号线和数据正信号线将所述检测电流以数据的形式发送至所述终端。
- 一种检测充电异常的方法,所述方法包括:当检测到充电接口与电源适配器相连且为充电状态时,获取从所述充电 接口接收的充电电流值;接收电源适配器发送的检测电流值;当所述充电电流值与所述检测电流值不匹配时,确定充电异常。
- 根据权利要求5所述的方法,其中,在接收电源适配器发送的检测电流值之后,所述方法还包括:将所述充电电流值与所述检测电流值进行比较;当所述充电电流值与所述检测电流值存在电流差值时,确定所述充电电流值与所述检测电流值不匹配。
- 根据权利要求6所述的方法,其中,在获取从所述充电接口接收的充电电流值之前,所述方法还包括:设置电流差值阈值;所述确定所述充电电流值与所述检测电流值不匹配包括:当所述电流差值大于所述电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配。
- 根据权利要求5所述的方法,其中,在确定充电异常后,所述方法还包括:触发停止充电指令以指示停止执行充电。
- 一种电源适配器,所述电源适配器包括:输出接口、电源转换器,检流电路以及微控制单元MCU;其中,所述检流电路串联在所述输出接口的电源线与所述电源转换器的输出端之间;所述MCU与所述检流电路电连接。
- 根据权利要求9所述的电源适配器,其中,当所述输出接口与终端连接且为充电状态时,所述MCU检测所述检流电路的检测电流值,并通过所述输出接口将所述检测电流值发送至所述终端,使得所述终端根据所述检测电流确定充电是否异常。
- 根据权利要求9所述的电源适配器,其中,所述检流电路包括检流电阻和模数转换器;所述模数转换器的第一端口和第二端口分别连接至所述 检流电阻的两端。
- 根据权利要求11所述的电源适配器,其中,所述模数转换器通过所述第一端口和第二端口采集所述检流电阻两端的电压值,得到第一电压值和第二电压值;所述MCU根据所述第一电压值和所述第二电压值得到所述检流电阻的检测电压值;根据所述检测电压值和所述检流电阻的电阻值得到所述检测电流值。
- 根据权利要求12所述的电源适配器,其中,所述模数转换器设置为:采集所述检流电阻两端的电压,分别得到第一电压和第二电压;对所述第一电压进行模数转换得到所述第一电压值,对所述第二电压进行模数转换得到所述第二电压值,将所述第一电压值和所述第二电压值发送至所述MCU。
- 根据权利要求10所述的电源适配器,其中,所述MCU与所述输出接口的数据负信号线和数据正信号线相连;所述MCU通过所述数据负信号线和所述数据正信号线将所述检测电流以数据的形式发送至终端。
- 一种检测电流异常的装置,所述装置包括:获取模块,接收模块和确定模块;其中,所述获取模块,设置为当检测到充电接口与电源适配器相连且为充电状态时,获取从所述充电接口接收的充电电流值;所述接收模块,设置为接收电源适配器发送的检测电流值;所述确定模块,设置为当所述充电电流值与所述检测电流值不匹配时,确定充电异常。
- 根据权利要求15所述的装置,所述装置还包括:比较模块,设置为:将所述充电电流值与所述检测电流值进行比较;当所述充电电流值与所述检测电流值存在电流差值时,确定所述充电电流值与所述检测电流值不匹配。
- 根据权利要求16所述的装置,所述装置还包括:设置模块,设置为设置电流差值阈值;所述比较模块设置为:当所述电流差值大于所述电流差值阈值时,确定所述充电电流值与所述检测电流值不匹配。
- 根据权利要求15所述的装置,所述装置还包括:控制模块,设置为在确定充电异常后触发停止充电指令以指示停止执行充电。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP17865486.9A EP3534167A4 (en) | 2016-10-26 | 2017-04-17 | LOAD ANOMALY DETECTION METHOD AND DEVICE AND POWER ADAPTER |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610952425.1 | 2016-10-26 | ||
CN201610952425.1A CN107991571A (zh) | 2016-10-26 | 2016-10-26 | 一种检测充电异常的方法、装置及电源适配器 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018076623A1 true WO2018076623A1 (zh) | 2018-05-03 |
Family
ID=62024539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/080752 WO2018076623A1 (zh) | 2016-10-26 | 2017-04-17 | 一种检测充电异常的方法、装置及电源适配器 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP3534167A4 (zh) |
CN (1) | CN107991571A (zh) |
WO (1) | WO2018076623A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113155113A (zh) * | 2021-04-22 | 2021-07-23 | 西安易朴通讯技术有限公司 | 一种消除电子罗盘充电干扰的系统、方法及电子设备 |
CN113589202A (zh) * | 2020-04-30 | 2021-11-02 | 华为技术有限公司 | 充电接口的检测电路和检测装置 |
CN114284811A (zh) * | 2021-12-27 | 2022-04-05 | 协讯电子(吉安)有限公司 | 一种数据传输线 |
US11768253B1 (en) * | 2022-03-28 | 2023-09-26 | Cypress Semiconductor Corporation | Floating ground architectures in USB type-C controllers for fault detection |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102675130B1 (ko) | 2018-08-20 | 2024-06-13 | 삼성전자주식회사 | Usb 인터페이스에서 파워 딜리버리를 보장하기 위한 장치 및 방법 |
CN110417994A (zh) * | 2019-07-08 | 2019-11-05 | 深圳市创成微电子有限公司 | 一种实现手机直播与充电同步的方法及声卡 |
CN110824286B (zh) * | 2019-11-29 | 2022-07-19 | 恒大恒驰新能源汽车研究院(上海)有限公司 | 充电异常检测方法、充电设备、计算机设备及存储介质 |
DE102020203586A1 (de) | 2020-03-20 | 2021-09-23 | Robert Bosch Gesellschaft mit beschränkter Haftung | Schutzvorrichtung für ein an eine Schnittstelle angeschlossenes elektronisches Bauteil |
CN111896884B (zh) * | 2020-07-31 | 2023-11-14 | 北京小米移动软件有限公司 | 充电检测方法及装置 |
CN114710738B (zh) * | 2022-03-31 | 2023-03-24 | 深圳市微源半导体股份有限公司 | 一种基于通信方式的tws耳机的汗液检测方法 |
CN116203307B (zh) * | 2023-02-28 | 2024-03-12 | 无锡宇宁智能科技有限公司 | 终端Type-C接口异物检测方法、装置及存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101034849A (zh) * | 2006-03-08 | 2007-09-12 | 三星电子株式会社 | 功率转换设备、包括该设备的电子设备、及功率转换方法 |
CN202374008U (zh) * | 2011-12-21 | 2012-08-08 | 深圳市经纬科技有限公司 | 手机充电电路 |
CN103633709A (zh) * | 2013-12-11 | 2014-03-12 | Tcl通讯(宁波)有限公司 | 一种充电识别系统及其识别方法 |
CN203747392U (zh) * | 2014-01-28 | 2014-07-30 | 广东欧珀移动通信有限公司 | 电子设备及其电源适配器 |
CN104810877A (zh) * | 2014-01-28 | 2015-07-29 | 广东欧珀移动通信有限公司 | 电池充电装置及方法 |
EP3032693A1 (en) * | 2014-12-11 | 2016-06-15 | MediaTek, Inc | Electronic device and power adapter capable of communicating with each other, and associated charging system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5106085B2 (ja) * | 2007-12-19 | 2012-12-26 | 株式会社エヌ・ティ・ティ・ドコモ | 電池試験装置及び電池試験方法 |
CN202886460U (zh) * | 2012-04-10 | 2013-04-17 | 谢强 | 一种pcie显卡维修测试仪 |
CN108535594A (zh) * | 2014-01-28 | 2018-09-14 | 广东欧珀移动通信有限公司 | 接口插接异常检测电路和方法 |
AU2015210565B2 (en) * | 2014-01-28 | 2017-09-07 | Guang Dong Oppo Mobile Telecommunications Corp., Ltd. | Power adapter, terminal, and method for processing impedance exception of charging loop |
CN105319475B (zh) * | 2014-07-31 | 2018-11-30 | 立锜科技股份有限公司 | 异常连接侦测方法 |
CN105790331A (zh) * | 2014-12-25 | 2016-07-20 | 原秀科技(重庆)有限公司 | 一种锂离子电池快速充电器 |
-
2016
- 2016-10-26 CN CN201610952425.1A patent/CN107991571A/zh active Pending
-
2017
- 2017-04-17 WO PCT/CN2017/080752 patent/WO2018076623A1/zh unknown
- 2017-04-17 EP EP17865486.9A patent/EP3534167A4/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101034849A (zh) * | 2006-03-08 | 2007-09-12 | 三星电子株式会社 | 功率转换设备、包括该设备的电子设备、及功率转换方法 |
CN202374008U (zh) * | 2011-12-21 | 2012-08-08 | 深圳市经纬科技有限公司 | 手机充电电路 |
CN103633709A (zh) * | 2013-12-11 | 2014-03-12 | Tcl通讯(宁波)有限公司 | 一种充电识别系统及其识别方法 |
CN203747392U (zh) * | 2014-01-28 | 2014-07-30 | 广东欧珀移动通信有限公司 | 电子设备及其电源适配器 |
CN104810877A (zh) * | 2014-01-28 | 2015-07-29 | 广东欧珀移动通信有限公司 | 电池充电装置及方法 |
EP3032693A1 (en) * | 2014-12-11 | 2016-06-15 | MediaTek, Inc | Electronic device and power adapter capable of communicating with each other, and associated charging system |
Non-Patent Citations (1)
Title |
---|
See also references of EP3534167A4 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113589202A (zh) * | 2020-04-30 | 2021-11-02 | 华为技术有限公司 | 充电接口的检测电路和检测装置 |
CN113589202B (zh) * | 2020-04-30 | 2023-01-13 | 华为技术有限公司 | 充电接口的检测电路和检测装置 |
CN113155113A (zh) * | 2021-04-22 | 2021-07-23 | 西安易朴通讯技术有限公司 | 一种消除电子罗盘充电干扰的系统、方法及电子设备 |
CN114284811A (zh) * | 2021-12-27 | 2022-04-05 | 协讯电子(吉安)有限公司 | 一种数据传输线 |
US11768253B1 (en) * | 2022-03-28 | 2023-09-26 | Cypress Semiconductor Corporation | Floating ground architectures in USB type-C controllers for fault detection |
US20230305077A1 (en) * | 2022-03-28 | 2023-09-28 | Cypress Semiconductor Corporation | Floating ground architectures in usb type-c controllers for fault detection |
Also Published As
Publication number | Publication date |
---|---|
CN107991571A (zh) | 2018-05-04 |
EP3534167A1 (en) | 2019-09-04 |
EP3534167A4 (en) | 2020-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018076623A1 (zh) | 一种检测充电异常的方法、装置及电源适配器 | |
US10670668B2 (en) | Electronic device | |
AU2014415910B2 (en) | Charging protection method and apparatus | |
DK3101762T3 (en) | POWER ADAPTERS, TERMINAL AND METHOD OF TREATING IMPEDANCE HOURS IN A CHARGING CIRCUIT | |
CN106165236B (zh) | 终端、电源适配器和充电异常的处理方法 | |
JP5388484B2 (ja) | 電源を検出するための装置および方法 | |
EP3086433A1 (en) | Charging method, alternating current adaptor, charging management device and terminal | |
TWI657641B (zh) | 充電電路及電池充電保護控制方法 | |
CN105826894B (zh) | 电源设备的充电短路保护装置和电源设备 | |
FI4033632T3 (fi) | Sähköajoneuvosta sähköajoneuvoon -lataus | |
CN105471008A (zh) | 一种信息处理方法、第一电子设备和第二电子设备 | |
TW201907302A (zh) | 一種連接器的故障處理方法和系統 | |
CN105404450A (zh) | 一种信息处理方法及电子设备 | |
JP5852404B2 (ja) | 電子制御装置 | |
US11424637B2 (en) | Charging control method, power adapter and mobile terminal | |
US10554058B2 (en) | Systems and methods for monitoring an operating status of a connector | |
CN102998590B (zh) | 连接器检测装置及检测方法 | |
CN202798035U (zh) | 一种充电方式检测电路及移动终端 | |
JP2021532485A (ja) | アダプタの機能テスト方法及び装置、機器、記憶媒体 | |
CN110768315B (zh) | 一种充电接口的保护方法及系统、存储介质 | |
JP2007018761A (ja) | 2次電池の充電システム装置 | |
CN106650512B (zh) | 一种保护电子设备的方法及电子设备 | |
WO2018053723A1 (zh) | 电源适配器、移动终端及充电系统 | |
WO2016045350A1 (zh) | 充电电池、充电电池的使用方法以及充电系统 | |
CN112186819A (zh) | 巡检机器人、供电系统保护装置及其控制方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17865486 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2017865486 Country of ref document: EP Effective date: 20190527 |