PoE budget processing method and device and electronic equipment
By obtaining the peripheral power of the current access peripherals of the NVR device, the POE budget is dynamically adjusted, the problem of power waste during power supply is solved, real -time dynamic adjustments and full use of the POE budget have been realized, and the actual POE budget is improved.
Patent Information
- Application Number
- CN202411486938.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-24
AI Technical Summary
When powering the PD to which the NVR device belongs is used, there is a problem of power waste, because in the prior art, the PoE budget is determined based on the maximum power that the NVR device may be connected to the peripheral, resulting in insufficient actual available PoE budget.
By obtaining the peripheral power of the current access peripherals of the NVR device, dynamically adjust the current POE budget that can be provided by the PD provided by the NVR device, realize the real -time dynamic adjustment of the POE budget, and make full use of the POE power provided by the POE adapter.
Through dynamically adjusting the POE budget, the power waste is effectively avoided, the actual available POE budget is improved, and the rated power of the POE adapter is fully utilized to meet the power requirements of more PD.
Smart Images

Figure CN119363494A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method, device and electronic device for processing Power Over Ethernet (PoE) budget. Background Art
[0002] With the development of network technology, there is an increasing demand for storing video data through the network. The monitoring system with a digital video recorder (DVR) as the core has further developed into a network video monitoring system with a network video recorder (NVR) as the core. In this network video monitoring system, the NVR is used to store video data collected from each powered device (PD, usually an Internet Protocol Camera, IPC) in the network and manage the collected data. Each PD is used to collect video data from each monitoring location in the network. The NVR and PD can communicate in a wired or wireless manner. For example, data transmission and power supply can be carried out between the NVR and each PD in a PoE manner. For example, the NVR device end is connected to a PoE adapter, and the NVR device is also connected to the PD through a network cable, and the PoE adapter supplies power to the NVR and each PD device.
[0003] In the related art, when determining the power provided to each PD, the maximum power of the NVR is generally determined first, and then the power that can be provided to each PD is determined based on the maximum power of the NVR and the rated power of the PoE adapter. However, this method will lead to the problem of power waste.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a PoE budget processing method, device and electronic device to at least solve the technical problem of power waste when using PoE to power a PD belonging to an NVR device.
[0006] According to one aspect of an embodiment of the present invention, a PoE budget processing method is provided, including: obtaining the peripheral power of a peripheral currently connected to a network video recorder NVR device; and obtaining a current PoE budget that can be provided to a powered device PD belonging to the NVR device based on the peripheral power.
[0007] By obtaining the peripheral power of the peripherals currently connected to the NVR device, the current PoE budget that can be provided to the PD belonging to the NVR device is obtained. Since the current PoE budget is obtained according to the peripheral power of the peripherals currently connected to the NVR device, compared with the related technology that obtains a fixed PoE budget according to the maximum peripheral power of the peripherals that may be connected to the NVR device, the real-time dynamic adjustment of the PoE budget is realized, and the PoE power that the PoE adapter can provide is fully utilized, thereby increasing the actual available PoE budget, and solving the technical problem of power waste when using PoE to power the PD belonging to the NVR device.
[0008] Optionally, obtaining the peripheral power of the peripheral currently connected to the network video recorder NVR device includes: identifying a target type of the currently connected peripheral; and determining the peripheral power of the peripheral currently connected to the NVR device based on the target type.
[0009] By identifying the target type of the currently connected peripheral, it is possible to know what type of peripheral the currently connected peripheral belongs to, and then directly obtain the power of the peripheral of the corresponding type according to the type of the currently connected peripheral. By using the above method of obtaining the power of the peripheral currently connected to the NVR device, the power of the peripheral currently connected to the NVR device can be effectively and directly obtained. That is, the above method of obtaining the power of the peripheral by obtaining the target type can not only shorten the time of obtaining the power of the peripheral, but also improve the accuracy of obtaining the power of the peripheral.
[0010] Optionally, determining the peripheral power of the peripheral currently connected to the NVR device based on the target type includes: determining a retrieval table of the currently connected peripheral based on the target type, wherein the retrieval table includes power values corresponding to different peripheral models under the target type; obtaining the target model of the currently connected peripheral; and determining that the power value corresponding to the target model in the retrieval table is the peripheral power of the peripheral currently connected to the NVR device.
[0011] By searching for the power of peripherals in the retrieval table, the efficiency of the NVR in obtaining the power of the peripherals currently connected can be improved. That is, by querying the retrieval table, the power of the peripherals of a specific peripheral model can be quickly located, avoiding real-time calculation or query of the power of the peripherals, which can significantly shorten the time for obtaining the power of the peripherals, improve the acquisition efficiency, and reduce the service interruption or performance degradation that may be caused by power calculation delays.
[0012] Optionally, determining the peripheral power of the peripheral currently connected to the NVR device based on the target type includes: issuing a prompt message prompting input of a power value of the currently connected peripheral; and determining that the input power value is the peripheral power of the peripheral currently connected to the NVR device.
[0013] By prompting the user to manually input the peripheral power, it can be ensured that all connected peripherals of the above NVR device can obtain the peripheral power value, avoiding the situation where the peripheral power of the connected peripheral is unknown, and even affecting the subsequent PoE budget processing steps.
[0014] Optionally, obtaining the current PoE budget that can be provided to the powered device PD to which the NVR device belongs based on the peripheral power includes: obtaining the mainboard power of the NVR device; and obtaining the current PoE budget that can be provided to the powered device PD to which the NVR device belongs based on the peripheral power and the mainboard power.
[0015] Based on the above processing, since the current PoE budget is obtained based on the above peripheral power and the above mainboard power, that is, the current PoE budget is obtained based on the peripheral power of the above NVR device currently connected to the peripherals and the mainboard power of the above NVR device during actual use, and since the mainboard is the most important power consumption considered besides the external devices, the current PoE budget is determined directly based on the mainboard power and the peripheral power. This not only enables real-time acquisition of the PoE budget based on actual usage, but is also efficient and accurate, and can make the acquired PoE budget the maximum value of the PoE budget that can be currently acquired, thereby achieving full utilization of the rated power of the PoE adapter, thereby avoiding power waste caused by using the maximum power of the NVR device.
[0016] Optionally, obtaining the current PoE budget that can be provided to the powered device PD to which the NVR device belongs based on the peripheral power and the mainboard power includes: obtaining the current PoE budget that can be provided to the powered device PD to which the NVR device belongs based on the peripheral power, the mainboard power, and the reserved power.
[0017] By setting the reserved power, a safety margin is provided to act as a buffer to deal with the uncertainty of unknown peripherals or power requirements that may be connected, helping to prevent the PoE adapter from overheating and preventing the actual total power of the NVR and PD from being greater than the rated power of the PoE adapter, that is, preventing the actual power demand from exceeding the rated power of the PoE adapter and causing the entire device to lose power. In addition, by setting the reserved power reasonably, it can also ensure that the PoE system can remain stable in various complex environments, while maximizing the use of the power resources of the power supply equipment to avoid unnecessary waste.
[0018] Optionally, the method further includes: when there are multiple identical peripherals working simultaneously in the currently connected peripherals, using a power optimization method to reduce the power of the identical peripherals.
[0019] When there are multiple identical peripherals working at the same time among the above-mentioned currently connected peripherals, a power optimization method is used to reduce the power of the above identical peripherals. By performing power optimization operations when multiple identical peripherals are working at the same time, it is possible to avoid multiple peripherals reaching maximum power consumption at the same time, thereby reducing the power supply demand for the PoE adapter and improving the efficiency and stability of the entire system.
[0020] Optionally, after obtaining the current PoE budget that can be provided to the powered device PD to which the NVR device belongs according to the peripheral power, the method further includes: when a new peripheral is connected, comparing the current PoE budget with the new peripheral power of the new peripheral; when the current PoE budget is greater than the new peripheral power, issuing a prompt message allowing the new peripheral to access; when the current PoE budget is less than or equal to the new peripheral power, controlling the new peripheral to access after power is off and adjusting the access of the PD to which the NVR device belongs, and / or closing the peripheral interface corresponding to the new peripheral.
[0021] By comparing the current PoE budget and the new peripheral power of the new peripherals, and making different processing operations on the new peripherals according to the comparison results, it is possible to effectively avoid the situation where the motherboard power and peripheral power of the NVR device may exceed the rated power of the PoE adapter after the new peripherals are directly connected to the NVR device, thereby effectively avoiding the whole device power failure and affecting the normal use of the PD to which the NVR device belongs. That is, corresponding processing is performed for the changes in the peripherals, which can avoid system overload or exceeding the power supply capacity of the PoE adapter due to the connection of high-power peripherals, and can also adjust the power distribution of the PoE adapter in real time to ensure the effective use of resources and enhance the flexibility and stability of the use of NVR equipment.
[0022] According to another aspect of the present invention, a PoE budget processing device is provided, including: an acquisition module, used to obtain the peripheral power of the peripheral device currently connected to the network video recorder NVR device; a processing module, used to obtain the current PoE budget that can be provided to the powered device PD belonging to the NVR device according to the peripheral power.
[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned PoE budget processing methods.
[0024] According to another aspect of the present invention, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the program executes any one of the above-mentioned PoE budget processing methods when running.
[0025] According to another aspect of the present invention, a computer program product is provided, comprising: when the computer program is executed by a processor, the steps of any one of the methods for PoE budget processing are implemented.
[0026] In the embodiment of the present invention, the current PoE budget that can be provided to the PD belonging to the NVR device is obtained by obtaining the peripheral power of the peripheral currently connected to the NVR device. Since the current PoE budget is obtained according to the peripheral power of the peripheral currently connected to the NVR device, compared with the related art in which a fixed PoE budget is obtained according to the maximum peripheral power of the peripheral that may be connected to the NVR device, the real-time dynamic adjustment of the PoE budget is realized, and the PoE power that the PoE adapter can provide is fully utilized, thereby increasing the actual available PoE budget, and solving the technical problem of power waste when the PoE method is used to power the PD belonging to the NVR device. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0028] Figure 1 is a schematic diagram of PoE budget processing of an NVR device in the related art;
[0029] Figure 2 is a schematic diagram of the power distribution of a PoE adapter in the related art;
[0030] Figure 3 It is a schematic diagram of the power distribution of the PoE adapter actually used by the user under the current setting mode in the related art;
[0031] Figure 4 is a flow chart of a PoE budget processing method according to an embodiment of the present invention;
[0032] Figure 5 is a schematic diagram of dynamically adjusting the PoE budget according to an optional implementation manner of the present invention;
[0033] Figure 6 is a structural block diagram of a PoE budget processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0037] Network Video Surveillance System (NNVS): NNVS mainly includes NVR equipment, one or more PDs, and power supply equipment for NVR and the one or more PDs. NVR is used to store video data collected from each PD in the network and manage the collected data. Each PD is used to collect video data from each monitoring location in the network. The NVR and PD can communicate via wired or wireless means. NVR is connected to IPC via the network and supports centralized management of multiple video streams.
[0038] Network Video Recorder (NVR) is the brain of the network video surveillance system, responsible for receiving, storing, managing and forwarding video streams.
[0039] Power over Ethernet (PoE) is a technology that can transmit power and data to devices through twisted pair cables in Ethernet. The device that uses this technology is a PoE device. A PoE device can provide power supply and data transmission for wireless access points, network cameras, and VoIP phones through only one Ethernet twisted pair cable. For example, the PoE device can be a PoE adapter.
[0040] PoE adapter: also known as PoE power supply, midspan device or power injector, it mainly connects non-PoE switch and PoE powered device (PD) through network cable. This PoE adapter is generally suitable for places where low-power terminal devices need to be installed but there is a lack of power sockets. This solution effectively improves network flexibility at a lower cost, so that device installation is no longer restricted by geography and existing network architecture.
[0041] PoE budget: is the total power available to a PoE device (e.g., a PoE adapter) to distribute among connected devices. Each device has specific power requirements, and the total power requirements of the various devices should be within the power budget of the PoE adapter (i.e., the PoE budget). A higher PoE budget allows more devices to be connected.
[0042] Powered Device (PD): Any device powered by a PoE device (e.g., a PoE adapter).
[0043] In the related art, in a video network monitoring system where a PoE adapter supplies power to an NVR device and each PD, when determining the PoE budget that the NVR device can provide to each PD based on the rated power of the PoE adapter, the method used is: traverse to find the maximum motherboard power (including peripherals) of the NVR device in the peripheral scenario with the highest power, and then subtract this motherboard power from the rated power of the PoE adapter to obtain the PoE budget. In order to prevent the PoE adapter from failing and losing power, each PD cannot exceed this PoE budget in any usage scenario. That is, when evaluating the motherboard power, the PoE budget is generally determined based on the extreme scenario of the above-mentioned maximum motherboard power. However, in actual use, the probability of reaching the extreme scenario of the above-mentioned maximum motherboard power is low. In most cases, the actual motherboard power will be lower than the pre-evaluated value, and this low power cannot be used by the PD, which will cause a partial power waste of the PoE adapter. At the same time, for high-power PDs, the use will be restricted.
[0044] Figure 1 This is a schematic diagram of PoE budget processing of NVR equipment in the related art, such as Figure 1As shown, when determining the PoE budget of the NVR device, the rated power of the PoE adapter is generally subtracted from the power of the motherboard (including peripherals), and the remaining is the maximum power that the VNR device can provide to the PD. However, NVR devices often need to be paired with different peripherals, such as mechanical hard disks, solid-state hard disks, USB flash drives, monitors that support High Definition Multimedia Interface (HDMI) and Video Graphics Array (VGA), etc. The power required to be provided by peripherals of different brands and models is different. Based on the above characteristics, the PoE budget needs to meet different usage scenarios. Therefore, it is necessary to traverse to find the maximum motherboard power of the VNR device, use a larger capacity mechanical hard disk, connect more powerful peripherals, and then subtract the traversed maximum motherboard power value and maximum peripheral power value from the rated power of the PoE adapter to obtain the PoE budget.
[0045] In the most extreme case of using the above maximum motherboard power value and maximum peripheral power value, it can ensure that users will not experience adapter power failure due to the PoE budget exceeding the rated power of the PoE adapter, thereby reducing the risk of causing the entire system to crash. However, for users who use low-power peripherals, the actual available PoE budget value should be larger, which will cause a waste of power resources. For example, Figure 2 Schematic diagram of the power distribution of PoE adapter in related technology, such as Figure 2 As shown, when setting the PoE budget, it is known that the rated power of the PoE adapter is 70W, the motherboard power of the NVR device is 5W, and the peripheral device uses a 10TB hard disk with a rated power of 15W. The rated power of the PoE adapter is subtracted from the above motherboard and the set peripheral power, and the set PoE budget is 50W. Figure 3 FIG. 1 is a schematic diagram of the power distribution of the PoE adapter actually used by the user under the current setting mode in the related art, such as Figure 3 As shown in the figure, it is known that the rated power of the PoE adapter is 70W, the motherboard power of the NVR device is 5W, and the user actually uses a 4TB hard disk with a rated power of 10W. Then, by comparing the set PoE budget and the rated power of the PoE adapter minus the actual motherboard and peripheral power used, 5W of power will not be provided to any device, resulting in partial power waste.
[0046] Since the NVR device can identify the peripherals that need to be powered and read the model and other related information of the device, the NVR device can read the information of the actual device in use based on the user's actual usage scenario. Therefore, it is completely possible to flexibly provide a safe and reliable PoE budget based on the user's actual usage scenario of the NVR device. When the power of the peripheral device used by the user is read to be too high, the PoE budget is set to be smaller. When the power of the peripheral device used by the user is read to be too low, the PoE budget is set to be larger to meet more PD power requirements.
[0047] Based on this, in an embodiment of the present invention, a method for automatically adjusting the PoE budget of an NVR PoE device is provided, which is used to reasonably allocate the PoE budget for different user scenarios, avoid power waste due to the preset PoE budget, and propose a corresponding read-write mechanism to avoid the same high-power peripherals working at the same time, thereby reducing the normal working power of the peripherals and making full use of the PoE adapter power as much as possible.
[0048] According to an embodiment of the present invention, a method embodiment of PoE budget processing is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0049] Figure 4 is a flow chart of a PoE budget processing method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0050] Step S402, obtaining the power of the peripheral device currently connected to the network video recorder NVR device.
[0051] As an optional embodiment, the execution subject of the method of this embodiment may be various types of devices in a PoE power supply system, for example, an NVR device.
[0052] As an optional embodiment, when obtaining the peripheral power of the peripheral currently connected to the network video recorder NVR device, the target type of the currently connected peripheral can be identified first; then, based on the target type, the peripheral power of the peripheral currently connected to the NVR device can be determined. By identifying the target type of the currently connected peripheral, it is possible to know what type of peripheral the currently connected peripheral belongs to, and then the peripheral power of the type can be obtained more directly according to the type of the currently connected peripheral. Through the above method of obtaining the peripheral power of the peripheral currently connected to the NVR device, the peripheral power of the peripheral currently connected to the NVR device can be effectively and directly obtained.
[0053] As an optional embodiment, when determining the peripheral power of the peripheral currently connected to the NVR device based on the target type, multiple methods can be used, for example, the method of querying the retrieval table can be used to determine it. The retrieval table of the currently connected peripheral can be determined based on the target type, wherein the retrieval table includes the power values corresponding to different peripheral models under the target type; then the target model of the currently connected peripheral is obtained; and then the power value corresponding to the target model in the retrieval table is determined as the peripheral power of the currently connected peripheral of the NVR device. By setting different retrieval tables for peripherals of multiple types in advance, and recording the power values corresponding to different peripheral models under the corresponding types in the retrieval tables of different types of peripherals, the peripheral power acquisition method of the currently connected peripheral can be realized as follows: determining the retrieval table of the currently connected peripheral according to the type of the currently connected peripheral, and determining the peripheral power of the currently connected peripheral in the retrieval table of the currently connected peripheral according to the model of the currently connected peripheral. By searching the peripheral power in the retrieval table, the efficiency of the NVR in acquiring the peripheral power of the currently connected peripheral can be improved. Among them, the power values corresponding to different peripheral models under the corresponding types recorded in the retrieval table can be obtained by multiple methods. For example, the power values corresponding to different peripheral models under the above target type included in the above retrieval table can come from the compatible peripheral list provided by the official website of the above NVR device, or from the peripheral model previously identified by the above NVR device and the received input power value, or can be determined by combining the above multiple methods. The combined method can effectively improve the accuracy of the data in the retrieval table.
[0054] As an optional embodiment, when determining the peripheral power of the peripheral currently connected to the above-mentioned NVR device based on the above-mentioned target type, it can also be determined based on the interaction with the user. For example, a prompt message is first issued to prompt the input of the power value of the above-mentioned currently connected peripheral; and then the input power value is determined to be the peripheral power of the peripheral currently connected to the above-mentioned NVR device. The method of obtaining the peripheral power manually input by the user through prompting can ensure that all connected peripherals of the above-mentioned NVR device can obtain the peripheral power value, avoiding the situation where the peripheral power of the connected peripheral is unknown, and even affecting the subsequent PoE budget processing steps. It should be noted that obtaining the peripheral power of the currently connected peripheral can be achieved by combining multiple acquisition methods. For example, the method of obtaining the peripheral power manually input by the user through prompting and the method of searching for the peripheral power in the retrieval table can be combined. First, the method of searching for the peripheral power in the retrieval table is used. If the above-mentioned target model is not found in the above-mentioned retrieval table, the method of obtaining the peripheral power manually input by the user through prompting can be used. By combining the method of obtaining the peripheral power manually input by the user through prompts and the method of searching the peripheral power in a retrieval table, the efficiency of the NVR in obtaining the peripheral power of the currently connected peripheral can be improved, and it can also ensure that all connected peripherals of the NVR device can obtain the peripheral power value, achieving a reliable and flexible effect.
[0055] Step S404: According to the peripheral power, a current PoE budget that can be provided to the powered device PD to which the NVR device belongs is obtained.
[0056] As an optional embodiment, when obtaining the current PoE budget that can be provided to the powered device PD of the NVR device according to the peripheral power, the current PoE budget can be determined in different ways based on different factors. For example, in order to quickly and directly obtain the current PoE budget, the motherboard power of the NVR device can be relatively simple to consider, and the PoE budget can be determined based on the motherboard power and peripheral power of the NVR. For example, the motherboard power of the NVR device can be obtained first; then, based on the peripheral power and the motherboard power, the current PoE budget that can be provided to the powered device PD of the NVR device can be obtained. For example, the peripheral power and the motherboard power can be subtracted from the rated power of the PoE adapter to obtain the current PoE budget that can be provided to the powered device PD of the NVR device. Since the current PoE budget is obtained based on the above-mentioned peripheral power and the above-mentioned mainboard power, that is, the current PoE budget is obtained based on the peripheral power of the peripherals currently connected to the above-mentioned NVR device and the mainboard power of the above-mentioned NVR device during actual use, the method of obtaining the PoE budget in real time according to actual usage can make the obtained PoE budget the maximum value of the PoE budget that can be obtained currently, thereby achieving full utilization of the rated power of the PoE adapter, thereby avoiding power waste caused by using the maximum power of the NVR device.
[0057] As an optional embodiment, when the current PoE budget that can be provided to the powered device PD of the NVR device is obtained based on the peripheral power and the mainboard power, in order to further improve the accuracy of the PoE budget, the current PoE budget that can be provided to the powered device PD of the NVR device can also be obtained based on the peripheral power, the mainboard power, and the reserved power. That is, further, considering that the acquired peripheral power and the mainboard power may have a certain accuracy deviation from the peripheral power and the mainboard power in actual use, when the current PoE budget that can be provided to the powered device PD of the NVR device is obtained, in addition to the peripheral power and the mainboard power, a reserved power is also introduced. For example, the rated power of the PoE adapter can be subtracted from the peripheral power, the mainboard power, and the reserved power to obtain the current PoE budget that can be provided to the powered device PD of the NVR device. The above-mentioned reserved power depends on the specifications and models of the NVR device. For example, it can be set to 2~3W, so as to provide a safety margin and play a buffering role to deal with the uncertainty of unknown peripherals or power requirements that may be connected, help prevent the PoE adapter from overheating, and prevent the actual total power of the NVR and PD from being greater than the rated power of the PoE adapter, that is, prevent the actual power demand from exceeding the rated power of the PoE adapter, causing the entire machine to lose power.
[0058] As an optional embodiment, when there are multiple identical peripherals working at the same time in the above-mentioned currently connected peripherals, the power may be too high, thereby affecting the normal use of the PD. Therefore, when there are multiple identical peripherals working at the same time in the above-mentioned currently connected peripherals, a power optimization method can be used to reduce the power of the above-mentioned identical peripherals. Among them, the above-mentioned power optimization method can be a variety of methods. For example, the staggered reading and writing of the hard disk can be achieved through an algorithm to reduce the high power caused by the hard disk performing read and write operations at the same time. For another example, when multiple data need to be written to multiple hard disks, the memory bandwidth of the hard disk can be fully utilized, and the data writing of different hard disks can be staggered to avoid the high power caused by multiple hard disks performing write operations at the same time. For another example, for a hard disk with a large cache, the number of writes can be reduced, and the hard disk power can also be reduced. Other power optimization methods for connecting peripherals will not be repeated.
[0059] As an optional embodiment, after obtaining the current PoE budget that can be provided to the powered device PD of the NVR device according to the peripheral power, when using the NVR device, the peripherals may change constantly, for example, there are new peripherals connected and exited. Therefore, when the peripherals of the NVR device are changed, the following processing can be adopted. In the case of connecting a new peripheral, compare the current PoE budget and the new peripheral power of the new peripheral; when the current PoE budget is greater than the new peripheral power, issue a prompt message to allow the new peripheral to connect; when the current PoE budget is less than or equal to the new peripheral power, control the new peripheral to connect after power off and adjust the access of the PD to which the NVR device belongs, and / or close the peripheral interface corresponding to the new peripheral. By comparing the current PoE budget and the new peripheral power of the new peripherals, and making different processing operations on the new peripherals according to the comparison results, it is possible to effectively avoid the situation where the motherboard power and peripheral power of the NVR device may exceed the rated power of the PoE adapter after the new peripherals are directly connected to the NVR device, thereby effectively avoiding the whole device power failure and affecting the normal use of the PD to which the NVR device belongs. Of course, for the exit of peripherals, more power can also be provided to each PD based on the real-time update of the PoE budget to achieve effective use of resources.
[0060] Through the above steps, it is possible to dynamically adjust the current PoE budget that can be provided to the PD of the NVR device according to the peripheral power of the peripheral currently connected to the NVR device, and make full use of the PoE power that the PoE adapter can provide; a power optimization method is also used for the situation where there are multiple identical peripherals working at the same time in the currently connected peripherals, and the peripheral power demand is reduced through power optimization, thereby increasing the actual available PoE budget; and a new peripheral management method is used for the situation where new peripherals are connected, and the impact of connecting new peripherals on the entire system is reduced through new peripheral management. Through the above processing, the technical problem of partial power waste of the PoE adapter caused by using the maximum power peripheral scenario to obtain the PoE budget in the related technology is effectively solved, and the rated power of the PoE adapter is fully utilized, the PoE budget is increased to meet the needs of more PDs, and the impact of newly connected peripherals on the entire system is reduced.
[0061] In combination with the above-mentioned embodiment and the optional embodiment, an optional implementation mode is provided. In this optional implementation mode, a scheme for automatically adjusting the PoE budget of a PoENVR device is provided. In the scheme in this optional implementation mode, the current PoE budget can be dynamically adjusted according to the motherboard power of the NVR device and the peripheral power of the peripherals actually connected to the NVR device, so as to fully utilize the rated power of the PoE adapter and improve the PoE budget in actual use. Figure 5 is a schematic diagram of dynamically adjusting the PoE budget according to an optional implementation mode of the present invention, such as Figure 5 As shown, the method includes the following processing.
[0062] S1, the test obtains the data P1 of the power stability part of the PoE NVR device mainboard (excluding peripherals).
[0063] Among them, the PoE NVR device has the PoE function, which can provide power to the camera to which the NVR device belongs through an Ethernet cable. It should be noted that the power of the mainboard is obtained here, and the power of the peripherals is obtained in subsequent steps. The data P1 of the power stability part can refer to the measured value of the mainboard power reaching a relatively stable state under normal working conditions. The stable state means that the power change is within an acceptable range within a certain period of time. The test method is usually: turn on the NVR and run the normal operating software, without connecting any peripherals at this time, and record the power value of the mainboard under the stable working state.
[0064] S2, for NVR devices connected to different types of peripherals such as hard disks, USBs, monitors, etc., the Graphical User Interface (GUI) of the NVR device can detect and identify the types and models of the connected peripherals. Therefore, the list can be classified according to the types of the connected peripherals, and different retrieval tables Tab1...N can be formulated according to the classification.
[0065] The GUI of the NVR device has the function of detecting and identifying the models of peripherals connected to the NVR device, which is usually achieved through driver support in firmware or software. Listing and classifying all peripherals according to their types means that for each type of device, the system can create a special search table (such as Tab1, Tab2 to TabN), and each search table contains the relevant parameters of the device of that type. For example, the connected peripherals include hard disk, USB and display, and their models are X, Y and Z respectively. The NVR device GUI detects and identifies that the devices are connected to X-type hard disk, Y-type USB and Z-type display respectively, and different search tables are formulated according to this classification: hard disk search table Tab1, USB search table Tab2, and display search table Tab3. Among them, the hard disk search table Tab1 writes the relevant parameters of the X-type hard disk (for example, the power of X-type is 5W, the power of M-type is 3W, and the power of N-type is 2W), and the other search tables are similar. The above-mentioned process of formulating the search table can be completed before determining the PoE budget, or it can be completed during the process of determining the PoE budget. Among them, completing the formulation of the search table before determining the PoE budget can increase the speed of obtaining the peripheral power of the connected peripheral device during the process of determining the PoE budget, thereby improving the efficiency of processing the PoE budget.
[0066] S3, for one type of connected peripherals, the power data of the corresponding model of this type of peripherals is recorded in the search table corresponding to this type of peripherals. After the type of the connected peripheral is determined, in the search table corresponding to this type of peripherals, the power value corresponding to the model is read according to the identified peripheral model. Based on the query of the search table corresponding to the type of connected peripherals, the power value corresponding to the peripheral model is obtained. By adopting the query table, the power value corresponding to the peripheral can be obtained quickly. When the peripheral model is not in the search table, the user can be reminded to enter the power value of the connected peripheral, and the power data of the connected peripheral can also be obtained.
[0067] For example, for hard disk type peripherals, the corresponding retrieval table Tab1 is used to store the relevant parameters of the hard disk, including the hard disk model and its corresponding power data. These data may come from the technical specification table provided by the manufacturer on the NVR official website. When the user inserts the peripheral into the NVR device, the device will automatically detect the type and model of the peripheral. According to the type and model of the peripheral obtained, the power value of the peripheral can be directly read from the corresponding hard disk retrieval table. For example, when connecting an X-type hard disk peripheral, the NVR device detects that the type of the newly connected peripheral is a hard disk and the model is X-type. Based on this information, the power value of the X-type hard disk is read in the corresponding retrieval table, that is, the hard disk retrieval table Tab1. The same applies to other retrieval tables.
[0068] S4, when there are multiple identical peripherals working at the same time, the peak-shifting reading and writing mechanism can be optimized through software algorithms to reduce the high power caused by the simultaneous operation of the two. For example, for the writing of IPC data, the memory bandwidth of the hard disk can be used to perform peak-shifting operations on the data writing of different hard disks, which can reduce the high power of simultaneous operation of different hard disks. For hard disks with large cache, the number of writes can be reduced, and the hard disk power can also be reduced.
[0069] When multiple identical peripherals are working at the same time, it will put a lot of pressure on the power supply of the NVR device, which may cause power overload and affect the normal use of the PD. Therefore, power can be optimized through software algorithms. For example, this risk can be reduced by staggering the peak operation. The staggered peak mechanism is a method of staggering the execution of tasks in time to reduce the peak demand for system resources (here refers to power) by multiple devices or processes at the same time. The amount of data generated by IPC may be very large, especially in a multi-camera system. Reasonable arrangement of the writing time of this data can avoid writing a large amount of data to multiple hard disks at the same time. In addition to staggered operation, the power of the hard disk can also be reduced by making full use of the memory bandwidth of the hard disk and using hard disks with large caches. The memory bandwidth of the hard disk refers to the maximum data transfer rate that the hard disk cache can handle. By properly arranging the data flow, the hard disk cache can be maximized and the number of direct reads and writes to the hard disk can be reduced. If the hard disk has a large cache, it can temporarily store more data and reduce the number of frequent writes to the disk, which can reduce power because the start and stop of the hard disk is energy intensive.
[0070] S5, calculate the total power related to the current motherboard = P1 + P hard disk + P monitor + P USB flash drive + P other peripherals.
[0071] Calculate the total power of the motherboard and all connected peripherals. P1 represents the stable power of the NVR motherboard during normal operation. P hard disk represents the total power of the hard disk or hard disk array connected to the NVR. P display may include external displays connected through HDMI, VGA or other interfaces. P USB disk represents the power of devices connected through USB ports, such as USB flash drives, external hard disks, printers, etc., and P other peripherals includes the power of other connected devices besides hard disks, displays and USB devices, such as connected network devices, expansion cards, etc.
[0072] S6, then calculate the current PoE budget = P adapter - P1 - P hard disk - P display - P USB flash drive - P other peripherals - P reserved; among them, P reserved, because the power sampling of the PoE chip has a certain accuracy, it is necessary to reserve 2 to 3W to prevent the total power from being greater than the adapter power due to accuracy, which may cause the whole machine to lose power.
[0073] Calculate the PoE budget of the NVR device to ensure that the NVR device and its connected peripherals obtain sufficient power through the PoE adapter, while avoiding failures caused by exceeding the power supply capacity of the PoE adapter. P adapter is the maximum output power that the PoE adapter can provide. This value may be different depending on the PoE standard (such as 802.3af, 802.3at). For example, the 802.3af standard provides a maximum power of 15.4W, while 802.3at provides up to 30W. P is reserved to deal with the accuracy error of the PoE chip power sampling and other uncertain factors (such as line loss, peak current when the device starts, etc.), so an additional 2 to 3W of power needs to be reserved as a buffer to prevent the total power from being greater than the adapter power, causing the entire machine to power off.
[0074] S7, dynamically changes the total PoE budget based on the actual usage of the user's current NVR equipment.
[0075] The PoE budget is calculated and adjusted in real time based on the current actual usage, that is, based on the total power of the NVR device's motherboard and all actually connected peripherals.
[0076] S8, when the user needs to replace the peripheral, determine the current PoE budget and the power value of the peripheral. If the PoE budget is greater than the power value of the peripheral, the device prompts that it can be connected normally, and updates the PoE budget after connection. If the PoE budget is less than or equal to the power value of the peripheral, it prompts that the peripheral needs to be connected after power off, and the PD needs to be reconnected. In order to avoid the power of the connected peripheral being too high, the power of the peripheral can also be added to the power management. When the PoE budget is lower than the power of the peripheral, the peripheral interface can be closed to reduce the impact of the peripheral connected in the middle on the PoE power.
[0077] When the user needs to replace or add a new peripheral to the NVR device, the PoE budget is dynamically managed to ensure stable operation of the system. First, the current PoE budget is checked; the power of the newly connected peripheral can be evaluated, which can be obtained through the technical specifications of the device or determined by the power data entered during the previous settings; the PoE budget is compared with the peripheral power. If the PoE budget is greater than the peripheral power value, that is, the PoE budget is sufficient to meet the needs of the newly connected peripheral, the user is prompted to add the new peripheral normally; if the PoE budget is less than the peripheral power value, that is, the PoE budget is not enough to meet the needs of the newly connected peripheral, in order to prevent the total power from exceeding the power that the PoE adapter can provide due to direct access, it is prompted to power off before connecting the peripheral; if power off is required, after the user adds the new peripheral and powers it on again, the device also needs to recalculate the PoE budget; power management can also be added. If it is detected that the PoE budget is less than the power of the peripheral to be connected, in order to avoid overload, the peripheral interface can be closed to reduce the impact of the peripheral connected in the middle on the PoE power, that is, reduce the impact of the peripheral connected in the middle on the already connected peripheral.
[0078] Through the above optional implementation, the following effects can be achieved: the PoE power of the PoE adapter can be fully utilized; the algorithm can be used to reduce the power demand of peripherals connected to the mainboard and increase the demand for the PoE part; and the impact of newly connected peripherals on the entire system can be reduced.
[0079] According to an embodiment of the present invention, a device for implementing the above-mentioned PoE budget processing method is provided. Figure 6 is a structural block diagram of a PoE budget processing device according to an embodiment of the present invention. Figure 6 As shown, the device includes: an acquisition module 602 and a processing module 604. The device is described below.
[0080] The acquisition module 602 is used to obtain the peripheral power of the peripherals currently connected to the network video recorder NVR device; the processing module 604 is connected to the above-mentioned acquisition module 602 and is used to obtain the current PoE budget that can be provided to the powered device PD of the above-mentioned NVR device based on the above-mentioned peripheral power.
[0081] It should be noted here that the above-mentioned acquisition module 602 and processing module 604 correspond to steps S402 to S404 in the embodiment, and the instances and application scenarios implemented by multiple modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment.
[0082] As an optional embodiment, the acquisition module 602 includes: an identification unit and a determination unit, wherein the identification unit is used to identify the target type of the currently connected peripheral device; the determination unit is connected to the identification unit, and is used to determine the peripheral power of the currently connected peripheral device of the NVR device based on the target type.
[0083] As an optional embodiment, the above-mentioned determination unit includes: a first determination subunit, a first acquisition subunit and a second determination subunit, wherein the first determination subunit is used to determine the retrieval table of the above-mentioned currently connected peripheral device based on the above-mentioned target type, wherein the above-mentioned retrieval table includes power values corresponding to different peripheral models under the above-mentioned target type; the first acquisition subunit is connected to the above-mentioned first determination subunit, and is used to obtain the target model of the above-mentioned currently connected peripheral device; the second determination subunit is connected to the above-mentioned first acquisition subunit, and is used to determine that the power value corresponding to the above-mentioned target model in the above-mentioned retrieval table is the peripheral power of the above-mentioned NVR device currently connected peripheral device.
[0084] As an optional embodiment, the above-mentioned determination unit also includes: a prompt subunit and a third determination subunit, wherein the prompt subunit is used to issue a prompt message prompting input of the power value of the above-mentioned currently connected peripheral device; the third determination subunit is connected to the above-mentioned prompt subunit, and is used to determine that the input power value is the peripheral power of the above-mentioned NVR device currently connected to the peripheral device.
[0085] As an optional embodiment, the processing module 604 includes: an acquisition unit and a calculation unit, wherein the acquisition unit is used to acquire the mainboard power of the NVR device; the calculation unit is connected to the acquisition unit, and is used to obtain the current PoE budget that can be provided to the powered device PD of the NVR device based on the peripheral power and the mainboard power.
[0086] As an optional embodiment, the above-mentioned calculation unit includes: a calculation subunit, wherein the calculation subunit is used to obtain the current PoE budget that can be provided to the powered device PD belonging to the above-mentioned NVR device based on the above-mentioned peripheral power, the above-mentioned mainboard power, and the reserved power.
[0087] As an optional embodiment, the above-mentioned device also includes: an optimization module, wherein the optimization module is used to adopt a power optimization method to reduce the power of the above-mentioned identical peripherals when there are multiple identical peripherals working simultaneously in the above-mentioned currently connected peripherals.
[0088] As an optional embodiment, the above-mentioned device also includes: a comparison module, a prompt module and a control module, wherein the comparison module is used to compare the above-mentioned current PoE budget with the new peripheral power of the above-mentioned new peripheral when a new peripheral is connected; the prompt module is connected to the above-mentioned comparison module, and is used to issue a prompt message allowing the above-mentioned new peripheral to be connected when the above-mentioned current PoE budget is greater than the above-mentioned new peripheral power; the control module is connected to the above-mentioned comparison module, and is used to control the above-mentioned new peripheral to be connected after power is off and adjust the access of the PD belonging to the above-mentioned NVR device when the above-mentioned current PoE budget is less than or equal to the above-mentioned new peripheral power, and / or, close the peripheral interface corresponding to the above-mentioned new peripheral.
[0089] According to an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned PoE budget processing methods.
[0090] According to an embodiment of the present invention, an electronic device is provided, including: a memory storing an executable program; and a processor for running the program, wherein the program executes any one of the above-mentioned PoE budget processing methods when running.
[0091] According to an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
[0092] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0093] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0095] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0096] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0097] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0098] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing Power over Ethernet (PoE) budget, characterized in that: include: Get the power of the peripherals currently connected to the network video recorder NVR device; According to the peripheral power, a current PoE budget that can be provided to the powered device PD to which the NVR device belongs is obtained.
2. The method according to claim 1, characterized in that The method of obtaining the power of the peripheral device currently connected to the network video recorder NVR device includes: Identify the target type of the currently connected peripheral device; Based on the target type, the peripheral power of the peripheral currently connected to the NVR device is determined.
3. The method according to claim 2, characterized in that The determining, based on the target type, the peripheral power of the peripheral currently connected to the NVR device includes: Based on the target type, determining a search table of the currently connected peripheral device, wherein the search table includes power values corresponding to different peripheral device models under the target type; Obtain the target model of the currently connected peripheral device; Determine that the power value corresponding to the target model in the search table is the peripheral power of the peripheral currently connected to the NVR device.
4. The method according to claim 2, characterized in that: The determining, based on the target type, the peripheral power of the peripheral currently connected to the NVR device includes: Sending a prompt message to prompt input of a power value of the currently connected peripheral device; The input power value is determined to be the peripheral power of the peripheral currently connected to the NVR device.
5. The method according to claim 1, characterized in that The obtaining, according to the power of the peripheral device, a current PoE budget that can be provided to the powered device PD to which the NVR device belongs includes: Obtain the motherboard power of the NVR device; According to the peripheral power and the mainboard power, a current PoE budget that can be provided to the powered device PD to which the NVR device belongs is obtained.
6. The method according to claim 5, characterized in that The obtaining, according to the peripheral power and the mainboard power, of a current PoE budget that can be provided to the powered device PD to which the NVR device belongs, includes: According to the peripheral power, the mainboard power, and the reserved power, a current PoE budget that can be provided to the powered device PD to which the NVR device belongs is obtained.
7. The method according to claim 1, characterized in that The method further comprises: In the case that there are multiple identical peripherals working simultaneously in the currently connected peripherals, a power optimization method is adopted to reduce the power of the identical peripherals.
8. The method according to any one of claims 1 to 7, characterized in that After obtaining the current PoE budget that can be provided to the powered device PD to which the NVR device belongs according to the power of the peripheral device, the method further includes: When a new peripheral device is connected, comparing the current PoE budget with the new peripheral power of the new peripheral device; When the current PoE budget is greater than the power of the new peripheral device, issuing a prompt message to allow the new peripheral device to access; When the current PoE budget is less than or equal to the power of the new peripheral, the new peripheral is controlled to be connected after power is turned off and the access of the PD to which the NVR device belongs is adjusted, and / or the peripheral interface corresponding to the new peripheral is closed.
9. A Power over Ethernet (PoE) budget processing device, characterized in that: include: An acquisition module is used to obtain the peripheral power of the peripherals currently connected to the network video recorder NVR device; The processing module is used to obtain, according to the power of the peripheral device, a current PoE budget that can be provided to the powered device PD to which the NVR device belongs.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the PoE budget processing method according to any one of claims 1 to 8.
11. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the PoE budget processing method according to any one of claims 1 to 8 is executed when the program is run.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.