Method, apparatus and device for power dynamic allocation for multi-type devices and medium

By detecting the real-time power of various types of devices through detectors and circuits, intelligent power allocation is achieved, which solves the problem of poor interface compatibility, realizes the adaptation of various types of devices and the matching of power requirements, avoids equipment damage, and improves power utilization.

CN121478101BActive Publication Date: 2026-05-12HUNAN BOYUE SOFTWARE DEV CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUNAN BOYUE SOFTWARE DEV CO LTD
Filing Date
2026-01-12
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In existing technologies, power distribution systems for multiple types of devices suffer from poor interface compatibility, making them unable to adapt to various types of devices and meet differentiated power requirements, which can lead to device damage.

Method used

By selecting the corresponding power detector based on the device type, the real-time power of the device is detected using a PD protocol detector and a current/voltage sampling circuit. Redundant power is calculated, and it is determined whether the power can be increased based on the device type. Intelligent power allocation is then performed to avoid exceeding the device's capacity.

Benefits of technology

It improves interface compatibility for various types of devices, adapts to the different power requirements of different devices, avoids device damage, and improves power utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121478101B_ABST
    Figure CN121478101B_ABST
Patent Text Reader

Abstract

The application discloses a power dynamic allocation method and device for multiple types of equipment, equipment and medium, the method comprises the following steps: selecting a corresponding power detector according to the equipment type, detecting and acquiring the real-time power of the corresponding equipment type by using the power detector; power allocation is performed according to the real-time demand power and the redundant power, or power allocation is performed according to the real-time demand power, the fixed power of the non-upgradable equipment and the redundant power; if the real-time demand power exceeds the upper limit of the equipment power, the power allocation value is reduced to a safety value within a specified time. By selecting a corresponding power detector according to the equipment type, laser printers, external hard disks and other various non-protocol equipment can be compatible. By intelligently allocating the real-time power of the protocol equipment and the non-protocol equipment, especially the fixed power of the non-protocol equipment, it is avoided that the allocated power exceeds the fixed power, resulting in damage to the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of real-time power allocation technology for multiple devices, and particularly to a method, apparatus, device, and medium for dynamic power allocation of multiple types of devices. Background Technology

[0002] In multi-person conference room scenarios, there is a mix of temporary and diverse devices such as Type-C laptops, USB-B printers, and external hard drives without protocols, which presents problems such as complex device types, large power fluctuations, and temporary access.

[0003] Chinese patent application CN114759632A discloses a charging device and proposes an intelligent power distribution system comprising a power supply circuit, a charging circuit, and a communication circuit. The charging circuit acquires the charging parameters of the load through multiple interfaces and transmits them to a control terminal via the communication circuit. The terminal generates power distribution parameters (including power lock values ​​for some interfaces) based on these parameters. The charging circuit then first allocates the locked power and then distributes the remaining power evenly to the other interfaces, while simultaneously setting a minimum power threshold to ensure basic power supply.

[0004] However, the above solution does not use a dedicated USB-B current / voltage sampling circuit, which makes it impossible to calculate the power of non-protocol devices using P=U×I, resulting in poor interface compatibility and inability to adapt to multiple types of devices. Furthermore, it does not build a dynamic calculation model of "real-time demand-total power redundancy", but only presets a fixed threshold, does not distinguish whether the device has the ability to increase power, and cannot match differentiated power requirements. In severe cases, it may even lead to device damage. Summary of the Invention

[0005] This application proposes a method, apparatus, device, and medium for dynamic power allocation of multiple types of devices to solve the problems of poor interface compatibility, inability to adapt to multiple types of devices, and inability to meet the matching of differentiated power requirements in the power allocation system of the prior art.

[0006] Firstly, to address the aforementioned problems, a power dynamic allocation method for multiple types of devices is proposed, including:

[0007] Step 100: Obtain the device type of the multiple connected devices, select the corresponding power detector according to the device type, use the power detector to detect and obtain the real-time power of the corresponding device type, and calculate the redundant power based on the total power limit and the real-time power of the multiple connected devices.

[0008] Step 200: Obtain the real-time power demand. Determine whether the power of the device currently in demand can be increased based on the device type. If the device can be increased, allocate power according to the real-time power demand and the redundant power. If the device cannot be increased, allocate power according to the real-time power demand, the fixed power of the device that cannot be increased, and the redundant power.

[0009] If the device is adjustable, power allocation is performed based on the real-time power demand and redundant power, including the step of abnormal triggering:

[0010] If the real-time power demand exceeds the device power limit, the power allocation value will be reduced to a safe value within a specified time.

[0011] If the device is not adjustable, power allocation is performed based on the real-time power demand, the fixed power of the non-adjustable device, and the redundant power, including the steps for abnormal triggering:

[0012] If the real-time power demand exceeds the device's power limit, the power allocation value will be reduced to a safe value within a specified time.

[0013] Furthermore, step 100 includes:

[0014] Step 110: If the device type is a Type-C device, then obtain the PD protocol detector;

[0015] Step 120: Detect the real-time power of the Type-C device using the PD protocol detector.

[0016] Furthermore, step 100 includes:

[0017] Step 130: If the device type is a USB-B device, then start the current / voltage sampling circuit and use the current / voltage sampling circuit as a USB-B protocol detector.

[0018] Step 140: Detect the real-time power of the USB-B device using the USB-B protocol detector.

[0019] Furthermore, step 200 includes:

[0020] Step 210: If the device type is a Type-C device, then determine that the currently required device is an upscalable device;

[0021] Step 220: Obtain the first real-time power demand of the Type-C device. If the first real-time power demand is less than the redundant power, then allocate power to the Type-C device according to the first real-time power demand. If the first real-time power demand is greater than the redundant power, then allocate power to the Type-C device according to the redundant power.

[0022] Furthermore, step 220 includes:

[0023] Step 221: If the first real-time demand power is greater than the redundant power, then send a power-limited signal to the current demand device;

[0024] Step 222: Within a specified time, reduce the power allocation value to a safe range and allocate power to the Type-C device according to the redundant power.

[0025] Furthermore, step 200 includes:

[0026] Step 230: If the device type is a USB-B device, then determine that the currently requested device is a non-adjustable device;

[0027] Step 240: Obtain the second real-time power requirement of the USB-B device. If the second real-time power requirement is less than the smaller of the redundant power and the fixed power, then allocate power to the USB-B device according to the second real-time power requirement. If the second real-time power requirement is greater than the larger of the redundant power and the fixed power, then allocate power to the USB-B device according to the smaller of the redundant power and the fixed power.

[0028] Furthermore, step 240 includes:

[0029] Step 241: If the second real-time demand power is greater than the larger of the redundant power and the fixed power, then send a power-limited signal to the current demand device;

[0030] Step 242: Within a specified time, reduce the power allocation value to a safe range, and allocate power to the USB-B device according to the smaller of the redundant power and the fixed power.

[0031] To address the aforementioned problems, a power dynamic allocation device for multiple types of devices is provided, employing the aforementioned power dynamic allocation method for multiple types of devices, comprising:

[0032] The power acquisition module is used to acquire the device types of multiple connected devices, select the corresponding power detector according to the device type, use the power detector to detect and acquire the real-time power of the corresponding device type, and calculate the redundant power based on the real-time power of the multiple devices.

[0033] The real-time power allocation module is used to obtain the real-time power demand and determine whether the power of the device currently in demand can be increased based on the device type. If the device can be increased, power allocation is performed based on the real-time power demand and the redundant power. If the device cannot be increased, power allocation is performed based on the real-time power demand, the fixed power of the device that cannot be increased, and the redundant power.

[0034] To address the aforementioned technical problems, this application also provides an electronic device, including a memory and a processor. The memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the power dynamic allocation method for multiple types of devices as described in the first aspect.

[0035] To address the aforementioned technical problems, embodiments of this application also provide a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the power dynamic allocation method for multiple types of devices as described in the first aspect.

[0036] Compared with the prior art, the embodiments of this application have the following main technical effects: By adopting a power acquisition module, the corresponding power detector is selected according to the device type, thereby enabling compatibility with various devices such as laser printers and external hard drives, and obtaining the real-time power of these non-protocol devices. By adopting a real-time power allocation module, intelligent allocation can be performed based on the real-time power of protocol devices and non-protocol devices, especially the fixed power of non-protocol devices, to avoid the allocated power exceeding the fixed power, which could lead to device damage. This solves the problems of poor interface compatibility, inability to adapt to multiple types of devices, and inability to meet the needs of different power matching in the power allocation system of the prior art. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used 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 those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is a schematic diagram of a specific embodiment of a power dynamic allocation method for multiple types of devices according to the present invention;

[0039] Figure 2 for Figure 1 A schematic diagram of a specific implementation of step 100 in the diagram;

[0040] Figure 3 for Figure 2 A schematic diagram of a specific implementation method following step 120;

[0041] Figure 4 for Figure 1 A schematic diagram of a specific implementation of step 200 in the diagram;

[0042] Figure 5 for Figure 4 A schematic diagram of a specific implementation of step 220 in the process;

[0043] Figure 6 for Figure 4 A schematic diagram of a specific implementation method following step 220;

[0044] Figure 7 for Figure 6 A schematic diagram of a specific implementation of step 240 in the diagram;

[0045] Figure 8 This is a schematic diagram of the structure of a power dynamic allocation device for multiple types of devices according to the present invention;

[0046] Figure 9 This is a schematic diagram of the structure of an embodiment of an electronic device according to this application. Detailed Implementation

[0047] The technical solutions of this invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are all within the scope of protection of this invention.

[0048] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings of this application are intended to cover non-exclusive inclusion.

[0050] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0051] Glossary

[0052] Type-C interface: A type of universal serial bus (USB) hardware interface, featuring reversible plug-in, high transmission speed, and strong power supply capability. It supports charging / data transmission protocols such as PD and can dynamically negotiate power with devices. It is widely used in devices such as smartphones and laptops.

[0053] USB-B interface: A common type of USB interface (mostly square in shape), often used as an interface for peripherals such as printers and external hard drives; the power supply capability of traditional USB-B interfaces is relatively fixed, and some do not have smart charging protocols, requiring power calculation through voltage and current sampling.

[0054] PD Protocol (Power Delivery Protocol): also known as USB power supply protocol, allows devices to dynamically negotiate power supply through the Type-C interface, supports a maximum power transmission of 240W, and can flexibly adjust power supply parameters according to the real-time needs of the device to achieve intelligent and efficient power distribution.

[0055] This application proposes a method, apparatus, device, and medium for dynamic power allocation of multiple types of devices to solve the problems of poor interface compatibility, inability to adapt to multiple types of devices, and inability to meet the matching of differentiated power requirements in the power allocation system of the prior art.

[0056] Firstly, to address the aforementioned problems, a dynamic power allocation method for multiple types of devices is proposed, such as... Figure 1 , Figure 1 This is a schematic diagram of a specific embodiment of a power dynamic allocation method for multiple types of devices according to the present invention; including:

[0057] Step 100: Obtain the device type of the multiple connected devices, select the corresponding power detector according to the device type, use the power detector to detect and obtain the real-time power of the corresponding device type, and calculate the redundant power based on the total power limit and the real-time power of the multiple connected devices.

[0058] In one possible implementation, such as Figure 2 , Figure 2 for Figure 1 A schematic diagram of a specific implementation of step 100; step 100 includes:

[0059] Step 110: If the device type is a Type-C device, obtain the PD protocol detector; Step 120: Use the PD protocol detector to detect the real-time power of the Type-C device.

[0060] In one possible implementation, such as Figure 3 , Figure 3 for Figure 2 A schematic diagram of a specific implementation after step 120; step 100 includes: step 130, if the device type is a USB-B device, then start the current / voltage sampling circuit and use the current / voltage sampling circuit as a USB-B protocol detector; step 140, use the USB-B protocol detector to detect the real-time power of the USB-B device.

[0061] In complex conference room scenarios, there are often protocol devices with Type-C interfaces, which are adjustable devices, such as smartphones and laptops. There are also non-protocol USB-B devices, which are not adjustable, such as laser printers and external hard drives. When these devices are connected, the power calculation is often inaccurate, easily leading to insufficient power supply or power waste. The reason for the poor compatibility of existing technologies is that a dedicated current / voltage sampling circuit for USB-B has not been developed, making it impossible to calculate the power of non-protocol devices using P=U×I. This limits compatibility to standard charging devices. In this embodiment, protocol devices and non-protocol devices are distinguished, and different power detection devices are used for each. This allows for more accurate acquisition of the real-time power of non-protocol devices, enabling more accurate power allocation and protecting the devices.

[0062] In this embodiment, the Type-C interface accurately captures the dynamic demands of the device through a PD protocol detector (100ms / time), such as the fluctuation of 135W under high load and 65W under low load of the Lenovo Legion Y9000P; the USB-B interface uses a current / voltage sampling circuit to calculate power according to the formula P=U×I, covering external 4K hard drives (12W) and laser printers (20W working / 2W standby) and other non-protocol USB-B devices, eliminating detection blind spots.

[0063] Step 200: Obtain the real-time power demand. Determine whether the power demand of the current device can be increased based on the device type. If the device can be increased, allocate power according to the real-time power demand and the redundant power. If the device cannot be increased, allocate power according to the real-time power demand, the fixed power of the non-adjustable device, and the redundant power.

[0064] In one possible implementation, such as Figure 4 , Figure 4 for Figure 1 A schematic diagram of a specific implementation of step 200; step 200 includes:

[0065] Step 210: If the device type is a Type-C device, then determine that the current demand device is an adjustable device; Step 220: Obtain the first real-time demand power of the Type-C device. If the first real-time demand power is less than the redundant power, then allocate power to the Type-C device according to the first real-time demand power. If the first real-time demand power is greater than the redundant power, then allocate power to the Type-C device according to the redundant power.

[0066] In one possible implementation, such as Figure 5 , Figure 5 for Figure 4 A schematic diagram of a specific implementation of step 220; step 220 includes:

[0067] Step 221: If the first real-time power demand is greater than the redundant power, a power-limited signal is sent to the device with the current demand. Step 222: Within a specified time, the power allocation value is reduced to a safe range, and power is allocated to the Type-C device according to the redundant power.

[0068] In this embodiment, for adjustable devices that support PD3.1PPS (such as gaming laptops), redundant power is calculated in real time. If the first real-time demand power is less than or equal to the redundancy, it is allocated in full according to the first real-time demand power. If the power exceeds the redundancy, it is distributed according to the redundancy power. At the same time, if the first real-time demand power exceeds its power limit, it is smoothly reduced to a safe value (such as 90W→60W) within a specified time (within 1 second) to avoid black screen and disconnection.

[0069] In one possible implementation, such as Figure 6 , Figure 6 for Figure 4 A schematic diagram of a specific implementation following step 220; step 200 includes:

[0070] Step 230: If the device type is a USB-B device, then determine that the current demanding device is a non-adjustable device; Step 240: Obtain the second real-time demand power of the USB-B device. If the second real-time demand power is less than the smaller of the redundant power and the fixed power, then allocate power to the USB-B device according to the second real-time demand power. If the second real-time demand power is greater than the larger of the redundant power and the fixed power, then allocate power to the USB-B device according to the smaller of the redundant power and the fixed power.

[0071] In one possible implementation, such as Figure 7 , Figure 7 for Figure 6 A schematic diagram of a specific embodiment of step 240 is shown, step 240 includes:

[0072] Step 241: If the second real-time power demand is greater than the larger of the redundant power and the fixed power, a power limiting signal is sent to the device with the current demand. Step 242: Within a specified time, the power allocation value is reduced to a safe range, and the power is allocated to the USB-B device according to the smaller of the redundant power and the fixed power.

[0073] In this embodiment, for non-protocol USB-B devices, when the second real-time power demand exceeds the fixed power or redundant power, the device currently demanding the power is notified, and the power allocation value is reduced to a safe range to avoid a black screen.

[0074] In this embodiment, power data of the device's current consumption / demand is acquired at a high frequency (e.g., 100ms / time) through current sensors, voltage sampling circuits, or protocol parsing. This provides real-time and accurate input for dynamic power allocation and forms the basis of intelligent power regulation. Based on the device's real-time power demand and the system's total power redundancy (total power limit - used power), the power supply power of each interface is calculated and adjusted in real time, enabling power resources to be allocated "on demand," ensuring device power supply while improving overall power utilization.

[0075] To address the aforementioned issues, a power dynamic allocation device for various types of equipment is provided, such as... Figure 8 , Figure 8 This is a schematic diagram of the structure of a power dynamic allocation device for multiple types of devices according to the present invention;

[0076] A power dynamic allocation method for multiple types of devices includes:

[0077] The power acquisition module 301 is used to acquire the device types of multiple connected devices, select the corresponding power detector according to the device type, use the power detector to detect and acquire the real-time power of the corresponding device type, and calculate the redundant power based on the real-time power of multiple devices.

[0078] The real-time power allocation module 302 is used to obtain the real-time power demand and determine whether the power of the current demanding device can be increased according to the device type. If the device can be increased, the power is allocated according to the real-time power demand and the redundant power. If the device cannot be increased, the power is allocated according to the real-time power demand, the fixed power of the non-adjustable device, and the redundant power.

[0079] To address the aforementioned technical problems, this application also provides an electronic device, including a memory and a processor. The memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, it implements the steps of the power dynamic allocation method for multiple types of devices as described in the first aspect. The technical solution adopted includes a processor, a network module, and a memory, with the processor and memory interconnected via the network module.

[0080] This electronic device can be a computer, server, workstation, or other similar device; it can also be a mobile device such as a mobile phone, tablet, or in-vehicle mobile terminal; or other devices with program execution capabilities. Its internal structure diagram can be as follows: Figure 9 As shown, Figure 9 This is a schematic diagram of an embodiment of an electronic device according to this application. The electronic device includes a processor, a memory, and a network module. The processor provides computing and control capabilities. The memory includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage media stores an operating system, instructions, or code. The internal memory provides an environment for the operation of the operating system and instructions or code in the non-volatile storage media. When the instructions or code are executed by the processor, they implement the functions or steps of the above-described power dynamic allocation method for multiple types of devices. The network module of the electronic device may include a network interface and / or a wireless network module, through which the electronic device can communicate with other devices or service platforms. Furthermore, the electronic device may also include a display screen and an input system, etc.

[0081] The memory is used to store computer programs, which include program instructions. The processor is configured to call the program instructions, and the processor executes the instructions or code to implement the steps of the high-alignment-precision multi-channel video delay estimation method described above.

[0082] To address the aforementioned technical problems, embodiments of this application also provide a computer-readable storage medium storing computer-readable instructions. When executed by a processor, the computer-readable instructions implement the steps of the power dynamic allocation method for multiple types of devices as described in the first aspect.

[0083] The aforementioned computer-readable storage medium may be a system for a dynamic power allocation method for multiple types of devices provided in any of the foregoing embodiments, or an internal storage unit of the aforementioned terminal device, such as a hard disk or memory of an electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device.

[0084] Furthermore, the computer-readable storage medium may include both internal storage units and external storage devices of the electronic device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0085] However, it should be understood that it is not required to implement all the components shown; more or fewer components may be implemented instead. Those skilled in the art will understand that the electronic device described herein is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0086] Electronic devices can be computing devices such as desktop computers, laptops, PDAs, and cloud servers. Electronic devices can interact with users through methods such as keyboards, mice, remote controls, touchpads, or voice-activated devices.

[0087] Compared with the prior art, the embodiments of this application have the following main technical effects: By adopting a power acquisition module, the corresponding power detector is selected according to the device type, thereby enabling compatibility with various devices such as laser printers and external hard drives, and obtaining the real-time power of these non-protocol devices. By adopting a real-time power allocation module, intelligent allocation can be performed based on the real-time power of protocol devices and non-protocol devices, especially the fixed power of non-protocol devices, to avoid the allocated power exceeding the fixed power, which could lead to device damage. This solves the problems of poor interface compatibility, inability to adapt to multiple types of devices, and inability to meet the needs of different power matching in the power allocation system of the prior art.

[0088] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for dynamic power allocation for multiple types of devices, characterized in that, include: Step 100: Obtain the device type of the multiple connected devices, select the corresponding power detector according to the device type, use the power detector to detect and obtain the real-time power of the corresponding device type, and calculate the redundant power based on the total power limit and the real-time power of the multiple connected devices. Step 200: Obtain the real-time power demand. Determine whether the power of the device currently in demand can be increased based on the device type. If the device can be increased, allocate power according to the real-time power demand and the redundant power. If the device cannot be increased, allocate power according to the real-time power demand, the fixed power of the device that cannot be increased, and the redundant power. If the device is adjustable, power allocation is performed based on the real-time power demand and redundant power, including the step of abnormal triggering: If the real-time power demand exceeds the device power limit, the power allocation value will be reduced to a safe value within a specified time. If the device is not adjustable, power allocation is performed based on the real-time power demand, the fixed power of the non-adjustable device, and the redundant power, including the steps for abnormal triggering: If the real-time power demand exceeds the device's power limit, the power allocation value will be reduced to a safe value within a specified time.

2. The power dynamic allocation method for multiple types of equipment according to claim 1, characterized in that, Step 100 includes: Step 110: If the device type is a Type-C device, then obtain the PD protocol detector; Step 120: Detect the real-time power of the Type-C device using the PD protocol detector.

3. The power dynamic allocation method for multiple types of equipment according to claim 2, characterized in that, Step 100 includes: Step 130: If the device type is a USB-B device, then start the current / voltage sampling circuit and use the current / voltage sampling circuit as a USB-B protocol detector. Step 140: Detect the real-time power of the USB-B device using the USB-B protocol detector.

4. The power dynamic allocation method for multiple types of equipment according to claim 1, characterized in that, Step 200 includes: Step 210: If the device type is a Type-C device, then determine that the currently required device is an upscalable device; Step 220: Obtain the first real-time power demand of the Type-C device. If the first real-time power demand is less than the redundant power, then allocate power to the Type-C device according to the first real-time power demand. If the first real-time power demand is greater than the redundant power, then allocate power to the Type-C device according to the redundant power.

5. The power dynamic allocation method for multiple types of equipment according to claim 4, characterized in that, Step 220 includes: Step 221: If the first real-time demand power is greater than the redundant power, then send a power-limited signal to the current demand device; Step 222: Within a specified time, reduce the power allocation value to a safe range and allocate power to the Type-C device according to the redundant power.

6. The power dynamic allocation method for multiple types of equipment according to claim 4, characterized in that, Step 200 includes: Step 230: If the device type is a USB-B device, then determine that the currently requested device is a non-adjustable device; Step 240: Obtain the second real-time power requirement of the USB-B device. If the second real-time power requirement is less than the smaller of the redundant power and the fixed power, then allocate power to the USB-B device according to the second real-time power requirement. If the second real-time power requirement is greater than the larger of the redundant power and the fixed power, then allocate power to the USB-B device according to the smaller of the redundant power and the fixed power.

7. The power dynamic allocation method for multiple types of equipment according to claim 6, characterized in that, Step 240 includes: Step 241: If the second real-time demand power is greater than the larger of the redundant power and the fixed power, then send a power-limited signal to the current demand device; Step 242: Within a specified time, reduce the power allocation value to a safe range, and allocate power to the USB-B device according to the smaller of the redundant power and the fixed power.

8. A power dynamic allocation device for multiple types of equipment, employing the power dynamic allocation method for multiple types of equipment as described in any one of claims 1-7, characterized in that, include: The power acquisition module is used to acquire the device types of multiple connected devices, select the corresponding power detector according to the device type, use the power detector to detect and acquire the real-time power of the corresponding device type, and calculate the redundant power based on the real-time power of the multiple devices. The real-time power allocation module is used to obtain the real-time power demand and determine whether the power of the device currently in demand can be increased based on the device type. If the device can be increased, power allocation is performed based on the real-time power demand and the redundant power. If the device cannot be increased, power allocation is performed based on the real-time power demand, the fixed power of the device that cannot be increased, and the redundant power.

9. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the power dynamic allocation method for multiple types of devices as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the power dynamic allocation method for multiple types of devices as described in any one of claims 1 to 7.