Multi-port power supply dynamic power distribution method and multi-port power supply

By dynamically distributing the power of multi-port power and adjusting the output power according to device needs, the problem that the power of multi-port charger cannot meet the needs is solved, avoiding the phenomenon of charging interruption, and improving user experience and charging efficiency.

CN118920659APending Publication Date: 2024-11-08SHENZHEN LANHE TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411254141.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

When multiple devices are charged at the same time, the power cannot be allocated reasonably, resulting in some devices being unable to meet the charging needs and prone to discontinuation of charging.

Method used

By obtaining the power required by the equipment connected to each port, dynamically distribute the total power of the power, and broadcasting the power packets through soft reset, the output power adjustment of each port is achieved to ensure that the charging requirements are met, and at the same time, avoiding the communication line being disconnected.

Benefits of technology

It realizes dynamic distribution of multi-port power, meets the charging needs of different devices, avoids charging outage, improves user experience, and improves charging efficiency and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118920659A_ABST
    Figure CN118920659A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a multi-port power supply dynamic power distribution method and a multi-port power supply. The multi-port power supply dynamic power distribution method comprises the following steps: acquiring first required power of first to-be-charged equipment connected with a first port; acquiring second required power of second to-be-charged equipment connected with the second port; performing power distribution on the total power of a power supply according to the first required power and the second required power, and generating first output power of the first port and second output power of the second port; broadcasting a power data packet to the first to-be-charged device and the second to-be-charged device through the first port and the second port in a soft reset mode, wherein the power data packet comprises the first output power and the second output power; and outputting the first output power to the first port, and outputting the second output power to the second port. According to the embodiment, the power is dynamically distributed for multiple devices in real time, and the charging interruption probability can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of charging power supplies, and in particular to a multi-port power supply dynamic power distribution method and a multi-port power supply. Background Art

[0002] With the widespread use of electronic devices, multiple electronic devices often need to be charged at the same time. However, the charging protocols and charging models of chargers for different electronic devices such as mobile phones, tablets, notebooks, Bluetooth headsets, etc. are inconsistent, and the charging power is also different. Multi-port chargers can meet users' needs for charging multiple electronic devices at the same time. Taking a common dual-port charger as an example, when a single port is output, the maximum power of the charger can be output, but in the dual-port output mode, each port is usually a fixed value. However, this will lead to the charger power cannot be reasonably allocated. For example, the total power supported by an existing charger is 32W. When the dual-port output is used, the power supported by port A can be, for example, 12W, and the power supported by port C is 20W. If the device connected to port A only needs 5W of power, it still occupies the quota of 12W, that is, 7W of power is wasted. At this time, if the device of port C needs 25W, it can only be allocated 20W, which cannot meet the charging demand.

[0003] Therefore, a power distribution solution for a multi-port power supply is urgently needed to solve the problem that the fixed power of the multi-port power supply cannot meet the charging demand. Summary of the invention

[0004] Therefore, in order to overcome at least some of the defects and shortcomings in the prior art, an embodiment of the present invention provides a multi-port power supply dynamic power allocation method and a multi-port power supply.

[0005] Specifically, on the one hand, an embodiment of the present invention provides a multi-port power supply dynamic power allocation method, including: obtaining a first required power of a first device to be charged connected to a first port; obtaining a second required power of a second device to be charged connected to a second port; performing power allocation on the total power of the power supply according to the first required power and the second required power, generating a first output power of the first port and a second output power of the second port; broadcasting a power data packet to the first device to be charged and the second device to be charged via the first port and the second port by means of a soft reset, the power data packet including the first output power and the second output power; outputting the first output power to the first port, and outputting the second output power to the second port.

[0006] In a specific embodiment of the present invention, the power distribution of the total power of the power supply is performed according to the first required power and the second required power to generate a first output power of the first port and a second output power of the second port, which specifically includes: respectively determining whether the first required power and the second required power are greater than half of the total power of the power supply; and distributing the total power of the power supply into a first output power corresponding to the first port and a second output power corresponding to the second port according to the determination result.

[0007] In a specific embodiment of the present invention, the total power of the power supply is allocated into a first output power corresponding to the first port and a second output power corresponding to the second port according to a judgment result, specifically: when the judgment result is that the second required power is less than half of the total power of the power supply, and the first required power is greater than half of the total power of the power supply, the surplus power of the second port is transferred to the first port, the second output power is equal to the second required power, and the first output power is the difference between the total power of the power supply and the second required power.

[0008] In a specific embodiment of the present invention, the total power of the power supply is allocated into a first output power corresponding to the first port and a second output power corresponding to the second port according to a judgment result, specifically: when the judgment result is that the second required power is greater than half of the total power of the power supply, and the first required power is less than half of the total power of the power supply, the surplus power of the first port is transferred to the second port, the first output power is equal to the first required power, and the second output power is the difference between the total power of the power supply and the first required power.

[0009] In a specific embodiment of the present invention, the total power of the power supply is allocated into a first output power corresponding to the first port and a second output power corresponding to the second port according to a judgment result, specifically: when the judgment result is that the first required power and the second required power are both greater than half of the total power of the power supply, or the first required power and the second required power are both less than half of the total power of the power supply, then the first output power and the second output power are both half of the total power of the power supply.

[0010] In a specific embodiment of the present invention, before allocating the total power of the power supply according to the first required power and the second required power to generate the first output power of the first port and the second output power of the second port, it also includes: determining whether the first device to be charged and the second device to be charged are preset priority devices; and setting the first required power or the second required power to the first priority according to the determination result.

[0011] In a specific embodiment of the present invention, the total power of the power supply is allocated according to the first demand power and the second demand power to generate a first output power of the first port and a second output power of the second port, specifically including: preferentially allocating the total power of the power supply to the first demand power or the second demand power corresponding to the first priority, and then allocating the remaining power to the second demand power or the first demand power; generating a first output power of the first port and a second output power of the second port.

[0012] In a specific embodiment of the present invention, the multi-port power supply dynamic power allocation method also includes: monitoring whether the first required power and the second required power change; and dynamically adjusting the first output power and the second output power in a step-by-step manner according to the changes in the first required power and the second required power.

[0013] In a specific embodiment of the present invention, the first output power and the second output power are dynamically adjusted in a step-by-step manner according to changes in the first demand power and the second demand power, specifically including: when the first demand power or the second demand power changes, the surplus power is transferred from the port with low demand to the port with high demand at a preset unit power at a preset time interval.

[0014] In a specific embodiment of the present invention, the determining whether the first device to be charged and the second device to be charged are preset priority devices is specifically: determining whether the device type of the first device to be charged or the second device to be charged is a preset device type according to the required voltage of the first device to be charged or the second device to be charged.

[0015] In a specific embodiment of the present invention, the determination of whether the first device to be charged and the second device to be charged are preset priority devices is specifically: determining whether the device type of the first device to be charged or the second device to be charged is a preset device type according to a handshake protocol of the first device to be charged or the second device to be charged.

[0016] On the other hand, an embodiment of the present invention also provides a multi-port power supply, including: a first port; a second port; and a processor, wherein the first port and the second port are electrically connected to the processor respectively, and the processor is used to execute the multi-port power supply dynamic power allocation method as described above.

[0017] As can be seen from the above, the embodiment of the present invention obtains the first required power and the second required power corresponding to the first device to be charged and the second device to be charged connected to the first port and the second port, distributes the total power of the power supply according to the first required power and the second required power, broadcasts the power data packet to the first device to be charged and the second device to be charged via the first port and the second port in a soft reset manner, and then outputs the corresponding first output power and the second output power to the first port and the second port respectively. By distributing the total power of the power supply according to the first required power and the second required power, the charging requirements of different charging devices can be met. By realizing power re-output by soft reset, the communication line can be avoided from being disconnected, thereby avoiding charging interruption and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0019] Figure 1 A schematic diagram of the structure of a multi-port power supply provided by an embodiment of the present invention.

[0020] Figure 2 A schematic flow chart of a multi-port power supply dynamic power allocation method provided by an embodiment of the present invention.

[0021] Figure 3 for Figure 2 Schematic diagram of the process of step S30.

[0022] Figure 4 for Figure 3 Schematic diagram of the process of step S32.

[0023] Figure 5 for Figure 2 Another flowchart diagram of step S30 in FIG.

[0024] Figure 6 A partial flow chart of a multi-port power supply dynamic power allocation method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments described in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0026] In the embodiments of the present invention, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0027] See also Figure 1 An embodiment of the present invention provides a multi-port power supply 10, which may be, for example, a multi-port charging head, a multi-port power bank, etc.

[0028] The multi-port power supply 10 may include, for example, a processor 100, a first port 210 and a second port 220. The processor 100 may be, for example, a microcontroller unit (MCU), the first port 210 and the second port 220 may be, for example, power output ports, the port types of the first port 210 and the second port 220 may be, for example, a Type-C interface, a USB interface, etc., the port types of the first port 210 and the second port 220 may be, for example, the same or different. Of course, the number of ports of the multi-port power supply 10 provided in this embodiment is not limited to two, but may be more than two, and the specific form of the port may be a male connector in an electrical connector, or a female connector. The first port 210 and the second port 220 are electrically connected to the processor 100, respectively. The multi-port power supply 10 may also include, for example, a communication chip (for example, a PD protocol chip), communication lines (for example, CC1 and CC2) and a MOS switch tube (switch VBus), the processor 100 may, for example, communicate with the PD protocol chip, and the PD protocol chip controls the communication line and the MOS switch tube. Multi-port charging can be implemented through the first port 210 and the second port 220 to charge multiple devices at the same time.

[0029] An embodiment of the present invention also provides a multi-port power supply dynamic power allocation method, which can be applied to the multi-port power supply 10 as described above, for example. Specifically, the processor 100 in the multi-port power supply 10 executes the multi-port power supply dynamic power allocation method provided in this embodiment to realize dynamic power allocation of the multi-port power supply.

[0030] See also Figure 1The multi-port power supply dynamic power allocation method provided by the embodiment of the present invention may, for example, include the following steps:

[0031] S10, obtaining a first required power of a first device to be charged connected to the first port;

[0032] S20, obtaining a second required power of a second device to be charged connected to the second port;

[0033] S30, allocating the total power of the power supply according to the first required power and the second required power to generate a first output power of the first port and a second output power of the second port;

[0034] S40, broadcasting a power data packet to the first device to be charged and the second device to be charged via the first port and the second port in a soft reset manner, wherein the power data packet includes the first output power and the second output power;

[0035] S50: output the first output power to the first port, and output the second output power to the second port.

[0036] When the first device to be charged is inserted into the first port 210, the first required power of the first device to be charged can be obtained, for example, through a handshake protocol, and the required first required power can be output to the first device to be charged. The processor 100 can, for example, detect whether the second port 220 is connected to the second device to be charged. When the second device to be charged is inserted into the second port 220, the second required power of the second device to be charged can be obtained, for example, through a handshake protocol. Then, the total power of the power supply is allocated according to the first required power and the second required power, and the first output power of the first port 210 and the second output power of the second port 220 are generated, so that the output power of the first port 210 and the second port 220 can be dynamically allocated according to the corresponding device to be charged to better meet the charging needs of different devices. Then, the power data packet is broadcast to the first device to be charged and the second device to be charged via the first port 210 and the second port 220 in a soft reset manner, and the first output power is output to the first port 210, and the second output power is output to the second port 220. The soft reset method is defined as communicating with the device to be charged through the message receiving and sending layer of the communication protocol (such as the PD protocol), so that the device to be charged can reset the relevant software status bits through software and re-communicate the charging power, thereby not disconnecting the hardware connection and avoiding charging interruption.

[0037] The embodiment of the present invention obtains the first required power and the second required power corresponding to the first device to be charged and the second device to be charged connected to the first port 210 and the second port 220, distributes the total power of the power supply according to the first required power and the second required power, broadcasts the power data packet to the first device to be charged and the second device to be charged via the first port and the second port in a soft reset manner, and then outputs the corresponding first output power and the second output power to the first port 210 and the second port 220 respectively. By distributing the total power of the power supply according to the first required power and the second required power, the charging requirements of different charging devices can be met. By realizing power re-output by soft reset, the communication line can be avoided from being disconnected, thereby avoiding charging interruption and improving user experience.

[0038] Specifically, see Figure 3 , step S30 may for example include the following steps:

[0039] S31, respectively determining whether the first required power and the second required power are greater than half of the total power of a power supply;

[0040] S32: Distribute the total power of the power supply into a first output power corresponding to the first port and a second output power corresponding to the second port according to the determination result.

[0041] Further, see Figure 4 , step S32 may for example include the following steps:

[0042] S321, when the judgment result is that the second required power is less than half of the total power of the power supply, and the first required power is greater than half of the total power of the power supply, the surplus power of the second port is transferred to the first port, the second output power is equal to the second required power, and the first output power is the difference between the total power of the power supply and the second required power;

[0043] S322, when the judgment result is that the second required power is greater than half of the total power of the power supply, and the first required power is less than half of the total power of the power supply, the surplus power of the first port is transferred to the second port, the first output power is equal to the first required power, and the second output power is the difference between the total power of the power supply and the first required power;

[0044] S323, when the judgment result is that the first required power and the second required power are both greater than half of the total power of the power supply, or the first required power and the second required power are both less than half of the total power of the power supply, then the first output power and the second output power are both half of the total power of the power supply.

[0045] Under normal circumstances, the maximum power supported by the first port 210 and the second port 220 may be, for example, 1 / 2 of the total power of the power supply. By comparing the first required power with half of the total power of the power supply, and comparing the second required power with half of the total power of the power supply, the surplus power of the port with surplus power in the first port 210 and the second port 220 is transferred to the other port, so as to dynamically allocate the first output power and the second output power of the first port 210 and the second port 220, so that the total power of the power supply can be reasonably and fully used, so as to meet the charging requirements of multiple devices to be charged and improve the overall charging efficiency.

[0046] Furthermore, before allocating the total power of the power supply according to the first required power and the second required power to generate the first output power of the first port and the second output power of the second port, the method further includes:

[0047] Determining whether the first device to be charged and the second device to be charged are preset priority devices;

[0048] The first required power or the second required power is set as a first priority according to the determination result.

[0049] Specifically, for example, when it is determined that the first device to be charged is a preset priority device, the first required power is set to the first priority; when it is determined that the second device to be charged is a preset priority device, the second required power is set to the first priority. When it is determined that the first device to be charged and the second device to be charged are both the preset priority devices, the first required power of the first device to be charged that is preferentially connected to the power supply is set to the first priority. By setting the first priority, the device to be charged that is a high-power device such as a laptop computer can be preferentially satisfied, avoiding the situation of incompatible chargers and improving the compatibility of the multi-port power supply 10.

[0050] See also Figure 5 , step S30 may for example further include:

[0051] S301, preferentially allocating the total power of the power supply to the first required power or the second required power corresponding to the first priority, and then allocating the remaining power to the second required power or the first required power;

[0052] S302: Generate a first output power of the first port and a second output power of the second port.

[0053] When the first required power is of the first priority, the total power of the power supply is preferentially allocated to the first required power, and the remaining power is allocated to the second required power, the first output power is equal to the first required power, and the second output power is the difference between the total power supply power and the first required power; when the second required power is of the first priority, the total power of the power supply is preferentially allocated to the second required power, and the remaining power is allocated to the first required power, the second output power is equal to the second required power, and the first output power is the difference between the total power supply power and the first required power.

[0054] The determining that the first device to be charged is a preset priority device may specifically be, for example, determining whether the device type of the first device to be charged is a preset device type according to the required voltage or handshake protocol of the first device to be charged. Similarly, the determining whether the device type of the second device to be charged is a preset device type may be, for example, determined according to the required voltage or handshake protocol of the second device to be charged.

[0055] When the first device to be charged or the second device to be charged is connected to the multi-port power supply 10, the processor 100 can, for example, determine the device type according to the voltage required by the device to be charged. For example, when the voltage required by the device to be charged is greater than a preset value, the device to be charged is determined to be a laptop computer, and the device to be charged is a preset priority device. For example, if the voltage required by the device to be charged is higher than the preset value, for example, it is identified that the voltage required by the device to be charged is 20V, then the device to be charged is determined to be a laptop computer, and the subsequent power adjustment cannot adjust the output power of the port where it is located to less than 45W, otherwise the laptop computer may prompt that the charger is incompatible. When the first device to be charged or the second device to be charged is connected to the multi-port power supply 10, the processor 100 can also determine the device type according to a handshake protocol, for example, the handshake protocol can be, for example, SCP (Super Charge Protocol, Super Fast Charge Protocol) protocol, QC (Quick Charge, Fast Charge) protocol, FCP (Fast Charging Protocol) protocol, PE (Pump Express) protocol, etc., and different device types are determined according to different protocols, and the device to be charged is determined to be a preset priority device according to the device type. By setting the first priority in this way, high-power devices such as laptop computers can be given priority to be charged, thereby avoiding the situation of incompatible chargers and improving the compatibility of the multi-port power supply 10.

[0056] See also Figure 6 The multi-port power supply dynamic power allocation method provided by the embodiment of the present invention may, for example, further include the following steps:

[0057] S60, monitoring whether the first required power and the second required power change;

[0058] S70: Dynamically adjust the first output power and the second output power in a step-by-step manner according to changes in the first required power and the second required power.

[0059] Specifically, the processor 100 may monitor, for example, whether the first required power and the second required power have changed, that is, monitor whether the required power of the first device to be charged and the second device to be charged has changed. If the required power of the first device to be charged and the second device to be charged has not changed, the original power allocation mode is maintained. If the required power of the first device to be charged and the second device to be charged has changed, the first output power and the second output power are dynamically adjusted in a step-by-step manner according to the changes in the first required power and the second required power. The step-by-step manner may be, for example, transferring the preset unit power from the port with low demand to the port with high demand at a preset time interval. The step-by-step manner is to send a preset unit power at a preset time interval. The surplus power may be, for example, the difference between the power before the change and the power after the change. The port with low demand may be, for example, a port whose high demand changes to a low demand, or a first port whose demand is originally lower than 1 / 2 of the total power. If the demand of the second port increases from a low demand to higher than 1 / 2 of the total power, the first port is a port with low demand. For example, the first port 210 may be connected to a laptop computer as the first device to be charged. When the first device to be charged is fully charged, the first required power required becomes smaller, and the second required power required by the second device to be charged connected to the second port 220 becomes larger or is not satisfied originally, then the surplus power of the first port 210 is transferred to the second port 220 at a preset unit power (e.g., 5W) at a preset time interval (e.g., 5 seconds). By monitoring the changes in the first required power and the second required power, the first output power and the second output power are dynamically adjusted to dynamically allocate power in real time according to the actual needs of different devices to meet more application scenarios. In addition, based on the soft reset communication method, the power is transferred in a step-by-step manner to reduce the probability of charging failure and further improve the user experience.

[0060] In summary, the embodiment of the present invention obtains the first required power and the second required power corresponding to the first device to be charged and the second device to be charged connected to the first port 210 and the second port 220, distributes the total power of the power supply according to the first required power and the second required power, and broadcasts the power data packet to the first device to be charged and the second device to be charged via the first port and the second port in a soft reset manner, and then outputs the corresponding first output power and the second output power to the first port 210 and the second port 220 respectively. By distributing the total power of the power supply according to the first required power and the second required power, the charging requirements of different charging devices can be met. The power re-output can be achieved by soft reset, which can avoid the disconnection of the communication line, thereby avoiding the phenomenon of disconnection and improving the user experience. By judging the device type of the device to be charged to determine the first priority, and allocating power according to the first priority, more application scenarios can be met and the rationality of power allocation can be improved. By monitoring the changes in the first required power and the second required power, the first output power and the second output power are dynamically adjusted to dynamically allocate power in real time according to the actual needs of different devices to meet more application scenarios. Moreover, based on the soft reset communication method, the power is transferred in a step-by-step manner, which can reduce the probability of charging interruption and further improve the user experience.

[0061] In addition, it can be understood that the aforementioned embodiments are only exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.

[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multi-port power supply dynamic power allocation method, characterized in that: include: Acquire a first required power of a first device to be charged connected to the first port; Acquire a second required power of a second device to be charged connected to the second port; Allocate the total power of the power supply according to the first required power and the second required power to generate a first output power of the first port and a second output power of the second port; broadcasting a power data packet to the first device to be charged and the second device to be charged via the first port and the second port in a soft reset manner, wherein the power data packet includes the first output power and the second output power; The first output power is output to the first port, and the second output power is output to the second port.

2. The multi-port power supply dynamic power allocation method according to claim 1, characterized in that: The allocating power of the total power supply according to the first required power and the second required power to generate a first output power of the first port and a second output power of the second port specifically includes: respectively determining whether the first required power and the second required power are greater than half of the total power of a power supply; The total power of the power supply is distributed according to the determination result into a first output power corresponding to the first port and a second output power corresponding to the second port.

3. The multi-port power supply dynamic power allocation method according to claim 2, characterized in that: The allocating the total power of the power supply into a first output power corresponding to the first port and a second output power corresponding to the second port according to the determination result is specifically: When the judgment result is that the second required power is less than half of the total power of the power supply and the first required power is greater than half of the total power of the power supply, the surplus power of the second port is transferred to the first port, the second output power is equal to the second required power, and the first output power is the difference between the total power of the power supply and the second required power.

4. The multi-port power supply dynamic power allocation method according to claim 2, characterized in that: The allocating the total power of the power supply into a first output power corresponding to the first port and a second output power corresponding to the second port according to the determination result is specifically: When the judgment result is that the second required power is greater than half of the total power of the power supply and the first required power is less than half of the total power of the power supply, the surplus power of the first port is transferred to the second port, the first output power is equal to the first required power, and the second output power is the difference between the total power of the power supply and the first required power.

5. The multi-port power supply dynamic power allocation method according to claim 2, characterized in that: The allocating the total power of the power supply into a first output power corresponding to the first port and a second output power corresponding to the second port according to the determination result is specifically: When the judgment result is that the first required power and the second required power are both greater than half of the total power of the power supply, or the first required power and the second required power are both less than half of the total power of the power supply, then the first output power and the second output power are both half of the total power of the power supply.

6. The multi-port power supply dynamic power allocation method according to claim 1, characterized in that: Before allocating the total power of the power supply according to the first required power and the second required power to generate the first output power of the first port and the second output power of the second port, the method further includes: Determining whether the first device to be charged and the second device to be charged are preset priority devices; The first required power or the second required power is set as a first priority according to the determination result.

7. The multi-port power supply dynamic power allocation method according to claim 6, characterized in that: The allocating power of the total power supply according to the first required power and the second required power to generate a first output power of the first port and a second output power of the second port specifically includes: Allocate the total power of the power supply to the first required power or the second required power corresponding to the first priority level first, and then allocate the remaining power to the second required power or the first required power; A first output power for the first port and a second output power for the second port are generated.

8. The multi-port power supply dynamic power allocation method according to claim 1, characterized in that: Also includes: monitoring whether the first required power and the second required power change; The first output power and the second output power are dynamically adjusted in a step-by-step manner according to changes in the first required power and the second required power.

9. The multi-port power supply dynamic power allocation method according to claim 8, characterized in that: The dynamically adjusting the first output power and the second output power in a step-by-step manner according to changes in the first required power and the second required power specifically includes: When the first required power or the second required power changes, surplus power is transferred from the port with low demand to the port with high demand at a preset unit power at a preset time interval.

10. The multi-port power supply dynamic power allocation method according to claim 6, characterized in that: The determining whether the first device to be charged and the second device to be charged are preset priority devices is specifically: It is determined whether the device type of the first device to be charged or the second device to be charged is a preset device type according to the required voltage of the first device to be charged or the second device to be charged.

11. The multi-port power supply dynamic power allocation method according to claim 6, characterized in that: The determining whether the first device to be charged and the second device to be charged are preset priority devices is specifically: It is determined whether the device type of the first device to be charged or the second device to be charged is a preset device type according to the handshake protocol of the first device to be charged or the second device to be charged.

12. A multi-port power supply, characterized in that: include: First port; Second port; as well as A processor, wherein the first port and the second port are electrically connected to the processor respectively, and the processor is used to execute the multi-port power supply dynamic power allocation method according to claims 1 to 11.