CN112346551A - Power distribution method, device and system of hub and storage medium - Google Patents

Power distribution method, device and system of hub and storage medium Download PDF

Info

Publication number
CN112346551A
CN112346551A CN202011073669.5A CN202011073669A CN112346551A CN 112346551 A CN112346551 A CN 112346551A CN 202011073669 A CN202011073669 A CN 202011073669A CN 112346551 A CN112346551 A CN 112346551A
Authority
CN
China
Prior art keywords
power
hub
working
adapter
mode
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.)
Pending
Application number
CN202011073669.5A
Other languages
Chinese (zh)
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.)
Anker Innovations Co Ltd
Original Assignee
Anker Innovations 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 Anker Innovations Co Ltd filed Critical Anker Innovations Co Ltd
Priority to CN202011073669.5A priority Critical patent/CN112346551A/en
Publication of CN112346551A publication Critical patent/CN112346551A/en
Pending legal-status Critical Current

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/263Arrangements for using multiple switchable power supplies, e.g. battery and AC
    • 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
    • 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
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • 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/382Information transfer, e.g. on bus using universal interface adapter
    • 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/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Power Engineering (AREA)
  • Mathematical Physics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention provides a power distribution method, a device, a system and a storage medium of a hub, wherein the hub is connected with an electronic device, the electronic device is connected with an adapter, and the method comprises the following steps: acquiring the power of the adapter and the chip working power of the hub; detecting the working state of the downlink ports of the concentrator to obtain the number of the downlink ports of at least one working mode; and obtaining the charging power of the electronic equipment according to the chip working power of the USB-C concentrator, the number of the downlink ports in at least one working mode and the power of the adapter. According to the method, the device, the system and the storage medium, the corresponding working power is reserved according to different modes based on the working mode of the downstream port for detecting the working of the hub, and then the residual power is updated and configured to the electronic equipment for charging, so that the charging efficiency of the electronic equipment connected with the hub is maximized.

Description

Power distribution method, device and system of hub and storage medium
Technical Field
The present invention relates to the field of hub technology, and more particularly to power distribution for a hub.
Background
More and more manufacturers of electronic devices such as notebook computers and tablet computers exchange various types of ports originally provided by themselves for one or two types of ports while pursuing lightness and thinness of products. Such as a USB-C port, and extend this interface to different types of charging ports (PD charging protocol), USB-a ports, USB-C ports, etc., by using a USB-C hub, and the like.
At present, when a USB-C hub is adopted as an extension of an electronic device port, generally, input power of a PD adapter is obtained, fixed working power is configured for these peripherals according to the number of USB-a configured by the USB-C hub, the configuration of HDMI, and the configuration of SD/TF card, and the remaining power is configured for a computer or a tablet to charge. However, energy is wasted and unreasonable, because the USB-a port and the HDMI port on the USB-C Hub may not be plugged or a part of the ports may work, the power of the peripheral device is idle, and the computer or other electronic devices are charged with a small power, the charging speed is slow, and the user experience is poor.
Disclosure of Invention
The present invention has been made in view of the above problems. The invention provides a power distribution method, a device and a system of a hub and a computer storage medium, which reserves corresponding working power according to different modes based on a working mode of a downstream port for detecting the working of the hub, and then updates and configures the residual power to electronic equipment for charging, thereby maximizing the charging efficiency of the electronic equipment connected with the hub.
According to a first aspect of the present invention, there is provided a power distribution method of a hub connected to an electronic device and an adapter, the method comprising:
acquiring the power of the adapter and the chip working power of the hub;
detecting the working state of the downlink ports of the concentrator to obtain the number of the downlink ports of at least one working mode;
and obtaining the charging power of the electronic equipment according to the chip working power of the hub, the number of the downlink ports in at least one working mode and the power of the adapter.
According to a second aspect of the present invention, there is provided a power distribution apparatus of a hub connected to an electronic device and an adapter, the apparatus comprising:
the acquisition module is used for acquiring the power of the adapter and the chip working power of the hub;
the detection module is used for detecting the working state of the downlink ports of the concentrator to obtain the number of the downlink ports in at least one working mode;
and the computing module is used for obtaining the charging power of the electronic equipment according to the chip working power of the hub, the number of the downlink ports in at least one working mode and the power of the adapter.
According to a third aspect of the present invention, there is provided a power distribution system of a hub, comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor implementing the steps of the method of the first aspect when executing the computer program.
According to a fourth aspect of the present invention, there is provided a computer storage medium having a computer program stored thereon, the computer program, when executed by a computer, implementing the steps of the method of the first aspect.
According to the power distribution method, the device and the system of the hub and the computer storage medium, the corresponding working power is reserved according to different modes based on the working mode of the downstream port for detecting the working of the hub, and then the residual power is updated and configured to the electronic equipment for charging, so that the charging efficiency of the electronic equipment connected with the hub is maximized.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail embodiments of the present invention with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings, like reference numbers generally represent like parts or steps.
FIG. 1 is a schematic flow chart diagram of a power distribution method of a hub according to an embodiment of the present invention;
FIG. 2 is an example of a power distribution method of a hub according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a power distribution arrangement of a hub according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a power distribution system of a hub according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the invention described herein without inventive step, shall fall within the scope of protection of the invention.
Next, a power distribution method 100 of the hub according to an embodiment of the present invention will be described with reference to fig. 1. As shown in fig. 1, a power distribution method 100 of a hub includes:
firstly, in step S110, acquiring power of the adapter and chip operating power of the hub;
in step S120, detecting a working state of a downstream port of the hub to obtain a number of the downstream ports in at least one working mode;
in step S130, the charging power of the electronic device is obtained according to the chip operating power of the hub, the number of the downlink ports in at least one operating mode, and the power of the adapter.
According to the power distribution method of the hub, the working mode of the downlink port of the hub is detected, power is reserved for the hub according to the working mode of the downlink port in work, and then the rest power is distributed to the electronic equipment for charging, so that the charging power of the electronic equipment is dynamically distributed. Compared with the traditional power distribution method, according to the power distribution method provided by the embodiment of the invention, when the channel of the concentrator does not work or only partially works, excessive power does not need to be reserved for the concentrator, so that the waste and unreasonable use of energy sources are avoided, the charging speed of the electronic equipment is improved, and the user experience is ensured. The concentrator is suitable for various occasions of power distribution of the concentrator, and is beneficial to improving the charging efficiency of the electronic equipment of the concentrator.
Illustratively, the power distribution method of a hub according to embodiments of the present invention may be implemented in a device, apparatus, or system having a memory and a processor.
The power distribution method of the hub according to the embodiment of the present invention may be deployed in electronic devices such as smart phones, tablet computers, personal computers, and the like; may also be deployed in a hub; but may also be distributed across electronic devices and hubs.
According to the hub method provided by the embodiment of the invention, based on the working mode of the downstream port for detecting the working of the hub, the corresponding working power is reserved according to different modes, and then the residual power is updated and configured to the electronic equipment for charging, so that the charging efficiency of the electronic equipment connected with the hub is maximized.
According to an embodiment of the present invention, before the step S110, the method 100 may further include: connecting the hub to an electronic device and the adapter.
The adapter may be a charger including a PD fast charging protocol, i.e., a PD adapter.
Alternatively, the hub may include, and is not limited to, a USB-C hub. The hub may be implemented in analog circuitry, digital circuitry, instructions executed by a processor, or any suitable combination thereof.
According to the embodiment of the present invention, in step S110, acquiring the power of the adapter may include:
and acquiring the rated power of the adapter, or detecting the power of the adapter.
Wherein, the obtaining of the rated power of the adapter can be obtained from a nameplate of the adapter; detecting the power of the adapter may be that the hub or the electronic device detects the adapter to obtain the power of the adapter.
In some embodiments, detecting the power of the adapter may include: an output power on the adapter is detected. Specifically, the output power of the adapter can be obtained by detecting the current of the adapter, calculating the power of the adapter and the power consumed by the adapter.
According to the embodiment of the present invention, in step S110, obtaining the chip operating power of the hub may include: and detecting the voltage and the current of the chip to obtain the working power of the chip.
The working power of the chip may refer to the power consumed by the hub itself.
According to the embodiment of the present invention, in step S120, the detecting the working status of the downstream ports of the hub to obtain the number of the downstream ports of at least one working mode includes:
detecting whether each downlink port of the concentrator works or not;
and judging the working mode of the working downlink port, and counting the number of the downlink ports of at least one working mode.
In some embodiments, the detecting whether each downstream port of the hub is working may include determining a working mode of the downstream port when the downstream port is detected to be working.
In some embodiments, determining the operating mode of the downstream port may include: by detecting the communication protocol used by the downstream port. For example, when the communication protocol used by the downlink port is USB3.0, the working mode of the downlink port is USB3.0 mode; and when the communication protocol used by the downlink port is USB2.0, the working mode of the downlink port is a USB2.0 mode.
In some embodiments, determining the operating mode of the downstream port may include: by detecting the charging protocol used by the downstream port. For example, when the charging protocol used by the downlink port is BC1.2, the operating mode of the downlink port is BC1.2 mode.
Optionally, obtaining the charging power of the electronic device according to the chip operating power of the hub, the number of the downlink ports of the at least one operating mode, and the power of the adapter, includes:
obtaining the total power of all the downlink ports according to the preset power of each working mode and the number of the downlink ports of each working mode;
and obtaining the charging power of the electronic equipment by using the chip working power of the hub, the total power of all the downlink ports and the power of the adapter.
Optionally, the operating mode includes: USB3.0 mode, USB2.0 mode, or BC1.2 mode.
Optionally, the total power of all the downlink ports may include a sum of products of preset powers of all the operating modes and the number of corresponding downlink ports.
In some embodiments, the preset power for each of the operating modes may include: the preset power of the USB3.0 mode is a first preset power A, the preset power of the USB2.0 mode is a second preset power B, and the preset power of the BC1.2 mode is a third preset power C; assuming that the number of the downlink ports of each working mode is respectively: the number of the downstream ports operating in the USB3.0 mode is x, the number of the downstream ports operating in the USB2.0 mode is y, and the number of the downstream ports operating in the BC1.2 mode is Z, so that the total power Z of all the downstream ports may be Z ═ a × x + B × y + C × Z.
Optionally, obtaining the charging power of the electronic device by using the chip operating power of the hub, the total power of all the downlink ports, and the power of the adapter may include: the charging power of the electronic device is the power of the adapter-the chip working power of the hub-the total power of all the downstream ports.
Optionally, the method further comprises: and charging the electronic equipment according to the charging power of the electronic equipment.
In some embodiments, charging the electronic device according to the charging power of the electronic device may include: and updating the charging power of the electronic equipment to the electronic equipment through power output configuration data PDO.
Optionally, the method further comprises: and obtaining an initial value of the charging power of the electronic equipment according to the power of the adapter and the chip working power of the hub.
In some embodiments, the initial value of the charging power of the electronic device is the power of the adapter-the chip operating power of the hub.
Optionally, the method further comprises:
when each downlink port of the concentrator does not work, the charging power of the electronic equipment is the initial value of the charging power of the electronic equipment.
When each downlink port on the hub does not work, it indicates that there is no load needing to be charged on the hub, and at this time, the power supply power of the electronic device is the power of the adapter — the chip working power of the hub, and is the same as the initial value of the charging power of the electronic device. Compared with the traditional power distribution method, according to the power distribution method provided by the embodiment of the invention, when the channel of the concentrator does not work, the power does not need to be reserved for the concentrator, the adapter can provide all the residual power to the electronic equipment, the waste and unreasonable use of energy are avoided, the charging speed of the electronic equipment is improved, and the user experience is ensured.
In one embodiment, referring to fig. 2, fig. 2 illustrates an example of a power distribution method of a hub according to an embodiment of the present invention. As shown in fig. 2, the electronic device may be a notebook computer, the adaptor is a PD adaptor, the Hub is a USB-C Hub, the preset power of the USB3.0 mode is P3, the preset power of the USB2.0 mode is P4, the preset power of the BC1.2 mode is P5, and the operating power of the Hub chip is P7; the method 200 comprises the following steps:
firstly, a USB-C Hub is connected into a notebook computer, and a PD adapter is connected into the USB-C Hub;
then, detecting the power P1 of the PD adapter;
then, at an initial time, the total operating power P2 of the USB-C Hub is P7, and the charging power P6 of the notebook computer is P1-P2, which is the initial charging power value of the notebook computer;
then, charging the notebook computer according to the initial value of the charging power of the notebook computer;
then, detecting whether each downlink port of the concentrator works or not; if the downlink port works, judging the working mode of the working downlink port; if the downlink port works, charging the notebook computer by the initial value of the charging power of the notebook computer;
then, counting the number of the downlink ports of at least one working mode; the underpants can comprise x downlink ports working in a USB3.0 mode, y downlink ports working in a USB2.0 mode and z downlink ports working in a BC1.2 mode;
then, the total working power P2 of the USB-C Hub is updated to be x P3+ y P4+ z P5, so that the charging power P6 of the notebook computer is obtained to be P1-P2;
and finally, charging the notebook computer according to the charging power P6-P1-P2 of the notebook computer.
Therefore, according to the power distribution method of the hub, the corresponding working power is reserved according to different modes based on the working mode of the downstream port for detecting the working of the hub, and then the residual power is updated and configured to the electronic equipment for charging, so that the charging efficiency of the electronic equipment connected with the hub is maximized.
Fig. 3 shows a schematic block diagram of a power distribution arrangement 300 of a hub according to an embodiment of the present invention. As shown in fig. 3, the hub is connected to an electronic device and an adapter, and a power distribution apparatus 300 of the hub according to an embodiment of the present invention includes:
an obtaining module 310, configured to obtain power of the adapter and chip operating power of the hub;
a detecting module 320, configured to detect a working state of a downlink port of the hub, to obtain the number of the downlink ports in at least one working mode;
the calculating module 330 is configured to obtain a charging power of the electronic device according to the chip operating power of the hub, the number of the downlink ports in at least one operating mode, and the power of the adapter.
The adapter may be a charger including a PD fast charging protocol, i.e., a PD adapter.
Alternatively, the hub may include, and is not limited to, a USB-C hub. The hub may be implemented in analog circuitry, digital circuitry, instructions executed by a processor, or any suitable combination thereof.
According to an embodiment of the present invention, the obtaining module 310 may obtain the power of the adapter, including:
and acquiring the rated power of the adapter, or detecting the power of the adapter.
Wherein, the obtaining of the rated power of the adapter can be obtained from a nameplate of the adapter; detecting the power of the adapter may be that the hub or the electronic device detects the adapter to obtain the power of the adapter.
In some embodiments, the obtaining module 310 detecting the power of the adapter may include: an output power on the adapter is detected. Specifically, the output power of the adapter can be obtained by detecting the current of the adapter, calculating the power of the adapter and the power consumed by the adapter.
According to an embodiment of the present invention, the obtaining module 310 may obtain the chip operating power of the hub, including: and detecting the voltage and the current of the chip to obtain the working power of the chip.
The working power of the chip may refer to the power consumed by the hub itself.
According to an embodiment of the present invention, the detecting module 320 may further be configured to:
detecting whether each downlink port of the concentrator works or not;
and judging the working mode of the working downlink port, and counting the number of the downlink ports of at least one working mode.
In some embodiments, the detecting module 320 may detect whether each downstream port of the hub is working, including determining an operation mode of the downstream port when the downstream port is detected to be working.
In some embodiments, the determining, by the detection module 320, the working mode of the downstream port may include: by detecting the communication protocol used by the downstream port. For example, when the communication protocol used by the downlink port is USB3.0, the working mode of the downlink port is USB3.0 mode; and when the communication protocol used by the downlink port is USB2.0, the working mode of the downlink port is a USB2.0 mode.
In some embodiments, the determining, by the detection module 320, the working mode of the downstream port may include: by detecting the charging protocol used by the downstream port. For example, when the charging protocol used by the downlink port is BC1.2, the operating mode of the downlink port is BC1.2 mode.
Optionally, the obtaining, by the computing module 330, the charging power of the electronic device according to the chip operating power of the hub, the number of the downlink ports in the at least one operating mode, and the power of the adapter includes:
obtaining the total power of all the downlink ports according to the preset power of each working mode and the number of the downlink ports of each working mode;
and obtaining the charging power of the electronic equipment by using the chip working power of the hub, the total power of all the downlink ports and the power of the adapter.
Optionally, the operating mode includes: USB3.0 mode, USB2.0 mode, or BC1.2 mode.
Optionally, the total power of all the downlink ports may include a sum of products of preset powers of all the operating modes and the number of corresponding downlink ports.
In some embodiments, the preset power for each of the operating modes may include: the preset power of the USB3.0 mode is a first preset power A, the preset power of the USB2.0 mode is a second preset power B, and the preset power of the BC1.2 mode is a third preset power C; assuming that the number of the downlink ports of each working mode is respectively: the number of the downstream ports operating in the USB3.0 mode is x, the number of the downstream ports operating in the USB2.0 mode is y, and the number of the downstream ports operating in the BC1.2 mode is Z, so that the total power Z of all the downstream ports may be Z ═ a × x + B × y + C × Z.
Optionally, the obtaining, by the computing module 330, the charging power of the electronic device according to the chip operating power of the hub, the total power of all the downlink ports, and the power of the adapter may include: the charging power of the electronic device is the power of the adapter-the chip working power of the hub-the total power of all the downstream ports.
Optionally, the apparatus 300 is further configured to: and charging the electronic equipment according to the charging power of the electronic equipment.
In some embodiments, the apparatus 300 charging the electronic device according to the charging power of the electronic device may include: and updating the charging power of the electronic equipment to the electronic equipment through power output configuration data PDO.
Optionally, the apparatus 300 is further configured to: and obtaining an initial value of the charging power of the electronic equipment according to the power of the adapter and the chip working power of the hub.
In some embodiments, the initial value of the charging power of the electronic device is the power of the adapter-the chip operating power of the hub.
Optionally, the apparatus 300 is further configured to:
when each downlink port of the concentrator does not work, the charging power of the electronic equipment is the initial value of the charging power of the electronic equipment.
When each downlink port on the hub does not work, it indicates that there is no load needing to be charged on the hub, and at this time, the power supply power of the electronic device is the power of the adapter — the chip working power of the hub, and is the same as the initial value of the charging power of the electronic device. Compared with the traditional power distribution method, according to the power distribution device provided by the embodiment of the invention, when the channel of the concentrator does not work, the power does not need to be reserved for the concentrator, the adapter can provide all the residual power to the electronic equipment, the waste and unreasonable use of energy are avoided, the charging speed of the electronic equipment is improved, and the user experience is ensured.
Fig. 4 shows a schematic block diagram of a power distribution system 400 of a hub according to an embodiment of the invention. The hub power distribution system 400 includes a memory device 410, and a processor 420.
The memory device 410 stores program codes for implementing respective steps in a power distribution method of a hub according to an embodiment of the present invention.
The processor 420 is configured to run the program codes stored in the storage device 410 to perform the corresponding steps of the power distribution method of the hub according to the embodiment of the present invention, and to implement the corresponding modules in the power distribution apparatus of the hub according to the embodiment of the present invention.
Further, according to an embodiment of the present invention, there is also provided a storage medium on which program instructions are stored, which when executed by a computer or a processor are used for executing the respective steps of the power distribution method of the hub according to an embodiment of the present invention and for implementing the respective modules in the power distribution apparatus of the hub according to an embodiment of the present invention. The storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer readable storage medium can be any combination of one or more computer readable storage media, e.g., one containing computer readable program code for randomly generating sequences of action instructions and another containing computer readable program code for performing power allocation for the hub.
In one embodiment, the computer program instructions may, when executed by a computer, implement the respective functional modules of the power distribution apparatus of the hub according to the embodiment of the present invention and/or may perform the power distribution method of the hub according to the embodiment of the present invention.
The modules in the power distribution system of the hub according to embodiments of the present invention may be implemented by a processor of an electronic device for power distribution of the hub according to embodiments of the present invention executing computer program instructions stored in a memory, or may be implemented when computer instructions stored in a computer-readable storage medium of a computer program product according to embodiments of the present invention are executed by a computer.
According to the power distribution method, the device and the system of the hub and the computer storage medium, the corresponding working power is reserved according to different modes based on the working mode of the downstream port for detecting the working of the hub, and then the residual power is updated and configured to the electronic equipment for charging, so that the charging efficiency of the electronic equipment connected with the hub is maximized.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the foregoing illustrative embodiments are merely exemplary and are not intended to limit the scope of the invention thereto. Various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as set forth in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another device, or some features may be omitted, or not executed.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the method of the present invention should not be construed to reflect the intent: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
It will be understood by those skilled in the art that all of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where such features are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some of the modules in an item analysis apparatus according to embodiments of the present invention. The present invention may also be embodied as apparatus programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the specific embodiment of the present invention or the description thereof, and the protection scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the protection scope of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for power distribution to a hub, the hub coupled to an electronic device and an adapter, the method comprising:
acquiring the power of the adapter and the chip working power of the hub;
detecting the working state of the downlink ports of the concentrator to obtain the number of the downlink ports of at least one working mode;
and obtaining the charging power of the electronic equipment according to the chip working power of the hub, the number of the downlink ports in at least one working mode and the power of the adapter.
2. The method according to claim 1, wherein the detecting the operation status of the downstream ports of the hub to obtain the number of the downstream ports of at least one operation mode comprises:
detecting whether each downlink port of the concentrator works or not;
and judging the working mode of the working downlink port, and counting the number of the downlink ports of at least one working mode.
3. The method of claim 2, wherein the operating mode comprises: USB3.0 mode, USB2.0 mode, or BC1.2 mode.
4. The method of claim 3, wherein obtaining the charging power of the electronic device according to the chip operating power of the hub, the number of the downstream ports of the at least one operating mode, and the power of the adapter comprises:
obtaining the total power of all the downlink ports according to the preset power of each working mode and the number of the downlink ports of each working mode;
and obtaining the charging power of the electronic equipment by using the chip working power of the hub, the total power of all the downlink ports and the power of the adapter.
5. The method according to any one of claims 1-4, further comprising: and charging the electronic equipment according to the charging power of the electronic equipment.
6. The method of claim 5, further comprising: and obtaining an initial value of the charging power of the electronic equipment according to the power of the adapter and the chip working power of the hub.
7. The method of claim 6, further comprising:
when each downlink port of the concentrator does not work, the charging power of the electronic equipment is the initial value of the charging power of the electronic equipment.
8. A power distribution apparatus for a hub, the hub being connected to an electronic device and an adapter, the apparatus comprising:
the acquisition module is used for acquiring the power of the adapter and the chip working power of the hub;
the detection module is used for detecting the working state of the downlink ports of the concentrator to obtain the number of the downlink ports in at least one working mode;
and the computing module is used for obtaining the charging power of the electronic equipment according to the chip working power of the hub, the number of the downlink ports in at least one working mode and the power of the adapter.
9. A power distribution system for a hub comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the steps of the method of any one of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a computer, implements the steps of the method of any of claims 1 to 7.
CN202011073669.5A 2020-10-09 2020-10-09 Power distribution method, device and system of hub and storage medium Pending CN112346551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011073669.5A CN112346551A (en) 2020-10-09 2020-10-09 Power distribution method, device and system of hub and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011073669.5A CN112346551A (en) 2020-10-09 2020-10-09 Power distribution method, device and system of hub and storage medium

Publications (1)

Publication Number Publication Date
CN112346551A true CN112346551A (en) 2021-02-09

Family

ID=74360556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011073669.5A Pending CN112346551A (en) 2020-10-09 2020-10-09 Power distribution method, device and system of hub and storage medium

Country Status (1)

Country Link
CN (1) CN112346551A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030054703A1 (en) * 2001-03-01 2003-03-20 Fischer Daniel M. System and method for powering and charging a mobile communication device
CN1897101A (en) * 2005-07-12 2007-01-17 三星电子株式会社 Display apparatus with usb hub
CN108170256A (en) * 2018-02-07 2018-06-15 安福县海能实业股份有限公司 A kind of USB-C dynamically distributes power system and its power detecting method
CN111030200A (en) * 2018-10-10 2020-04-17 纬联电子科技(中山)有限公司 Electronic device and power adjusting method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030054703A1 (en) * 2001-03-01 2003-03-20 Fischer Daniel M. System and method for powering and charging a mobile communication device
CN1897101A (en) * 2005-07-12 2007-01-17 三星电子株式会社 Display apparatus with usb hub
CN108170256A (en) * 2018-02-07 2018-06-15 安福县海能实业股份有限公司 A kind of USB-C dynamically distributes power system and its power detecting method
CN111030200A (en) * 2018-10-10 2020-04-17 纬联电子科技(中山)有限公司 Electronic device and power adjusting method thereof

Similar Documents

Publication Publication Date Title
CN103078393B (en) USB hub and electric power supply method for the same
CN111463842B (en) Electronic equipment and communication method thereof
US8089468B2 (en) Slate wireless keyboard connection and proximity display enhancement for visible display area
CN101694595A (en) Method and system for discovering a power source on a peripheral bus
CN102597911B (en) AC adaptor minimization through active platform power consumption management
CN110716631B (en) Power supply management method, device, equipment and readable storage medium
CN103326078A (en) Mobile device charging method and system
CN101267120B (en) Method for identifying power device and its circuit
CN103024195A (en) Smart mobile terminal and implementation method of charging of smart mobile terminal
CN105098871B (en) The control method of mancarried device and its charging current
CN103677199B (en) The method of information processing and the first electronic equipment
CN103576092A (en) Remote controller and device and method for detecting electricity capacity of battery of remote controller
CN104659881A (en) Charging method and device for mobile terminal
CN112346551A (en) Power distribution method, device and system of hub and storage medium
CN103915864A (en) Electronic device with power supply control function
CN101242059A (en) Combined power supply device
CN110767946A (en) Method and device for controlling discharging of mobile terminal and mobile terminal
CN210109804U (en) Interface circuit system for microcomputer control
CN110336355B (en) Charging method, charging device and terminal equipment
CN111444515A (en) Credibility measurement method based on PCIE interface
CN103257597B (en) Control method and electronic equipment
CN115395621A (en) Emergency energy storage battery electric energy management method, device, equipment and medium
CN114465319A (en) Electronic device, method for determining path impedance, chip, and storage medium
CN107611509A (en) A kind of intelligent terminal and its charging method and the device with store function
CN106374569A (en) Charging circuit, electronic equipment and charging 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210209

RJ01 Rejection of invention patent application after publication