A control method, system and POE device for providing power to a powered device
By dynamically adjusting the power supply priority in POE equipment, the problem of inability to dynamically manage the power supply of IPC equipment in the existing technology is solved, ensuring the power supply of important equipment, avoiding data loss, and achieving stable monitoring of network cameras.
Patent Information
- Application Number
- CN202411000617.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Existing Power over Ethernet POE equipment cannot dynamically adjust the power supply priority when powering multiple network camera IPCs, causing important IPC equipment to go offline due to insufficient power and losing monitoring data.
By implementing a dynamic adjustment method of power supply priority in POE equipment, recording and comparing the priorities of online and offline equipment according to preset rules, dynamically replacing power supply equipment, ensuring the power demand of important equipment, and giving priority to new equipment when they come online meet its power needs.
It effectively avoids data loss of important powered equipment due to insufficient power, ensuring the integrity of monitoring data and the stable operation of network cameras.
Smart Images

Figure CN118540171B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a control method, system and POE device for providing power to a powered device. Background Art
[0002] Currently, when the Power over Ethernet (POE) device is supplying power to multiple network camera IPCs, it can only determine whether to power or not power the newly connected IPC device based on the power supply priority pre-set for each port of the POE device, but cannot adjust the power supply priority of each IPC device according to the configuration rules. As a result, the POE device cannot dynamically manage the online and offline of the IPC device, causing some IPC devices that are more important to users to be offline and lose important monitoring data. Summary of the invention
[0003] The embodiments of the present application provide a control method, system and POE device for providing power to a powered device, so as to enable the POE device to dynamically adjust the power supply priority of the powered device and replace the online powered device according to the latest priority to ensure the power demand of important powered devices.
[0004] The embodiment of the present application provides a control method for providing power to a powered device, which is applied to a Power over Ethernet (POE) device, including:
[0005] When the POE device provides power to multiple online powered devices, the following operations are performed according to a set cycle:
[0006] According to preset rules, determine and record the latest priority of each online powered device; wherein the first set is composed of the identifier of the online powered device and the corresponding latest priority, and the identifier of all offline powered devices and the corresponding priority recorded when they were last offline are composed of the second set;
[0007] Compare the corresponding priorities recorded in the first set with those recorded in the second set. If the priority of at least one online powered first-category powered device in the first set is lower than the priority of at least one offline second-category powered device in the second set, perform a powered device replacement step:
[0008] The first type of powered devices are used as candidate devices, and one or more powered devices to be taken offline are selected in descending order of the latest priorities of the candidate devices, and when the sum of the power supply power that can be released by each of the selected powered devices to be taken offline and the remaining power supply power of the POE device is not less than the total power supply power required by the second type of powered devices, the powered devices to be taken offline are taken offline, and the second type of powered devices are put online;
[0009] When it is detected that a new powered device requests online power supply, and the current remaining power supply power of the POE device is less than the total power supply power required by each of the new powered devices, the third type of powered devices are selected in the first set in descending order of the latest priority, so that the sum of the power supply power that can be released by each of the selected third type of powered devices and the current remaining power supply power is not less than the total power supply power required by each of the new powered devices;
[0010] The third type of powered devices are taken offline, and each of the new powered devices are put online.
[0011] By this method, when the POE device provides power to multiple online powered devices, according to a set cycle, the following is performed: according to a preset rule, the latest priority of each online powered device is determined and recorded; wherein, the first set is composed of the identifier of the online powered device and the corresponding latest priority, and the identifier of all offline powered devices and the corresponding priority recorded when they were last offline are composed of the second set; the first set is compared with the corresponding priorities recorded in the second set, and if there is at least one online powered first-class powered device in the first set with a priority lower than that of at least one offline second-class powered device in the second set, a powered device replacement step is performed: the first-class powered device is used as a candidate device, and one or more to-be-offline powered devices are selected in order of the latest priorities of the candidate devices from low to high, so that the power released by each selected to-be-offline powered device is consistent with the priority of the second-class powered device. When the sum of the remaining power supply powers of the POE devices is not less than the total power supply powers required by the second type of powered devices, the powered devices to be taken offline are taken offline, and the second type of powered devices are taken online; when a new powered device is detected to request online power supply, and the current remaining power supply power of the POE device is less than the total power supply powers required by each of the new powered devices, the third type of powered devices are selected in the order of the latest priority from low to high in the first set, so that the sum of the power supply powers that can be released by each of the selected third type of powered devices and the current remaining power supply powers is not less than the total power supply powers required by each of the new powered devices; the third type of powered devices are taken offline, and each of the new powered devices are taken online, so that the POE device dynamically adjusts the power supply priority of the powered devices, and replaces the online powered devices according to the latest priority, so as to ensure the power demand of important powered devices, thereby avoiding the problem of data loss caused by insufficient power of important powered devices.
[0012] In some embodiments, the step of performing the step of replacing the powered device specifically includes:
[0013] The powered device is replaced according to the order of priority from high to low in the second set:
[0014] The offline powered device corresponding to the priority selected this time in the current second set is used as an alternative online device; the online powered device with a priority lower than the priority of the alternative online device in the current first set is used as an alternative offline device; one or more of the alternative offline devices are selected in order of priority from low to high, so that when the cumulative power supply that can be released by each selected alternative offline device and the sum of the current remaining power supply power of the POE device are not less than the power supply power required by the alternative online device, the selected alternative offline devices are offline, the alternative online devices are online, and the current first set and the current second set are updated; until the polling of each priority in the second set is completed.
[0015] Through this method, the high-priority offline powered equipment can replace the low-priority online powered equipment, thereby ensuring the power demand of important powered equipment.
[0016] In some embodiments, if the cumulative power that can be released by all the candidate offline devices and the sum of the current remaining power of the POE device are less than the power required by the candidate online device, the powered device replacement process corresponding to this priority is terminated.
[0017] Through this method, the re-online demand of offline powered devices with higher priority but too much power required can be skipped during the polling process, thereby ensuring the power demand of more powered devices.
[0018] In some embodiments, if there are multiple offline powered devices corresponding to the currently selected priority in the current second set, the powered devices are replaced in ascending order of required power supply power; and
[0019] When selecting one or more candidate offline devices in order of priority from low to high, the candidate offline devices with the same priority are selected in order of releasable power from large to small.
[0020] Through this method, offline powered devices with the same priority and requiring small power can be put back online first, and online powered devices with the same priority and capable of releasing large power can be taken offline first, thereby ensuring the power needs of more powered devices.
[0021] In some embodiments, determining the latest priority of each of the online powered devices according to a preset rule includes:
[0022] For each of the online powered devices:
[0023] According to the current link state of the online powered device, searching a preset corresponding relationship table between link states and influence coefficients to obtain a first influence coefficient currently corresponding to the online powered device;
[0024] According to the intelligent event information generated by the online powered device within a preset time from the current time, a preset correspondence table of event type, event quantity and influence coefficient is searched to obtain the second influence coefficient currently corresponding to the online powered device;
[0025] Obtaining a third influence coefficient currently corresponding to the online powered device according to a ratio of an average power consumption of each of the online powered devices to the power consumption of the online powered device;
[0026] The latest priority of the online powered device is determined according to one or any combination of the first influence coefficient, the second influence coefficient and the third influence coefficient.
[0027] Through this method, the power supply priority of each online powered device can be dynamically adjusted regularly according to the current link status of each online powered device, the intelligent events generated in the near future and the ratio of the required power supply power to the average power supply power.
[0028] In some embodiments, determining the latest priority of the online powered device according to any combination of the first influence coefficient, the second influence coefficient, and the third influence coefficient includes:
[0029] Obtaining a current weight value of the online powered device according to a product of the first influence coefficient, the second influence coefficient, and the third influence coefficient, or according to a product of any two of the first influence coefficient, the second influence coefficient, and the third influence coefficient;
[0030] According to the current weight value, a corresponding relationship table between weight values and priorities is searched to determine the latest priority of the online powered device; wherein, the larger the weight value, the higher the corresponding latest priority.
[0031] In some embodiments, when it is detected that a new powered device requests to be powered online, and the current remaining power of the POE device is not less than the total power required by each of the new powered devices, each of the new powered devices is brought online.
[0032] Through this method, each new powered device can be put online in time when the remaining power supply meets the needs of each new powered device.
[0033] In some embodiments, the method further comprises:
[0034] According to the set cycle, based on the corresponding time recorded when each offline powered device was last offline, when it is determined that the offline time exceeds the preset time, the information of the corresponding offline powered device is deleted.
[0035] Through this method, the information of offline powered devices that have not been online for a long time can be cleared.
[0036] Another embodiment of the present application provides a POE device, which includes a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions stored in the memory, and execute any of the above methods according to the obtained program.
[0037] Another embodiment of the present application provides a control system for providing power to a powered device, including the above-mentioned POE device and at least one powered device.
[0038] Furthermore, according to an embodiment, for example, a computer program product for a computer is provided, which includes software code portions, and when the product is run on the computer, these software code portions are used to perform the steps of the method defined above. The computer program product may include a computer-readable medium having the software code portions stored thereon. Furthermore, the computer program product may be directly loaded into the internal memory of the computer and / or sent via a network through at least one of an upload process, a download process, and a push process.
[0039] Another embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of the overall process of a control method for providing power to a powered device provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a specific process of a control method for providing power to a powered device (no new powered device is detected) provided in an embodiment of the present application;
[0043] Figure 3A schematic diagram of a specific process of a control method for providing power to a powered device (a new powered device is detected) provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of a specific process of another control method for providing power to a powered device (no new powered device is detected) provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of a specific flow chart of a method for determining the latest priority of an online powered device provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of the structure of a POE device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] The embodiments of the present application provide a control method, system and POE device for providing power to a powered device, so as to enable the POE device to dynamically adjust the power supply priority of the powered device and replace the online powered device according to the latest priority to ensure the power demand of important powered devices.
[0049] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0050] The terms "first", "second", etc. (if any) in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in a sequence other than the content illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0051] The following examples and embodiments are to be understood as illustrative examples only. Although this specification may refer to "one", "an" or "some" examples or embodiments in several places, this does not mean that each such reference relates to the same example or embodiment, nor does it mean that the feature applies only to a single example or embodiment. Individual features of different embodiments may also be combined to provide other embodiments. In addition, terms such as "including" and "comprising" should be understood as not limiting the described embodiments to consist only of those features that have been mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that are not specifically mentioned.
[0052] The following is a detailed description of each embodiment of the present application in conjunction with the accompanying drawings. It should be noted that the display order of the embodiments of the present application only represents the order of the embodiments, and does not represent the advantages and disadvantages of the technical solutions provided by the embodiments.
[0053] It should be noted that the technical solution provided in the embodiment of the present application is to periodically adjust the latest priority of each online powered device through the POE device, then group the online powered devices into a set, group the offline powered devices into a set, compare the priorities in the two sets, and take the online powered devices with lower priorities offline so that the offline powered devices with higher priorities can go back online. At the same time, when a new powered device is detected requesting to go online, the power demand of the new powered device is preferentially met for explanation by way of example, but it is not limited to this.
[0054] See also Figure 1 , an embodiment of the present application provides a control method for providing power to a powered device, for example, the method is performed by a POE device, including:
[0055] Step S101, when the POE device provides power to multiple online powered devices, according to a set cycle, the following steps are performed: according to a preset rule, determining and recording the latest priority of each online powered device; wherein, the first set is composed of the identifier of the online powered device and the corresponding latest priority, and the identifier of all offline powered devices and the corresponding priority recorded when they were last offline are composed of the second set; the first set is compared with the corresponding priorities recorded in the second set, and if there is at least one online powered first-class powered device in the first set whose priority is lower than the priority of at least one offline second-class powered device in the second set, a powered device replacement step is performed: the first-class powered device is used as a candidate device, and one or more powered devices to be offline are selected in the order of the latest priorities of the candidate devices from low to high, and when the sum of the power supply power that can be released by each selected powered device to be offline and the remaining power supply power of the POE device is not less than the total power supply power required by the second-class powered devices, the powered device to be offline is offline, and the second-class powered device is online;
[0056] The POE device refers to a device that can provide power to network devices through network cables, such as a storage device that can be connected to a network camera IPC in POE mode. The powered device is, for example, an IPC device; the online powered device refers to a device that is currently powered by a POE device; the offline powered device refers to a device that was previously powered by a POE device but is not currently powered by a POE device.
[0057] The preset rules may be priority determination rules configured by the user, such as the current link status of the online powered device, the intelligent event information generated within a preset time from the current time, the ratio of the consumed power supply to the average power supply, etc., or other rules that can determine the importance of the powered device.
[0058] The power supply required by the powered device can be carried in the request for online power supply to the POE device as a new powered device, such as the rated power; or it can be obtained through the power supply port when the powered device is connected to the power supply port of the POE device.
[0059] The remaining power supply of the POE device is obtained by subtracting the sum of the power consumed by each online powered device from the total power supply of the POE device.
[0060] According to the preset rules, the latest priority of each online powered device is determined, specifically:
[0061] Obtain the current link status of each online powered device and the type and number of intelligent events generated within a preset time from the current time, and calculate the power proportion corresponding to each online powered device (that is, the ratio of the power consumed by the online powered device to the average power consumed by all online powered devices, where the average power consumed is the sum of the power consumed by each online powered device divided by the number of online powered devices);
[0062] According to the current link state of each online powered device, a corresponding relationship table of link state and influence coefficient is searched, such as shown in Table 1, to determine the first influence coefficient IC (influence coefficient) currently corresponding to the online powered device; if the current link state of the online powered device is general, the corresponding first influence coefficient is 1.0;
[0063] According to the intelligent event information generated by each online powered device within a preset time (for example, 30 minutes) from the current time, find the corresponding relationship table of event type, event quantity and influence coefficient, such as shown in Table 1, and determine the second influence coefficient currently corresponding to the online powered device; if the online powered device has generated 6 intelligent events in the past 30 minutes, then W=1.5, and the second influence coefficient is 2×6×1.5=18;
[0064] According to the ratio of the power consumption of each online powered device to the average power consumption, determine the third influence coefficient currently corresponding to the online powered device; if the ratio of the power consumption of the online powered device to the average power consumption P / A=1.1, then the corresponding third influence coefficient is 1 / 1.1=0.91;
[0065] The current weight value of the online powered device is obtained by multiplying one or more of the first influence coefficient, the second influence coefficient, and the third influence coefficient currently corresponding to each online powered device; for example, the first influence coefficient 1.0 is multiplied by the second influence coefficient 18 to obtain the current weight value 18; for another example, the first influence coefficient 1.0 is multiplied by the third influence coefficient 0.91 to obtain the current weight value 0.91; for another example, the product of the first influence coefficient 1.0 and the second influence coefficient 18 is multiplied by the third influence coefficient 0.91 to obtain the current weight value 16.38.
[0066] According to the current weight value of each online powered device, the corresponding relationship table between the weight value and the priority is searched, such as shown in Table 2, to determine the latest priority of the online powered device. The larger the weight value, the higher the corresponding latest priority. For example, the current weight value 16.38 corresponds to the latest priority level 5.
[0067] Table 1 Correspondence between various influencing factors and influencing coefficients
[0068]
[0069] Table 2 Correspondence between weight value and priority
[0070]
[0071] The priority of the offline powered device is the corresponding priority recorded when it was last offline. For example, when a certain offline powered device was last powered off by a POE device and the recorded priority was 4, the priority of the offline powered device is 4.
[0072] Using the identifiers of all online powered devices, such as unique codes and the latest priorities, to form set 1, the online powered devices in set 1 can be sorted in order from low to high according to the latest priorities (if the latest priorities are the same, they are sorted in order from large to small according to the power consumption, for example, as shown in Table 3, assuming that the power consumption of Z1000, Z0010, Z1010, and Z1660 is 30W, 25W, 30W, and 20W respectively); and, using the identifiers of all offline powered devices and the corresponding priorities recorded to form set 2, the offline powered devices in set 2 can be sorted in order from high to low according to the corresponding priorities recorded (if the priorities are the same, they are sorted in order from small to large according to the required power, for example, as shown in Table 4, assuming that the power consumption of Z1124, Z0011, Z1011, Z1662, and Z1089 is 25W, 30W, 28W, 32W, and 25W respectively);
[0073] Table 3 Ranking of online powered devices in set 1
[0074]
[0075] Table 4 The order of the offline powered devices in set 2
[0076]
[0077] For example, according to the ranking of each offline powered device in set 2, one offline powered device is selected each time as an alternative online device, and the priority of the alternative online device is compared with each online powered device in set 1. Each online powered device with a lower priority than the alternative online device in set 1 is used as an alternative offline device, and according to the ranking of each alternative offline device, one or more are selected from them, so that the cumulative power supply power that can be released by the selected one or more alternative offline devices and the current remaining power supply power of the POE device are greater than or equal to the power supply power required by the alternative online device, and then the one or more selected alternative offline devices are offline, the alternative online device is online, and the first set and the second set are updated (the alternative online device and the corresponding priority are moved from the second set to the first set, and the one or more selected alternative offline devices and the corresponding priority are moved from the first set to the second set); it is determined whether the offline powered device corresponding to the next priority can be put back online, until all priorities in the second set are polled, and this polling ends.
[0078] It should be noted that in the process of polling each priority level, if the power supply that can be released by all online powered devices with a lower priority level corresponding to an offline powered device of a certain priority level, plus the current remaining power supply of the POE device, is less than the power supply required by the offline powered device, the replacement process of the offline powered device will be terminated directly, that is, the offline powered device will no longer be put back online in this polling.
[0079] For another example, directly compare set 1 with set 2. When there is at least one online powered device in set 1 whose priority is lower than that of at least one offline powered device in set 2, perform the powered device replacement step:
[0080] For example, as shown in Table 3 and Table 4 above, the priority of the online powered device Z1000 is lower than the priority of the offline powered devices Z1124, Z0011, Z1011, and Z1662. The priority of the online powered device Z0010 is lower than the priority of the offline powered devices Z1124, Z0011, Z1011, and Z1662. The priority of the online powered device Z1010 is lower than the priority of the offline powered devices Z1124 and Z0011. The priority of the online powered device Z1660 is lower than the priority of the offline powered devices Z1124 and Z0011. 0010, Z1010, and Z1660 are selected as candidate devices, and one or more powered devices to be taken offline are selected in order of their latest priorities from low to high, so that when the power that can be released by the selected one or more powered devices to be taken offline and the current remaining power of the POE device are greater than or equal to the total power required by the offline powered devices Z1124, Z0011, Z1011, and Z1662, the selected one or more powered devices to be taken offline are taken offline, and the offline powered devices Z1124, Z0011, Z1011, and Z1662 are put online.
[0081] Step S102: When it is detected that a new powered device requests to go online for power supply, and the current remaining power supply power of the POE device is less than the total power supply power required by each of the new powered devices, select the third type of powered devices in the first set in order of the latest priority from low to high, so that the sum of the power supply power that can be released by each of the selected third type of powered devices and the current remaining power supply power is not less than the total power supply power required by each of the new powered devices; offline the third type of powered devices, and online each of the new powered devices.
[0082] According to preset rules, the latest priority of each online powered device is determined regularly. According to the priorities of each online powered device and each offline powered device, it is determined whether some low-priority online powered devices can be offline. In the process of bringing high-priority offline powered devices back online, when a new powered device is detected to request online power supply, it is determined whether the current remaining power supply power of the POE device meets the power requirement of the new powered device (that is, whether the current remaining power supply power is greater than the total power supply power required by the new powered device). If so, the new powered device is brought online. If not, one or more online powered devices are selected according to the latest priority of each online powered device, so that the power supply power that can be released by the selected online powered device plus the current remaining power supply power of the POE device can meet the power requirement of the new powered device.
[0083] That is to say, each new powered device has the highest priority, which is higher than the latest priority of any online powered device.
[0084] In order to meet the power demand of the offline powered device having a higher priority than the online powered device, in some embodiments, the step of performing the powered device replacement specifically includes:
[0085] The powered device is replaced according to the order of priority from high to low in the second set:
[0086] The offline powered device corresponding to the priority selected this time in the current second set is used as an alternative online device; the online powered device with a priority lower than the priority of the alternative online device in the current first set is used as an alternative offline device; one or more of the alternative offline devices are selected in order of priority from low to high, so that when the cumulative power supply that can be released by each selected alternative offline device and the sum of the current remaining power supply power of the POE device are not less than the power supply power required by the alternative online device, the selected alternative offline devices are offline, the alternative online devices are online, and the current first set and the current second set are updated; until the polling of each priority in the second set is completed.
[0087] In order to ensure the power demand of more powered devices, in some embodiments, if the cumulative power that can be released by all the alternative offline devices and the sum of the current remaining power of the POE device are less than the power required by the alternative online devices, the powered device replacement process corresponding to this priority is terminated.
[0088] In order to ensure the power demand of more powered devices, in some embodiments, if there are multiple offline powered devices corresponding to the currently selected priority in the current second set, the powered devices are replaced in the order of the required power supply power from small to large; and
[0089] When selecting one or more candidate offline devices in order of priority from low to high, the candidate offline devices with the same priority are selected in order of releasable power from large to small.
[0090] In order to dynamically adjust the power supply priority of each online powered device, in some embodiments, according to a preset rule, the latest priority of each online powered device is determined, including:
[0091] For each of the online powered devices:
[0092] According to the current link state of the online powered device, searching a preset corresponding relationship table between link states and influence coefficients to obtain a first influence coefficient currently corresponding to the online powered device;
[0093] According to the intelligent event information generated by the online powered device within a preset time from the current time, a preset correspondence table of event type, event quantity and influence coefficient is searched to obtain the second influence coefficient currently corresponding to the online powered device;
[0094] Obtaining a third influence coefficient currently corresponding to the online powered device according to a ratio of an average power consumption of each of the online powered devices to the power consumption of the online powered device;
[0095] The latest priority of the online powered device is determined according to one or any combination of the first influence coefficient, the second influence coefficient and the third influence coefficient.
[0096] That is to say, the latest priority of the online powered device can be determined based on one or any combination (any combination of two or a combination of the three) of the current link status of the online powered device, the intelligent event information generated by the online powered device within a preset time from the current time, and the ratio of the power consumption of the online powered device to the average power consumption.
[0097] In some embodiments, determining the latest priority of the online powered device according to any combination of the first influence coefficient, the second influence coefficient, and the third influence coefficient includes:
[0098] Obtaining a current weight value of the online powered device according to a product of the first influence coefficient, the second influence coefficient, and the third influence coefficient, or according to a product of any two of the first influence coefficient, the second influence coefficient, and the third influence coefficient;
[0099] According to the current weight value, a corresponding relationship table between weight values and priorities is searched to determine the latest priority of the online powered device; wherein, the larger the weight value, the higher the corresponding latest priority.
[0100] To provide timely online power supply to each new powered device, in some embodiments, when it is detected that a new powered device requests online power supply and the current remaining power supply of the POE device is not less than the total power supply power required by each new powered device, each new powered device is put online.
[0101] In order to clear the information of the offline powered device which has not been powered by the POE device again for a long time, in some embodiments, the method further includes:
[0102] According to the set cycle, based on the corresponding time recorded when each offline powered device was last offline (ie, the most recent offline time), when it is determined that the offline time exceeds the preset time, the information of the corresponding offline powered device is deleted.
[0103] Several specific method flow examples are given below. Example
[0104] See also Figure 2 The embodiment of the present application provides a control method for providing power to a powered device. The method is performed by, for example, a POE device. Assuming that no new powered device requests online power supply from the POE device, the specific steps include:
[0105] Step S201: regularly determine and record the latest priority of each online powered device based on the current link status of the online powered device, the intelligent event information generated within a preset time from the current time, and the ratio of the power consumption of the online powered device to the average power consumption;
[0106] Step S202: using the identifiers of all online powered devices and the corresponding latest priorities to form a first set, and using the identifiers of all offline powered devices and the corresponding priorities recorded when they were last offline to form a second set;
[0107] Step S203, compare the priorities of the online powered devices in the first set and the offline powered devices in the second set, and determine whether there is at least one offline powered device in the second set whose priority is higher than that of at least one online powered device in the first set; if so, proceed to step S204; if not, wait for the next latest priority determination cycle;
[0108] Step S204: According to the order of priorities from high to low in the second set, determine the offline powered device corresponding to the priority selected each time as a candidate online device;
[0109] Step S205: According to the priority of the candidate online device, determine each online powered device in the first set that is lower than the candidate online device as a candidate offline device;
[0110] Step S206: Select one or more of the candidate offline devices, and calculate whether the sum of the power that can be released and the current remaining power of the POE device is greater than or equal to the power required by the candidate online device. If so, proceed to step S207; if not, proceed to step S204;
[0111] Step S207, offline one or more candidate offline devices selected, online candidate online devices, update the first set and the second set, and then perform step S204 until the polling of each priority in the second set is completed. Example
[0112] See also Figure 3The embodiment of the present application provides a control method for providing power to a powered device. The method is performed by, for example, a POE device. Assuming that a new powered device requests the POE device to supply power online, the specific steps include:
[0113] Step S301: Detect that at least one new powered device requests online power supply, and determine the power supply power required by each new powered device according to the request information;
[0114] Step S302, determine whether the current remaining power supply of the POE device is greater than or equal to the total power supply required by all new powered devices, if so, proceed to step S305; if not, proceed to step S303;
[0115] The current remaining power of the POE device is the difference between the total power of the POE device and the total power consumed by each online powered device.
[0116] Step S303: select one or more online powered devices in descending order of their latest priorities, so that the sum of the power that can be released by these online powered devices and the current remaining power is greater than or equal to the sum of the power required by all new powered devices;
[0117] Step S304: offline one or more online powered devices selected, and online all new powered devices;
[0118] Step S305: Bring all new powered devices online.
[0119] It should be noted that if the total power required by all new powered devices is large, and even if all online powered devices are offline, the power supply needs of these new powered devices cannot be met, the new powered devices with smaller power requirements should be put online first in order of the power required by each new powered device from small to large, so as to meet the power needs of more powered devices as much as possible. Example
[0120] See also Figure 4 The embodiment of the present application provides a control method for providing power to a powered device. The method is performed by, for example, a POE device. Assuming that no new powered device requests online power supply from the POE device, the specific steps include:
[0121] Step S401: regularly determine and record the latest priority of each online powered device according to preset rules;
[0122] Step S402: using the identifiers of all online powered devices and the corresponding latest priorities to form a first set, and using the identifiers of all offline powered devices and the corresponding priorities recorded when they were last offline to form a second set;
[0123] Step S403, compare the corresponding priorities recorded in the first set with those recorded in the second set, and determine whether there is a first-category powered device in the first set whose priority is lower than the priority of at least one second-category powered device that has been offline in the second set. If so, proceed to step S404; if not, wait for the next latest priority determination cycle;
[0124] Step S404: The first type of powered devices are used as candidate devices, and the candidate devices are sorted from low to high according to the latest priority;
[0125] Step S405: select one or more powered devices to be offline according to the ranking of the candidate devices, and determine whether the sum of the power that can be released by each selected powered device to be offline and the remaining power of the POE device is not less than the total power required by the second type of powered devices. If so, proceed to step S406; if not, wait for the next latest priority determination cycle;
[0126] Step S406, offline the powered device to be offline, and online the second type of powered device, update the first set and the second set, and continue with step S403;
[0127] Step S407, regularly determining the offline time corresponding to each offline powered device according to the corresponding time recorded when each offline powered device in the first set was last offline;
[0128] Step S408: for each offline powered device in the first set, determine whether its offline duration exceeds a preset duration; if so, proceed to step S409; if not, wait for the next detection cycle;
[0129] Step S409: Delete the information of the offline powered devices in the second set whose offline duration exceeds the preset duration.
[0130] It should be noted that steps S407 to S409 are not limited to being performed after step S406, and may be performed before or after any step S401 to S406.
[0131] For example, the current remaining power supply of the POE device is 50W. The first set includes devices A, B, C, D, and E, with priorities of 1, 2, 3, 4, and 5 (the smaller the value, the higher the priority), and the released power supplies are 30, 50, 25, 45, and 50W respectively; the second set includes devices a, b, c, d, and e, with priorities of 2, 2, 3, 3, and 4, and the required power supplies are 25, 30, 25, 35, and 25W respectively; the priority of device C is lower than that of devices a and b, the priority of device D is lower than that of devices a, b, c, and d, and the priority of device E is lower than that of devices a, b, c, d, and e. Then devices C, D, and E are the first-class powered devices, and devices a, b, c, d, and e are the second-class powered devices. Equipment; the total power required by devices a, b, c, d, and e is 140W. According to the priority of the first type of powered devices from low to high, devices D and E are selected. The cumulative power that can be released is 95W, which is greater than 140W. Devices D and E are offline, and devices a, b, c, d, and e are online. The first set and the second set are changed. The changed first set includes devices A, B, C, a, b, c, d, and e, with the lowest priority of 4. The changed second set includes devices D and E, with the highest priority of 4. There is no device in the second set with a higher priority than the first set. The powered device replacement step is stopped and the next latest priority determination cycle is waited for.
[0132] For another example, the current remaining power supply of the POE device is 30W. The first set includes devices A, B, C, D, and E, with priorities of 1, 2, 3, 4, and 5 (the smaller the value, the higher the priority), and the released power supplies are 30, 50, 35, 35, and 40W respectively; the second set includes devices a, b, c, d, and e, with priorities of 2, 2, 3, 3, and 4, and the required power supplies are 35, 35, 30, 25, and 25W respectively; the priority of device C is lower than that of devices a and b, the priority of device D is lower than that of devices a, b, c, and d, and the priority of device E is lower than that of devices a, b, c, d, and e. Then devices C, D, and E are the first type of powered devices, and devices a, b, c, d, and e are the second type of powered devices; the total power supply required by devices a, b, c, d, and e is 150W, and the cumulative power supply required by devices C, D, and E is 150W. The released power is 110 W, which is 140 W in total with the remaining power of the POE device. This is less than the total power required by devices a, b, c, d, and e, which is 150 W. Therefore, devices C, D, and E cannot be taken offline to bring devices a, b, c, d, and e back online. In descending order of priority, high-priority devices a, b, c, and d (with a cumulative power requirement of 125 W) can be brought back online. The first set and the second set are changed. The changed first set includes devices A, B, a, b, c, and d, with a lowest priority of 3. The changed second set includes devices C, D, E, and e, with a highest priority of 4. No device in the second set has a higher priority than the first set. The powered device replacement step is stopped, and the next latest priority determination cycle is waited for. Example
[0133] See also Figure 5 , an embodiment of the present application provides a method for determining the latest priority of an online powered device, and the method is performed by, for example, a POE device, and the specific steps include:
[0134] Step S501: regularly obtain the corresponding current link status and intelligent event information generated within a preset time from the current time from each online powered device;
[0135] Step S502: according to the current link state corresponding to each online powered device, searching the preset corresponding relationship table of link state and influence coefficient, and obtaining the first influence coefficient currently corresponding to each online powered device;
[0136] Step S503: according to the corresponding intelligent event information generated by each online powered device within a preset time from the current time, find the corresponding relationship table of the preset event type, event quantity and influence coefficient, and obtain the second influence coefficient currently corresponding to each online powered device;
[0137] Step S504: Obtain a third influence coefficient currently corresponding to the online powered device according to a ratio of an average power consumption of each online powered device to the power consumption of the online powered device;
[0138] Step S505: for each online powered device, multiply its first influence coefficient, second influence coefficient, and third influence coefficient to obtain its current weight value;
[0139] Step S506: According to the current weight value corresponding to each online powered device, a corresponding relationship table between the weight value and the priority is searched to determine the latest priority corresponding to each online powered device.
[0140] It should be noted that steps S502, S503 and S504 are performed simultaneously. The current weight value of each online powered device can also be determined based on one of the first influence coefficient, the second influence coefficient and the third influence coefficient or any combination of the two.
[0141] The current weight value of each online powered device is determined according to any combination of the first influence coefficient, the second influence coefficient, and the third influence coefficient: for example, the current weight value of each online powered device can be determined according to the product of the first influence coefficient and the second influence coefficient; for another example, the current weight value of each online powered device can be determined according to the product of the first influence coefficient and the third influence coefficient; for another example, the current weight value of each online powered device can be determined according to the product of the second influence coefficient and the third influence coefficient.
[0142] The following is an introduction to the equipment or device provided in the embodiments of the present application, in which the explanations or examples of technical features that are the same or corresponding to those described in the above method will not be repeated later.
[0143] See also Figure 6 , a POE device provided in an embodiment of the present application includes:
[0144] The processor 600 is used to read the program in the memory 620 and execute the following process:
[0145] When the POE device provides power to multiple online powered devices, the following operations are performed according to a set cycle:
[0146] According to preset rules, determine and record the latest priority of each online powered device; wherein the first set is composed of the identifier of the online powered device and the corresponding latest priority, and the identifier of all offline powered devices and the corresponding priority recorded when they were last offline are composed of the second set;
[0147] Compare the corresponding priorities recorded in the first set with those recorded in the second set. If the priority of at least one online powered first-category powered device in the first set is lower than the priority of at least one offline second-category powered device in the second set, perform a powered device replacement step:
[0148] The first type of powered devices are used as candidate devices, and one or more powered devices to be taken offline are selected in descending order of the latest priorities of the candidate devices, and when the sum of the power supply power that can be released by each of the selected powered devices to be taken offline and the remaining power supply power of the POE device is not less than the total power supply power required by the second type of powered devices, the powered devices to be taken offline are taken offline, and the second type of powered devices are put online;
[0149] When it is detected that a new powered device requests online power supply, and the current remaining power supply power of the POE device is less than the total power supply power required by each of the new powered devices, the third type of powered devices are selected in the first set in descending order of the latest priority, so that the sum of the power supply power that can be released by each of the selected third type of powered devices and the current remaining power supply power is not less than the total power supply power required by each of the new powered devices;
[0150] The third type of powered devices are taken offline, and each of the new powered devices are put online.
[0151] In some embodiments, the step of performing the step of replacing the powered device specifically includes:
[0152] The powered device is replaced according to the order of priority from high to low in the second set:
[0153] The offline powered device corresponding to the priority selected this time in the current second set is used as an alternative online device; the online powered device with a priority lower than the priority of the alternative online device in the current first set is used as an alternative offline device; one or more of the alternative offline devices are selected in order of priority from low to high, so that when the cumulative power supply that can be released by each selected alternative offline device and the sum of the current remaining power supply power of the POE device are not less than the power supply power required by the alternative online device, the selected alternative offline devices are offline, the alternative online devices are online, and the current first set and the current second set are updated; until the polling of each priority in the second set is completed.
[0154] In some embodiments, the processor 600 is further configured to read a program in the memory 620 and execute:
[0155] If the cumulative power that can be released by all the candidate offline devices and the sum of the current remaining power of the POE device are less than the power required by the candidate online device, the powered device replacement process corresponding to this priority is terminated.
[0156] In some embodiments, the processor 600 is further configured to read a program in the memory 620 and execute:
[0157] If there are multiple offline powered devices corresponding to the currently selected priority in the current second set, replace the powered devices in ascending order of required power supply power; and
[0158] When selecting one or more candidate offline devices in order of priority from low to high, the candidate offline devices with the same priority are selected in order of releasable power from large to small.
[0159] In some embodiments, determining the latest priority of each of the online powered devices according to a preset rule includes:
[0160] For each of the online powered devices:
[0161] According to the current link state of the online powered device, searching a preset corresponding relationship table between link states and influence coefficients to obtain a first influence coefficient currently corresponding to the online powered device;
[0162] According to the intelligent event information generated by the online powered device within a preset time from the current time, a preset correspondence table of event type, event quantity and influence coefficient is searched to obtain the second influence coefficient currently corresponding to the online powered device;
[0163] Obtaining a third influence coefficient currently corresponding to the online powered device according to a ratio of an average power consumption of each of the online powered devices to the power consumption of the online powered device;
[0164] The latest priority of the online powered device is determined according to one or any combination of the first influence coefficient, the second influence coefficient and the third influence coefficient.
[0165] In some embodiments, determining the latest priority of the online powered device according to any combination of the first influence coefficient, the second influence coefficient, and the third influence coefficient includes:
[0166] Obtaining a current weight value of the online powered device according to a product of the first influence coefficient, the second influence coefficient, and the third influence coefficient, or according to a product of any two of the first influence coefficient, the second influence coefficient, and the third influence coefficient;
[0167] According to the current weight value, a corresponding relationship table between weight values and priorities is searched to determine the latest priority of the online powered device; wherein, the larger the weight value, the higher the corresponding latest priority.
[0168] In some embodiments, the processor 600 is further configured to read a program in the memory 620 and execute:
[0169] When it is detected that a new powered device requests to go online for power supply, and the current remaining power supply power of the POE device is not less than the total power supply power required by each of the new powered devices, each of the new powered devices is put online.
[0170] In some embodiments, the processor 600 is further configured to read a program in the memory 620 and execute:
[0171] According to the set cycle, based on the corresponding time recorded when each offline powered device was last offline, when it is determined that the offline time exceeds the preset time, the information of the corresponding offline powered device is deleted.
[0172] In some embodiments, the POE device provided by the embodiments of the present application further includes a transceiver 810 for receiving and sending data to a powered device under the control of the processor 600 .
[0173] Among them, Figure 6 In the embodiment of the present invention, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 600 and memory represented by memory 620. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are not further described herein. The bus interface provides an interface. The transceiver 610 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.
[0174] The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 can store data used by the processor 600 when performing operations.
[0175] In some embodiments, the processor 600 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device).
[0176] An embodiment of the present application provides a control system for providing power to a powered device, including the above-mentioned POE device and at least one powered device.
[0177] The embodiment of the present application provides a computing device, which may be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. The computing device may include a central processing unit (CPU), a memory, an input / output device, etc. The input device may include a keyboard, a mouse, a touch screen, etc. The output device may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), etc.
[0178] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor with program instructions and data stored in the memory. In the embodiment of the present application, the memory may be used to store the program of any of the methods provided in the embodiment of the present application.
[0179] The processor calls the program instructions stored in the memory, and the processor is used to execute any of the methods provided in the embodiments of the present application according to the obtained program instructions.
[0180] The present application embodiment also provides a computer program product or computer program, which includes a computer instruction, which is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction so that the computer device performs any of the methods described in the above embodiments. The program product can use any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0181] The embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the apparatus provided in the embodiment of the present application, which includes a program for executing any of the methods provided in the embodiment of the present application. The computer-readable storage medium may be a non-transitory computer-readable medium.
[0182] The computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0183] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0184] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0185] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0186] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0187] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A control method for providing power to a powered device, characterized in that: Applied to Power over Ethernet (POE) equipment, the method comprises: When the POE device provides power to multiple online powered devices, the following operations are performed according to a set cycle: According to preset rules, determine and record the latest priority of each online powered device; wherein the first set is composed of the identifier of the online powered device and the corresponding latest priority, and the identifier of all offline powered devices and the corresponding priority recorded when they were last offline are composed of the second set; Compare the corresponding priorities recorded in the first set with those recorded in the second set. If the priority of at least one online powered first-category powered device in the first set is lower than the priority of at least one offline second-category powered device in the second set, perform a powered device replacement step: The first type of powered devices are used as candidate devices, and one or more powered devices to be taken offline are selected in descending order of the latest priorities of the candidate devices, and when the sum of the power supply power that can be released by each of the selected powered devices to be taken offline and the remaining power supply power of the POE device is not less than the total power supply power required by the second type of powered devices, the powered devices to be taken offline are taken offline, and the second type of powered devices are put online; When it is detected that a new powered device requests online power supply, and the current remaining power supply power of the POE device is less than the total power supply power required by each of the new powered devices, the third type of powered devices are selected in the first set in descending order of the latest priority, so that the sum of the power supply power that can be released by each of the selected third type of powered devices and the current remaining power supply power is not less than the total power supply power required by each of the new powered devices; Taking the third type of powered equipment offline and bringing each of the new powered equipment online; Wherein, according to a preset rule, determining the latest priority of each online powered device includes: For each of the online powered devices: According to the current link state of the online powered device, searching a preset corresponding relationship table between link states and influence coefficients to obtain a first influence coefficient currently corresponding to the online powered device; According to the intelligent event information generated by the online powered device within a preset time from the current time, a preset correspondence table of event type, event quantity and influence coefficient is searched to obtain the second influence coefficient currently corresponding to the online powered device; Obtaining a third influence coefficient currently corresponding to the online powered device according to a ratio of an average power consumption of each of the online powered devices to the power consumption of the online powered device; The latest priority of the online powered device is determined according to one or any combination of the first influence coefficient, the second influence coefficient and the third influence coefficient.
2. The method according to claim 1, characterized in that The step of performing the powered device replacement step specifically includes: The powered device is replaced according to the order of priority from high to low in the second set: The offline powered device corresponding to the priority selected this time in the current second set is used as an alternative online device; the online powered device with a priority lower than the priority of the alternative online device in the current first set is used as an alternative offline device; one or more of the alternative offline devices are selected in order of priority from low to high, so that when the cumulative power supply that can be released by each selected alternative offline device and the sum of the current remaining power supply power of the POE device are not less than the power supply power required by the alternative online device, the selected alternative offline devices are offline, the alternative online devices are online, and the current first set and the current second set are updated; until the polling of each priority in the second set is completed.
3. The method according to claim 2, characterized in that If the cumulative power that can be released by all the candidate offline devices and the sum of the current remaining power of the POE device are less than the power required by the candidate online device, the powered device replacement process corresponding to this priority is terminated.
4. The method according to claim 2, characterized in that: If there are multiple offline powered devices corresponding to the currently selected priority in the current second set, replace the powered devices in ascending order of required power supply power; and When selecting one or more candidate offline devices in order of priority from low to high, the candidate offline devices with the same priority are selected in order of releasable power from large to small.
5. The method according to claim 1, characterized in that Determining the latest priority of the online powered device according to any combination of the first influence coefficient, the second influence coefficient, and the third influence coefficient includes: Obtaining a current weight value of the online powered device according to a product of the first influence coefficient, the second influence coefficient, and the third influence coefficient, or according to a product of any two of the first influence coefficient, the second influence coefficient, and the third influence coefficient; According to the current weight value, a corresponding relationship table between weight values and priorities is searched to determine the latest priority of the online powered device; wherein, the larger the weight value, the higher the corresponding latest priority.
6. The method according to claim 1, characterized in that When it is detected that a new powered device requests to go online for power supply, and the current remaining power supply power of the POE device is not less than the total power supply power required by each of the new powered devices, each of the new powered devices is put online.
7. The method according to claim 1, characterized in that The method further comprises: According to the set cycle, based on the corresponding time recorded when each offline powered device was last offline, when it is determined that the offline time exceeds the preset time, the information of the corresponding offline powered device is deleted.
8. A POE device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 7 according to the obtained program.
9. A control system for providing power to a powered device, characterized in that: include: The POE device of claim 8 and at least one powered device.
