CN108170256B - USB-C dynamic power distribution system and power detection method thereof - Google Patents

USB-C dynamic power distribution system and power detection method thereof Download PDF

Info

Publication number
CN108170256B
CN108170256B CN201810123393.3A CN201810123393A CN108170256B CN 108170256 B CN108170256 B CN 108170256B CN 201810123393 A CN201810123393 A CN 201810123393A CN 108170256 B CN108170256 B CN 108170256B
Authority
CN
China
Prior art keywords
power
usb
microprocessor
plug
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810123393.3A
Other languages
Chinese (zh)
Other versions
CN108170256A (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.)
Anfu Ce Link Ltd
Original Assignee
Anfu Ce Link 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 Anfu Ce Link Ltd filed Critical Anfu Ce Link Ltd
Priority to CN201810123393.3A priority Critical patent/CN108170256B/en
Publication of CN108170256A publication Critical patent/CN108170256A/en
Application granted granted Critical
Publication of CN108170256B publication Critical patent/CN108170256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/70Structural association with built-in electrical component with built-in switch
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R27/00Coupling parts adapted for co-operation with two or more dissimilar counterparts
    • 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)
  • Microelectronics & Electronic Packaging (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a USB-C dynamic power distribution system and a power detection method thereof, wherein the system comprises a USB-C plug, a PD controller, a microprocessor, a power management circuit, a power switch, a USB-C plug and a USB3.0 socket; wherein the USB-C plug is connected with the PD controller; the PD controller is connected with the microprocessor; the microprocessor is respectively connected with a power switch with power monitoring and a USB-C socket; the power management circuit is connected with the power switch. The device can expand the device of a plurality of output interfaces simultaneously, increases the utilization ratio, reduces the cost, and can monitor the power value of each output interface simultaneously so as to maximize the power of the PD power supply.

Description

USB-C dynamic power distribution system and power detection method thereof
Technical Field
The invention relates to the field of USB-C computers, tablets and mobile phone peripheral accessories and a detection method thereof, in particular to a USB-C dynamic power distribution system and a power detection method thereof.
Background
Since the push of USB-C interface (USB Type-C interface, abbreviated as USB-C), many computers, tablet computers, and mobile phones with USB-C interface appear on the market, and the USB-C interface of these devices can not only retain signals of USB3.1, but also support DP (DisplayPort) signal output. Because of the relatively few interfaces on these devices, a USB-C docking station is typically required to expand to different interfaces to meet different needs. Typically, these USB-C docking stations support PD charging, while having multiple USB interfaces and other interfaces. The USB interfaces need to supply Power to peripheral devices, and after the USB interfaces are connected to the USB devices, the Power required for the simultaneous operation is very high. Most USB-C docking stations intercept fixed power supply power from PD power supply and reserve the power for USB interface, even if the USB interface is not connected with equipment, the power of the USB interface is reserved for USB interface and can not be charged into computer. Sometimes, resources are left unused, and the power of the PD power supply cannot be utilized to the maximum.
Disclosure of Invention
The invention discloses a USB-C dynamic power distribution system and a power detection method thereof, which aim to solve the defects in the prior art.
The technical proposal is as follows: a USB-C dynamic power distribution system comprises a USB-C plug, a PD controller, a microprocessor, a power management circuit, a power switch, a USB-C plug, a USB3.0 socket, a USB hub and a DP video processor; the USB-C plug is connected with the PD controller; the PD controller is connected with the microprocessor; the microprocessor is respectively connected with a power switch with power monitoring and a USB-C socket; the power supply management circuit is connected with the power switch; the USB-C plug is connected with the USB hub and the DP video processor; the method is characterized in that: the USB-C interface expansion device comprises a power switch with current monitoring, and a current detection circuit is integrated in the power switch, so that the current flowing through the power switch can be accurately detected. The microprocessor can access the power switch through the I2C bus to read the current consumed by the USB interface. The microprocessor also detects whether a PD power supply is connected or not, and if so, the power of the PD power supply is detected through PD communication. The microprocessor then calculates how much power is available to charge the computer, the power to charge the computer = PD mains power-power consumed by the USB. The microprocessor scans every 1 second for a change in the power consumed by the USB, and if the change in the power consumed by the USB means that the power supplied to the computer is also changed, the microprocessor notifies the front-end PD controller to adjust the power so as to change the power which can be supplied to the computer.
Preferably, it is: the power switch is provided with a current monitoring function.
Preferably, it is: the microprocessor accesses the power switch via the I2C bus.
Preferably, it is: the power switch with current monitoring is internally integrated with a current detection circuit, so that the current flowing through the power switch can be accurately detected, and the detection error is smaller than 100mA. The microprocessor can access the power switch through the I2C bus to read the current consumed by the USB interface.
Preferably, it is: the microprocessor is an ARM Cortex-M032-bit microprocessor.
Preferably, it is: the power switch for current monitoring is provided with 8-gear current limiting thresholds which are adjusted through the I2C bus and are respectively 530mA, 960mA, 1070mA, 1280mA, 1600mA, 2130mA, 2670mA and 3200mA, so that the current limiting functions of different USB interfaces can be met.
Preferably, it is: the PD controller is responsible for processing USB-C power management and DP Alt-Mode handshakes.
Preferably, it is: the microprocessor is responsible for communicating with the PD power supply, and detects the output power of the PD power supply: by reading the current on the power switch with current monitoring, the power of the PD power supply, the power consumed by the device and the available power remained by the PD power supply are calculated, and then the PD controller is informed of the available power through PD communication.
Preferably, it is: the power management circuit is responsible for gating a power supply channel and outputting stable 5V and provides power for a 5V system. When the PD power is not connected, the strobe plug-Vbus is used as a power input; when the PD power is connected, strobe socket-Vbus is used as power input; when the power input is 5V, the power management circuit needs to output 5V, and when the power input is greater than 5V, the power management circuit also outputs 5V.
A power detection method based on a USB-C dynamic distribution power system is characterized in that: the microprocessor detects whether PD power is connected or not, if the PD power is connected, the power of the PD power is detected through PD communication, then a power switch with power monitoring is accessed through an I2C bus, how much power is actually consumed by all USB devices is read, and then the microprocessor calculates how much power can be provided for a computer to charge, and the power for charging the computer=the power of the PD power-the power consumed by the USB. The microprocessor scans every 1 second for a change in the power consumed by the USB, and if the change in the power consumed by the USB means that the power supplied to the computer is also changed, the microprocessor notifies the front-end PD controller to adjust the power so as to change the power which can be supplied to the computer.
The beneficial effects are that: the device can expand the device of a plurality of output interfaces simultaneously, increases the utilization ratio, reduces the cost, and can monitor the power value of each output interface simultaneously so as to maximize the power of the PD power supply.
Drawings
FIG. 1 is a schematic diagram of a USB-C dynamic power distribution system.
FIG. 2 is a schematic diagram of a power detection method of a USB-C dynamic power distribution system.
Detailed Description
A USB-C plug is connected with the USB hub and the DP video processor; the dynamic power distribution system comprises a USB-C plug, a PD controller, a microprocessor, a power management circuit, a power switch, a USB-C plug, a USB3.0 socket, a USB hub and a DP video processor; the USB-C plug is connected with the PD controller; the PD controller is connected with the microprocessor; the microprocessor is respectively connected with a power switch with power monitoring and a USB-C socket; the power supply management circuit is connected with the power switch; the power switch is connected with the USB; the power switch is provided with a current monitoring function. The power switch with current monitoring also supports a current limiting function, has current limiting thresholds of which 8 gears can be regulated through an I2C bus, namely 530mA, 960mA, 1070mA, 1280mA, 1600mA, 2130mA, 2670mA and 3200mA, and can meet the current limiting functions of different USB interfaces. The PD controller is responsible for processing USB-C power management and DP Alt-Mode handshakes. The microprocessor is responsible for communicating with the PD power supply, and detects the output power of the PD power supply: the method comprises the steps of calculating how much power is supplied to a PD power supply, how much power is consumed by the device, how much available power is left by the PD power supply by reading current on a power switch with current monitoring, and then informing a PD controller of how much available power can be supplied to the outside through PD communication; in the present invention, the microprocessor corresponds to a PD power supply for the PD controller. The power management circuit is responsible for gating a power supply channel and outputting stable 5V and provides power for a 5V system. When the PD power is not connected, the strobe plug-Vbus is used as a power input; when the PD power is connected, strobe socket-Vbus is used as power input; when the power input is 5V, the power management circuit needs to output 5V, and when the power input is greater than 5V, the power management circuit also outputs 5V.
Example 1
A power detection method of a USB-C dynamic allocation power system comprises the following steps: the microprocessor detects whether PD power is connected or not, if the PD power is connected, the PD power is detected through PD communication, then the power switch with power monitoring is accessed through the I2C bus, a power monitoring signal is output to the microprocessor, how much power is actually consumed by all USB devices is read, then how much power can be supplied to a computer through a subtraction circuit, if the power supplied to the computer changes, a PD controller at the front end is informed of adjusting the power, and whether the power consumed by the USB is changed or not is scanned every 1 second. By constantly monitoring the power change of the USB interface, the charging power that may be provided to the USB-C computer is dynamically adjusted.
The invention selects ARM Cortex-M032-bit as a microprocessor, and an analog comparator is integrated in the microprocessor to process PD communication signal reception; the transmission of the PD communication signals can be handled by the external resistor being configured to the level of the PD communication, so that the microprocessor can simulate USC-C PD communication. The microprocessor is mainly responsible for PD communication with an external PD power supply, acquires the maximum power of the PD power supply, reads two power switches with current monitoring through an I2C bus, counts the actual power currently consumed by all USB interfaces, and simultaneously sets the current limiting value of each USB interface. And calculating how much power needs to be provided by the current PD power supply for the docking station to use, and then informing the PD controller in front of the remaining PD power supply power through PD communication, and providing the PD controller for the computer to charge.
The power switch with current monitoring is selected, so that the current can be monitored in real time, and the microprocessor can access how much current is actually consumed through the I2C bus, so that the workload of the microprocessor is reduced. In addition, the power switch with current monitoring also supports a current limiting function, has 8-gear current limiting thresholds which can be adjusted through an I2C bus and are respectively 530mA, 960mA, 1070mA, 1280mA, 1600mA, 2130mA, 2670mA and 3200mA, and can meet the current limiting functions of different USB interfaces.
In the above description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The foregoing description is only of a preferred embodiment of the invention, which can be practiced in many other ways than as described herein, so that the invention is not limited to the specific implementations disclosed above. While the foregoing disclosure has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes and modifications may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. Any simple modification, equivalent variation and modification of the above embodiments according to the technical substance of the present invention without departing from the technical solution of the present invention still falls within the scope of the technical solution of the present invention.

Claims (4)

1. A USB-C dynamic power distribution system, characterized by: the device comprises a USB-C plug, a PD controller, a microprocessor, a power management circuit, a power switch, a USB-C plug, a USB3.0 socket, a USB hub and a DP video processor; wherein the USB-C plug is connected with the PD controller; the PD controller is connected with the microprocessor; the microprocessor is respectively connected with the power switch and the USB-C socket; the power supply management circuit is connected with the power switch; the USB-C plug is connected with the USB hub and the DP video processor;
the USB-C dynamic power distribution system comprises a power switch with current monitoring, wherein a current detection circuit is integrated in the power switch, so that the current flowing through the power switch can be accurately detected, and the detection error is smaller than 100mA; the microprocessor can access the power switch through the I2C bus to read the current consumed by the USB interface;
the method comprises the steps that a microprocessor detects whether a PD power supply is connected or not, if the PD power supply is connected, the power of the PD power supply is detected through PD communication, then a power switch with power monitoring is accessed through an I2C bus, how much power is actually consumed by all USB devices is read, and then the microprocessor calculates how much power can be provided for a computer to charge, and the power for charging the computer=the power of the PD power supply-the power consumed by the USB;
the microprocessor scans every 1 second for a change in the power consumed by the USB, and if the change in the power consumed by the USB means that the power supplied to the computer is also changed, the microprocessor notifies the front-end PD controller to adjust the power so as to change the power which can be supplied to the computer.
2. The USB-C dynamic power distribution system according to claim 1, wherein: the microprocessor is an ARM Cortex-M032-bit microprocessor.
3. The USB-C dynamic power distribution system according to claim 1, wherein: the power switch with current monitoring is provided with 8-gear current limiting thresholds which are adjusted through the I2C bus and are respectively 530mA, 960mA, 1070mA, 1280mA, 1600mA, 2130mA, 2670mA and 3200mA, so that the current limiting functions of different USB interfaces can be met.
4. The USB-C dynamic power distribution system according to claim 1, wherein: the power management circuit is responsible for gating a power supply channel and outputting stable 5V and supplying power to a 5V system; when the PD power is not connected, the strobe plug-Vbus is used as a power input; when the PD power is connected, strobe socket-Vbus is used as power input; when the power input is 5V, the power management circuit needs to output 5V, and when the power input is greater than 5V, the power management circuit also outputs 5V.
CN201810123393.3A 2018-02-07 2018-02-07 USB-C dynamic power distribution system and power detection method thereof Active CN108170256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810123393.3A CN108170256B (en) 2018-02-07 2018-02-07 USB-C dynamic power distribution system and power detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810123393.3A CN108170256B (en) 2018-02-07 2018-02-07 USB-C dynamic power distribution system and power detection method thereof

Publications (2)

Publication Number Publication Date
CN108170256A CN108170256A (en) 2018-06-15
CN108170256B true CN108170256B (en) 2024-03-26

Family

ID=62513087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810123393.3A Active CN108170256B (en) 2018-02-07 2018-02-07 USB-C dynamic power distribution system and power detection method thereof

Country Status (1)

Country Link
CN (1) CN108170256B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117405A (en) * 2018-07-30 2019-01-01 合肥联宝信息技术有限公司 A kind of TypeC equipment and its control method
CN109144229A (en) * 2018-09-30 2019-01-04 联想(北京)有限公司 A kind of power supply output management method, apparatus and electronic equipment
CN110018728B (en) * 2019-03-29 2021-05-18 联想(北京)有限公司 Electronic equipment
CN110941581B (en) * 2019-11-04 2021-06-04 深圳慧能泰半导体科技有限公司 Power adjusting method based on USB Type-C interface circuit, circuit thereof and electronic equipment
CN111190847B (en) * 2019-12-16 2023-06-13 深圳慧能泰半导体科技有限公司 Power adjusting method based on USB Type-C interface circuit, circuit and electronic equipment
CN112346551A (en) * 2020-10-09 2021-02-09 安克创新科技股份有限公司 Power distribution method, device and system of hub and storage medium
CN113794253A (en) * 2020-10-29 2021-12-14 威锋电子股份有限公司 Multi-port power supply device and operation method thereof
CN113472043A (en) * 2021-07-05 2021-10-01 科博达技术股份有限公司 double-Type-C port shared charging power charger and intelligent output power distribution method thereof
CN113672067B (en) * 2021-08-07 2022-06-10 东莞市海能电子有限公司 Lightning docking station and configuration device
CN114546040A (en) * 2021-12-31 2022-05-27 深圳市和宏实业股份有限公司 USB docking station for controlling output power and control method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866758A (en) * 2011-07-04 2013-01-09 创惟科技股份有限公司 Dynamic power supply management system and method for universal sequence bus concentrator
CN105718017A (en) * 2016-01-15 2016-06-29 青岛海信电器股份有限公司 Electronic device and power supply management method
CN105981478A (en) * 2013-09-20 2016-09-28 飞利浦灯具控股公司 Power splitter for a variable number of loads and power splitting method
CN205882808U (en) * 2016-07-01 2017-01-11 Tcl通力电子(惠州)有限公司 Multiport power supply output circuit and battery charging outfit
CN106792273A (en) * 2017-01-06 2017-05-31 深圳市亿道数码技术有限公司 A kind of TYPE C powers and HUB integrated line concentration system and its operation method
CN206401652U (en) * 2017-01-03 2017-08-11 东莞市荣锝康电子科技有限公司 A kind of rechargeable usb hub
CN206411661U (en) * 2016-04-29 2017-08-15 上海闻上信息科技有限公司 USB Type C hubs
CN206849007U (en) * 2017-06-13 2018-01-05 深圳市迪比科电子科技有限公司 Multifunctional concentrator

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140208134A1 (en) * 2013-01-21 2014-07-24 Texas Instruments Incorporated Host controller interface for universal serial bus (usb) power delivery

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866758A (en) * 2011-07-04 2013-01-09 创惟科技股份有限公司 Dynamic power supply management system and method for universal sequence bus concentrator
CN105981478A (en) * 2013-09-20 2016-09-28 飞利浦灯具控股公司 Power splitter for a variable number of loads and power splitting method
CN105718017A (en) * 2016-01-15 2016-06-29 青岛海信电器股份有限公司 Electronic device and power supply management method
CN206411661U (en) * 2016-04-29 2017-08-15 上海闻上信息科技有限公司 USB Type C hubs
CN205882808U (en) * 2016-07-01 2017-01-11 Tcl通力电子(惠州)有限公司 Multiport power supply output circuit and battery charging outfit
CN206401652U (en) * 2017-01-03 2017-08-11 东莞市荣锝康电子科技有限公司 A kind of rechargeable usb hub
CN106792273A (en) * 2017-01-06 2017-05-31 深圳市亿道数码技术有限公司 A kind of TYPE C powers and HUB integrated line concentration system and its operation method
CN206849007U (en) * 2017-06-13 2018-01-05 深圳市迪比科电子科技有限公司 Multifunctional concentrator

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
双路USB功率分配开关MIC2536及其应用电路;杨春燕;国外电子元器件;20020122(01);全文 *

Also Published As

Publication number Publication date
CN108170256A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN108170256B (en) USB-C dynamic power distribution system and power detection method thereof
CN107834628B (en) Circuit and method for realizing multiple fast charging protocols based on TYPE-C interface
US8769317B2 (en) USB hub for supplying power upon determination whether a USB device is chargeable according to data transfer rate of the USB device
TWI494863B (en) Dual-interface card reader module
US7987389B2 (en) System and method for testing sleep and wake functions of computer
US20130013936A1 (en) Dynamic power management system for universal serial bus (usb) hub and method thereof
CN111480152B (en) Interface configuration method, terminal equipment and interface
EP4145669A1 (en) Charging/discharging circuit and electronic device
CN111463842A (en) Electronic equipment and communication method thereof
CN208538116U (en) Test macro and interface test device
CN111464674B (en) Electronic equipment and temperature control method thereof during charging
CN112671055A (en) Power distribution method and charging equipment
WO2023098317A1 (en) Charging control method and apparatus, and electronic device
CN204272152U (en) Four-port kilomega external plugging network card with selectable management function
CN106549459B (en) Determination method of charging voltage and mobile terminal
JP7270719B2 (en) Terminal and Type C interface anti-corrosion method
TWI756769B (en) Powering method and powering system for power over ethernet
CN113672067B (en) Lightning docking station and configuration device
CN111830394A (en) Charging circuit fault detection method, electronic device and computer readable storage medium
CN116169758A (en) Output power adjusting method and charger
US20160064971A1 (en) Charging Device and Charging Method
CN104731723A (en) Power-off protection method and device for storage device
CN212541260U (en) Reset circuit of electronic equipment and electronic equipment
CN208126340U (en) A kind of USB-C dynamic allocation power system
CN102324762B (en) Cell phone charging control method

Legal Events

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