Power supply method, power supply device, electronic equipment, readable storage medium
By determining the total power consumption of the optical modules in the power supply equipment and modifying the protection threshold of the power supply modules, the protection problem of the power supply equipment under short circuit or micro short circuit conditions is solved, timely protection of the optical modules is achieved, and power supply reliability is improved.
Patent Information
- Application Number
- CN202211645712.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-12-19
AI Technical Summary
In the existing technology, the power supply module of the power supply equipment is designed according to the maximum power consumption, and it cannot provide effective and timely protection in the event of a short circuit or micro short circuit in the optical module.
By determining the total power consumption of all optical modules in use within the power supply equipment, the protection threshold of the power supply module is modified to match the total power consumption of the optical modules, thereby achieving timely protection of the optical modules.
This improves the reliability of power supply equipment for optical modules, ensuring timely response in the event of a short circuit or micro-short circuit, and preventing equipment damage.
Smart Images

Figure CN115988351B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power supply technology, and in particular to a power supply method, power supply device, electronic device, and readable storage medium. Background Technology
[0002] Optical modules are optoelectronic devices that perform photoelectric and electro-optical conversion. They are one of the core components in optical communication and are widely used in power supply equipment such as servers, switches, wireless base station equipment, and routers in various network architectures.
[0003] When using an optical module, it needs to be plugged into the port of a power supply device such as a server, switch, wireless base station equipment, or router, and then the power supply device supplies power to the optical module.
[0004] During the power supply process for optical modules, the power supply module is designed based on the maximum power consumption of the power supply equipment, meaning it's designed for the scenario where optical modules are inserted into all ports. However, in practical applications, optical modules are not always inserted into all ports simultaneously. If optical modules are not inserted into all ports at the same time, because the power supply module is designed based on the maximum power consumption of the power supply equipment, it may not be able to provide effective and timely protection in the event of a short circuit or micro-short circuit in the optical module. Summary of the Invention
[0005] This invention provides a power supply method aimed at solving the problem in the prior art where, during the process of power supply equipment supplying power to optical modules, the power supply module of the power supply equipment is designed according to the maximum power consumption of the power supply equipment, and in the event of a short circuit or micro-short circuit in the optical module, the power supply module may not be able to provide effective and timely protection.
[0006] In a first aspect, the present invention provides a power supply method applied to a power supply device, the power supply device including a plurality of ports into which an optical module can be inserted, the method comprising the following steps:
[0007] At the first moment, determine the maximum power consumption of each optical module in the power supply equipment under all operating conditions;
[0008] The maximum power consumption of all optical modules at the first moment is summed to obtain the total power consumption of all optical modules in the power supply device in the first moment when they are in use.
[0009] The protection threshold of the power supply module of the power supply equipment is modified according to the total power consumption. The modified protection threshold is used to protect all optical modules and the power supply equipment in use in the event of a short circuit or micro-short circuit in all optical modules in use at a second time.
[0010] In this invention, by determining the total power consumption of all optical modules in use, the protection threshold of the power supply module of the power supply equipment is modified. In the event of a short circuit or micro-short circuit in the optical module, since the modified protection threshold matches the total power consumption of all optical modules in use in the power supply equipment, the power supply module can perform a timely response operation, thereby providing effective and timely protection for the power supply equipment and the optical modules, and improving the reliability of the power supply equipment to the optical modules.
[0011] Optionally, before determining the maximum power consumption of each optical module in the power supply equipment under all operating conditions at the first moment, the method further includes:
[0012] At the first moment, the usage status signal of the optical module is identified by a complex programmable logic device to determine all optical modules in the power supply equipment that are in use at the first moment.
[0013] Optionally, determining the maximum power consumption of each optical module in the power supply equipment under all operating conditions at the first moment includes:
[0014] The baseboard management controller receives optical module information transmitted by complex programmable logic devices through a low pin count bus. The optical module information includes information about all optical modules in the power supply device in use at the first moment.
[0015] The baseboard management controller uses the system management bus to query all optical modules in the power supply equipment that are in use, in order to determine the model of each optical module in the power supply equipment that is in use.
[0016] The baseboard management controller uses the model number of each optical module in the power supply equipment under all operating conditions to query the optical module information table to determine the maximum power consumption of each optical module in the power supply equipment under all operating conditions. The optical module information table contains the model number of the optical module and the maximum power consumption of the optical module, and the model number of the optical module corresponds one-to-one with the maximum power consumption of the optical module.
[0017] Optionally, summing the maximum power consumption of all optical modules at the first moment to obtain the total power consumption of all optical modules in the power supply device in use at the first moment includes:
[0018] The baseboard management controller sums up the maximum power consumption of all optical modules in the power supply device in use at the first moment to obtain the total power consumption of all optical modules in the power supply device in use at the first moment.
[0019] Optionally, modifying the protection threshold of the power supply module of the power supply equipment according to the total power consumption includes:
[0020] The modified protection threshold is calculated and stored based on the total power consumption using the baseboard management controller;
[0021] The protection threshold of the power supply module of the power supply device is modified via the power management bus using the baseboard management controller.
[0022] Optionally, the method further includes:
[0023] During the process of the power supply equipment supplying power to the optical modules, the maximum power consumption of each optical module in the power supply equipment under the use state is determined at the next moment according to a preset period; the next moment is the moment after one period of the first moment; the preset period is 5 seconds to 10 seconds.
[0024] Optionally, the protection thresholds include: a short-circuit protection threshold, and / or an overcurrent protection threshold.
[0025] A second aspect of the present invention provides a power supply device for use in a power supply equipment, the power supply equipment including a plurality of ports into which an optical module can be inserted, the device comprising:
[0026] The maximum power consumption determination module is used to determine the maximum power consumption of each optical module in the power supply equipment under all operating conditions at a first moment.
[0027] The total power consumption determination module is used to sum up the maximum power consumption of all the optical modules at the first moment to obtain the total power consumption of all the optical modules in the power supply equipment in the first moment when they are in use.
[0028] The protection threshold modification module is used to modify the protection threshold of the power supply module of the power supply equipment according to the total power consumption. The modified protection threshold is used to protect all optical modules and the power supply equipment in use at a second time when all optical modules in use experience a short circuit or micro-short circuit.
[0029] A third aspect of the present invention provides an electronic device including a processor and a memory, the memory storing a program executable on the processor, the program being executed by the processor to implement the steps of the power supply method described in the present invention.
[0030] A fourth aspect of the present invention provides a readable storage medium on which a program is stored, the program being executed by a processor to implement the steps of the power supply method described in the present invention. Attached Figure Description
[0031] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 A flowchart illustrating the steps of a power supply method according to an embodiment of the present invention is shown;
[0033] Figure 2 A circuit diagram of a power supply device in the prior art is shown;
[0034] Figure 3 An embodiment of the present invention is shown;
[0035] Figure 4 A circuit diagram of a power supply device applying a power supply method according to an embodiment of the present invention is shown.
[0036] Explanation of reference numerals in the attached figures:
[0037] 11-Power module, 12-Optical module, 13-Baseboard management controller, 14-Complex programmable logic device, 15-Power management bus, 16-Low pin count bus, 17-System management bus. Detailed Implementation
[0038] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0039] The terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects, not to describe a specific order or sequence. Furthermore, the objects distinguished by "first," "second," etc., are usually of the same class, and the number of objects is not limited; for example, the second object can be one.
[0040] Reference Figure 1 , Figure 1 This diagram illustrates a power supply method according to an embodiment of the present invention. The power supply method is applied to a power supply device, which includes several ports into which an optical module 12 can be inserted. The method includes the following steps:
[0041] Step 101: At the first moment, determine the maximum power consumption of each optical module in the power supply equipment under all operating conditions.
[0042] Step 102: Sum the maximum power consumption of all optical modules at the first moment to obtain the total power consumption of all optical modules in the power supply device in use at the first moment.
[0043] Step 103: Modify the protection threshold of the power supply module of the power supply equipment according to the total power consumption. The modified protection threshold is used to protect all optical modules and the power supply equipment in use when all optical modules in use experience a short circuit or micro-short circuit at a second time.
[0044] Both a micro-short circuit and a short circuit refer to a circuit or a portion of a circuit being shorted. If the two ends of a load or power supply are connected together by a wire, it is called a short circuit or micro-short circuit. During a short circuit or micro-short circuit, the current supplied by the power supply will be much larger than the current supplied during a continuous circuit. Short circuits or micro-short circuits are generally not allowed; if they occur, they can severely damage the power supply or equipment. The difference between a short circuit and a micro-short circuit is that, compared to a short circuit, a micro-short circuit refers to a tiny short circuit phenomenon. Typically, the resistance of a micro-short circuit is greater than that of a short circuit, and its impact is much smaller than that of a short circuit.
[0045] Figure 2 A circuit diagram of a power supply device in the prior art is shown. The widened arrow between the power module 11 and the optical module 12 indicates that the power module 11 supplies power to the optical module 12. The inventors discovered that during the use of the optical module 12, it is necessary to insert the optical module 12 into a port of the power supply device (not shown in the figure), and then the power supply device supplies power to the optical module 12. During the process of the power supply device supplying power to the optical module 12, the power module 11 of the power supply device is designed according to the maximum power consumption of the power supply device. That is, it is designed according to the case that all ports of the power supply device are plugged into the optical module 12. If the optical module 12 is not plugged into all ports at the same time, since the power module 11 of the power supply device is designed according to the maximum power consumption of the power supply device, the power module 11 may not be able to provide effective and timely protection in the event of a short circuit or micro-short circuit in the optical module 12. In this invention, by determining the total power consumption of all optical modules 12 in use, the protection threshold of the power supply module 11 of the power supply equipment is modified. Here, all optical modules 12 in use at the second moment are the same as all optical modules 12 in use in the power supply equipment at the first moment. In the event of a short circuit or micro-short circuit in an optical module 12, since the modified protection threshold matches the total power consumption of all optical modules 12 in use in the power supply equipment, the power supply module 11 can perform a timely response operation, thereby effectively and timely protecting the power supply equipment and the optical modules 12, and improving the reliability of the power supply equipment to the optical modules 12.
[0046] For example, at 8:45:30 AM on October 9, 2022, the maximum power consumption of each optical module 12 in the power supply equipment under operating conditions is determined. The maximum power consumption of all optical modules 12 at the first moment is summed to obtain the total power consumption of all optical modules 12 in the power supply equipment under operating conditions at the first moment. Based on the total power consumption, the protection threshold of the power supply module 11 of the power supply equipment is modified. The modified protection threshold is used to protect all optical modules 12 in the operating conditions and the power supply equipment in the second moment, in the event of a short circuit or micro-short circuit in all optical modules 12 under operating conditions. The second moment can be 8:45:40 AM on October 9, 2022, in the event of a short circuit or micro-short circuit in all optical modules 12 under operating conditions, and the power supply module 11 of the power supply equipment protects all optical modules 12 in the operating conditions and the power supply equipment.
[0047] Optionally, before determining the maximum power consumption of each optical module 12 in all its operating states in the power supply equipment at the first moment, the method further includes: identifying the operating state signal of the optical module 12 through the complex programmable logic device 14 at the first moment to determine each optical module 12 in all its operating states in the power supply equipment at the first moment.
[0048] A Complex Programmable Logic Device (CPLD) is a digital integrated circuit whose logic functions are customized by the user according to their needs. The CPLD identifies the usage status signal of an optical module 12. Specifically, when the CPLD identifies a usage status signal for an optical module 12, it determines that the optical module 12 is inserted into a port of a power supply device such as a switch, and that the optical module 12 is in use. Conversely, when the CPLD does not identify a usage status signal for an optical module 12, it determines that no optical module 12 is in use. For example, at 8:45:30 AM on October 9, 2022, the CPLD identified the usage status signals for three optical modules 12 (P1, P2, and P3), determining that these three optical modules were inserted into ports of a power supply device such as a switch, and therefore, that all three optical modules were in use. For example, at 10:45:10 on October 12, 2022, the usage status signals of two optical modules 12, P2 and P4, were identified by the complex programmable logic device 14, confirming that the two optical modules 12 were inserted into the ports of power supply equipment such as a switch, and thus confirming that the two optical modules 12 were in use. Since the power supply equipment that can use the optical modules 12, such as a switch, usually has a complex programmable logic device 14, there is no need to add an additional complex programmable logic device 14, thereby avoiding any increase in space and cost.
[0049] Optionally, at the first moment, determining the maximum power consumption of each optical module 12 in all its operating states in the power supply equipment includes: receiving optical module 12 information transmitted by the complex programmable logic device 14 through the low pin count bus 16 using the baseboard management controller 13; the optical module 12 information includes information of each optical module 12 in all its operating states in the power supply equipment at the first moment; querying each optical module 12 in all its operating states in the power supply equipment through the system management bus 17 using the baseboard management controller 13 to determine the model of each optical module 12 in all its operating states in the power supply equipment; and querying the optical module information table according to the model of each optical module 12 in all its operating states in the power supply equipment to determine the maximum power consumption of each optical module 12 in all its operating states in the power supply equipment. The optical module information table contains the model of the optical module 12 and the maximum power consumption of the optical module 12, and the model of the optical module 12 corresponds one-to-one with the maximum power consumption of the optical module 12.
[0050] The Baseboard Management Controller (BMC) 13 is a remote management controller for the server, enabling it to perform firmware upgrades, monitor equipment, and perform other operations even when the machine is not powered on. Since power supply equipment using optical modules 12, such as switches, typically already has a Baseboard Management Controller 13, there is no need to add an additional one, thus saving space and cost. The Low Pin Count Bus (LPC) 16 is used in PC-compatible machines to connect low-bandwidth devices and legacy systems to the central processing unit (CPU). By receiving usage status information of the optical modules 12 in the power supply equipment from the Complex Programmable Logic Device (CPLD) 14 via the LPC 16, the Baseboard Management Controller 13 can determine the usage status of each optical module 12. The Baseboard Management Controller 13 and the CPLD 14 communicate the usage status information of the optical modules 12 in the power supply equipment via the LPC 16, which is convenient and efficient. The System Management Bus (SMBus) 17 is used for low-speed communication in mobile and desktop PC systems. It controls devices on the motherboard and collects relevant information via a low-cost and powerful two-wire bus. After the baseboard management controller 13 identifies each optical module 12 in use, it queries the system management bus 17 to identify the model of each module. Specifically, the baseboard management controller 13 identifies the model of each optical module 12 by querying its registers. The registers of each optical module 12 store its model information, allowing for convenient and quick identification. After identifying the model of each optical module 12, the baseboard management controller 13 looks up the maximum power consumption of each module in use in the optical module information table based on its model. Power consumption is a metric for all electrical devices, referring to the amount of energy consumed per unit time, measured in watts (W). Since the optical module information table is stored in the baseboard management controller 13, the baseboard management controller 13 can quickly find the corresponding power consumption of the optical module 12 based on its model number by searching the stored optical module information table. The model number and maximum power consumption of the optical module 12 are stored one-to-one in the information table in the baseboard management controller 13, making the search more convenient.
[0051] For example, at 10:45:20 on October 12, 2022, the usage status signals of two optical modules 12, P1 and P4, are identified by the complex programmable logic device 14, confirming that the two optical modules 12 are inserted into the ports of power supply equipment such as a switch, and thus confirming that the two optical modules 12 are in use. The baseboard management controller 13 receives the information confirming the usage status of the two optical modules 12 transmitted by the complex programmable logic device 14 through the low pin count bus 16. After confirming the usage status of the two optical modules 12, the baseboard management controller 13 identifies the model of the two optical modules 12 by querying their registers. After identifying the model of the two optical modules 12, the baseboard management controller 13 looks up the maximum power consumption corresponding to the model of the two optical modules 12 in the optical module information table.
[0052] Optionally, the maximum power consumption of all optical modules 12 in the first moment is summed to obtain the total power consumption of all optical modules 12 in the power supply device in the first moment when they are in use. This includes summing the maximum power consumption of all optical modules 12 in the power supply device in the first moment when they are in use through the baseboard management controller 13.
[0053] The baseboard management controller 13 sums the maximum power consumption of all optical modules 12 in use in the power supply equipment at the first moment, thereby obtaining the total power consumption of all optical modules 12 in use in the power supply equipment at the first moment. For example, at 8:45:15 on October 9, 2022, the complex programmable logic device 14 identifies the usage status signals of optical modules P2 and P4, determines that optical modules P2 and P4 are inserted into the ports of the power supply equipment such as a switch, and determines that optical modules P2 and P4 are in use. The baseboard management controller 13 receives information from the complex programmable logic device 14 via the low pin count bus 16, which determines the usage status of two optical modules 12, P2 and P4. The baseboard management controller 13 determines the usage status of the two optical modules 12, identifies the model of the two optical modules 12 by querying the registers of the two optical modules 12, and then looks up the maximum power consumption corresponding to the model of the two optical modules 12 in the optical module information table. It finds that the maximum power consumption corresponding to the model of P2 is 3.5W and the maximum power consumption corresponding to the model of P4 is 12W. The baseboard management controller 13 sums these two maximum power consumptions and obtains the total power consumption of 15.5W at 8:45:15 on October 9, 2022. For example, at 9:50:15 on October 9, 2022, the usage status signals of the three optical modules 12, P1, P5, and P6, were identified by the complex programmable logic device 14, which determined that the three optical modules 12 were inserted into the ports of power supply equipment such as switches, and that the three optical modules 12 were in use. The baseboard management controller 13 receives information from the complex programmable logic device 14 via the low pin count bus 16, determining the usage status of three optical modules 12: P1, P5, and P6. The baseboard management controller 13 then identifies the model of each optical module 12 by querying its registers. Based on the model, it searches the optical module information table for the maximum power consumption corresponding to each module. The maximum power consumption is found to be 12W for P1, 18W for P5, and 22W for P6. The baseboard management controller 13 sums these two maximum power consumption values, resulting in a total power consumption of 52W at 9:50:15 AM on October 9, 2022.
[0054] Since power supply equipment using optical module 12, such as switches, typically has a baseboard management controller 13, there is no need to add an additional baseboard management controller 13, thus avoiding additional space and cost.
[0055] Optionally, modifying the protection threshold of the power module 11 of the power supply device according to the total power consumption includes: using the baseboard management controller 13 to calculate and store the modified protection threshold according to the total power consumption; and using the baseboard management controller 13 to modify the protection threshold of the power module 11 of the power supply device through the power management bus 15.
[0056] The Power Management Bus (PMBus) 15 is an open standard digital power management protocol that facilitates communication with power converters or other devices by defining transmission and physical interfaces as well as command languages. The baseboard management controller 13 and the power module 11 communicate via the Power Management Bus 15, making operation more convenient and faster.
[0057] After calculating the modified protection threshold, the modified protection threshold is stored using the baseboard management controller 13. Then, the protection threshold of the power module 11 is modified to match the modified protection threshold, so that the modified protection threshold of the power module 11 matches the total power consumption of all optical modules 12 in use in the power supply equipment. Thus, in the event of a short circuit or micro-short circuit in the optical module 12, the power module 11 can perform a timely response operation based on the stored modified protection threshold, providing effective and timely protection for the power supply equipment and the optical module 12.
[0058] For example, the baseboard management controller 13 calculates the modified protection threshold based on 1.2 times the total power consumption of all optical modules 12 in use in the power supply equipment. At 9:50:15 on August 9, 2022, the complex programmable logic device 14 identifies the usage status signals of the three optical modules 12, P2, P4, and P6, and determines that the three optical modules 12 are inserted into the ports of the power supply equipment, such as a switch, and thus determines that the three optical modules 12 are in use. The baseboard management controller 13 receives information from the complex programmable logic device 14 via the low pin count bus 16, determining the usage status of three optical modules 12: P2, P4, and P6. The baseboard management controller 13 identifies the model of each optical module 12 by querying its registers. Based on this model, it then searches the optical module information table for the maximum power consumption corresponding to each module. The maximum power consumption is found to be 12W for P2, 18W for P4, and 22W for P6. The baseboard management controller 13 sums the two maximum power consumptions to obtain a total power consumption of 52W at 9:50:15 on August 9, 2022. 1.2 times the total power consumption is 62.4W. The baseboard management controller 13 calculates the modified protection threshold based on 62.4W, stores the modified protection threshold, and then modifies the protection threshold of the power module 11 to the modified protection threshold. This makes the modified protection threshold of the power module 11 match the total power consumption of all optical modules 12 in use in the power supply equipment. Thus, in the event of a short circuit or micro-short circuit in the optical module 12, the power module 11 can perform timely response operations based on the stored modified protection threshold, providing effective and timely protection for the power supply equipment and the optical module 12.
[0059] Optionally, the power supply method further includes: during the process of power supply equipment supplying power to optical module 12, according to a preset period, at the next moment, determining the maximum power consumption of each optical module 12 in the power supply equipment in the use state; the next moment is the moment one cycle after the first moment; the preset period is 5 seconds to 10 seconds.
[0060] For example, the preset period can be 5 seconds, 6 seconds, 7 seconds, 8 seconds, 9 seconds, or 10 seconds. The shorter the interval between modifications to the protection threshold of the power module 11, the more promptly the protection threshold can be adjusted based on the usage of the optical modules 12 in the power supply equipment. This ensures that the modified protection threshold of the power module 11 matches the total power consumption of all optical modules 12 in use within the power supply equipment. Consequently, in the event of a short circuit or micro-short circuit in the optical module 12, the power module 11 can respond promptly based on the stored modified protection threshold, providing effective and timely protection for both the power supply equipment and the optical modules 12. Furthermore, an interval of 5 to 10 seconds prevents excessively frequent operations when the interval is less than 5 seconds, which would require transmitting a series of information and consuming the memory of the power supply equipment, such as the switch.
[0061] For example, with a preset period of 5 seconds, at 8:45:15 AM on October 9, 2022, the maximum power consumption of each optical module 12 in the power supply equipment under operating conditions is determined; the maximum power consumption of all optical modules 12 in the first moment is summed to obtain the total power consumption of all optical modules 12 in the power supply equipment under operating conditions at 8:45:15 AM on October 9, 2022; the protection threshold of the power supply module 11 of the power supply equipment is modified according to the total power consumption. The modified protection threshold is used to protect all optical modules 12 in the second moment, in the event of a short circuit or micro-short circuit in all optical modules 12 under operating conditions, as well as the power supply equipment. The second moment can be any time between 8:45:15 AM and 8:45:21 AM on October 9, 2022. At 8:45:21 AM on October 9, 2022, the maximum power consumption of all optical modules 12 in the power supply equipment under operating conditions is determined again. The maximum power consumption of all optical modules 12 at the first moment is summed to obtain the total power consumption of all optical modules 12 in the power supply equipment under operating conditions at 8:45:21 AM on October 9, 2022. The protection threshold of the power supply module 11 of the power supply equipment is modified according to the total power consumption. The modified protection threshold is used to protect all optical modules 12 and the power supply equipment under operating conditions in the second moment if a short circuit or micro-short circuit occurs in all optical modules 12 under operating conditions. The second moment can be any time between 8:45:21 AM and 8:45:26 AM on October 9, 2022.
[0062] For example, with a preset period of 10 seconds, at 8:45:15 AM on October 9, 2022, the maximum power consumption of each optical module 12 in the power supply equipment under operating conditions is determined; the maximum power consumption of all optical modules 12 in the first moment is summed to obtain the total power consumption of all optical modules 12 in the power supply equipment under operating conditions at 8:45:15 AM on October 9, 2022; the protection threshold of the power supply module 11 of the power supply equipment is modified according to the total power consumption. The modified protection threshold is used to protect all optical modules 12 in the second moment, in the event of a short circuit or micro-short circuit in all optical modules 12 under operating conditions, as well as the power supply equipment. The second moment can be any time between 8:45:15 AM and 8:45:26 AM on October 9, 2022. At 8:45:26 AM on October 9, 2022, the maximum power consumption of all optical modules 12 in the power supply equipment under operating conditions is determined again. The maximum power consumption of all optical modules 12 at the first moment is summed to obtain the total power consumption of all optical modules 12 in the power supply equipment under operating conditions at 8:45:26 AM on October 9, 2022. The protection threshold of the power supply module 11 of the power supply equipment is modified according to the total power consumption. The modified protection threshold is used to protect all optical modules 12 in the operating conditions and the power supply equipment in the second moment if a short circuit or micro-short circuit occurs in all optical modules 12 under operating conditions. The second moment can be any time between 8:45:26 AM and 8:45:37 AM on October 9, 2022.
[0063] Optionally, the protection thresholds include: short-circuit protection thresholds, and / or, overcurrent protection thresholds.
[0064] Short-circuit protection (SCP) protects against short-circuit faults caused by electrical shorting of conductors at unequal potentials in a power supply system. When a short circuit occurs, the short-circuit current can typically be several times, or even tens of times, the normal operating current, generating excessive heat that can lead to insulation damage, equipment burnout, and even electrical fires. The powerful short-circuit current also generates enormous electrodynamic forces, potentially causing mechanical damage to equipment. Furthermore, the voltage at the short-circuit point drops to zero, significantly reducing the surrounding voltage and preventing nearby equipment from operating normally. Therefore, short-circuit faults must be quickly cleared for protection to prevent further escalation. Short-circuit protection circuits generally use a transistor to sample the output voltage and determine whether a short circuit has occurred based on the changes in the output voltage before and after the short circuit. This allows the power module 11 to provide timely and effective protection when a short circuit occurs. The protection threshold can be a short-circuit protection threshold. By determining the optical module 12 in the power supply equipment under the use state, the total power consumption of all optical modules 12 in the power supply equipment under the use state at the first moment is obtained. Then, the short-circuit protection threshold of the power supply module 11 of the power supply equipment is modified according to the total power consumption. At the second moment, the modified short-circuit protection threshold is used to enable the power supply module 11 to protect the optical module 12 and the power supply equipment in the event of a short circuit or micro-short circuit in the optical module 12.
[0065] Overcurrent protection (OCP) is a protection method that activates a protective device when the current exceeds a predetermined maximum value. When the current flowing through the protected component exceeds a pre-set value, the protection device activates and uses a time delay to ensure selective operation, causing the circuit breaker to trip or issuing an alarm signal. The protection threshold can be an overcurrent protection threshold. By determining the optical modules 12 in the power supply equipment under operating conditions, the total power consumption of all optical modules 12 in the power supply equipment under operating conditions is obtained at the first moment. Then, the overcurrent protection threshold of the power supply module 11 of the power supply equipment is modified according to the total power consumption. At the second moment, the modified overcurrent protection threshold is used to protect the optical modules 12 and the power supply equipment in the event of a short circuit or micro-short circuit in the optical modules 12.
[0066] For example, at 8:10:15 on August 7, 2022, the usage status signals of the three optical modules 12, P2, P5, and P6, were identified by the complex programmable logic device 14, which determined that the three optical modules 12 were inserted into the ports of power supply equipment such as switches, and that the three optical modules 12 were in use. The baseboard management controller 13 receives information from the complex programmable logic device 14 via the low pin count bus 16, determining the usage status of three optical modules 12 (P2, P5, and P6). The baseboard management controller 13 identifies the model of each optical module 12 by querying its registers. Based on the model, it then searches the optical module information table for the maximum power consumption corresponding to each module. The maximum power consumption is found to be 12W for P2, 18W for P5, and 22W for P6. This information is then processed by the baseboard management controller 13. The management controller 13 sums the two maximum power consumptions to obtain a total power consumption of 52W at 8:10:15 on August 7, 2022. 1.2 times the total power consumption is 62.4W. After calculating the modified overcurrent protection threshold based on 62.4W, the management controller 13 stores the modified overcurrent protection threshold and then modifies the protection threshold of the power module 11 to the modified overcurrent protection threshold. This makes the modified protection threshold of the power module 11 match the total power consumption of all optical modules 12 in the power supply equipment under use. Thus, in the event of a short circuit or micro-short circuit in the optical module 12, the power module 11 can perform timely response operations based on the stored modified protection threshold, providing effective and timely protection for the power supply equipment and the optical module 12.
[0067] The power supply method provided in this embodiment of the invention can be executed by a power supply device, applied to a power supply equipment. The power supply equipment includes several ports, and optical modules 12 can be inserted into the ports. (Refer to...) Figure 3 , Figure 3 An embodiment of the present invention illustrates a power supply device, comprising:
[0068] The maximum power consumption determination module S100 is used to determine the maximum power consumption of each optical module 12 in the power supply equipment under all operating conditions at the first moment.
[0069] The total power consumption determination module S101 is used to sum up the maximum power consumption of all optical modules 12 at the first moment to obtain the total power consumption of all optical modules 12 in the power supply equipment in the first moment when they are in use.
[0070] The protection threshold modification module S102 is used to modify the protection threshold of the power supply module 11 of the power supply equipment according to the total power consumption. The modified protection threshold is used to protect all optical modules 12 and the power supply equipment in use when all optical modules 12 in use experience a short circuit or micro short circuit at the second moment.
[0071] The inventors discovered that during the use of the optical module 12, it is necessary to insert the optical module 12 into the port of the power supply equipment, and then the power supply equipment supplies power to the optical module 12. During the process of the power supply equipment supplying power to the optical module 12, the power supply module 11 of the power supply equipment is designed according to the maximum power consumption of the power supply equipment. That is, it is designed according to the case that all ports of the power supply equipment are plugged into the optical module 12. If the optical module 12 is not plugged into all ports at the same time, since the power supply module 11 of the power supply equipment is designed according to the maximum power consumption of the power supply equipment, the power supply module 11 may not be able to provide effective and timely protection in the event of a short circuit or micro-short circuit in the optical module 12. In this invention, the maximum power consumption determination module S100 determines the maximum power consumption of each optical module 12 in the power supply equipment under all operating conditions, the total power consumption determination module S101 determines the total power consumption of all optical modules 12 in the power supply equipment under all operating conditions, and the protection threshold modification module S102 modifies the protection threshold of the power supply module 11 of the power supply equipment according to the total power consumption. In the event of a short circuit or micro-short circuit in the optical module 12, since the modified protection threshold matches the total power consumption of all optical modules 12 in the power supply equipment under operating conditions, the power supply module 11 can perform a timely response operation, thereby providing effective and timely protection for the power supply equipment and the optical module 12.
[0072] Optionally, the power supply device also includes a usage status determination module, which is used to identify the usage status signal of the optical module 12 through the complex programmable logic device 14 at a first moment, so as to determine the usage status of each optical module 12 in the power supply device at the first moment.
[0073] Optionally, the maximum power consumption determination module S100 includes an optical module determination unit, which is used to receive optical module 12 information transmitted by the complex programmable logic device 14 through the low pin count bus 16 using the substrate management controller 13. The optical module 12 information includes information of each optical module 12 in the power supply equipment in the first moment when it is in use. The maximum power consumption determination module S100 also includes a model determination unit, which is used to query each optical module 12 in the power supply equipment in the use state through the system management bus 17 using the substrate management controller 13 to determine the model of each optical module 12 in the power supply equipment in the use state. The maximum power consumption determination module S100 also includes a maximum power consumption determination unit, which is used to query the optical module information table according to the model of each optical module 12 in the use state in the power supply equipment using the substrate management controller 13 to determine the maximum power consumption of each optical module 12 in the use state in the power supply equipment. The optical module information table contains the model of the optical module 12 and the maximum power consumption of the optical module 12, and the model of the optical module 12 corresponds one-to-one with the maximum power consumption of the optical module 12.
[0074] Optionally, the total power consumption determination module S101 includes a total power consumption determination unit, which is used to sum the maximum power consumption of all optical modules 12 in the power supply device in the first moment of use through the baseboard management controller 13, so as to obtain the total power consumption of all optical modules 12 in the power supply device in the first moment of use.
[0075] Optionally, the protection threshold modification module S102 includes a protection threshold calculation and storage unit, which is used to calculate and store the modified protection threshold based on the total power consumption using the baseboard management controller 13; the protection threshold modification module S102 also includes a protection threshold modification unit, which is used to modify the protection threshold of the power supply module 11 of the power supply device through the power management bus 15 using the baseboard management controller 13.
[0076] Optionally, the power supply device also includes a periodic module, which is used to determine the maximum power consumption of each optical module 12 in the power supply device in the next moment according to a preset period during the process of power supply device supplying power to optical module 12; the next moment is the moment after one period of the first moment; the preset period is 5 seconds to 10 seconds.
[0077] Optionally, the power supply device also includes a short-circuit protection threshold modification module, which is used to modify the short-circuit protection threshold of the power supply module 11 of the power supply equipment according to the total power consumption. The modified short-circuit protection threshold is used to protect all optical modules 12 and the power supply equipment in use when all optical modules 12 in use experience a short circuit or micro-short circuit at a second time.
[0078] Optionally, the power supply device also includes an overcurrent protection threshold modification module, which is used to modify the overcurrent protection threshold of the power supply module 11 of the power supply equipment according to the total power consumption. The modified overcurrent protection threshold is used to protect all optical modules 12 and the power supply equipment in use when all optical modules 12 in use experience a short circuit or micro short circuit at a second time.
[0079] This invention also provides an electronic device, including a processor and a memory. The memory stores a program that can run on the processor. When the program is executed by the processor, it implements the various steps of the above-described power supply method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0080] This invention also provides a readable storage medium storing a program. When the program is executed by a processor, it implements the various steps of the above power supply method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0081] Reference Figure 4 , Figure 4A circuit diagram of a power supply device applying a power supply method according to an embodiment of the present invention is shown. The power module 11 is connected to the baseboard management controller 13 via a power management bus 15. The complex programmable logic device 14 is connected to the baseboard management controller 13 via a low pin count bus 16. The baseboard management controller 13 is connected to the optical module 12 via a system management bus 17. The broadened arrow between the power module 11 and the optical module 12 indicates that the power module 11 supplies power to the optical module 12. At a first moment, the complex programmable logic device 14 identifies the usage status signal of the optical module 12 to determine all optical modules 12 in the power supply device in use at that moment. The baseboard management controller 13 receives the optical module 12 information transmitted by the complex programmable logic device 14 via the low pin count bus 16. The baseboard management controller 13 queries all optical modules 12 in the power supply device in use via the system management bus 17 to determine the model of each optical module 12 in use. The baseboard management controller 13 queries the optical module information table based on the model of each optical module 12 in use to determine the model of each optical module 12 in the power supply device. The maximum power consumption of each optical module 12 in use is known. The maximum power consumption of all optical modules 12 in use in the power supply equipment at the first moment is summed by the baseboard management controller 13 to obtain the total power consumption of all optical modules 12 in use in the power supply equipment at the first moment. The baseboard management controller 13 calculates and stores the modified protection threshold based on the total power consumption. The baseboard management controller 13 modifies the protection threshold of the power supply module 11 of the power supply equipment through the power management bus 15. The modified protection threshold is used to protect all optical modules 12 in use and the power supply equipment at the second moment in the event of a short circuit or micro-short circuit in all optical modules 12 in use.
[0082] It should be noted that the aforementioned apparatus and method can be referenced from each other and can achieve the same or similar effects.
[0083] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential to the embodiments of this application.
[0084] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0085] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0086] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A power supply method characterized by, The application is applied to a power supply device, the power supply device includes several ports, optical modules are inserted into the ports, and the method includes the following steps. At a first time, the maximum power consumption of each optical module in a use state in the power supply device is determined; The maximum power consumption of all optical modules at the first time is summed to obtain the total power consumption of all optical modules in a use state in the power supply device at the first time; According to the total power consumption, the protection threshold of the power supply module of the power supply device is modified, and the modified protection threshold is used to protect all optical modules in a use state and the power supply device in the case that all optical modules in a use state have a short circuit or a micro short circuit at a second time; The method further includes: During the process that the power supply device supplies power to optical modules, at a next time, the maximum power consumption of each optical module in a use state in the power supply device is determined according to a preset period; the next time is a time after a period from the first time; and the preset period is 5 seconds to 10 seconds. According to the use condition of optical modules in the power supply device, the protection threshold of the power supply is adjusted, so that the modified protection threshold of the power supply module matches the total power consumption of all optical modules in a use state in the power supply device.
2. The power supply method according to claim 1, wherein Before the step of determining the maximum power consumption of each optical module in a use state in the power supply device at the first time, the method further includes: At the first time, the use state signal of the optical module is recognized by a complex programmable logic device to determine each optical module in a use state in the power supply device at the first time.
3. The power supply method according to claim 1, wherein The step of determining the maximum power consumption of each optical module in a use state in the power supply device at the first time includes: Optical module information transmitted by a complex programmable logic device through a low-pin-count bus is received by a baseboard management controller, and the optical module information includes information of each optical module in a use state in the power supply device at the first time; Each optical module in a use state in the power supply device is queried by the baseboard management controller through a system management bus to determine the type of each optical module in a use state in the power supply device; According to the type of each optical module in a use state in the power supply device, the baseboard management controller queries in an optical module information table to determine the maximum power consumption of each optical module in a use state in the power supply device, the optical module information table contains the type of the optical module, the maximum power consumption of the optical module, and the type of the optical module corresponds to the maximum power consumption of the optical module.
4. The power supply method according to claim 1, wherein The step of summing the maximum power consumption of all optical modules at the first time to obtain the total power consumption of all optical modules in a use state in the power supply device at the first time includes: The maximum power consumption of all optical modules in a use state in the power supply device at the first time is summed by a baseboard management controller to obtain the total power consumption of all optical modules in a use state in the power supply device at the first time.
5. The power supply method according to claim 1, wherein The protection threshold of the power module of the power supply device is modified according to the total power consumption, and the modified protection threshold is used to protect all the optical modules in use and the power supply device in the case of short circuit or micro-short circuit of all the optical modules in use at a second time. The baseboard management controller is used to calculate and store the modified protection threshold according to the total power consumption. The baseboard management controller is used to modify the protection threshold of the power module of the power supply device through the power management bus.
6. The power supply method according to claim 1, wherein The protection threshold includes a short circuit protection threshold and / or an overcurrent protection threshold.
7. A power supply device, characterized by comprising: The application is applied to a power supply device including a plurality of ports into which optical modules are inserted, and the device includes: A maximum power consumption determination module is configured to determine the maximum power consumption of each optical module in use in the power supply device at a first time. A total power consumption determination module is configured to sum up the maximum power consumption of all the optical modules at the first time to obtain the total power consumption of all the optical modules in use in the power supply device at the first time. A protection threshold modification module is configured to modify the protection threshold of the power module of the power supply device according to the total power consumption, and the modified protection threshold is used to protect all the optical modules in use and the power supply device in the case of short circuit or micro-short circuit of all the optical modules in use at a second time. The power supply device further includes a period module configured to determine the maximum power consumption of each optical module in use in the power supply device at a next time according to a preset period during the process of power supply of the power supply device to the optical modules, the next time is a time after a period of the first time, and the preset period is 5 to 10 seconds. The protection threshold of the power module is modified according to the total power consumption of all the optical modules in use in the power supply device, so that the modified protection threshold of the power module matches the total power consumption of all the optical modules in use in the power supply device.
8. An electronic device, comprising: The program stored in the storage is executed by the processor to realize the steps of the power supply method according to any one of claims 1 to 6.
9. A readable storage medium, characterized by, The program stored in the storage is executed by the processor to realize the steps of the power supply method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Optical module and host apparatus
JP2004266760A