Dynamic power supply management method and device for passive optical network unit and storage medium
Through the dynamic power supply management method, the problem of unreasonable power distribution in GPON ONU power management is solved, and more efficient power utilization and wider equipment power supply are achieved.
Patent Information
- Application Number
- CN202411711059.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-02-18
AI Technical Summary
The existing GPON ONU power management method has the problem of unreasonable power allocation, resulting in waste of power and the inability to power more PD equipment.
Through the dynamic power supply management method, the power adapter power of the passive optical network unit is obtained, the power adapter power is determined whether to be connected to the power adapter, the maximum power supply power is calculated, and the power supply power is allocated according to the priority and requested power of the power receiving equipment.
It effectively improves the utilization rate of power adapters, can power more powered equipment, and improves economic benefits.
Smart Images

Figure CN119484172A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical network units, and in particular to a method, a device and a storage medium for dynamic power supply management of a passive optical network unit. Background Art
[0002] GPON ONU (Passive Optical Network Unit) can be configured with two specifications of power adapter, 150W or 250W, that is, there are two maximum output POE (Power over Ethernet) rated powers. When GPON ONU supplies power to PD (Powered Device), it is necessary to know the maximum PoE rated power currently supported. The usual practice is to add a detection circuit to the hardware and report the detection value to the POE management module, but this method will increase the hardware cost.
[0003] According to the design, the five LAN ports (local area network interfaces) on the GPON ONU (passive optical network unit) need to consume 330W of power when the powered device is fully loaded. When the power consumed by the powered device exceeds the maximum rated power of the GPON ONU, the operation of the ONU (optical network unit) itself will be affected, and the ONU itself may even restart due to insufficient power supply.
[0004] The traditional way to solve the above problem is that PSE (power supply equipment) allocates power to PD according to the negotiated class (level) between PD and PSE. However, because the power defined by the standard POE class is the maximum value, that is to say, there is a situation where the actual power consumed by PD may be less than the power of the negotiated class, which results in unreasonable power allocation. In the case of limited power adapter specifications, it will not be possible to power more PD devices. For example, the class negotiated between PD and GPON ONU is 4, and the maximum power supported by the class is 30W, but the actual power used by PD is 20W. According to the traditional method, pre-allocating 30W power to PD according to the class will result in a waste of 10W. Summary of the invention
[0005] In view of this, the present invention provides a method, device and storage medium for dynamic power supply management of a passive optical network unit.
[0006] Specifically, the present invention is achieved through the following technical solutions:
[0007] According to a first aspect of the present invention, a method for dynamic power supply management of a passive optical network unit is provided, the method comprising the steps of:
[0008] Obtain the power adapter power of the passive optical network unit;
[0009] Determining whether the passive optical network unit is connected to a power adapter;
[0010] If yes, calculating the maximum power supply power of the passive optical network unit;
[0011] If not, returning to the step of obtaining the power adapter power of the passive optical network unit;
[0012] Obtaining the priority of the powered device on the passive optical network unit;
[0013] Obtaining a requested power of the powered device;
[0014] The power supply is allocated to the powered device according to the maximum power supply, the requested power and the priority.
[0015] Optionally, the step of obtaining the power adapter power of the passive optical network unit comprises the following steps:
[0016] Obtaining power values corresponding to each power adapter to be connected to the passive optical network unit;
[0017] Summarize and calculate the power values and obtain a total power value;
[0018] The total power value is used as the power adapter power.
[0019] Optionally, the determining whether the passive optical network unit is connected to a power adapter comprises the steps of:
[0020] Detecting an interface signal of the passive optical network unit;
[0021] Acquire an access signal of an interface of the passive optical network unit when the passive optical network unit is connected to the power adapter;
[0022] Determining whether the interface signal conforms to the access signal;
[0023] If so, determining that the passive optical network unit is connected to the power adapter;
[0024] If not, it is determined that the passive optical network unit is not connected to the power adapter.
[0025] Optionally, the calculating the maximum power supply power of the passive optical network unit comprises the steps of:
[0026] Obtaining the power of the power adapter;
[0027] Obtaining the full load power of the optical network unit on the passive optical network unit;
[0028] The maximum power supply power is obtained by subtracting the full load power from the power adapter power.
[0029] Optionally, the obtaining the requested power of the powered device comprises the steps of:
[0030] Obtaining requested power values corresponding to each powered device to be connected to the passive optical network unit;
[0031] Summarizing and calculating the requested power values and obtaining a total requested power value;
[0032] The total requested power value is used as the requested power.
[0033] Optionally, allocating the power supply power to the powered device according to the maximum power supply power, the requested power and the priority level comprises the steps of:
[0034] sorting all the powered devices in descending order according to the priority;
[0035] Determining whether the maximum power supply is greater than the requested power;
[0036] If so, allocating power to all the powered devices in the sequence;
[0037] If not, the last powered device in the sequence is removed, and power is allocated to all remaining powered devices in the sequence, and the process returns to the step of determining whether the maximum power supply is greater than the requested power.
[0038] Optionally, the allocating power to all the powered devices in the sequence comprises the steps of:
[0039] Obtaining the negotiation levels of all the powered devices;
[0040] Get the maximum power supply corresponding to each negotiation level;
[0041] Obtaining actual power consumption of each of the powered devices;
[0042] supplying power to all the powered devices according to the actual power consumption;
[0043] Calculating the surplus power between the maximum power supply power and the actual power consumption corresponding to all the powered devices;
[0044] All of the surplus power is recovered.
[0045] According to a second aspect of the present invention, there is provided a passive optical network unit dynamic power supply management device, comprising:
[0046] A power acquisition module, used to acquire the power of the power adapter of the passive optical network unit;
[0047] A judging module, used to judge whether the passive optical network unit is connected to a power adapter;
[0048] An execution module, used to execute a preset operation according to the result of the judgment module;
[0049] A priority acquisition module, used to obtain the priority of the powered device on the passive optical network unit;
[0050] A requested power acquisition module, used to acquire the requested power of the powered device;
[0051] a power distribution module, configured to distribute power to the powered device according to the maximum power, the requested power and the priority;
[0052] Wherein, when the result of the judgment module is yes, the execution module calculates the maximum power supply power of the passive optical network unit; when the result of the judgment module is no, the execution module returns the power adapter power of the passive optical network unit.
[0053] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned methods when executing the program.
[0054] According to a fourth aspect of the present invention, there is provided a storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of any one of the aforementioned methods.
[0055] The technical solution provided by the present invention brings at least the following beneficial effects:
[0056] A passive optical network unit dynamic power supply management method, device and storage medium provided in the present application can effectively improve the utilization rate of the power adapter, can supply power to more powered devices, and improve economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0059] Figure 1 A schematic diagram of a flow chart of a method for dynamic power supply management of a passive optical network unit provided by an embodiment of the present invention;
[0060] Figure 2 A schematic diagram of the structure of a dynamic power supply management device for a passive optical network unit provided by an embodiment of the present invention;
[0061] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0062] Figure 4 A schematic diagram of the structure of a storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 are within the scope of protection of the present invention.
[0064] Figure 1 The flowchart of a method for dynamic power supply management of a passive optical network unit applicable to an embodiment of the present invention is schematically shown.
[0065] See also Figure 1 The embodiment of the present invention provides a method for dynamic power supply management of a passive optical network unit, the method comprising the steps of:
[0066] S1: Get the power of the power adapter of the passive optical network unit;
[0067] Exemplarily, the step of obtaining the power adapter power of the passive optical network unit includes the following steps:
[0068] Obtaining power values corresponding to each power adapter to be connected to the passive optical network unit;
[0069] Summarize and calculate the power values and obtain a total power value;
[0070] The total power value is used as the power adapter power.
[0071] In an embodiment of the present application, multiple power adapters are connected to the passive optical network unit. These power adapters may be the same or different, so it is necessary to obtain the respective power on each power adapter and aggregate all the powers to obtain the total power value, which is the power of the power adapter.
[0072] S2: Determine whether the passive optical network unit is connected to a power adapter;
[0073] Exemplarily, the determining whether the passive optical network unit is connected to a power adapter comprises the steps of:
[0074] Detecting an interface signal of the passive optical network unit;
[0075] Acquire an access signal of an interface of the passive optical network unit when the passive optical network unit is connected to the power adapter;
[0076] Determining whether the interface signal conforms to the access signal;
[0077] If so, determining that the passive optical network unit is connected to the power adapter;
[0078] If not, it is determined that the passive optical network unit is not connected to the power adapter.
[0079] In an embodiment of the present application, when the passive optical network unit is connected to a power adapter, the interface generates an access signal (such as the initial signal 0 changes to 1 to indicate that the power adapter is connected), and whether the interface is connected to the power adapter can be determined by judging the change of the access signal.
[0080] S3: If yes, calculate the maximum power supply power of the passive optical network unit;
[0081] Exemplarily, the calculating the maximum power supply power of the passive optical network unit comprises the steps of:
[0082] Obtaining the power of the power adapter;
[0083] Obtaining the full load power of the optical network unit on the passive optical network unit;
[0084] The maximum power supply power is obtained by subtracting the full load power from the power adapter power.
[0085] In an embodiment of the present application, if the power of the power adapter is calculated to be 150W, and the measured full-load power of the optical network unit on the passive optical network unit is 20W, then the power adapter power is subtracted from the full-load power to obtain a maximum power supply power of 130W; if the power adapter power is calculated to be 250W, and the measured full-load power of the optical network unit on the passive optical network unit is 20W, then the power adapter power is subtracted from the full-load power to obtain a maximum power supply power of 230W; the maximum power supply power of 130W or the maximum power supply power of 230W is written to the storage unit of the passive optical network unit.
[0086] S4: If not, return to the step of obtaining the power adapter power of the passive optical network unit;
[0087] In the embodiment of the present application, if the passive optical network unit is not connected to the power adapter, the process returns to step S1.
[0088] S5: Obtaining the priority of the powered device on the passive optical network unit;
[0089] Exemplarily, the obtaining the priority of the powered device on the passive optical network unit comprises the steps of:
[0090] Obtaining an interface to which the powered device is connected on the passive optical network unit;
[0091] Obtaining the priority level of the interface;
[0092] The priority level is used as the priority of the powered device connected to the interface.
[0093] In an embodiment of the present application, each interface on the passive optical network unit will be pre-configured with a priority level. When the interface is connected to a powered device, the passive optical network unit will charge the powered device. When the passive optical network unit cannot meet the charging needs of all powered devices, in order to sort the charging priorities of a large number of powered devices, it is possible to consider directly using the priority level of each interface on the passive optical network unit as the priority level of the powered device connected to the interface. If the priority level of the interface is high, the powered device in the interface will be charged first. Otherwise, the powered device in the interface will be charged in a later order.
[0094] S6: Obtaining the requested power of the powered device;
[0095] Exemplarily, the obtaining the requested power of the powered device comprises the steps of:
[0096] Obtaining requested power values corresponding to each powered device to be connected to the passive optical network unit;
[0097] Summarizing and calculating the requested power values and obtaining a total requested power value;
[0098] The total requested power value is used as the requested power.
[0099] In the embodiment of the present application, multiple powered devices are connected to the passive optical network unit, and these powered devices may be the same or different, so it is necessary to obtain the respective requested power value on each powered device, and to aggregate all the requested power values to obtain the total requested power value, which is the requested power. The requested power represents the power value that all powered devices need to obtain from the passive optical network unit.
[0100] S7: Allocate power supply to the powered device according to the maximum power supply, the requested power and the priority.
[0101] Exemplarily, the allocating power supply to the powered device according to the maximum power supply, the requested power and the priority comprises the steps of:
[0102] sorting all the powered devices in descending order according to the priority;
[0103] Determining whether the maximum power supply is greater than the requested power;
[0104] If so, allocating power to all the powered devices in the sequence;
[0105] If not, the last powered device in the sequence is removed, and power is allocated to all remaining powered devices in the sequence, and the process returns to the step of determining whether the maximum power supply is greater than the requested power.
[0106] In an embodiment of the present application, the control module on the passive optical network unit reads the current maximum allocable power supply power X from the storage module, and the control module detects whether there is a powered device connected to the interface. If there is a powered device connected to the interface, the control module calculates the requested power Y of all powered devices and determines whether Y is less than or equal to X. If so, it means that the passive optical network unit can power all powered devices. At this time, the control module can directly charge all powered devices with the passive optical network unit; if Y is greater than X, it means that the passive optical network unit cannot power all powered devices. At this time, the powered device with the lowest priority is selected to remove it from the charging sequence, and all remaining powered devices are powered, and then the step of determining whether the maximum power supply power is greater than the requested power is entered again.
[0107] Exemplarily, the allocating power to all the powered devices in the sequence comprises the steps of:
[0108] Obtaining the negotiation levels of all the powered devices;
[0109] Get the maximum power supply corresponding to each negotiation level;
[0110] Obtaining actual power consumption of each of the powered devices;
[0111] supplying power to all the powered devices according to the actual power consumption;
[0112] Calculating the surplus power between the maximum power supply power and the actual power consumption corresponding to all the powered devices;
[0113] All of the surplus power is recovered.
[0114] In the embodiment of the present application, after the powered device is connected to the interface, the interface will negotiate a level with the powered device, and the level is used to indicate the power range of the power supplied to the powered device through the interface, for example: if the negotiation level is level 1, the power range of the power supplied to the powered device by the interface is 0-20W; if the negotiation level is level 2, the power range of the power supplied to the powered device by the interface is 20-40W; if the negotiation level is level 3, the power range of the power supplied to the powered device by the interface is 40-60W. Therefore, each negotiation level will correspond to a maximum power supply power, for example, respectively: 20W, 40W, 60W. In order to ensure that the powered device can be adequately powered, the interface will supply power to the powered device according to the maximum power supply power. However, in reality, the actual power consumption of the powered device may be lower than the maximum power supply power. Therefore, there will be a power difference between the maximum power supply power and the actual power consumption, which is the surplus power. That is, each interface may have a surplus power. In order to save power, all surplus power needs to be recovered to power other powered devices.
[0115] like Figure 2 The present application provides a passive optical network unit dynamic power supply management device, comprising:
[0116] A power acquisition module 10, used to acquire the power adapter power of the passive optical network unit;
[0117] A judging module 20, used to judge whether the passive optical network unit is connected to a power adapter;
[0118] An execution module 30, configured to execute a preset operation according to the result of the judgment module;
[0119] A priority acquisition module 40, used to acquire the priority of the powered device on the passive optical network unit;
[0120] A requested power acquisition module 50, used to acquire the requested power of the powered device;
[0121] A power distribution module 60, configured to distribute power to the powered device according to the maximum power, the requested power and the priority;
[0122] When the result of the judgment module 20 is yes, the execution module 30 calculates the maximum power supply power of the passive optical network unit; when the result of the judgment module 20 is no, the execution module 30 returns the power adapter power of the passive optical network unit.
[0123] A passive optical network unit dynamic power supply management device provided in the present application can execute a passive optical network unit dynamic power supply management method provided in the above steps.
[0124] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.
[0125] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 100 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0126] like Figure 3 As shown, the electronic device 100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage device 108 to a random access memory (RAM) 103. In the RAM 103, various programs and data required for the operation of the electronic device 100 are also stored. The processing device 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0127] Typically, the following devices may be connected to the I / O interface 105: an input device 106 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 109. The communication device 109 may allow the electronic device 100 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 100 having various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0128] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 109, or installed from the storage device 108, or installed from the ROM 102. When the computer program is executed by the processing device 101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0129] Reference below Figure 4 , which shows a structural schematic diagram of a computer-readable storage medium suitable for implementing an embodiment of the present disclosure, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it can implement the dynamic power supply management method for a passive optical network unit as described in any of the above.
[0130] The present application also provides a computer program product, which includes a computer program / computer executable instructions, and when the computer program / computer executable instructions are executed by a processor of an electronic device, the steps of any of the above-mentioned methods for dynamic power supply management of passive optical network units are implemented.
[0131] A passive optical network unit dynamic power supply management method, device and storage medium provided in the present application can effectively improve the utilization rate of the power adapter, can supply power to more powered devices, and improve economic benefits.
[0132] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0133] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for dynamic power supply management of a passive optical network unit, characterized in that: The method comprises the steps of: Obtain the power adapter power of the passive optical network unit; Determining whether the passive optical network unit is connected to a power adapter; If yes, calculating the maximum power supply power of the passive optical network unit; If not, returning to the step of obtaining the power adapter power of the passive optical network unit; Obtaining the priority of the powered device on the passive optical network unit; Obtaining a requested power of the powered device; The power supply is allocated to the powered device according to the maximum power supply, the requested power and the priority.
2. The method for dynamic power supply management of a passive optical network unit according to claim 1, characterized in that: The method of obtaining the power adapter power of the passive optical network unit comprises the steps of: Obtaining power values corresponding to each power adapter to be connected to the passive optical network unit; Summarize and calculate the power values and obtain a total power value; The total power value is used as the power adapter power.
3. The method for dynamic power supply management of a passive optical network unit according to claim 1, characterized in that: The step of determining whether the passive optical network unit is connected to a power adapter comprises the following steps: Detecting an interface signal of the passive optical network unit; Acquire an access signal of an interface of the passive optical network unit when the passive optical network unit is connected to the power adapter; Determining whether the interface signal conforms to the access signal; If so, determining that the passive optical network unit is connected to the power adapter; If not, it is determined that the passive optical network unit is not connected to the power adapter.
4. The method for dynamic power supply management of a passive optical network unit according to claim 1, characterized in that: The step of calculating the maximum power supply power of the passive optical network unit comprises the following steps: Obtaining the power of the power adapter; Obtaining the full load power of the optical network unit on the passive optical network unit; The maximum power supply power is obtained by subtracting the full load power from the power adapter power.
5. The method for dynamic power supply management of a passive optical network unit according to claim 1, characterized in that: The obtaining of the requested power of the powered device comprises the steps of: Obtaining requested power values corresponding to each powered device to be connected to the passive optical network unit; Summarizing and calculating the requested power values and obtaining a total requested power value; The total requested power value is used as the requested power.
6. The method for dynamic power supply management of a passive optical network unit according to claim 1, characterized in that: The allocating power supply to the powered device according to the maximum power supply, the requested power and the priority comprises the following steps: sorting all the powered devices in descending order according to the priority; Determining whether the maximum power supply is greater than the requested power; If so, allocating power to all the powered devices in the sequence; If not, the last powered device in the sequence is removed, and power is allocated to all remaining powered devices in the sequence, and the process returns to the step of determining whether the maximum power supply is greater than the requested power.
7. The method for dynamic power supply management of a passive optical network unit according to claim 6, characterized in that: The step of allocating power to all powered devices in the sequence comprises the following steps: Obtaining the negotiation levels of all the powered devices; Get the maximum power supply corresponding to each negotiation level; Obtaining actual power consumption of each of the powered devices; supplying power to all the powered devices according to the actual power consumption; Calculating the surplus power between the maximum power supply power and the actual power consumption corresponding to all the powered devices; All of the surplus power is recovered.
8. A dynamic power supply management device for a passive optical network unit, characterized in that: include: A power acquisition module, used to acquire the power of the power adapter of the passive optical network unit; A judging module, used to judge whether the passive optical network unit is connected to a power adapter; An execution module, used to execute a preset operation according to the result of the judgment module; A priority acquisition module, used to obtain the priority of the powered device on the passive optical network unit; A requested power acquisition module, used to acquire the requested power of the powered device; a power distribution module, configured to distribute power to the powered device according to the maximum power, the requested power and the priority; Wherein, when the result of the judgment module is yes, the execution module calculates the maximum power supply power of the passive optical network unit; When the result of the judging module is no, the executing module returns the step of obtaining the power adapter power of the passive optical network unit.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.