CN115586828A - USB load equipment access identification circuit and method and power supply system - Google Patents

USB load equipment access identification circuit and method and power supply system Download PDF

Info

Publication number
CN115586828A
CN115586828A CN202211495715.XA CN202211495715A CN115586828A CN 115586828 A CN115586828 A CN 115586828A CN 202211495715 A CN202211495715 A CN 202211495715A CN 115586828 A CN115586828 A CN 115586828A
Authority
CN
China
Prior art keywords
voltage
usb
pull
detection module
usb load
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
CN202211495715.XA
Other languages
Chinese (zh)
Other versions
CN115586828B (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.)
Zhuhai Zhirong Technology Co ltd
Original Assignee
Zhuhai Zhirong Technology 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 Zhuhai Zhirong Technology Co ltd filed Critical Zhuhai Zhirong Technology Co ltd
Priority to CN202211495715.XA priority Critical patent/CN115586828B/en
Publication of CN115586828A publication Critical patent/CN115586828A/en
Application granted granted Critical
Publication of CN115586828B publication Critical patent/CN115586828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16533Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16571Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing AC or DC current with one threshold, e.g. load current, over-current, surge current or fault current
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a USB load equipment access identification circuit, a method and a power supply system, belonging to the technical field of USB load equipment access identification.

Description

USB load equipment access identification circuit and method and power supply system
Technical Field
The invention relates to the technical field of USB load equipment access identification, in particular to a USB load equipment access identification circuit, a USB load equipment access identification method and a power supply system.
Background
With the rapid popularization of a series of portable electronic products such as mobile phones, tablets, wireless headsets, smart watches, notebook computers and the like, the USB charging technology has also developed rapidly, and the USB charging device becomes the most typical USB load device. However, in the existing USB load device access identification technology, after the VBUS power supply output is turned off, the CC pin of the USB load device periodically performs Toggle, where Toggle refers to a DRP (dual role, or power supply end, or power receiving end, which can be changed at any time as required) periodically switching between two role states, namely SRC (power supply end) and SNK (power receiving end), and may falsely trigger the USB load device access identification of the USB interface, that is, falsely deem that the USB load device is accessed to the USB interface.
Disclosure of Invention
The invention aims to provide a USB load equipment access identification circuit, a USB load equipment access identification method and a power supply system, which can accurately identify the access of USB load equipment, and avoid the phenomenon that the access identification of the USB load equipment of a USB interface is triggered by mistake due to the periodic Toggle action of a CC pin of the USB load equipment after the power supply output of a VBUS is switched off.
In order to achieve the purpose, the invention provides the following scheme:
a USB load device access identification circuit, the identification circuit comprising: the device comprises a VBUS detection module, a DPDM detection module and an identification control module;
the VBUS detection module is electrically connected with a VBUS pin of a USB interface and used for detecting a first voltage of the VBUS pin and comparing the first voltage with a first preset reference voltage to obtain a first comparison signal;
the DPDM detection module is electrically connected with a target pin of the USB interface and used for detecting a second voltage of the target pin and comparing the second voltage with a second preset reference voltage to obtain a second comparison signal; the target pin is a DP pin or a DM pin of the USB interface;
the identification control module is respectively in communication connection with the VBUS detection module and the DPDM detection module, and is used for determining whether the USB load equipment is connected currently according to the second comparison signal; and after determining that no USB load equipment is connected currently, performing access identification on the USB load equipment according to the first comparison signal and the second comparison signal.
In some embodiments, the VBUS detection module comprises: the first pull-up voltage source, the first pull-up circuit and the first voltage comparator;
one end of the first pull-up circuit is connected with the first pull-up voltage source, and the other end of the first pull-up circuit is connected with the VBUS pin; the first pull-up voltage source is used for providing a first preset weak pull-up voltage for the VBUS pin; the first preset weak pull-up voltage is higher than the first preset reference voltage;
the non-inverting input end of the first voltage comparator is connected with the VBUS pin, and the inverting input end of the first voltage comparator is connected with the first preset reference voltage; the output signal of the first voltage comparator is the first comparison signal.
In some embodiments, the first pull-up circuit comprises a first switch and a first resistor; one end of the first switch is connected with the first pull-up voltage source, the other end of the first switch is connected with one end of the first resistor, and the other end of the first resistor is connected with the VBUS pin.
In some embodiments, the DPDM detection module includes: the second pull-up voltage source, the second pull-up circuit and the second voltage comparator;
one end of the second pull-up circuit is connected with the second pull-up voltage source, and the other end of the second pull-up circuit is connected with the target pin; the second pull-up voltage source is used for providing a second preset weak pull-up voltage for the target pin; the second preset weak pull-up voltage is higher than the second preset reference voltage;
the non-inverting input end of the second voltage comparator is connected with the target pin, and the inverting input end of the second voltage comparator is connected with the second preset reference voltage; the output signal of the second voltage comparator is the second comparison signal.
In some embodiments, the second pull-up circuit comprises a second switch and a second resistor; one end of the second switch is connected with the second pull-up voltage source, the other end of the second switch is connected with one end of the second resistor, and the other end of the second resistor is connected with the target pin.
A USB load device access identification method controls the identification circuit to work, and the identification method comprises the following steps:
determining whether the USB load equipment is connected currently or not according to a second comparison signal obtained by the DPDM detection module;
and if the USB load equipment is determined not to be connected currently, performing access identification on the USB load equipment according to the first comparison signal and the second comparison signal obtained by the VBUS detection module.
In some embodiments, the determining whether the current USB load device is connected according to the second comparison signal obtained by the DPDM detection module specifically includes:
judging whether a second comparison signal obtained by the DPDM detection module is at a high level;
if yes, determining that no USB load equipment is connected currently;
otherwise, determining that the USB load equipment is connected currently.
In some embodiments, the identifying the access of the USB load device according to the first comparison signal and the second comparison signal obtained by the VBUS detection module specifically includes:
judging whether the first comparison signal obtained by the VBUS detection module is converted from a high level to a low level or whether the second comparison signal is converted from the high level to the low level;
if yes, determining that the USB load equipment is accessed;
otherwise, determining that no USB load equipment is accessed.
A USB load equipment access identification power supply system comprises a plurality of USB load equipment access identification circuits; the identification control module of the USB load equipment access identification circuit is used for controlling the power supply system by adopting different power supply control strategies after the USB load equipment is accessed and identified by the USB load equipment access identification method.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention is used for providing a USB load equipment access identification circuit, a method and a power supply system, comprising a VBUS detection module, a DPDM detection module and an identification control module, wherein whether the USB load equipment is connected currently is determined according to a second comparison signal output by the DPDM detection module, after the USB load equipment is determined to be connected currently, the USB load equipment is accessed and identified according to a first comparison signal output by the VBUS detection module and a second comparison signal output by the DPDM detection module, correction and complementation are carried out through the DPDM detection module and the VBUS detection module, and misdetection and missed detection can be reduced, so that the access action of the USB load equipment is identified more accurately, and the phenomenon that the periodical Toggle action of a CC pin of the USB load equipment falsely triggers the USB load equipment access identification of a USB interface after the VBUS power supply output is switched off is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of a prior art VBUS voltage detection mechanism based access identification circuit;
FIG. 2 is a schematic diagram illustrating false trigger access identification of a Type-A to Type-C cable application scenario in the prior art;
FIG. 3 is a diagram of a DPDM-based access identification circuit in the prior art;
fig. 4 is a schematic connection diagram of a USB load device access identification circuit according to embodiment 1 of the present invention;
FIG. 5 is a circuit diagram of a VBUS detection module provided in embodiment 1 of the present invention;
fig. 6 is a circuit structure diagram of a DPDM detection module according to embodiment 1 of the present invention;
fig. 7 is a flowchart of a method for identifying access to a USB load device according to embodiment 2 of the present invention;
fig. 8 is a schematic block diagram of a USB load device access identification method according to embodiment 2 of the present invention;
fig. 9 is a control flow chart of a USB load device access identification method according to embodiment 2 of the present invention;
fig. 10 is a schematic diagram of a power supply system provided in embodiment 3 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a USB load equipment access identification circuit, a USB load equipment access identification method and a power supply system, which can accurately identify the access of USB load equipment, and avoid the phenomenon that the access identification of the USB load equipment of a USB interface is triggered by mistake due to the periodic Toggle action of a CC pin of the USB load equipment after the power supply output of a VBUS is switched off.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example 1:
the plug detection technology of the USB load equipment is a key technology in the field of USB charging. Accurate USB interface plug state discernment provides convenience for intelligent management means such as power supply system's energy consumption management, quick charge control, many mouthfuls of power distribution and anti-overcharging protection. In portable energy storage applications such as mobile power supplies and outdoor power supplies, if a USB load device is fully charged and still connected to a USB interface, the power output of the USB interface connected to the USB load device needs to be turned off, and a low power consumption mode is entered to prolong the endurance time of a power supply system.
For example, in the application of a multi-port charger, especially in the application of a multi-port shared single-path power supply, when two or more USB interfaces are connected to a USB load device at the same time, if one of the USB load devices is full, the power supply output of the USB interface full of the path needs to be turned off, so that the USB load devices of other USB interfaces can be charged quickly or obtain a larger charging power. In the application of preventing overcharging, when the USB load equipment is fully charged, the power supply output of the USB interface needs to be closed, so that the reduction of the service life of a battery and other potential safety hazards caused by continuous charging of the USB load equipment are avoided.
In these application scenarios, the USB load device is usually detected to be removed or filled with current. However, due to the limitation of the detection means, it is often impossible to distinguish whether the USB load device is actually moved out or is still connected to the USB interface when the USB load device is fully charged, and at this time, the power supply output of the USB interface is turned off all the time, and then the access detection of the USB load device is enabled. However, since the conventional USB load device access identification technology is based on a VBUS voltage detection mechanism, as shown in fig. 1, a first preset weak pull-up voltage VSET1 is output at a VBUS pin, where the first preset weak pull-up voltage VSET1 is higher than a first preset reference voltage VREF1, and the voltage of the VBUS pin is compared with the first preset reference voltage VREF1 by a comparator. When the USB load equipment is connected, the input resistor Ro1 and the input capacitor Co1 of the USB load equipment can generate pull-down to instantly pull the voltage of the VBUS pin to be lower than a first preset reference voltage VREF1, and when no USB load equipment is connected, the voltage of the VBUS pin is equal to a first preset weak pull-up voltage VSET1 and is higher than the first preset reference voltage VREF1. The voltage of the VBUS pin is identified and compared with a first preset reference voltage VREF1 to obtain a comparison signal DET-OUT1, and therefore access identification of the USB load equipment can be conducted according to the comparison signal DET-OUT 1. The above USB load device access identification technology cannot solve the following application problems: the Type-C port of charging equipment such as mobile phones, tablets and notebook computers is generally in a DRP role, in a scene that a Type-A-to-Type-C cable is adopted to charge the charging equipment, a CC1 pin or a CC2 pin of the charging equipment is connected with a CC line of the cable, the CC1 pin and the CC2 pin of the charging equipment are two pins which are completely symmetrical, when the charging equipment is fully charged, and after the VBUS power supply output of a connected USB interface is cut off, the CC1 pin and the CC2 pin of the charging equipment can enter a Toggle state, and the charging equipment is pulled up and pulled down periodically. As shown in fig. 2, because a 56k resistor is connected in series between the VBUS pin and the CC pin in the Type-a to Type-C cable, when the charging device Toggle reaches Rp, the voltage of the VBUS pin of the USB interface is pulled up through the 56k resistor; when charging equipment Toggle reaches Rd, the voltage of a VBUS pin of the USB interface is pulled down through a 56k resistor, it should be noted that pull-up resistors of a CC1 pin and a CC2 pin are Rp, and a pull-down resistor is Rd, and when Toggle reaches the pull-up resistor Rp, the charging equipment Toggle serves as a power supply role, and when Toggle reaches the pull-down resistor Rd, the charging equipment Toggle serves as a power receiving role. Such pull-up and pull-down processes may falsely trigger the device access identification of the USB interface, and falsely believe that there is USB load device access.
In order to solve the problem of the device access identification of the false triggering USB interface, in this embodiment, in order to solve the access identification problem that a cable (for example, an apple cable) connected with a VBUS leakage path is connected first and then connected to a USB load device, a detection mechanism based on a DPDM voltage is newly introduced on the basis of a VBUS voltage detection mechanism. As shown in fig. 3, a second preset weak pull-up voltage VSET2 is output at the DP pin or the DM pin, the second preset weak pull-up voltage VSET2 is higher than a second preset reference voltage VREF2, and the voltage of the DP pin or the DM pin is compared with the second preset reference voltage VREF2 by a comparator. When the USB load device is connected, the voltage of the DP pin or the DM pin of the USB load device is instantaneously pulled to be lower than a second preset reference voltage VREF2 by a pull-down path of the DP pin or the DM pin of the USB load device, and when no USB load device is connected, the voltage of the DP pin or the DM pin is equal to the second preset weak pull-up voltage VSET2 and is higher than the second preset reference voltage VREF2. The voltage of the DP pin or the DM pin is identified and compared with a second preset reference voltage VREF2 to obtain a comparison signal DET-OUT2, and then access identification of the USB load equipment can be carried OUT according to the comparison signal DET-OUT 2. On this basis, the embodiment provides a new USB load device access identification technology, which can accurately identify the access of the USB load device, and avoid the USB load device access identification of the USB interface being triggered by a false trigger due to the periodic Toggle action of the CC pin of the USB load device after the VBUS output is turned off.
This embodiment is used to provide a USB load device access identification circuit, as shown in fig. 4, the identification circuit includes: VBUS detection module, DPDM detection module and discernment control module.
And the VBUS detection module is electrically connected with a VBUS pin of the USB interface and used for detecting a first voltage of the VBUS pin and comparing the first voltage of the VBUS pin with a first preset reference voltage to obtain a first comparison signal. The USB interface is used for being electrically connected with the USB load equipment through the USB cable when the USB load equipment is accessed, and supplying power for the USB load equipment.
Specifically, as shown in fig. 5, the VBUS detection module of this embodiment includes: a first pull-up voltage source, a first pull-up circuit, and a first voltage comparator CMP1. One end of the first pull-up circuit is connected with a first pull-up voltage source, the other end of the first pull-up circuit is connected with the VBUS pin, the first pull-up voltage source is used for providing a first preset weak pull-up voltage VSET1 for the VBUS pin when the first pull-up circuit is enabled, and the first preset weak pull-up voltage VSET1 is higher than a first preset reference voltage VREF1. The non-inverting input terminal of the first voltage comparator CMP1 is connected to the VBUS pin, the inverting input terminal is connected to a first preset reference voltage VREF1, and the output signal of the first voltage comparator CMP1 is the first comparison signal CMPOUT1. The first pull-up circuit comprises a first switch S1 and a first resistor R1, one end of the first switch S1 is connected with a first pull-up voltage source, the other end of the first switch S1 is connected with one end of the first resistor R1, and the other end of the first resistor R1 is connected with a VBUS pin. The closing and opening of the first switch S1 determines the enabling and closing of the first pull-up circuit. The first pull-up circuit can be controlled to be enabled by controlling the first switch S1 to be conducted, at the moment, the VBUS detection module starts to work to generate a first comparison signal CMPOUT1, and when the first voltage of the VBUS pin is higher than a first preset reference voltage VREF1, the first comparison signal CMPOUT1 is output to be at a high level; when the first voltage of the VBUS pin is lower than the first preset reference voltage VREF1, the first comparison signal CMPOUT1 is output at a low level.
And the DPDM detection module is electrically connected with a target pin of the USB interface and used for detecting a second voltage of the target pin and comparing the second voltage of the target pin with a second preset reference voltage to obtain a second comparison signal, wherein the target pin is a DP pin or a DM pin of the USB interface.
Specifically, as shown in fig. 6, the DP pin is used as the target pin at this time, and the DPDM detection module of this embodiment includes: a second pull-up voltage source, a second pull-up circuit, and a second voltage comparator CMP2. One end of the second pull-up circuit is connected with a second pull-up voltage source, the other end of the second pull-up circuit is connected with the target pin, the second pull-up voltage source is used for providing a second preset weak pull-up voltage VSET2 for the target pin when the second pull-up circuit is enabled, and the second preset weak pull-up voltage VSET2 is higher than a second preset reference voltage VREF2. The non-inverting input terminal of the second voltage comparator CMP2 is connected to the target pin, the inverting input terminal is connected to a second preset reference voltage VREF2, and the output signal of the second voltage comparator CMP2 is the second comparison signal CMPOUT2. The second pull-up circuit comprises a second switch S2 and a second resistor R2, one end of the second switch S2 is connected with a second pull-up voltage source, the other end of the second switch S2 is connected with one end of the second resistor R2, and the other end of the second resistor R2 is connected with a target pin. The closing and opening of the second switch S2 determines the enabling and closing of the second pull-up circuit. The second pull-up circuit can be controlled to be enabled by controlling the second switch S2 to be conducted, at the moment, the DPDM detection module starts to work to generate a second comparison signal CMPOUT2, when the second voltage of the target pin is higher than a second preset reference voltage VREF2, the second comparison signal CMPOUT2 is output to be a high level, and no USB load equipment is connected at the moment; when the second voltage of the target pin is lower than the second preset reference voltage VREF2, the second comparison signal CMPOUT2 is output as a low level, and at this time, the USB load device is connected.
It should be noted that, the DPDM detection module can achieve the same technical effect by using the DP pin or the DM pin as the target pin.
The identification control module is respectively in communication connection with the VBUS detection module and the DPDM detection module and is used for determining whether the USB load equipment is connected currently or not according to the second comparison signal; and after determining that no USB load equipment is connected at present, performing access identification on the USB load equipment according to the first comparison signal and the second comparison signal. It should be noted that, the connection in this embodiment means that the USB load device is always connected to the USB interface, and the connection means that the USB load device is connected to the USB interface for the first time.
In order to implement the control and identification of the above sequence, the identification control module of this embodiment can control the enabling of the VBUS detection module and the DPDM detection module, first enable the DPDM detection module, output a second preset weak pull-up voltage at the target pin, and if it is determined that the USB interface is currently in a state where the USB load device is connected, not enable the VBUS detection module; if the USB interface is determined to be in a state without USB load equipment connection at present, the VBUS detection module is enabled, a first preset weak pull-up voltage is output at the VBUS pin, and whether USB load equipment is connected or not is judged according to a first comparison signal output by the VBUS detection module and a second comparison signal output by the DPDM detection module. Or, the DPDM detection module is enabled first, and after the second comparison signal output by the DPDM detection module is used to determine that the USB interface still has the USB load device connected currently, the VBUS detection module is enabled but does not respond to the access identification result of the VBUS detection module until the second comparison signal determines that the USB interface does not have the USB load device connected currently, and the determination of whether the USB load device is connected is realized according to the first comparison signal output by the VBUS detection module and the second comparison signal output by the DPDM detection module. Or, the VBUS detection module and the DPDM detection module are enabled at the same time, before the USB interface is determined to be in the no-load device connection state through the second comparison signal output by the DPDM detection module, the access identification result of the VBUS detection module is not responded, until it is determined according to the second comparison signal that the USB interface is currently no-load device connected, the access identification result of the VBUS detection module is not responded, and the determination of whether the USB load device is accessed is achieved according to the first comparison signal output by the VBUS detection module and the second comparison signal output by the DPDM detection module. Through the three modes, the phenomenon that the VBUS voltage-based access detection mechanism is triggered by mistake due to the action of the CC pin of the USB load equipment on the periodical Toggle after the VBUS output is turned off under the condition that the USB load equipment is connected with the USB interface can be avoided.
The USB load device access identification circuit provided in this embodiment includes a VBUS detection module, a DPDM detection module, and an identification control module, where when the voltage of the DP pin or the DM pin is higher than a second preset reference voltage, it is determined that the USB interface is currently in a state without USB load device connection, then when any one of the DPDM detection module and the VBUS detection module detects valid, it is determined that the USB load device is accessed, and access identification is performed through the VBUS detection module only when it is determined that no USB load device is connected, so that it can be avoided that after VBUS output is turned off, a CC pin of the USB load device periodically triggers access identification of the USB interface.
Example 2:
this embodiment is configured to provide an identification method for accessing a USB load device, and control the identification circuit described in embodiment 1 to operate, where as shown in fig. 7, the identification method includes:
s1: determining whether the USB load equipment is connected currently or not according to a second comparison signal obtained by the DPDM detection module;
judging whether a second comparison signal obtained by the DPDM detection module is in a high level; if yes, determining that no USB load equipment is connected currently; otherwise, determining that the USB load equipment is connected currently.
S2: and if the USB load equipment is determined not to be connected currently, performing access identification on the USB load equipment according to the first comparison signal and the second comparison signal obtained by the VBUS detection module.
Judging whether the first comparison signal obtained by the VBUS detection module is converted from a high level to a low level or whether the second comparison signal is converted from the high level to the low level; if yes, determining that the USB load equipment is accessed; otherwise, determining that no USB load equipment is accessed.
Specifically, as shown in fig. 8, the identification method of this embodiment may include: controlling a second pull-up circuit of the DPDM detection module to be conducted, outputting a second preset weak pull-up voltage to a DP pin or a DM pin serving as a target pin, detecting a second voltage of the target pin, and comparing the second voltage of the target pin with a second preset reference voltage to obtain a second comparison signal; judging whether the USB interface is in a state without USB load equipment connection at present according to the second comparison signal; if the second comparison signal is at a high level, that is, the second voltage of the target pin is higher than the second preset reference voltage, it is determined that the USB interface is currently in a state without USB load device connection, at this time, it is monitored whether the second comparison signal has a jump process from the high level to a low level, and if so, it is recognized that the USB load device is connected. And simultaneously enabling the VBUS detection module, controlling a first pull-up circuit of the VBUS detection module to be conducted, outputting a first preset weak pull-up voltage to the VBUS pin, detecting a first voltage of the VBUS pin, comparing the first voltage of the VBUS pin with a first preset reference voltage to obtain a first comparison signal, monitoring whether the first comparison signal has a jump process from a high level to a low level if the first comparison signal is the high level, and identifying that the USB load equipment is accessed if the first comparison signal is the high level. And any one of the DPDM detection module and the VBUS detection module, which detects that the USB load equipment is accessed, represents that the USB load equipment access identification is effective.
It should be noted that, obtaining the equivalent technical effect, the following two control implementation manners are included but not limited:
firstly, after judging that the USB interface still has the USB load equipment connected currently through the second comparison signal output by the DPDM detection module, the VBUS detection module is enabled, but the access identification result of the VBUS detection module is not responded, and after judging that the USB interface is in the state without the USB load equipment connected through the second comparison signal output by the DPDM detection module, the access identification result of the VBUS detection module is responded.
And secondly, the VBUS detection module and the DPDM detection module are enabled simultaneously, the access identification result of the VBUS detection module is not responded before the USB interface is judged to be in the state without USB load equipment connection through a second comparison signal output by the DPDM detection module, and the access identification result of the VBUS detection module is responded after the USB interface is judged to be in the state without USB load equipment connection through the second comparison signal output by the DPDM detection module.
More specifically, as shown in fig. 9, the method for identifying USB device access in this embodiment includes the following steps:
step 901, enable the DPDM detection module.
Step 902, outputting a second preset weak pull-up voltage at a target pin (DP pin or DM pin), and detecting a second voltage of the target pin.
Step 903, comparing and judging whether the second voltage of the target pin is higher than a second preset reference voltage. If yes, executing step 904 and step 905 in parallel; if not, the step 903 is maintained, and the second voltage of the target pin is continuously compared with the second preset reference voltage.
Step 904, comparing and determining whether the second voltage of the target pin is lower than a second preset reference voltage. If yes, go to step 909; if not, in step 904, the second voltage of the target pin is continuously compared with the second preset reference voltage.
Step 905, enable the VBUS detection module.
Step 906, a first preset weak pull-up voltage is output at the VBUS pin, and the first voltage of the VBUS pin is detected.
In step 907, a comparison is made to determine whether the first voltage of the VBUS pin is higher than a first predetermined reference voltage. If yes, go to step 908; if not, the step 907 is maintained, and the comparison between the first voltage of the VBUS pin and the first preset reference voltage is continued.
Step 908, compare and determine whether the first voltage of the VBUS pin is lower than a first predetermined reference voltage. If yes, go to step 909; if not, the step 908 is maintained, and the first voltage of the VBUS pin is continuously compared with the first preset reference voltage.
In step 909, it is determined that the USB load device access identification is valid.
It should be noted that the control flow of the USB device access identification method according to this embodiment is not limited to the flow chart shown in fig. 9. The control flow chart established according to the two control implementation modes with the same technical effects as those obtained in fig. 8 can also achieve the same purpose of identifying the access of the USB load device.
The embodiment provides a method for identifying access of a USB load device, which comprises the steps of enabling a DPDM detection module, judging that a USB interface is in a no-load device connection state at present when the voltage of a DP pin or a DM pin is higher than a second preset reference voltage, and enabling a VBUS detection module, so that the phenomenon that the access identification of the USB interface is triggered by mistake due to the action of a CC pin periodic Toggle of the USB load device after the VBUS output is turned off can be avoided. The DPDM detection module and the VBUS detection module are used for correction and complementation, so that false detection and missing detection can be reduced, and the access action of the USB equipment can be identified more accurately.
Example 3:
this embodiment is to provide a power supply system for identifying USB load device access, and as shown in fig. 10, the power supply system includes a plurality of USB load device access identification circuits described in embodiment 1, and the USB load device access identification circuits may correspond to USB interfaces of the power supply system one to one. The identification control module of the USB load device access identification circuit is configured to determine the USB load device access state information of each USB interface of the power supply system after performing access identification on the USB load device by using the USB load device access identification method described in embodiment 2, so as to adopt a corresponding power supply control policy according to an application requirement of the power supply system, adopt different power supply control policies to control the power supply system, and perform power supply management on the USB interface.
The power supply system of the embodiment can be a mobile power supply, an outdoor power supply, a multi-port charger, an anti-overcharging charging management device and the like. The power supply control strategy can be that the power supply output of the USB interface accessed by the USB load equipment is conducted, and the power supply output of the USB interface accessed by the USB load equipment is kept to be switched off; or, the output power of each USB interface may be dynamically allocated according to the device access status of each USB interface; in the application of sharing a single power supply by a plurality of USB interfaces, when only one USB interface has USB load devices connected thereto, fast charging communication is enabled, and when two or more USB interfaces have USB load devices connected thereto, fast charging communication is prohibited.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The principle and the embodiment of the present invention are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (9)

1. A USB load device access identification circuit, the identification circuit comprising: the device comprises a VBUS detection module, a DPDM detection module and an identification control module;
the VBUS detection module is electrically connected with a VBUS pin of a USB interface and used for detecting a first voltage of the VBUS pin and comparing the first voltage with a first preset reference voltage to obtain a first comparison signal;
the DPDM detection module is electrically connected with a target pin of the USB interface and used for detecting a second voltage of the target pin and comparing the second voltage with a second preset reference voltage to obtain a second comparison signal; the target pin is a DP pin or a DM pin of the USB interface;
the identification control module is respectively in communication connection with the VBUS detection module and the DPDM detection module, and is used for determining whether the USB load equipment is connected currently according to the second comparison signal; and after determining that no USB load equipment is connected currently, performing access identification on the USB load equipment according to the first comparison signal and the second comparison signal.
2. The USB load device access identification circuit of claim 1, wherein the VBUS detection module comprises: the first pull-up voltage source, the first pull-up circuit and the first voltage comparator;
one end of the first pull-up circuit is connected with the first pull-up voltage source, and the other end of the first pull-up circuit is connected with the VBUS pin; the first pull-up voltage source is used for providing a first preset weak pull-up voltage for the VBUS pin; the first preset weak pull-up voltage is higher than the first preset reference voltage;
the non-inverting input end of the first voltage comparator is connected with the VBUS pin, and the inverting input end of the first voltage comparator is connected with the first preset reference voltage; the output signal of the first voltage comparator is the first comparison signal.
3. The USB load device access identification circuit of claim 2, wherein the first pull-up circuit comprises a first switch and a first resistor; one end of the first switch is connected with the first pull-up voltage source, the other end of the first switch is connected with one end of the first resistor, and the other end of the first resistor is connected with the VBUS pin.
4. The USB load device access identification circuit of claim 1, wherein the DPDM detection module comprises: the second pull-up voltage source, the second pull-up circuit and the second voltage comparator;
one end of the second pull-up circuit is connected with the second pull-up voltage source, and the other end of the second pull-up circuit is connected with the target pin; the second pull-up voltage source is used for providing a second preset weak pull-up voltage for the target pin; the second preset weak pull-up voltage is higher than the second preset reference voltage;
the non-inverting input end of the second voltage comparator is connected with the target pin, and the inverting input end of the second voltage comparator is connected with the second preset reference voltage; the output signal of the second voltage comparator is the second comparison signal.
5. The USB load device access identification circuit of claim 4, wherein the second pull-up circuit comprises a second switch and a second resistor; one end of the second switch is connected with the second pull-up voltage source, the other end of the second switch is connected with one end of the second resistor, and the other end of the second resistor is connected with the target pin.
6. An identification method for accessing a USB load device, which controls the identification circuit of claim 1 to operate, wherein the identification method comprises:
determining whether the USB load equipment is connected currently or not according to a second comparison signal obtained by the DPDM detection module;
and if the USB load equipment is determined not to be connected currently, performing access identification on the USB load equipment according to the first comparison signal and the second comparison signal obtained by the VBUS detection module.
7. The method according to claim 6, wherein the determining whether the current USB load device is connected according to the second comparison signal obtained by the DPDM detection module specifically includes:
judging whether a second comparison signal obtained by the DPDM detection module is at a high level;
if yes, determining that no USB load equipment is connected currently;
otherwise, determining that the USB load equipment is connected currently.
8. The method according to claim 6, wherein the identifying the access of the USB load device according to the first comparison signal and the second comparison signal obtained by the VBUS detection module specifically comprises:
judging whether the first comparison signal obtained by the VBUS detection module is converted from a high level to a low level or judging whether the second comparison signal is converted from the high level to the low level;
if yes, determining that the USB load equipment is accessed;
otherwise, determining that no USB load equipment is accessed.
9. A USB load device access identification power supply system, comprising a plurality of USB load device access identification circuits according to any one of claims 1 to 5; the identification control module of the USB load device access identification circuit is configured to control the power supply system by adopting different power supply control strategies after performing access identification on the USB load device by using the USB load device access identification method according to any one of claims 6 to 8.
CN202211495715.XA 2022-11-28 2022-11-28 USB load equipment access identification circuit, method and power supply system Active CN115586828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211495715.XA CN115586828B (en) 2022-11-28 2022-11-28 USB load equipment access identification circuit, method and power supply system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211495715.XA CN115586828B (en) 2022-11-28 2022-11-28 USB load equipment access identification circuit, method and power supply system

Publications (2)

Publication Number Publication Date
CN115586828A true CN115586828A (en) 2023-01-10
CN115586828B CN115586828B (en) 2023-06-30

Family

ID=84783059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211495715.XA Active CN115586828B (en) 2022-11-28 2022-11-28 USB load equipment access identification circuit, method and power supply system

Country Status (1)

Country Link
CN (1) CN115586828B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250566A (en) * 2023-09-18 2023-12-19 珠海智融科技股份有限公司 Type-C connection detection circuit and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207281751U (en) * 2017-09-25 2018-04-27 珠海智融科技有限公司 A kind of access detection device of USB device
CN110221163A (en) * 2019-03-21 2019-09-10 珠海智融科技有限公司 A kind of the connecting detection method and detection circuit of USB Type-C interface
CN115237235A (en) * 2022-09-22 2022-10-25 珠海智融科技股份有限公司 USB equipment shift-out identification circuit and method and power supply system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207281751U (en) * 2017-09-25 2018-04-27 珠海智融科技有限公司 A kind of access detection device of USB device
CN110221163A (en) * 2019-03-21 2019-09-10 珠海智融科技有限公司 A kind of the connecting detection method and detection circuit of USB Type-C interface
CN115237235A (en) * 2022-09-22 2022-10-25 珠海智融科技股份有限公司 USB equipment shift-out identification circuit and method and power supply system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250566A (en) * 2023-09-18 2023-12-19 珠海智融科技股份有限公司 Type-C connection detection circuit and electronic equipment
CN117250566B (en) * 2023-09-18 2024-05-03 珠海智融科技股份有限公司 Type-C connection detection circuit and electronic equipment

Also Published As

Publication number Publication date
CN115586828B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN107843802B (en) Internal short circuit detection method and device
CN107894567B (en) Battery pack and detection system and detection method for interface state of battery pack
US9929573B2 (en) Modules, systems, and methods for battery balancing
US8188706B2 (en) Power management unit with battery detection controller and switchable regulator block
CN114336815A (en) Multi-port charging control method
EP3185348B1 (en) A battery information detection and control method, smart battery,terminal and computer storage medium
US10305301B2 (en) Battery and electronic device thereof
CN110797950A (en) Automatic switching method based on Type-C and AC charging and mobile terminal thereof
US20100270981A1 (en) Power source apparatus and secondary battery charge control method
CN115237235B (en) USB equipment shift-out identification circuit and method and power supply system
EP4002545A1 (en) Charging/discharging protection circuit, terminal device, and battery discharging control method
CN115586828A (en) USB load equipment access identification circuit and method and power supply system
CN106972558B (en) Charging control method and electronic equipment
CN116667473B (en) Control circuit, circuit control method and electronic equipment
CN106356946A (en) Charging method and device
EP4089875A1 (en) Fast/slow charging self-adaption method and apparatus, and electronic device
CN114725893A (en) Battery short-circuit protection system and method and electronic equipment
US20230095625A1 (en) Charging Method, Device, and System
CN105071488A (en) Charging method and apparatus of terminal having data exchange function
CN107204645B (en) Portable charging device
TW201733236A (en) Charging method of detecting battery voltage in charging process for adjusting power supply current accordingly capable of preventing sudden temperature rising during a charging process
US20230145769A1 (en) Power regulating circuit, charging device and power supply mode setting method thereof
JP2018133976A (en) Electronic device and control method
CN111007307B (en) USB charging equipment access detection system and method
CN118393404A (en) Type-C and lightning interface detection circuit, detection method and mobile power supply

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