Search

CN-121478101-B - Power dynamic allocation method, device, equipment and medium for multi-type equipment

CN121478101BCN 121478101 BCN121478101 BCN 121478101BCN-121478101-B

Abstract

The application discloses a power dynamic distribution method, a device, equipment and a medium for multi-type equipment, wherein the method comprises the steps of selecting a corresponding power detector according to equipment types, detecting and acquiring real-time power of the corresponding equipment types by using the power detector, distributing power according to real-time required power and redundant power or distributing power according to real-time required power, fixed power of non-upregulatable equipment and redundant power, and reducing a power distribution value to a safe value within a specified time if the real-time required power exceeds the upper limit of the equipment power. The corresponding power detector is selected according to the type of the equipment, so that the equipment can be compatible with various non-protocol equipment such as a laser printer, an external hard disk and the like, and the distributed power is prevented from exceeding the fixed power to cause equipment damage by intelligently distributing the real-time power of the protocol equipment and the non-protocol equipment, especially the fixed power of the non-protocol equipment.

Inventors

  • LUO YONG
  • LUO SHENG
  • LI BING

Assignees

  • 湖南拔越软件开发有限公司

Dates

Publication Date
20260512
Application Date
20260112

Claims (10)

  1. 1. A method for dynamic allocation of power for multiple types of devices, comprising: Step 100, obtaining equipment types of a plurality of connected equipment, selecting a corresponding power detector according to the equipment types, detecting and obtaining real-time power of the corresponding equipment types by using the power detector, and calculating redundant power according to the total power upper limit and the real-time power of the plurality of connected equipment; Step 200, acquiring real-time required power, judging whether the power of the current required equipment can be adjusted upwards according to the equipment type, if so, performing power distribution according to the real-time required power and redundant power, and if not, performing power distribution according to the real-time required power, the fixed power of the non-adjustable equipment and the redundant power; If the device is the up-tunable device, performing power distribution according to the real-time required power and the redundant power, including the steps of abnormal triggering: if the real-time required power exceeds the upper limit of the power of the equipment, the power distribution value is reduced to a safe value in a specified time; If the device is the non-upregulatable device, performing power distribution according to the real-time required power, the fixed power and the redundant power of the non-upregulatable device, wherein the method comprises the steps of: And if the real-time required power exceeds the upper limit of the power of the equipment, the power distribution value is reduced to a safe value within a specified time.
  2. 2. The method for dynamically allocating power for multiple types of devices according to claim 1, wherein the step 100 comprises: step 110, if the device Type is Type-C device, acquiring a PD protocol detector; and step 120, detecting the real-time power of the Type-C device by using the PD protocol detector.
  3. 3. The method for dynamically allocating power for multiple types of devices according to claim 2, wherein said step 100 comprises: Step 130, if the device type is USB-B device, starting a current/voltage sampling circuit, and using the current/voltage sampling circuit as a USB-B protocol detector; And 140, detecting the real-time power of the USB-B device by using the USB-B protocol detector.
  4. 4. The method for dynamic power allocation for multiple types of devices according to claim 1, wherein said step 200 comprises: step 210, if the device Type is Type-C device, determining that the current device is an up-tunable device; Step 220, obtaining a first real-time required power of the Type-C device, if the first real-time required power is smaller than the redundant power, performing power distribution on the Type-C device according to the first real-time required power, and if the first real-time required power is larger than the redundant power, performing power distribution on the Type-C device according to the redundant power.
  5. 5. The method for dynamically allocating power for multiple types of devices according to claim 4, wherein said step 220 comprises: Step 221, if the first real-time required power is greater than the redundant power, transmitting a power limited signal to the current required device; And step 222, reducing the power distribution value to a safe range in a specified time, and distributing the power to the Type-C equipment according to the redundant power.
  6. 6. The method for dynamically allocating power to multiple types of devices according to claim 4, wherein the step 200 comprises: step 230, if the device type is a USB-B device, determining that the current device is a device that cannot be up-regulated; Step 240, obtaining a second real-time required power of the USB-B device, if the second real-time required power is smaller than the small one of the redundant power and the fixed power, performing power allocation on the USB-B device according to the second real-time required power, and if the second real-time required power is larger than the large one of the redundant power and the fixed power, performing power allocation on the USB-B device according to the small one of the redundant power and the fixed power.
  7. 7. The method of dynamic power allocation for multiple types of devices according to claim 6, wherein said step 240 comprises: step 241, if the second real-time required power is greater than the greater of the redundant power and the fixed power, transmitting a power limited signal to the current required device; Step 242, reducing the power distribution value to a safe range within a specified time, and distributing power to the USB-B device according to the small one of the redundant power and the fixed power.
  8. 8. A power dynamic allocation apparatus for a multi-type device, employing a power dynamic allocation method for a multi-type device according to any one of claims 1 to 7, comprising: The power acquisition module is used for acquiring the equipment types of the connected multiple equipment, selecting a corresponding power detector according to the equipment types, detecting and acquiring real-time power of the corresponding equipment types by using the power detector, and calculating redundant power according to the real-time power of the multiple equipment; The real-time power distribution module is used for acquiring real-time required power, judging whether the power of the current required equipment can be adjusted upwards according to the equipment type, if the equipment is the equipment which can be adjusted upwards, carrying out power distribution according to the real-time required power and the redundant power, and if the equipment is the equipment which can not be adjusted upwards, carrying out power distribution according to the real-time required power, the fixed power of the equipment which can not be adjusted upwards and the redundant power.
  9. 9. An electronic device comprising a memory and a processor, the memory having stored therein computer readable instructions which when executed by the processor implement the steps of the power dynamic allocation method for a multi-type device of any one of claims 1 to 7.
  10. 10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of the power dynamic allocation method for a multi-type device according to any of claims 1 to 7.

Description

Power dynamic allocation method, device, equipment and medium for multi-type equipment Technical Field The invention relates to the technical field of multi-equipment real-time power distribution, and more particularly, to a method, apparatus, device, and medium for dynamic power allocation for multiple types of devices. Background In a scene of a multi-person meeting room, temporary multi-Type equipment mixed access such as a Type-C notebook, a USB-B printer and a protocol-free external hard disk is available, and the problems of equipment Type impurity, large power fluctuation and temporary access are solved. Chinese patent application publication No. CN114759632a describes a charging device, and proposes an intelligent distribution system comprising a power supply circuit, a charging circuit and a communication circuit. The terminal generates a power distribution parameter (including partial interface power locking value) based on the parameter, the charging circuit distributes locking power according to the power distribution parameter, and then distributes the residual power to other interfaces uniformly, and meanwhile, a minimum power threshold value is set to ensure basic power supply. However, in the above solution, since the USB-B dedicated current/voltage sampling circuit is not adopted, the interface compatibility is poor and the non-protocol device power cannot be calculated through p=u×i, so that the device cannot be adapted to multiple types of devices, and a dynamic calculation model of "real-time demand-total power redundancy" is not built, only a fixed threshold is preset, whether the device has power up-regulation capability is not distinguished, the differentiated power demand cannot be matched, and the device is seriously damaged. Disclosure of Invention The embodiment of the application provides a power dynamic distribution method, a device, equipment and a medium for multi-type equipment, which are used for solving the problems that an interface of a power distribution system in the prior art is poor in compatibility, cannot adapt to the multi-type equipment and cannot meet the matching differentiated power requirement. In order to solve the above-mentioned problems, a first aspect proposes a power dynamic allocation method for a multi-type device, comprising: Step 100, obtaining equipment types of a plurality of connected equipment, selecting a corresponding power detector according to the equipment types, detecting and obtaining real-time power of the corresponding equipment types by using the power detector, and calculating redundant power according to the total power upper limit and the real-time power of the plurality of connected equipment; Step 200, acquiring real-time required power, judging whether the power of the current required equipment can be adjusted upwards according to the equipment type, if so, performing power distribution according to the real-time required power and redundant power, and if not, performing power distribution according to the real-time required power, the fixed power of the non-adjustable equipment and the redundant power; If the device is the up-tunable device, performing power distribution according to the real-time required power and the redundant power, including the steps of abnormal triggering: if the real-time required power exceeds the upper limit of the power of the equipment, the power distribution value is reduced to a safe value in a specified time; If the device is the non-upregulatable device, performing power distribution according to the real-time required power, the fixed power and the redundant power of the non-upregulatable device, wherein the method comprises the steps of: And if the real-time required power exceeds the upper limit of the power of the equipment, the power distribution value is reduced to a safe value within a specified time. Further, the step 100 includes: step 110, if the device Type is Type-C device, acquiring a PD protocol detector; and step 120, detecting the real-time power of the Type-C device by using the PD protocol detector. Further, the step 100 includes: Step 130, if the device type is USB-B device, starting a current/voltage sampling circuit, and using the current/voltage sampling circuit as a USB-B protocol detector; And 140, detecting the real-time power of the USB-B device by using the USB-B protocol detector. Further, the step 200 includes: step 210, if the device Type is Type-C device, determining that the current device is an up-tunable device; Step 220, obtaining a first real-time required power of the Type-C device, if the first real-time required power is smaller than the redundant power, performing power distribution on the Type-C device according to the first real-time required power, and if the first real-time required power is larger than the redundant power, performing power distribution on the Type-C device according to the redundant power. Further, the step 220 includes: Step 221, if t