A method for power supply control, a power supply, a device and a storage medium
By acquiring the voltage signal from the power supply end and adjusting the output power at the power consumption end, the problem of stable power supply for PSE equipment within a wide input voltage range is solved, achieving stable output of the power supply under different voltage environments and avoiding random power outages when the equipment is fully loaded.
Patent Information
- Application Number
- CN202310101352.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2043-02-10
AI Technical Summary
PSE equipment may not function properly under wide input voltage ranges in different regions, resulting in unstable power supply to the equipment.
By acquiring the voltage signal from the power supply end, the maximum available power and output power of the power consumption end are determined. When the difference is less than the preset power difference, the output power of the power consumption end is reduced until the difference is greater than or equal to the preset value. The main control module and the power supply equipment management module are used to adjust the voltage and power output to ensure that the equipment is stably powered within a wide input voltage range.
It achieves stable power supply over a wide input voltage range, avoids random power outages at the ports when the device is fully loaded, makes full use of the maximum power available from the power supply, and ensures stable operation of the device.
Smart Images

Figure CN118487499B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power supply technology, and in particular to a method for power supply control, a power supply, a device, and a storage medium. Background Technology
[0002] Power over Ethernet (PoE) refers to a technology that provides DC power to Internet Protocol (IP) based devices (such as IP phones, wireless LAN access points (APs), and network cameras) while transmitting data, without altering the existing Cat.5 Ethernet cabling infrastructure. PoE technology ensures the security of existing structured cabling while maintaining the normal operation of the existing network, minimizing costs. A complete PoE system consists of two parts: power supply equipment (PSE) and powered device (PD).
[0003] However, due to variations in mains voltage ranges across different regions, the nominal mains voltage in China is mostly 220V, 50Hz. However, in some remote areas or certain working scenarios, the nominal mains voltage deviates significantly from the rated value, such as 110V or 100V. The differences between high and low voltage mains voltages are even greater abroad. For example, the rated mains voltage in the Japanese power grid is 100V, while the rated mains voltage in the Indian power grid is 230V with a large fluctuation range. Overall, both domestic and international markets require a power supply with a wide input range to adapt to various application environments. To ensure the product meets the full voltage range, the power supply is designed with a wide input voltage range of 100-240V.
[0004] Therefore, how to enable PSE devices to operate normally under a wide input voltage range has become an urgent technical problem to be solved. Summary of the Invention
[0005] This invention provides a power supply control method, power supply, device, and storage medium to solve the technical problem that PSE devices in the prior art need to operate normally under a wide input voltage range.
[0006] The first aspect of this invention provides a power supply control method, applied in the main control module of a switching power supply, comprising:
[0007] The voltage signal of the power supply terminal is acquired, the maximum available power of the power consumption terminal is determined based on the voltage signal, and the output power of the power consumption terminal is determined based on the voltage signal, wherein the output power is less than or equal to the maximum available power; wherein, the maximum available power is the maximum output power that the power consumption terminal can output, and the output power is the maximum output power set by the power consumption terminal;
[0008] When the difference between the maximum available power and the output power is less than or equal to a preset power difference, the maximum output power of the power-consuming terminal is reduced until the difference between the maximum available power and the output power is greater than or equal to the preset power difference; wherein, the output power is the actual power required by the power-consuming equipment at the power-consuming terminal, and the preset power difference is the difference between the maximum available power and the output power at full load of the power-consuming terminal. Optionally, acquiring the voltage signal of the power supply terminal includes:
[0009] The analog signal corresponding to the voltage of the power supply terminal is obtained, the analog signal is converted into a corresponding pulse width modulation signal, and the pulse width modulation signal is used as the voltage signal of the power supply terminal; wherein, the duty cycle of the pulse width modulation signal represents the voltage magnitude of the power supply terminal.
[0010] Optionally, determining the maximum available power and maximum output power of the power-consuming terminal based on the voltage signal, wherein the maximum output power is less than or equal to the maximum available power, includes:
[0011] The maximum available power is determined based on the voltage signal. If the maximum available power is greater than the preset first power of the first level in the preset output power level, and less than or equal to the preset first power of the second level in the preset power level, the maximum output power of the power-consuming terminal is controlled to be the preset first power of the first level. Wherein, the preset output power level is the output power range corresponding to different maximum available power preset by the power-consuming terminal, the preset first power is the highest output power under each level in the preset output power level, and the preset first power of the first level is less than the preset first power of the second level.
[0012] If the maximum available power is greater than the preset first power of the highest power level among the preset power levels, the maximum output power of the power-consuming terminal is controlled to be the preset first power of the highest power level.
[0013] If the maximum available power is less than or equal to the preset first power of the lowest power level among the preset power levels, the maximum output power of the power-consuming terminal is controlled to be the maximum available power.
[0014] Optionally, reduce the output power of the power-consuming terminal until the difference between the maximum available power and the output power is greater than or equal to the preset power difference, including:
[0015] According to a preset power reduction order, the maximum output power of each port of the power-consuming terminal is reduced sequentially until the maximum available power of the power-consuming terminal minus the power consumed is greater than or equal to the preset power difference; or,
[0016] The ports of the power-consuming terminal are turned off in a preset port shutdown order until the difference between the maximum available power of the power-consuming terminal and the sum of the power consumption of the remaining ports of the power-consuming terminal is greater than or equal to the preset power difference.
[0017] Secondly, this application provides a power supply, comprising:
[0018] The main control module is used to perform the method described in any of the first aspects to supply power to the power consumer;
[0019] A voltage conversion circuit is connected between the power consumption terminal and the power supply terminal to convert the voltage input from the power supply terminal into the voltage required by the power consumption terminal according to preset power supply parameters.
[0020] A sampling module, connected to the power supply terminal and the main control module, is used to collect the voltage of the power supply terminal and convert it into a voltage signal to be sent to the main control module;
[0021] The power supply equipment management module connects the power user and the main control module, and is used to collect the power of the power user and convert it into a power signal to send to the main control module.
[0022] Optionally, the power supply equipment management module is also used to control the ports of the power-consuming terminal through the switch module, and reduce the maximum output power of each port of the power-consuming terminal or shut down the ports of the power-consuming terminal according to the instructions of the main control module.
[0023] Optionally, the power supply further includes an electromagnetic interference filtering unit, which is connected between the power supply terminal and the voltage conversion circuit to filter noise signals in the power supply terminal and prevent electromagnetic interference signals from entering the voltage conversion circuit.
[0024] Optionally, the voltage conversion circuit further includes a power factor correction circuit, which is connected to the electromagnetic interference filtering unit and is used to improve the power factor of the voltage conversion circuit.
[0025] Thirdly, this application provides a power supply control device, comprising:
[0026] At least one processor, and,
[0027] Memory connected to the at least one processor;
[0028] The memory stores instructions executable by the at least one processor, which executes the method as described in any one of the first aspects by executing the instructions stored in the memory.
[0029] Fourthly, embodiments of this application provide a computer-readable storage medium, comprising:
[0030] The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method as described in any of the first aspects.
[0031] The technical solution in this embodiment of the invention has the following beneficial effects: It acquires the voltage signal of the power supply terminal, determines the maximum available power and maximum output power of the power consumption terminal based on the voltage signal, and the maximum output power is less than or equal to the maximum available power; wherein, the maximum available power is the maximum output power that the power consumption terminal can output, and the maximum output power is the maximum output power set by the power consumption terminal; when the difference between the maximum available power and the power consumption power is less than or equal to a preset power difference, it reduces the maximum output power of the power consumption terminal until the difference between the maximum available power and the power consumption power is greater than or equal to the preset power value; wherein, the power consumption power is the actual output power of the power consumption terminal, and the preset power difference is the difference between the maximum available power and the output power of the power consumption terminal when fully loaded; thereby allowing the power supply to automatically adjust the maximum output power according to the mains input voltage range, thus enabling the switching power supply to adapt to a wide input range, fully utilizing the maximum available power of the power supply, and controlling the maximum output power of the power supply terminal when the mains voltage is low, ensuring that the power supply outputs appropriate power and avoiding random power outages at the port when the device is fully loaded. Attached Figure Description
[0032] Figure 1 This is a schematic diagram of the structure of a switching power supply provided in an embodiment of the present invention;
[0033] Figure 2 This is a flowchart of a power supply control method provided in an embodiment of the present invention;
[0034] Figure 3 This is a circuit diagram of a sampling module provided in an embodiment of the present invention;
[0035] Figure 4 This is a schematic diagram of a power supply provided in an embodiment of the present invention. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The acquisition, storage, use, and processing of data in the technical solutions of this application all comply with the relevant provisions of national laws and regulations.
[0037] In related technologies, to ensure that PSE equipment can accept a wide input voltage range, the device specifications need to be increased to adapt to low-voltage power supply environments. Based on this condition, the power supply of the product is designed with a wide input voltage range of 100-240V, ultimately making the product adaptable to the full voltage range of the power grid. This approach results in excessively large device specifications, complex circuitry, and high costs, making it impractical for widespread adoption.
[0038] Therefore, this application provides a power supply control method, power supply, device, and storage medium to solve the technical problem in the prior art that PSE equipment needs to operate normally under a wide input voltage range.
[0039] The above method is applied to the main control module 16 of the switching power supply. Please refer to [link / reference]. Figure 1 , Figure 1 This is a schematic diagram of a switching power supply provided in an embodiment of this application. The switching power supply further includes a sampling module 12, a power supply management module 14, and a voltage conversion module 13. The sampling module 12 is connected to the power supply terminal 11 and the main control module 16 of the switching power supply. The power supply management module 14 is connected to the power consumption terminal 15 and the main control module 16 of the switching power supply. The voltage conversion module 13 is connected between the power supply terminal 11 and the power consumption terminal 15 of the switching power supply. For the power supply control method of this switching power supply, please refer to [link to relevant documentation]. Figure 2 ,include:
[0040] 201. Obtain the voltage signal from the power supply end, determine the maximum available power and the maximum output power of the power consumption end based on the voltage signal, and the maximum output power is less than or equal to the maximum available power; where the maximum available power is the maximum output power that the power consumption end can output, and the maximum output power is the maximum output power set by the power consumption end;
[0041] 202. When the difference between the maximum available power and the output power is less than or equal to the preset power difference, reduce the maximum output power of the power user until the difference between the maximum available power and the output power is greater than or equal to the preset power difference; wherein, the output power is the actual output power of the power user, and the preset power difference is the difference between the maximum available power and the output power when the power user is fully loaded.
[0042] For example, when the switching power supply is connected to 220V AC mains and begins supplying power, the AC mains voltage is introduced into the switching power supply from the power supply terminal 11. Then, on one hand, the voltage is converted to 48V DC by the voltage conversion module 13 and transmitted to the port of the power consumption terminal 15. The power management module 14 controls the maximum output power of the power consumption terminal 15 by controlling the port of the power consumption terminal 15. On the other hand, the sampling module 12 collects the 220V AC mains voltage and converts the analog voltage signal into a PWM signal 1 through a pulse width modulation (PWM) conversion circuit, which is then sent to the main control module 16. The main control module 16 determines the maximum available power of the input to be 168W based on the duty cycle of the PWM signal 1. Since the switching power supply has 12 power-consuming ports, the maximum available power for each power-consuming port 15 is 14W. According to the IEEE 802.3af protocol supported by the switching power supply, the maximum operating power of the device connected to power-consuming port 15 under the current protocol is 12.95W (Class 3), which is less than the maximum available power of 14W for power-consuming port 15. Therefore, the maximum output power that can be output to each port of power-consuming port 15 is 12.95W. At this time, the maximum output power of power-consuming port 15 is 12.95W × 12 = 155.4W.
[0043] At this time, the main control module 16 obtains the power consumption of the power consumption terminal 15 as 11W through the power supply equipment management module 14, while the preset power difference is 2W. Therefore, the difference between the maximum available power and the power consumption is greater than the preset power difference. The main control module 16 controls the power supply equipment management module 14 to maintain the output power of the power consumption terminal 15 and sets the maximum output power of each port of the power consumption terminal 15 to a maximum of 12.95W.
[0044] In practical applications, the maximum power available at the power consumption terminal 15 is determined by the voltage signal input from the power supply terminal 11. The main control module 16 can receive a wide range of voltage signal inputs and convert different input voltages into stable output power according to preset standards. For example, when the power supply terminal 11 receives 220V, 50Hz AC mains power, the voltage conversion module 13 converts it to 48V DC. When the power supply terminal 11 receives a three-phase 380V, 50Hz industrial voltage, the voltage conversion module 13 can still convert it to 48V DC according to preset standards and supply it to the appliance through the power consumption terminal 15. The maximum output power of the power consumption terminal 15 does not necessarily have to meet the power level specified by relevant standards; users can also set the relevant power supply level parameters according to their needs.
[0045] The difference between the maximum available power and the power consumed at power terminal 15 being less than or equal to a preset power difference includes two scenarios. The first is when the maximum available power is less than or equal to the power consumed, resulting in a negative or zero difference. This indicates insufficient power can be supplied to the connected devices at power terminal 15. In this case, random power outages may occur at the power terminal, preventing reliable operation of connected devices. Therefore, the maximum output power of power terminal 15 needs to be reduced until the difference is greater than or equal to the preset power difference. Only then can stable power supply to each port be guaranteed, ensuring each port receives a stable power output and preventing random power outages. The second scenario is when the maximum available power is greater than the power consumed, and the difference between the maximum available power and the preset power difference is less than or equal to the preset power difference. This indicates that the power consumed and the maximum available power are relatively close, lacking sufficient power redundancy to mitigate power fluctuations. In both of the above scenarios, the electrical equipment connected to power terminal 15 is running at full power. The main control module 16 needs to adjust the power output of power terminal 15 through the power supply management module 14 to ensure that all ports of power terminal 15 can operate safely and stably. For example, power terminal 15 typically includes multiple output voltage ports. In this case, the power terminal needs to ensure that the output power of each port is less than the maximum available power of each port; that is, when each port is running at full power, the output power of each port of power terminal 15 minus the maximum available power must be greater than or equal to the preset power difference. Assuming that the power allocation of each port of power terminal 15 is consistent, and the preset power difference for each port is 2W, if the power consumption of the electrical appliances connected to each port of power terminal 15 is 11W when running at full power, and the maximum available power allocated to each port is 14W; then, for each port of power terminal 15, the difference between the maximum available power of 14W and the power consumption of 11W is 3W, which is greater than the preset power difference of 2W. Therefore, power terminal 15 can continue to allocate 0-11W of power output to each port to ensure normal power supply to the ports while leaving sufficient power redundancy. If the power consumption of the appliances connected to each port of power terminal 15 is 12W when running at full power, the difference between the maximum available power of 14W and the power consumption of 12W at each port of power terminal 15 is 2W, which is equal to the preset power difference of 2W. That is, the power consumption of power terminal 15 is very close to the difference between the maximum available power and the preset power difference. If the power consumption of the appliances connected to each port of power terminal 15 is 13W when running at full power, the maximum output power of each port of power terminal 15 is 13W, and the difference between the maximum available power and the power consumption at each port of power terminal 15 is 1W, which is less than the preset power difference of 2W, it is necessary to reduce the maximum output power of each port of power terminal 15 to 12W, thereby limiting the maximum power consumption of each port to 12W.
[0046] In this embodiment, the voltage signal of the power supply terminal is acquired, and the maximum available power and maximum output power of the power consumption terminal are determined based on the voltage signal. The maximum output power is less than or equal to the maximum available power. The maximum available power is the maximum output power that the power consumption terminal can output, and the maximum output power is the maximum output power set by the power consumption terminal. When the difference between the maximum available power and the power consumption power is less than or equal to a preset power difference, the maximum output power of the power consumption terminal is reduced until the difference between the maximum available power and the power consumption power is greater than or equal to the preset power value. The power consumption power is the actual output power of the power consumption terminal, and the preset power difference is the difference between the maximum available power and the output power of the power consumption terminal when fully loaded. This allows the power supply to automatically adjust its output power according to the mains input voltage range, enabling the switching power supply to adapt to a wide input range and fully utilize the maximum available power. When the mains voltage is low, the maximum output power of the power supply terminal can also be controlled to ensure that the power supply outputs appropriate power, avoiding random power outages at the port when the device is fully loaded.
[0047] One possible implementation involves acquiring the voltage signal at the power supply terminal, including:
[0048] Obtain the analog signal corresponding to the voltage at the power supply terminal, convert the analog signal into the corresponding pulse width modulation signal, and use the pulse width modulation signal as the voltage signal at the power supply terminal.
[0049] For example, see Figure 3 , Figure 3 This application provides a circuit diagram of a sampling module 12, which includes a sampling circuit 121 and a PWM conversion circuit 122. The sampling circuit 121 acquires the voltage signal at the power supply terminal 11, and outputs an analog voltage signal through a voltage divider network composed of R2 and R3. This signal is then input to the PWM conversion circuit 122, which outputs a digital PWM signal that is fed back to the main control module 16. The duty cycle of this PWM signal is determined by the voltage signal at the power supply terminal 11.
[0050] In the PWM conversion circuit 122, U2 and U3 are voltage comparators, U1 is a reset / set (RS) flip-flop, and U4 is an inverter. The voltage comparator has two input terminals, a positive terminal and a negative terminal. When the positive input voltage is higher than the negative input voltage, it outputs a high-level signal; otherwise, it outputs a low-level signal. The RS flip-flop has a set terminal S, a reset terminal R, and a forced reset terminal R1. When the set terminal S is active, it outputs a high-level signal; when the reset terminal R is active, it outputs a low-level signal; when the forced reset terminal R1 is active, it forces a low-level output; when both the reset terminal R and the reset terminal S are active, the output is in a disabled state (this invention avoids the disabled state). The inverter outputs a signal opposite to the input level. When switch Q5 is off, the supply voltage (VCC) charges capacitor C4 through resistor RA1, causing the voltage across capacitor C4 to rise linearly. When switch Q5 is on, capacitor C4 discharges through resistor RA2, causing the voltage across capacitor C4 to drop linearly. The slope of the voltage rise and fall at capacitor C4 depends on the resistance values of resistors RA1 and RA2 in the charging and discharging circuit, thus forming a triangular wave at capacitor C4. This triangular wave is directly applied to the positive terminal of voltage comparator U2 and the negative terminal of voltage comparator U3. Out_PWM is the PWM digital signal output by the PWM conversion circuit. When switch Q5 is off, Out_PWM is high; otherwise, it is low. That is, Out_PWM is high when capacitor C4 is charging and low when capacitor C4 is discharging. Therefore, adjusting the charging and discharging time of capacitor C4 adjusts the frequency of Out_PWM. In_PWM is the mains signal acquired by the voltage sampling circuit. It is an analog signal, and after being input to the PWM conversion circuit, it is directly input to the negative terminal of voltage comparator U2, and after being divided by resistors, it is input to the positive terminal of voltage comparator U3. The positive terminal of voltage comparator U2 and the negative terminal of voltage comparator U3 are simultaneously connected to the voltage across capacitor C4. Therefore, voltage comparators U2 and U3 output a pair of square wave signals that are opposite to each other, effectively preventing U1 from being in a disabled state. When the charging and discharging parameters of capacitor C4 are designed, when the In_PWM voltage is high, the In_PWM voltage is greater than the voltage across C4 for a longer period of time. The duty cycle of voltage comparator U2 is small, the duty cycle of voltage comparator U3 is large, the duty cycle of reset position trigger U1 is large, the duty cycle of the inverted output of reset position trigger U1 is small, and the duty cycle of Out_PWM output through inverter U4 is large. Conversely, when the In_PWM voltage is low, the time during which In_PWM is greater than the voltage at the capacitor C4 terminal is shorter, the duty cycle of the voltage comparator U2 output is larger, the duty cycle of the voltage comparator U3 output is smaller, the duty cycle of the reset position trigger U1 output is smaller, the duty cycle of the inverted output of the reset position trigger U1 is larger, and the duty cycle of the Out_PWM output through the inverter U4 is smaller.Therefore, when the In_PWM voltage is high, the duty cycle of the PWM digital signal output by the PWM conversion circuit is large; when the In_PWM voltage is low, the duty cycle of the PWM digital signal output by the PWM conversion circuit is small. The period of this PWM signal is determined by the charging and discharging time of capacitor C4, while the duty cycle of this PWM signal is determined by the magnitude of the mains voltage. If In_PWM is directly input to the positive terminal of voltage comparator U2, and after voltage division by resistors, it is input to the negative terminal of voltage comparator U3, and the voltage at the terminal of capacitor C4 is connected to the negative terminal of voltage comparator U2 and the positive terminal of voltage comparator U3, then the operating state of the PWM conversion circuit is inverted. That is, when the In_PWM voltage is high, the In_PWM voltage is greater than the voltage at the terminal of C4 for a longer period of time, the duty cycle of the output of voltage comparator U2 is large, the duty cycle of the output of voltage comparator U3 is small, the duty cycle of the output of reset position trigger U1 is small, the duty cycle of the inverted output of reset position trigger U1 is large, and the duty cycle of the output of Out_PWM after inverter U4 is small. Conversely, when the In_PWM voltage is low, the time during which In_PWM is greater than the voltage at C4 is shorter. This results in a smaller duty cycle for the output of voltage comparator U2, a larger duty cycle for the output of voltage comparator U3, a larger duty cycle for the output of reset trigger U1, a smaller duty cycle for the inverted output of reset trigger U1, and a larger duty cycle for the output of Out_PWM via inverter U4. Therefore, when the In_PWM voltage is high, the duty cycle of the PWM digital signal output by the PWM conversion circuit is small; when the In_PWM voltage is low, the duty cycle of the PWM digital signal output by the PWM conversion circuit is large. The period of this PWM signal is determined by the charging and discharging time of capacitor C4, and the duty cycle of this PWM signal is determined by the magnitude of the mains voltage.
[0051] In this embodiment, the sampling module can convert the analog signal in the mains circuit into a corresponding digital PWM signal and send it to the main control module 16, so that the main control module 16 can obtain the voltage signal of the current power supply terminal, and then control the voltage conversion module 13 and the power supply equipment management module 14 to provide appropriate power output to the power consumption terminal.
[0052] One possible implementation involves determining the maximum available power and maximum output power at the power consumption terminal based on a voltage signal, wherein the maximum output power is less than or equal to the maximum available power, including:
[0053] The maximum available power is determined based on the voltage signal. If the maximum available power is greater than the preset first power of the first level in the preset output power level, and less than or equal to the preset first power of the second level in the preset power level, the maximum output power of the power consumption terminal is controlled to be the preset first power of the first level. Here, the preset output power level is the output power range corresponding to different maximum available power preset by the power consumption terminal, the preset first power is the highest output power under each level in the preset output power level, and the preset first power of the first level is less than the preset first power of the second level.
[0054] If the maximum available power is greater than the preset first power of the highest power level in the preset power level, the maximum output power of the power consumption terminal is controlled to be the preset first power of the highest power level.
[0055] If the maximum available power is less than or equal to the preset first power of the lowest power level in the preset power level, the maximum output power of the control terminal is the maximum available power.
[0056] For example, such as Figure 1In the example above, when the PWM signal is input to the main control module 16, the main control module 16 controls the power supply management module 14 to output a reasonable power based on the current voltage level, thereby outputting the corresponding power consumption. The main control module 16 and the power supply management module 14 communicate in full-duplex mode. The power supply management module 14 can manage the maximum output power of PORT1...PORTn by controlling the opening and closing of switch modules 1...n, respectively. Simultaneously, the main control module 16 can also control the maximum output power of PORT1...PORTn ports. The power supply management module 14 samples the power of PORT1...PORTn and sends a power signal to the main control module 16. The main control module 16 compares the power signal with the PWM signal. When the maximum output power is close to the maximum available power corresponding to the PWM signal, it indicates that the system equipment is about to reach full load. At this time, the main control module 16 obtains that the maximum available power of each port of the power consumption terminal 15 is 14W. The main control module 16 sends a control signal to the power supply equipment management module 14. After receiving the control signal, the power supply equipment management module 14 reduces the maximum output power of PORT1...PORTn, according to the levels {Class 1: 0-3.84W; Class 2: 3.85-6.49W; Class 3: 6.5-12.95W; Class 4: 12.96-29.95W}, thereby allowing the power consumption of the power consumption terminal 15 to obtain the power consumption at the preset output power level. The highest output power of each level is the preset first power of that level, that is, the preset first power of class1 is 3.84W, the preset first power of class2 is 6.49W, the preset first power of class3 is 12.95W, and the preset first power of class4 is 29.95W. When the power supply management module 14 reduces the maximum output power of the power consumption terminal 15 to the class 3 level, the preset first power of this level is 12.95w, which is less than the maximum available power of 14w. The preset first power of the previous level is 29.95w, which is greater than the maximum available power of 14w. Therefore, it stops further reducing the maximum output power of PORT1...PORTn and controls the maximum output power of each port of the power consumption terminal 15 to the preset first power of class 3, 12.95w.
[0057] If the main control module 16 obtains that the maximum available power for each port of the power consumption terminal 15 is 35W, which is greater than the preset first power of 29.95W corresponding to the highest level class4 in the preset power level, then the maximum output power for each port of the power consumption terminal 15 will be controlled to the preset first power of class4, 29.95W.
[0058] If the main control module obtains that the maximum available power for each port of the power consumption terminal 15 is 3W, which is less than the minimum preset first power of 3.84W in the preset output power level, then the maximum output power for each port of the power consumption terminal 15 will be controlled to the maximum available power of 3W.
[0059] In practical applications, the power-consuming ports of PSE devices typically also have network forwarding capabilities, which are actually accomplished through a network forwarding module. Therefore, when reducing the maximum output power of the power-consuming port, the power of the network forwarding function can be reduced simultaneously to ensure stable output from the power-consuming port. Furthermore, the power distribution of the power-consuming ports may not be entirely uniform. Therefore, the preset power level can be designed as the overall output power level of power-consuming port 15, based on actual needs. Correspondingly, the calculation of the maximum available power and the maximum output power can directly use the overall output power of power-consuming port 15. For example, the preset output power levels are: Level 1 0-15W, Level 2 15W-30W. The main control module 16 obtains that the maximum available power of power-consuming port 15 is 20W, which is greater than the preset first power of 15W under Level 1 but less than the preset first power of 30W under Level 2. Therefore, the maximum output power of power-consuming port 15 is controlled to the preset first power of 15W under Level 1.
[0060] In this embodiment, the main control module 16 can control the power supply terminal to output a reasonable maximum power based on the collected PWM signal, so as to ensure that the device can operate stably and avoid random power outages at the port.
[0061] One possible implementation involves reducing the maximum output power at the power consumption terminal until the difference between the maximum available power and the power consumption is greater than or equal to a preset power difference, including:
[0062] Following a preset power reduction order, the maximum output power of each port at the power consumption end is reduced sequentially until the maximum available power at the power consumption end minus the power consumption is greater than or equal to the preset power difference; or,
[0063] The ports in the power-consuming terminal are turned off sequentially according to the preset port shutdown order until the difference between the maximum available power of the power-consuming terminal and the sum of the power consumption of the remaining ports of the power-consuming terminal is greater than or equal to the preset power difference.
[0064] For example, if power terminal 15 currently has 10 ports (0-9), and the maximum available power of each port is reduced to 14W, the maximum output power of power terminal 15 needs to be reduced accordingly. There are two ways to reduce the maximum output power of power terminal 15. One method is to reduce the maximum output power of each port of power terminal 15 to a Class 4 level power of 16W. The main control module 16 controls the power supply equipment management module 14 to reduce the power of each port of power terminal 15 according to a preset power reduction order. First, the highest priority ports 0-5 are reduced, lowering their maximum output power to the first preset Class 3 level power of 12.95W. At this point, the overall maximum output power of the power terminal is reduced to 12.95 × 6 + 16 × 4 = 141.7W. However, the maximum available power of 140W is still less than the overall maximum output power of power terminal 15, so the maximum output power of power terminal 15 needs to be further reduced. The main control module 16 continues to reduce the maximum output power of the power user terminal 15 according to the preset power reduction order, and then reduces the maximum output power of the second priority ports 6-7 to the first preset power of class3, 12.95W. At this time, the overall maximum output power of the power user terminal 15 is 12.95×8+16×2=135.6W, which is less than the maximum available power of the power user terminal 15, and can ensure the stable power supply of all ports of the power user terminal at the same time.
[0065] Secondly, the current power consumption of each port of the power consumption terminal 15 is 16W, while the maximum available power of the power consumption terminal is 140W, and the actual power consumption is 160W. The main control module 16 controls the power supply equipment management module to shut down two ports in the power consumption terminal 15, so that the power consumption of the power consumption terminal 15 is reduced to 16W×8=128W, which is lower than the maximum available power of 140W, thus ensuring that the remaining ports of the power consumption terminal 15 are powered normally.
[0066] In practical applications, both the preset power reduction sequence and the preset port shutdown sequence can be set by the user. Depending on the requirements, the preset power reduction sequence allows selection of some or all ports on power terminal 15 to reduce their maximum output power, or the power reduction value for each port can be selected to ensure the normal operation of critical devices connected to the ports. The preset port shutdown sequence allows setting the priority of shutting down each port to ensure that critical devices on the ports are not accidentally shut down.
[0067] In this embodiment, the main control module 16 and the power supply equipment management module 14 communicate in full-duplex mode. When the maximum output power of the power consumption terminal 15 is close to the maximum available power, it indicates that the system equipment is about to be fully loaded. The main control module 16 sends a control signal to reduce the maximum output power of port 1 to port n, thereby avoiding the problem of random power loss of some ports under high power operation.
[0068] Based on the same inventive concept, this application provides a power supply; please refer to [link / reference]. Figure 4 , Figure 4 A circuit diagram of a power supply provided in an embodiment of this application includes:
[0069] The main control module 41 is used to execute the method described above to supply power to the power consumer.
[0070] The voltage conversion circuit 42 is connected between the power consumption terminal and the power supply terminal, and is used to convert the voltage input from the power supply terminal into the voltage required by the power consumption terminal according to the preset power supply parameters.
[0071] The sampling module 43 is connected to the power supply terminal and the main control module 41. It is used to collect the voltage of the power supply terminal and convert it into a voltage signal to be sent to the main control module 41.
[0072] The power supply equipment management module 44 connects the power consumption terminal and the main control module 41. It is used to collect the power of the power consumption terminal and convert it into a power signal to be sent to the main control module 41.
[0073] In one possible implementation, the power supply equipment management module 44 is also used to control the ports of the power consumption terminal through the switch module, and reduce the maximum output power of each port of the power consumption terminal or shut down the ports of the power consumption terminal according to the instructions of the main control module 41.
[0074] In one possible implementation, the power supply further includes an electromagnetic interference filtering module 45, which is connected between the power supply terminal and the voltage conversion circuit 42 to filter noise signals in the power supply terminal and prevent electromagnetic interference signals from entering the voltage conversion circuit.
[0075] In one possible implementation, the voltage conversion circuit 42 further includes a power factor correction circuit 421, which is connected to the electromagnetic interference filter unit 45 and is used to improve the power factor of the voltage conversion circuit.
[0076] Based on the same inventive concept, one embodiment of the present invention provides a power supply control device, comprising:
[0077] At least one processor is used to implement the power supply control method described above in the embodiments of this application when executing a computer program stored in a memory.
[0078] Optionally, the processor may be a central processing unit, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control program execution.
[0079] Optionally, the data integrity protection device also includes a memory connected to at least one processor. The memory may include read-only memory (ROM), random access memory (RAM), and disk storage. The memory stores data required for processor operation, i.e., it stores instructions executable by at least one processor. At least one processor executes the instructions stored in the memory to perform the above-mentioned tasks. Figure 2 The method is shown. The number of memories can be one or more.
[0080] Based on the same inventive concept, embodiments of this application also provide a computer storage medium, wherein the computer storage medium stores computer instructions, which, when executed on a computer, cause the computer to perform the steps of the power supply control method described above.
[0081] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0082] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0083] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0084] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0085] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method of power supply control, characterized by, The application is applied to a master module of a switching power supply, and comprises: a voltage signal of a power supply end is acquired, and a maximum available power of a power consumption end and an output maximum power are determined according to the voltage signal, the output maximum power being less than or equal to the maximum available power; wherein the maximum available power is the maximum power that can be output by the power consumption end, and the output maximum power is the maximum output power set by the power consumption end; when a difference between the maximum available power and a power consumption power is less than or equal to a preset power difference, the output maximum power of the power consumption end is reduced until the difference between the maximum available power and the power consumption power is greater than or equal to the preset power difference; wherein the power consumption power is the power actually output by the power consumption end, and the preset power difference is a difference between the maximum available power and an output power of the power consumption end when the power consumption end is fully loaded.
2. The method of claim 1, wherein, the voltage signal of the power supply end is acquired, comprising: an analog signal corresponding to the voltage of the power supply end is acquired, the analog signal is converted into a corresponding pulse width modulation signal, and the pulse width modulation signal is taken as the voltage signal of the power supply end; wherein a duty cycle of the pulse width modulation signal represents the voltage of the power supply end.
3. The method of claim 1, wherein, the maximum available power of the power consumption end and the output maximum power are determined according to the voltage signal, the output maximum power being less than or equal to the maximum available power, comprising: the maximum available power is determined according to the voltage signal, if the maximum available power is greater than a preset first power of a first level in preset output power levels and less than or equal to a preset first power of a second level in the preset power levels, the output maximum power of the power consumption end is controlled to be the preset first power of the first level; wherein the preset output power levels are output power ranges corresponding to different maximum available powers preset by the power consumption end, the preset first power is the highest output power under each level in the preset output power levels, and the preset first power of the first level is less than the preset first power of the second level; if the maximum available power is greater than a preset first power of a maximum power level in the preset power levels, the output maximum power of the power consumption end is controlled to be the preset first power of the maximum power level; if the maximum available power is less than or equal to a preset first power of a minimum power level in the preset power levels, the output maximum power of the power consumption end is controlled to be the maximum available power.
4. The method of claim 1, wherein, the output maximum power of the power consumption end is reduced until the difference between the maximum available power and the power consumption power is greater than or equal to the preset power difference, comprising: the output maximum power of each port of the power consumption end is sequentially reduced in a preset power reduction order until the difference between the maximum available power of the power consumption end and the power consumption power is greater than or equal to the preset power difference; or part of the ports in the power consumption end are sequentially closed in a preset port shutdown order until the difference between the maximum available power of the power consumption end and the sum of the power consumption powers of the remaining ports of the power consumption end is greater than or equal to the preset power difference.
5. A power supply, characterized by, The master module is configured to execute the method of any one of claims 1-4 to supply power to the powered terminal. The sampling module is connected to the powered terminal and the master module, and is configured to collect voltage of the powered terminal and convert the voltage into a voltage signal and send the voltage signal to the master module. The powered device management module is connected to the powered terminal and the master module, and is configured to collect power of the powered terminal and convert the power into a power signal and send the power signal to the master module.
6. The power supply of claim 5, wherein, The powered device management module is further configured to control ports of the powered terminal through the switch module, and reduce maximum output power of each port of the powered terminal or turn off the ports in the powered terminal according to an instruction of the master module.
7. The power supply of claim 5, wherein, The power supply further comprises an electromagnetic interference filter unit connected between the powered terminal and the voltage conversion circuit, and configured to filter noise signals in the powered terminal and avoid electromagnetic interference signals from entering the voltage conversion circuit.
8. The power supply of claim 7, wherein, The voltage conversion circuit further comprises a power factor correction circuit connected to the electromagnetic interference filter unit, and configured to improve power factor of the voltage conversion circuit.
9. A power supply control device, characterized by comprising: The computer readable storage medium stores computer instructions, and when the computer instructions run on the computer, the computer is caused to execute the method of any one of claims 1-4. The computer readable storage medium stores computer instructions, and when the computer instructions run on the computer, the computer is caused to execute the method of any one of claims 1-4. 10. A computer-readable storage medium, characterized in that,
Citation Information
Patent Citations
Electric vehicle off-line detection method and device
CN106950495A
Power supply for controlling output power and protecting input
CN110518802A