A PDU control method, device, system, and storage medium

By selectively powering down target sockets when PDUs malfunction, and determining the target socket based on the power-on duration of the equipment and the socket power-off priority, the problem of erroneous socket power-off in the server laboratory is solved, and the testing efficiency is improved.

CN116154714BActive Publication Date: 2026-03-06JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-30
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

The existing PDU control method, when frequently connected and disconnected in the server laboratory, causes unnecessary jack malfunctions and affects test efficiency.

Method used

When an abnormality is detected in a PDU, the target socket is selectively powered down to avoid unnecessary power-down. The specific method includes determining the target socket based on the power-on duration of the electrical equipment and the power-down priority of the socket.

Benefits of technology

It improved experimental efficiency, avoided unnecessary accidental power-off of sockets, and protected the stable operation of electrical equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116154714B_ABST
    Figure CN116154714B_ABST
Patent Text Reader

Abstract

This invention discloses a PDU control method, device, system, and storage medium, relating to the field of PDUs. When a PDU anomaly is detected, the method identifies a target socket to be powered down from the sockets of the devices being used. This target socket is a subset of all sockets of devices being used. Therefore, when a PDU anomaly is detected, selective power-down is achieved for the sockets of devices being used, thus avoiding accidental power-down of sockets that do not need to be powered down, thereby greatly improving experimental efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of PDUs, and in particular to a PDU control method, device, system, and storage medium. Background Technology

[0002] A power distribution unit (PDU), also known as a power distribution socket, is a product designed to distribute power to electrical equipment and can provide suitable power distribution solutions according to different power needs.

[0003] The current PDU control method used in server labs for scenarios involving frequent server access and disconnection is as follows: when the PDU detects an abnormal situation, such as the current total power exceeding the safe total power, the current total voltage exceeding the safe total voltage, or the current total current exceeding the safe total current, all sockets in the PDU will be powered down simultaneously. This control method may cause some unnecessary sockets to be accidentally powered down, and the power outage of the electrical equipment corresponding to the accidentally powered-down sockets will cause related tests to be interrupted, resulting in low test efficiency.

[0004] In view of the above-mentioned technical problems, finding a solution to these problems is an urgent issue for those skilled in the art. Summary of the Invention

[0005] The purpose of this invention is to provide a PDU control method, device, system, and storage medium that selectively energizes the sockets of plugged-in electrical devices when an abnormality of the PDU is detected, thereby avoiding accidental energization of some sockets that do not need to be energized, and thus greatly improving experimental efficiency.

[0006] To solve the above-mentioned technical problems, the present invention provides a PDU control method, comprising:

[0007] When an abnormality is detected in the PDU, the target socket to be powered off is determined from the sockets into which the electrical equipment is plugged.

[0008] Control the power-down of the target socket;

[0009] The number of target sockets is less than the number of sockets for inserting electrical equipment. The PDU abnormality includes one or a combination of the following: the current total power of the PDU exceeds the safe total power, the current total voltage of the PDU exceeds the safe total voltage, and the current total current of the PDU exceeds the safe total current.

[0010] Preferably, determining the target socket to be powered on from the sockets into which electrical equipment is inserted includes:

[0011] The target socket to be powered off is determined from the sockets into which the electrical equipment is inserted, based on the power-on duration of the electrical equipment and / or the power-off priority of the sockets into which the electrical equipment is inserted. The power-on duration of the electrical equipment is the time period between the power-on of the electrical equipment and the detection of the PDU abnormality.

[0012] Preferably, determining the target socket to be powered off from the sockets of the electrical device based on the power-on duration of the electrical device and the power-off priority of the sockets into which the electrical device is inserted includes:

[0013] Determine whether the number of electrical devices whose power-on duration is not greater than a preset duration is zero;

[0014] If so, the target socket to be powered off is determined from the sockets corresponding to the electrical devices whose power-on duration is longer than the preset duration, based on the power-on duration of the electrical devices and the power-off priority of the sockets inserted into the electrical devices;

[0015] If not, the target socket to be powered off is determined from the sockets corresponding to the electrical devices whose power-on duration is not greater than the preset duration, based on the power-on duration of the electrical devices and the power-off priority of the sockets inserted into the electrical devices.

[0016] Preferably, the power-down priority of the socket includes a first level, a second level, and up to the Nth level, with N being an integer not less than 2;

[0017] Based on the power-on duration of the electrical equipment and the power-off priority of the sockets into which the electrical equipment is plugged, the target socket to be powered off is determined from the sockets corresponding to electrical equipment with a power-on duration greater than a preset duration, including:

[0018] S11: Among the sockets corresponding to the electrical devices whose power-on duration is longer than the preset duration, determine the number of sockets for the Nth level of the inserted electrical devices, and use the number of sockets for the Nth level of the inserted electrical devices as the number of sockets for the current level of the inserted electrical devices to be tested.

[0019] S12: Determine whether the number of sockets for the current level of electrical equipment being tested is zero; if yes, proceed to S13; if no, proceed to S15.

[0020] S13: Determine whether the current level to be tested is the first level. If yes, proceed to S16; otherwise, proceed to S14.

[0021] S14: Determine the next higher level of the current test level as the new current test level, and return to S12;

[0022] S15: Select the socket with the shortest power-on time among the sockets of the current level of electrical equipment to be tested as the target socket to be powered off;

[0023] S16: End.

[0024] Preferably, the power-down priority of the socket includes a first level, a second level, and up to the Nth level, with N being an integer not less than 2;

[0025] Based on the power-on duration of the electrical equipment and the power-off priority of the sockets inserted into the electrical equipment, the target socket to be powered off is determined from the sockets corresponding to the electrical equipment whose power-on duration is no greater than a preset duration, including:

[0026] S11: Among the sockets corresponding to the electrical devices whose power-on time is not greater than the preset time, determine the number of sockets for the Nth level of the inserted electrical devices, and use the number of sockets for the Nth level of the inserted electrical devices as the number of sockets for the current level of the inserted electrical devices to be tested.

[0027] S12: Determine whether the number of sockets for the current level of electrical equipment being tested is zero; if yes, proceed to S13; if no, proceed to S15.

[0028] S13: Determine whether the current level to be tested is the first level. If yes, proceed to S16; otherwise, proceed to S14.

[0029] S14: Determine the next higher level of the current test level as the new current test level, and return to S12;

[0030] S15: Select the socket with the shortest power-on time among the sockets of the current level of electrical equipment to be tested as the target socket to be powered off;

[0031] S16: End.

[0032] Preferably, the process for determining the power-down priority of the sockets used to insert electrical equipment includes:

[0033] Receive interactive signals sent by the interactive module;

[0034] The power-down priority of the socket to be prioritized is determined based on the interaction signal;

[0035] The determined power-down priority is set as the new priority for the socket whose priority needs to be set.

[0036] Preferably, it further includes:

[0037] Determine the current total power of the PDU;

[0038] The current remaining total power of the PDU is determined based on the safe total power and the current total power;

[0039] The control display module displays the current remaining total power.

[0040] To address the aforementioned technical problems, the present invention also provides a PDU control device, comprising:

[0041] Memory, used to store computer programs;

[0042] A processor for executing the computer program to implement the steps of the PDU control method as described in any of the preceding claims.

[0043] To solve the above-mentioned technical problems, the present invention also provides a PDU control system, comprising:

[0044] The target socket determination unit is used to determine the target socket to be powered off from the sockets of the electrical equipment when an abnormality of the PDU is detected;

[0045] The target socket power-down unit is used to control the power-down of the target socket;

[0046] The number of target sockets is less than the number of sockets for inserting electrical equipment. The PDU abnormality includes one or a combination of the following: the current total power of the PDU exceeds the safe total power, the current total voltage of the PDU exceeds the safe total voltage, and the current total current of the PDU exceeds the safe total current.

[0047] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the PDU control method described in any of the preceding claims.

[0048] The present invention provides a PDU control method that, when a PDU abnormality is detected, determines the target socket to be powered down from the sockets of the plugged-in electrical equipment. The target socket is a portion of all the sockets of the plugged-in electrical equipment. Therefore, when a PDU abnormality is detected, the sockets of the plugged-in electrical equipment are selectively powered down, thus avoiding the accidental power-down of some sockets that do not need to be powered down, thereby greatly improving the experimental efficiency.

[0049] The present invention also provides a PDU control device, system and storage medium, which have the same beneficial effects as the above methods. Attached Figure Description

[0050] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the 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.

[0051] Figure 1A flowchart of a PDU control method provided in an embodiment of the present invention;

[0052] Figure 2 A flowchart of another PDU control method provided in an embodiment of the present invention;

[0053] Figure 3 A structural diagram of a PDU provided in an embodiment of the present invention;

[0054] Figure 4 A structural diagram of a PDU control system provided in an embodiment of the present invention;

[0055] Figure 5 This is a structural diagram of a PDU control device provided in an embodiment of the present invention. Detailed Implementation

[0056] The core of this invention is to provide a PDU control method, device, system, and storage medium that selectively energizes the sockets of plugged-in electrical devices when an abnormality of the PDU is detected. This avoids accidentally energizing sockets that do not need to be energized, thereby greatly improving experimental efficiency.

[0057] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0058] Please refer to Figure 1 , Figure 1 A flowchart of a PDU control method provided in an embodiment of the present invention, the method comprising:

[0059] S1: When an abnormality is detected in the PDU, determine the target socket to be powered off from the sockets of the electrical equipment;

[0060] S2: Power off the target socket;

[0061] The number of target sockets is less than the number of sockets into which electrical equipment is inserted. PDU abnormalities include one or a combination of the following: the current total power of the PDU exceeds the safe total power, the current total voltage of the PDU exceeds the safe total voltage, and the current total current of the PDU exceeds the safe total current.

[0062] In practice, the MCU is the main body that executes the above steps. The MCU can monitor whether the PDU is abnormal in real time. When the MCU detects that the PDU is abnormal, it determines the target socket to be powered down from the sockets of the plugged-in electrical equipment. There can be one or more target sockets to be powered down, but the number of target sockets must be less than the number of sockets of the plugged-in electrical equipment. The following embodiment shows how to determine the target socket.

[0063] It should be noted that after step S2, that is, after the target jack is powered off, it can be immediately determined whether the PDU is still abnormal. If the PDU is still abnormal, steps S1 and S2 are executed again until the PDU is detected to have returned to normal.

[0064] The PDU control method provided in this embodiment determines the target socket to be powered down from the sockets of the plugged-in electrical equipment when a PDU abnormality is detected. The target socket is a portion of all the sockets of the plugged-in electrical equipment. Therefore, when a PDU abnormality is detected, the sockets of the plugged-in electrical equipment are selectively powered down, which avoids accidentally powering down some sockets that do not need to be powered down, thereby greatly improving the experimental efficiency.

[0065] Based on the above embodiments:

[0066] As a preferred embodiment, determining the target socket to be powered off from the sockets into which electrical equipment is inserted includes:

[0067] The target socket to be powered off is determined from the sockets into which the electrical equipment is inserted, based on the power-on duration of the electrical equipment and / or the power-off priority of the socket into which the electrical equipment is inserted. The power-on duration of the electrical equipment is the time period from when the electrical equipment is powered on until the PDU abnormality is detected.

[0068] In practice, the target socket can be determined solely based on the power-on duration of the electrical equipment or the power-off priority of the socket inserted into the electrical equipment. Alternatively, both can be combined as the basis for determining the target socket. The following embodiment provides a detailed explanation of combining the two as the basis for determining the target socket.

[0069] It should be noted that the power-on duration of the electrical equipment is the time period from powering on the corresponding socket to detecting a PDU anomaly. Each socket in the PDU uniquely corresponds to a power-on duration, and the target socket is determined solely based on the power-on duration of the electrical equipment. For example, all sockets with a power-on duration not exceeding a preset duration will be powered off. Of course, the preset duration must be less than the longest of all power-on durations. Similarly, each socket in the PDU also uniquely corresponds to a power-off priority. This power-off priority can be manually set when the corresponding socket is powered on. If the MCU does not receive a manually set instruction, the powered-on socket can be set as the default power-off priority. For a detailed explanation of the power-off priority, please refer to the following embodiment.

[0070] This embodiment provides a specific method for determining the target socket. The power-on duration of the electrical equipment and the power-off priority of the socket into which the electrical equipment is inserted are used as the basis for determining the target socket. This makes the determination of the target socket more accurate. Since the power-off priority can be manually set according to the actual power consumption, the determination of the target socket is more flexible and adjustable.

[0071] As a preferred embodiment, determining the target socket to be powered off from the sockets of the electrical device based on the power-on duration of the electrical device and the power-off priority of the sockets into which the electrical device is inserted includes:

[0072] Determine if the number of electrical devices whose power-on duration is no greater than the preset duration is zero;

[0073] If so, the target socket to be powered off is determined from the sockets corresponding to electrical devices with a power-on duration longer than the preset duration, based on the power-on duration of the electrical device and the power-off priority of the socket into which the electrical device is plugged.

[0074] If not, the target socket to be powered off is determined from the sockets corresponding to electrical devices whose power-on time is no greater than the preset time, based on the power-on duration of the electrical device and the power-off priority of the socket into which the electrical device is plugged.

[0075] It should be noted that this embodiment combines power-on duration and power-off priority as the basis for determining the target socket. Devices with a power-on duration not exceeding a preset duration are given priority for power-off. Only when no device with a power-on duration not exceeding the preset duration exists are devices with a power-on duration exceeding the preset duration selected as the target socket and powered off. The following embodiment illustrates how to determine the target socket among devices with a power-on duration not exceeding or exceeding the preset duration. Of course, the preset duration should be less than the maximum power-on duration.

[0076] In this embodiment, power-off is prioritized for electrical devices whose power-on time is no longer than the preset time. This ensures that some relatively stable electrical devices are protected. Relatively stable electrical devices are those whose power-on time is longer than the preset time, thus minimizing the impact on ongoing experiments.

[0077] Please refer to Figure 2 , Figure 2 The flowchart of another PDU control method provided by the embodiment of the present invention shows that the power-down priority of the socket is divided into three levels. Of course, the specific classification method of power-down priority is not limited. The flowchart only applies to electrical devices with a power-on time longer than the preset time. It should be noted that it is also applicable to electrical devices with a power-on time not longer than the preset time.

[0078] As a preferred embodiment, the power-down priority of the socket includes a first level, a second level, and up to the Nth level, with N being an integer not less than 2;

[0079] Based on the power-on duration of the electrical equipment and the power-off priority of the sockets into which the equipment is plugged, the target sockets to be powered off are determined from those corresponding to electrical equipment with a power-on duration longer than a preset duration, including:

[0080] S11: Among the sockets corresponding to electrical devices with a power-on duration longer than the preset duration, determine the number of sockets for the Nth level of inserted electrical devices, and use the number of sockets for the Nth level of inserted electrical devices as the number of sockets for the current level of inserted electrical devices.

[0081] S12: Determine if the number of plug-in electrical devices of the current test level is zero; if yes, proceed to S13; if no, proceed to S15.

[0082] S13: Determine if the current level to be tested is the first level. If yes, proceed to S16; otherwise, proceed to S14.

[0083] S14: Determine the next higher level of the current test level as the new current test level, and return to S12;

[0084] S15: Select the socket with the shortest power-on time among the sockets of the electrical equipment under test as the target socket to be powered off.

[0085] S16: End.

[0086] It should be noted that only one target socket is determined in this embodiment. This power-down control method is more precise, controlling only one socket to power down at a time, which can minimize the impact on the ongoing experiment.

[0087] As a preferred embodiment, the power-down priority of the socket includes a first level, a second level, and up to the Nth level, with N being an integer not less than 2;

[0088] Based on the power-on duration of the electrical equipment and the power-off priority of the sockets into which the equipment is plugged, the target sockets to be powered off are determined from those corresponding to electrical equipment with a power-on duration not exceeding a preset duration, including:

[0089] S11: Among the sockets corresponding to electrical devices with a power-on duration not exceeding a preset duration, determine the number of sockets for the Nth level of inserted electrical devices, and use the number of sockets for the Nth level of inserted electrical devices as the number of sockets for the current level of inserted electrical devices.

[0090] S12: Determine if the number of plug-in electrical devices of the current test level is zero; if yes, proceed to S13; if no, proceed to S15.

[0091] S13: Determine if the current level to be tested is the first level. If yes, proceed to S16; otherwise, proceed to S14.

[0092] S14: Determine the next higher level of the current test level as the new current test level, and return to S12;

[0093] S15: Select the socket with the shortest power-on time among the sockets of the electrical equipment under test as the target socket to be powered off.

[0094] S16: End.

[0095] The specific description of this embodiment is similar to the description in the above embodiment of determining the target socket to be powered off from the sockets corresponding to electrical devices with a power-on duration longer than a preset duration, and will not be repeated here.

[0096] Please refer to Figure 3 , Figure 3 This is a structural diagram of a PDU provided in an embodiment of the present invention.

[0097] As a preferred embodiment, the process for determining the power-down priority of the sockets into which electrical equipment is inserted includes:

[0098] Receive interactive signals sent by the interactive module;

[0099] The power-down priority of the socket to be set is determined based on the interaction signal;

[0100] The determined power-down priority is set as the new priority for the socket whose priority needs to be set.

[0101] In practice, the interaction module can be one, or it can be like... Figure 3Each socket in the system is assigned a corresponding set of multiple interactive modules. When there is only one interactive module, the interactive signal emitted by the module should include an identifier corresponding to the socket whose priority is to be set and a power-down priority. The specific implementation of the interactive module is not limited; it can be a touchscreen or something else entirely. Figure 3 The button in the middle.

[0102] To enable those skilled in the art to better understand this solution, Figure 3 The following explanation uses a three-level power-down priority system as an example. Because... Figure 3 The system has a three-level power-down priority setting, therefore Figure 3 The indicator lights between the sockets and buttons use tri-color LEDs to indicate different power-down priorities. Each socket has an LED that emits red, yellow, and green light, each color representing a different power-down priority. The priority is manually set using the button next to the socket. For example, pressing the button once corresponds to the first priority (red), pressing it twice to the second priority (yellow), and pressing it three times to the third priority (green). However, this is not the only possible setting; the priority can be adjusted according to specific needs.

[0103] This embodiment provides a specific implementation method for determining the power-down priority, and the implementation process is relatively simple.

[0104] In existing technologies, power-on and power-off cycles are very frequent in server laboratories. Since the current PDU does not have a function to indicate the current remaining total power, it is difficult to assess whether the current total power of the PDU will exceed the safe total power of the PDU after connecting the power device. This results in frequent PDU overpowering, which in turn affects the use of other server nodes and causes the test to be interrupted.

[0105] As a preferred embodiment, it also includes:

[0106] Determine the current total power of the PDU;

[0107] The current remaining total power of the PDU is determined based on the safe total power and the current total power;

[0108] The control display module displays the current remaining total power.

[0109] In practice, the current total power of the PDU can be determined by acquiring the current power of each socket corresponding to the plugged-in electrical device and summing the individual current power values. Alternatively, the current total power can be determined by monitoring the current and voltage on the PDU bus.

[0110] It should also be noted that the display module can display not only the current remaining total power in this embodiment, but also the current total power, current total voltage, current total current, current remaining total voltage, power-down priority of each socket, etc. It can display all parameters of PDU operation, and no special limitation is made here.

[0111] This embodiment displays the current remaining total power through a control display module, which facilitates safety assessment by users when connecting new electrical equipment, thereby greatly avoiding frequent overpowering of the PDU due to the connection of new electrical equipment.

[0112] Please refer to Figure 4 , Figure 4 This is a structural diagram of a PDU control system provided in an embodiment of the present invention. The system includes:

[0113] The target socket determination unit 1 is used to determine the target socket to be powered off from the sockets of the electrical equipment when an abnormality of PDU is detected.

[0114] Target socket power-down unit 2 is used to control the power-down of the target socket;

[0115] The number of target sockets is less than the number of sockets into which electrical equipment is inserted. PDU abnormalities include one or a combination of the following: the current total power of the PDU exceeds the safe total power, the current total voltage of the PDU exceeds the safe total voltage, and the current total current of the PDU exceeds the safe total current.

[0116] In a preferred embodiment, the target socket determination unit is specifically used to determine the target socket to be powered off from the sockets inserted into the electrical device based on the power-on duration of the electrical device and / or the power-off priority of the sockets inserted into the electrical device. The power-on duration of the electrical device is the time period between the power-on of the electrical device and the detection of the PDU abnormality.

[0117] In a preferred embodiment, the target jack determination subunit includes:

[0118] The judgment unit is used to determine whether the number of electrical devices whose power-on time is not greater than the preset time is zero. If so, it enters the first target socket determination subunit; if not, it enters the second target socket determination subunit.

[0119] The first target socket determination subunit is used to determine the target socket to be powered off from the sockets corresponding to the electrical equipment whose power-on duration is longer than the preset duration, based on the power-on duration of the electrical equipment and the power-off priority of the socket into which the electrical equipment is inserted.

[0120] The second target socket determination subunit is used to determine the target socket to be powered off from the sockets corresponding to the electrical equipment whose power-on time is not greater than a preset time, based on the power-on time of the electrical equipment and the power-off priority of the socket into which the electrical equipment is inserted.

[0121] As a preferred embodiment, it also includes:

[0122] A total power determination unit is used to determine the current total power of the PDU;

[0123] The remaining total power determination unit is used to determine the current remaining total power of the PDU based on the safe total power and the current total power;

[0124] The display control unit is used to control the display module to display the current remaining total power.

[0125] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, and they will not be repeated here.

[0126] Please refer to Figure 5 , Figure 5 This is a structural diagram of a PDU control device provided in an embodiment of the present invention. The device includes:

[0127] Memory 20 is used to store computer programs;

[0128] The processor 21 is used to implement the steps of the PDU control method mentioned in the above embodiments when executing a computer program.

[0129] Processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 21 may also include a main processor and a coprocessor. The main processor, also known as the central processing unit, is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state.

[0130] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the PDU control method disclosed in any of the foregoing embodiments.

[0131] In some embodiments, the PDU control device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0132] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the PDU control device and may include more or fewer components than shown.

[0133] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps described in the above method embodiments.

[0134] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0135] It should also be noted that, in this specification, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0136] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A PDU control method characterized by, The application comprises the following steps: When a PDU anomaly is monitored, determining a target socket to be powered off from the sockets into which the power-consuming devices are plugged; Controlling the target socket to be powered off; The number of the target sockets is less than the number of the sockets into which the power-consuming devices are plugged, and the PDU anomaly comprises one or more of the following combinations: the current total power of the PDU exceeds the safe total power, the current total voltage of the PDU exceeds the safe total voltage, and the current total current of the PDU exceeds the safe total current; Determining the target socket to be powered off from the sockets into which the power-consuming devices are plugged comprises the following steps: According to the power-on duration of the power-consuming device and the power-off priority of the socket into which the power-consuming device is plugged, determining the target socket to be powered off from the sockets into which the power-consuming devices are plugged, wherein the power-on duration of the power-consuming device is the time period from the power-on of the power-consuming device to the monitoring of the PDU anomaly; According to the power-on duration of the power-consuming device and the power-off priority of the socket into which the power-consuming device is plugged, determining the target socket to be powered off from the sockets into which the power-consuming devices are plugged, comprises the following steps: Judging whether the number of the power-consuming devices with the power-on duration not greater than the preset duration is zero; If yes, according to the power-on duration of the power-consuming device and the power-off priority of the socket into which the power-consuming device is plugged, determining the target socket to be powered off from the socket corresponding to the power-consuming device with the power-on duration greater than the preset duration; If no, according to the power-on duration of the power-consuming device and the power-off priority of the socket into which the power-consuming device is plugged, determining the target socket to be powered off from the socket corresponding to the power-consuming device with the power-on duration not greater than the preset duration.

2. The PDU control method of claim 1, wherein, The power-off priority of the socket comprises a first level, a second level, and an Nth level in order of low to high, wherein N is an integer not less than 2; According to the power-on duration of the power-consuming device and the power-off priority of the socket into which the power-consuming device is plugged, determining the target socket to be powered off from the socket corresponding to the power-consuming device with the power-on duration greater than the preset duration, comprises the following steps: S11: In the socket corresponding to the power-consuming device with the power-on duration greater than the preset duration, determining the number of the socket of the power-consuming device with the Nth level, and taking the number of the socket of the power-consuming device with the Nth level as the number of the socket of the power-consuming device of the current level to be measured; S12: Judging whether the number of the socket of the power-consuming device of the current level to be measured is zero; if yes, entering S13, and if no, entering S15; S13: Judging whether the current level to be measured is the first level; if yes, entering S16, and if no, entering S14; S14: Determining the upper level of the current level to be measured as a new current level to be measured, and returning to S12; S15: Taking the socket of the power-consuming device with the shortest power-on duration in the socket of the power-consuming device of the current level to be measured as the target socket to be powered off; S16: Ending.

3. The PDU control method of claim 1, wherein, The power-off priority of the socket comprises a first level, a second level, and an Nth level in order of low to high, wherein N is an integer not less than 2; According to the power-on duration of the power-consuming device and the power-off priority of the socket into which the power-consuming device is plugged, determining the target socket to be powered off from the socket corresponding to the power-consuming device with the power-on duration not greater than the preset duration, comprises the following steps: S11: determining the number of the Nth level of the inserted electrical equipment sockets in the corresponding sockets of the electrical equipment with the power-on duration not longer than the preset duration, and taking the number of the Nth level of the inserted electrical equipment sockets as the number of the current level of the inserted electrical equipment sockets to be tested; S12: judging whether the number of the current level of the inserted electrical equipment sockets to be tested is zero; if yes, proceeding to S13, and if no, proceeding to S15; S13: judging whether the current level to be tested is the first level; if yes, proceeding to S16, and if no, proceeding to S14; S14: determining the upper level of the current level to be tested as a new current level to be tested, and returning to S12; S15: taking the socket with the shortest power-on duration in the current level of the inserted electrical equipment sockets as a target socket to be powered off; S16: ending.

4. The PDU control method of claim 1, wherein, The determination process of the power-off priority of the inserted electrical equipment socket includes: receiving an interaction signal sent by an interaction module; determining the power-off priority of the socket to be set according to the interaction signal; determining the determined power-off priority as a new priority of the socket to be set.

5. The PDU control method according to any one of claims 1 to 4, characterized by, Further including: determining the current total power of the PDU; determining the current remaining total power of the PDU according to the safe total power and the current total power; controlling a display module to display the current remaining total power.

6. A PDU control device characterized by comprising: Including: a memory for storing a computer program; a processor for executing the computer program to realize the steps of the PDU control method according to any one of claims 1 to 5.

7. A PDU control system characterized by, Including: a target socket determination unit for determining a target socket to be powered off from the inserted electrical equipment sockets when a PDU anomaly is monitored; a target socket power-off unit for controlling the target socket to be powered off; the number of the target sockets is less than the number of the inserted electrical equipment sockets, and the PDU anomaly includes one or more combinations of the current total power of the PDU exceeding a safe total power, the current total voltage of the PDU exceeding a safe total voltage, and the current total current of the PDU exceeding a safe total current; determining a target socket to be powered off from the inserted electrical equipment sockets includes: determining a target socket to be powered off from the inserted electrical equipment sockets according to the power-on duration of the electrical equipment and the power-off priority of the inserted electrical equipment socket, the power-on duration of the electrical equipment being a time period from the power-on of the electrical equipment to the monitoring of the PDU anomaly; determining a target socket to be powered off from the inserted electrical equipment sockets according to the power-on duration of the electrical equipment and the power-off priority of the inserted electrical equipment socket includes: judging whether the number of the electrical equipment with the power-on duration not longer than the preset duration is zero; if yes, determining a target socket to be powered off from the sockets corresponding to the electrical equipment with the power-on duration longer than the preset duration according to the power-on duration of the electrical equipment and the power-off priority of the inserted electrical equipment socket; if no, determining a target socket to be powered off from the sockets corresponding to the electrical equipment with the power-on duration not longer than the preset duration according to the power-on duration of the electrical equipment and the power-off priority of the inserted electrical equipment socket.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the PDU control method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Smart nema outlets and associated networks

    CN101682179A

  • Power source control device and method, and power management system

    CN102689599A