Power supply equipment, Ethernet power supply method and device
By introducing preprocessing units into the Ethernet power supply equipment, the problems of long startup time and slow power supply speed in the prior art are solved, and the rapid power-on of PD and efficient management of power supply equipment are realized.
Patent Information
- Application Number
- CN202110827394.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2016-10-13
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2036-10-13
AI Technical Summary
The existing Ethernet power supply system has a long startup time and slow power supply speed when the master control management function is available. Especially before the master control is fully started, the PD cannot obtain power, and it takes a long time to restore power supply after the master control is powered off.
A preprocessing unit is added to the power supply equipment. The preprocessing unit is first operated after power-on starts on the main control unit, controlling the PSE chip to detect whether the power supply port is connected to the effective power receiving equipment, and power on the effective power receiving equipment according to the preset rules.
It realizes the rapid power-up of the PoE system on the PD, reduces the dependence on the start of the main control unit, improves the power supply speed and efficiency of the power supply equipment, and retains the management function of the main control unit.
Smart Images

Figure CN113595745B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Ethernet power supply, and in particular to a power supply device, an Ethernet power supply method and a device. Background Art
[0002] Power over Ethernet (PoE) refers to a technology that can provide DC power to some devices such as IP phones, access points (APs) and network cameras while transmitting data signals without changing the existing Ethernet cabling infrastructure.
[0003] PoE systems usually mainly include power sourcing equipment (PSE) and powered devices (PD). Power sourcing equipment mainly includes the main control chip (referred to as the main control) and the PSE chip. The power supply process of the PSE chip can usually be divided into five parts: PD detection, classification, power-on, normal power supply and power-off. The PSE chip first detects whether the PD is valid, then classifies the PD to determine the power consumption. After the classification is completed, the PD is powered on and power is started. During normal power supply, the PSE chip will continuously monitor the current of the PD. When the PD power consumption is overloaded, short-circuited, or exceeds the power supply load of the PSE chip, the PSE chip will disconnect the power supply and start the next round of detection process.
[0004] In the power supply equipment of the existing PoE system, the main control chip manages the PSE chip through the internal integrated circuit (IIC) bus. One PSE chip can power multiple Ethernet power supply ports, and each Ethernet power supply port can be connected to a PD. The PSE chip has four modes: Off mode, in which no action is taken; Manual mode, which can be triggered and controlled by an external program for detection, classification, and power-on; Semi Auto mode, automatic detection and classification, which can be controlled by an external program for power-on; Auto mode, automatic detection, classification, and power-on. The main control chip is responsible for remote management, coordination between PSE chips, power on and off of non-standard PDs, and power management. After the power is turned on, the PSE chip is in Off mode, waiting for the main control to start. After the main control starts, the PSE chip is initialized and configured to Semi Auto mode. At this time, the PSE chip starts detection, classification, and power supply under the management of the main control. At the same time, the main control is also responsible for the global management function of PoE.
[0005] Usually the power-on startup process of the power supply equipment is as follows Figure 1As shown in the figure: After the power supply device is powered on, the central processing unit (CPU) of the main control first runs the boot (BOOT) of the basic input and output system (BIOS) to initialize the double-rate synchronous dynamic random access memory (DDR SDRAM) to obtain a larger memory usage space; after the initialization is completed, the BIOS / BOOT checks whether the system needs to be upgraded. If it does not need to be upgraded, the BIOS / BOOT obtains the startup file through the network port, serial port or local flash memory, loads the operating system from the startup file, and then starts the main program; then the main program initializes each device and configures the PSE chip to Semi Auto mode. After the main program is started, the power supply device can supply power normally under the management of the main control. The main program of the main control provides a wealth of management functions. By logging in to the main control, users can view the port status, set PoE alarms, set reserved power, and force power on and off.
[0006] However, although the master control in the prior art can flexibly manage PD devices, it also leads to the problems of long startup time and slow power supply speed of the PoE system, because the PD cannot obtain power before the master control is fully started, and after the master control loses power, if the power is restored, the entire network including the PD will take a long time to return to normal. Summary of the invention
[0007] The embodiments of the present invention provide a power supply device, an Ethernet power supply method and an Ethernet power supply device to solve the problem of slow power supply speed of Ethernet power supply with a master control management function in the prior art.
[0008] In a first aspect, an embodiment of the present invention provides a power supply device, including a power supply device chip, a main control unit and a power supply port, characterized in that it also includes a preprocessing unit, wherein the preprocessing unit is used to:
[0009] Determining whether the main control unit is powered on and started;
[0010] If the main control unit is powered on, the power supply device chip is controlled to detect whether the power supply port is connected to a valid powered device;
[0011] When it is determined that the power supply port is connected to a valid powered device, the power supply device chip is controlled to power on the valid powered device according to a preset rule.
[0012] In a possible design, in the power supply device, the main control unit is used to:
[0013] Determining whether the power supply device chip has supplied power to the powered device;
[0014] If the power supply device chip has supplied power to the powered device, obtaining status information of the power supply device chip;
[0015] If the power supply device chip does not supply power to the powered device, initializing the power supply device chip;
[0016] Complete system configuration according to pre-saved configuration rules.
[0017] In one possible design, a volatile memory is provided in the main control unit, or a volatile memory is connected to the main control unit, the main control unit detects the volatile memory, the preprocessing unit obtains the detection result of the connected main control unit, and determines whether the main control unit is powered on based on the detection result; or the preprocessing unit is directly connected to the volatile memory, and determines whether the main control unit is powered on by detecting whether the data in the volatile memory disappears. In another possible design, the main control unit uses a preset logic algorithm to calculate a logic result based on a clock signal, a reset signal, related state parameters, etc., the preprocessing unit obtains the logic result calculated by the connected main control unit, and then determines whether the main control unit is powered on based on the logic result; or the preprocessing unit obtains the clock signal, reset signal and related state parameters of the connected main control unit, and uses a preset logic algorithm to calculate a logic result to determine whether the main control unit is powered on. The latter power-on judgment method does not add new hardware, which can save hardware consumption.
[0018] In one possible design, when the pre-processing unit controls the power supply device chip to power on the valid powered device according to a preset rule, it is specifically used to: obtain the total output power of the power supply to the powered device; obtain the negotiated power of each powered device; determine the powered device to be powered on according to the total output power and the negotiated power of each powered device; and control the power supply device chip to power on the powered device to be powered on. Wherein, determining the powered device to be powered on according to the total output power and the negotiated power, and controlling the power supply device chip to power on the powered device to be powered on, in one possible design, include: determining whether the sum of the negotiated powers of all powered devices is greater than the total output power; if the sum of the negotiated powers of all powered devices is greater than the total output power, determining, in a preset order, whether the negotiated power of the nth PD is less than the difference between the total output power and the negotiated powers of all powered PDs; if the negotiated power of the nth PD is less than the difference , then control the PSE chip to power on the nth PD, and set n=n+1; determine whether n is less than or equal to m; if n is less than or equal to m, return to the step of determining whether the negotiated power of the nth PD is less than the difference between the total output power and the negotiated power of all powered-on PDs; if n is greater than m, end the power-on process; if the negotiated power of the nth PD is greater than or equal to the difference, end the power-on process; if the sum of the negotiated powers of all powered devices is less than or equal to the total output power, control the PSE chip to power on the PD in a preset order. Where n is a natural number, and m is the total number of PDs whose negotiated power is obtained by the preprocessing unit. Determine whether n is less than m. If n is greater than m, end the power-on process, which can prevent the power-on process from being infinitely looped due to hot-plugging PDs during the power-on process. It is also possible not to add the step of determining whether n is less than m, and specify the value of n to be 1 to m-1 to prevent the power-on process from being infinitely looped.
[0019] The operation of the preprocessing unit is independent of the operation of the main control unit, and the main control unit is judged to start running after power-on startup. Therefore, the power supply device does not have to wait for the main program of the main control unit to start before it can power the PD, thereby realizing the rapid power-on of the PD by the power supply device. After the main control unit completes the startup of the main program, since the power-on process has basically been completed by the preprocessing unit, the main control unit does not perform the process of setting the PSE chip to semi-automatic mode to power on the PD under normal circumstances, but reads the configuration information of the PSE chip, and determines whether the PSE chip has powered the PD through the configuration information. If the PSE chip has powered the PD, the main control unit obtains the status information of the PSE chip as the starting state for the subsequent control of the PSE chip; if the PSE chip has not powered the PD, the main control unit initializes the PSE chip; and then completes the entire system configuration according to the pre-saved configuration rules. The preprocessing unit no longer works after the PD is powered on, and the main control unit takes over the control of the PSE chip from the preprocessing unit. The main control unit can be used to configure a rich management function for the PoE system, which is conducive to the flexible control of the power supply of the PoE system.
[0020] In one possible design, in the power supply device, the preprocessing unit and the main control unit run in the main control chip, and the preprocessing unit runs before the main control unit loads or jumps to the main program; in another possible design, the main control unit runs in the main control chip, and the preprocessing unit runs in a microcontroller independent of the main control chip, and the microcontroller is connected to the power supply and the power supply device chip. The integration of the preprocessing unit and the main control unit in the main control chip is conducive to reducing hardware devices, but the pressure on the main control chip CPU will increase; the preprocessing unit and the main control unit run independently in the MCU and the main control chip respectively, the hardware devices will increase, but the pressure on the main control chip CPU will be reduced.
[0021] In a second aspect, an embodiment of the present invention provides an Ethernet power supply method, including:
[0022] The pre-processing unit determines whether the main control unit is powered on and started;
[0023] If the main control unit is powered on, the power supply device chip is controlled to detect whether the power supply port is connected to a valid powered device;
[0024] When it is determined that the power supply port is connected to a valid powered device, the power supply device chip is controlled to power on the valid powered device according to a preset rule.
[0025] In one possible design, the Ethernet power supply method further includes:
[0026] The main control unit determines whether the power supply device chip has supplied power to the powered device;
[0027] If the power supply device chip has supplied power to the powered device, obtaining status information of the power supply device chip;
[0028] If the power supply device chip does not supply power to the powered device, initializing the power supply device chip;
[0029] Complete system configuration according to pre-saved configuration rules.
[0030] Among them, in one possible design, the preprocessing unit powers on the valid powered device according to preset rules, including: obtaining the total output power of the power supply to the powered device; obtaining the negotiated power of each powered device; determining the powered device to be powered on based on the total output power and the negotiated power of each powered device; and controlling the power supply device chip to power on the powered device to be powered on. Specifically, the preprocessing unit powers on the powered device according to a preset rule, and in a possible design, includes: obtaining the total output power of the power supply to the powered device; obtaining the negotiated power of all valid PDs, the negotiated power being determined according to the power level of the PD; calculating the sum of the negotiated powers of all PDs; judging whether the sum of the negotiated powers is less than or equal to the total output power of the power supply; if the sum of the negotiated powers is less than or equal to the total output power, controlling the PSE chip to power on the PDs in a random order or a preset order; if the sum of the negotiated powers is greater than the total output power, the preprocessing unit judges whether the negotiated power of the nth PD is less than the remaining power according to a preset order, the remaining power = the total output power of the power supply - the negotiated power of all powered-on PDs; if the negotiated power of the nth PD is less than the remaining power, controlling the PSE chip to power on the nth PD, setting n = n + 1, and returning to the step of judging whether the negotiated power of the nth PD is less than the remaining power. Where n is a natural number, n = 1, 2, ... m-1, and m is the total number of PDs whose negotiated power is obtained by the preprocessing unit.
[0031] In a third aspect, an embodiment of the present invention provides an Ethernet power supply device, the Ethernet power supply device is used to perform the Ethernet power supply method of the second aspect of the present invention, the Ethernet power supply device includes a main control module and a preprocessing module; wherein the preprocessing module includes:
[0032] The power-on startup judgment submodule is used to judge whether the main control chip is powered on and started;
[0033] The PSE control submodule is used to control the power supply device chip to detect whether the power supply port is connected to a valid powered device if the main control chip is powered on;
[0034] The power-on control submodule is used to control the power supply device chip to power on the valid powered device according to a preset rule when it is determined that the power supply port is connected to a valid powered device.
[0035] In a possible design, in the Ethernet power supply device, the main control module includes:
[0036] A power supply determination submodule, used to determine whether the power supply device chip has supplied power to the powered device;
[0037] A PSE status information reading submodule, used for obtaining status information of the power supply equipment chip if the power supply equipment chip has supplied power to the powered device;
[0038] A PSE initialization submodule, configured to initialize the power supply device chip if the power supply device chip does not supply power to the powered device;
[0039] The system configuration submodule is used to complete the system configuration according to the pre-saved configuration rules.
[0040] In one possible design, the preprocessing module and the main control module are installed in the main control chip, and the preprocessing module runs before the main control module loads or jumps to the main program; in another possible design, the main control module is installed in the main control chip, and the preprocessing module is installed in a microcontroller independent of the main control chip, and the microcontroller is connected to the power supply and power supply device chip.
[0041] The technical solution provided by the embodiment of the present invention adds a preprocessing unit to the power supply device of the PoE system. The preprocessing unit can start running after the main control unit is powered on. After the main control unit system is powered on, the preprocessing unit controls the PSE chip to detect whether the power supply port is connected to a valid powered device; when it is determined that the power supply port is connected to a valid powered device, the preprocessing unit controls the PSE chip to power on the PD according to a preset rule, so that the power supply device does not have to wait for the main control unit to obtain the startup file, load the operating system from the startup file, start the main program, and initialize each device before the main program can power on the PD, thereby realizing the fast power-on of the PD by the PoE system. At the same time, the technical solution provided by the embodiment of the present invention retains the main control unit of the power supply device, and the main control unit can be used to configure a rich management function for the Ethernet power supply device, thereby improving the flexibility and safety of power supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1A schematic diagram of a power-on startup process of an Ethernet power supply device in the prior art;
[0044] Figure 2 An example diagram of the system framework of the present invention is shown;
[0045] Figure 3 The figure is a schematic diagram of an exemplary process of the pre-processing unit controlling the PSE chip to power on the PD according to a preset rule;
[0046] Figure 4 for Figure 3 A schematic flow chart of an implementation method of steps (b3) to (b4);
[0047] Figure 5 Another example diagram of the system framework of the present invention is shown;
[0048] Figure 6 An example diagram of the power-on startup process of the Ethernet power supply device of the present invention;
[0049] Figure 7 A schematic diagram of a process of a method for powering Ethernet according to the present invention;
[0050] Figure 8 A schematic diagram of another process of Ethernet power supply method of the present invention;
[0051] Fig. 9 The present invention is a block diagram of an Ethernet power supply device. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and beneficial effects of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0053] The main principle of the present invention is to retain the main control unit in the general PoE system power supply equipment and add a preprocessing unit. After the power supply equipment is powered on, the preprocessing unit first controls the PSE chip to detect the validity of the PD. For example, the PSE chip is set to Semi Auto mode, and the PSE chip automatically completes the PD detection and controls the PSE chip to power on the valid PD. The main control unit then completes the BIOS / BOOT startup, main program startup, device initialization, and system configuration in an orderly manner. At the same time, since the PSE chip may have powered on the PD under the control of the preprocessing unit, the main control unit will be different from the conventional situation without a preprocessing unit when configuring the system. By retaining the main control unit and adding the preprocessing unit, not only can the PoE system have rich management functions, but also the power supply speed and efficiency of the power supply equipment can be improved.
[0054] Among them, in the hardware framework of the power supply device of the present invention, the main control unit can be a main control chip, that is, the main control chip is used as a carrier to run the main control unit related program modules to complete the functions of the main control unit. The main control unit and the preprocessing unit can be integrated into the main control chip, such as a central processing unit (CPU), and the main control chip completes the functions of the main control unit and the preprocessing unit. The preprocessing unit can also be set in different chips from the main control unit, for example, the main control unit is set in the main control chip, and the preprocessing unit is set in a microcontroller (MCU).
[0055] Figure 2 An example diagram of the system framework of the present invention is shown. Figure 2 As shown, the PoE system as a whole includes a power supply, a PSE chip, a PD, a main control unit and a pre-processing unit, and the PSE chip, the main control unit and the pre-processing unit belong to the power supply device. The main control unit runs in the main control chip, and the pre-processing unit runs in the MCU. The power supply is connected to the main control chip and the MCU, and is used to power the PSE chip, the main control chip and the MCU, and to power the PD through the PSE chip. In one possible implementation, the power supply can be used only to power the PD through the PSE chip, and the PSE chip, the main control chip and the MCU are powered by a self-provided power supply. The main control chip carrying the main control unit is connected to the power supply and the PSE chip, and the MCU carrying the pre-processing unit is connected to the power supply and the PSE chip. It should be noted that the PSE chip can be powered by the main control chip or the MCU, or directly by the power supply, Figure 2 In the process, the PSE chip is connected to the main control chip and the MCU, powered by the main control chip (the MCU does not need to power the PSE), and exchanges signals with the main control chip and the MCU. The signal line connecting the PSE chip and the main control chip has both power supply and signal interaction functions, and the signal line connecting the PSE chip and the MCU only has the signal interaction function. Figure 2 The PSE chips in the PD are all multi-channel PSE chips, and each PSE chip can connect multiple PDs through the power supply port.
[0056] Wherein, the pre-processing unit is used for:
[0057] (a1) determining whether the main control unit is powered on;
[0058] (a2) if the main control unit is powered on, controlling the PSE chip to detect whether the power supply port is connected to a valid powered device;
[0059] (a3) When it is determined that the power supply port is connected to a valid powered device, the PSE chip is controlled to power on the valid PD according to a preset rule.
[0060] A volatile memory can be set in the main control unit, or a volatile memory can be connected to the main control unit. The data stored in the volatile memory disappears after the main control unit loses power. Whether the main control unit is powered on is determined by detecting whether the data in the volatile memory disappears. If the data in the volatile memory disappears, it means that the main control unit has lost power, and the startup performed is a power-on startup. After the main control unit is powered on, the data will be rewritten in the volatile memory; if the data in the volatile memory has always existed and has not disappeared, the main control unit has not lost power, and there is no need to power on. The main control unit can detect the volatile memory, the preprocessing unit is connected to the main control unit, and the detection result of the main control unit is obtained, and whether the main control unit is powered on is determined according to the detection result; or the preprocessing unit is directly connected to the volatile memory, and the data in the volatile memory is detected to determine whether the main control unit is powered on.
[0061] However, setting up a volatile memory will increase hardware consumption and is inconvenient to install. Therefore, it is better for the main control unit to use a preset logic algorithm to calculate a logic result based on the clock signal, reset signal, related state parameters, etc., and the preprocessing unit can obtain the logic result calculated by the connected main control unit, and then determine whether the main control unit is powered on based on the logic result; or the preprocessing unit obtains the clock signal, reset signal and related state parameters of the connected main control unit, and the preprocessing unit itself uses a preset logic algorithm to calculate a logic result to determine whether the main control unit is powered on.
[0062] If the main control unit is powered on, the preprocessing unit controls the PSE chip to detect whether the power supply port is connected to a valid powered device. The preprocessing unit can set the PSE chip to Semi Auto mode. The PSE chip in semi-automatic mode will automatically detect the validity of the PD connected to the power supply port, or automatically detect the validity of the connected PD and perform physical layer classification on the valid PD, but the power supply to the PD is manual, and the manual means that the power supply to the PD is controlled by an external program. In the present invention, the preprocessing unit controls which PDs the PSE chip supplies power to and according to which rules the PD is supplied. The preprocessing unit can also set the PSE chip to manual mode, and the preprocessing unit controls the PSE chip to detect whether the power supply port is connected to a valid powered device, and the preprocessing unit can control the PSE chip to perform physical layer classification on the valid PD as needed.
[0063] A valid PD refers to a PD that meets the preset standard. The PSE chip inputs a detection voltage to the power supply port, detects the impedance of the power supply port, and determines whether the power supply port is connected to a valid powered device based on the measured impedance to obtain a detection result. If the measured impedance meets the requirements, the power supply port is connected to a valid PD, otherwise, the power supply port is not connected or is connected to an invalid PD). For a valid PD, the PSE chip determines its power level. The PSE chip can specify the power level of a valid PD, for example, according to the power supply capacity of the power supply and the power consumption of the connected PD, the power level of a valid PD connected to one or some power supply ports is set by default. Or the PSE chip performs physical layer classification on the PD. The PSE can determine the maximum power that the PD can consume by applying a classification voltage to the PD and receiving the classification current emitted by the PD, and determine the power level of the PD based on this maximum power, such as Class 1 or Class 2. For example, the PSE first applies a classification voltage of 14.5V to 20.5V to the PD, and the PD returns a classification current, which indicates to the PSE the maximum power that the PD can consume, that is, the power level of the PD.
[0064] When the PSE chip completes PD detection and determines that the power supply port is connected to a valid powered device, or completes PD detection (determines that the power supply port is connected to a valid powered device) and completes physical layer classification, the preprocessing unit controls the PSE chip to power on the valid PD according to preset rules, such as Figure 3 As shown, step (a3) may include:
[0065] (b1) Obtaining the total output power of the power supply to the powered device;
[0066] (b2) Obtaining the negotiated power of each PD;
[0067] (b3) determining a powered device to be powered on according to the total output power and the negotiated power of each PD;
[0068] (b4) controlling the power supply device chip to power on the powered device to be powered on.
[0069] The preprocessing unit can obtain the total output power of the power supply to the powered device by reading the power parameters of the power supply. The total output power is the maximum power that the power supply can supply to all PDs, excluding the power consumption of the PSE chip, the main control chip and the MCU. The preprocessing unit also obtains the negotiated power of the PD connected to the power supply port, which is determined according to the power level of the PD.
[0070] Wherein, steps (b3) to (b4) are as follows Figure 4 As shown, it may specifically include:
[0071] (c1) determining whether the sum of the negotiated powers of all powered devices is greater than the total output power;
[0072] (c2) if the sum of the negotiated powers of all powered devices is greater than the total output power, determine, in a preset order, whether the negotiated power of the nth PD is less than the difference between the total output power and the negotiated powers of all powered PDs;
[0073] (c3) If the negotiated power of the nth PD is less than the difference, the PSE chip is controlled to power on the nth PD, and n=n+1;
[0074] (c4) Determine whether n is less than or equal to m;
[0075] (c5) if n is less than or equal to m, return to the step of determining whether the negotiated power of the nth PD is less than the difference between the total output power and the negotiated powers of all powered-on PDs;
[0076] (c6) If n is greater than m, the power-on process ends;
[0077] (c7) If the negotiated power of the nth PD is greater than or equal to the difference, the power-on process is terminated;
[0078] (c8) If the sum of the negotiated powers of all powered devices is less than or equal to the total output power, control the PSE chip to power on the PD in a preset order.
[0079] Where n is a natural number, and m is the total number of PDs whose negotiated power is obtained by the pre-processing unit.
[0080] After the preprocessing unit obtains the negotiated power of each PD, it calculates the sum of the negotiated powers of all PDs, and then determines whether the sum of the negotiated powers is greater than the total output power of the power supply to the powered device. If the sum of the negotiated powers is less than or equal to the total output power, it means that the power supply can bear the power consumption of all PDs, each PD can be powered on, and each PD is a PD to be powered on, so the preprocessing unit can directly power on all PDs. The PDs can be powered on in sequence according to a preset order, and the order is determined according to the power supply priority of the PD, and the power supply priority is preset by the user according to factors such as the importance of the PD and the power supply time; the PDs can also be powered on out of sequence, and the preprocessing can power on all PDs at the same time, or in a randomly generated order. The control of the PSE chip to power on the PD can enable the power switch of the PSE chip for the preprocessing unit.
[0081] If the sum of the negotiated powers is greater than the total output power, it means that the power supply can only bear the power consumption of part of the PD. In this case, the PDs are powered on in sequence according to the preset order. Specifically, for each PD that obtains the negotiated power in the preset order, the preprocessing unit first determines whether the remaining power is greater than the negotiated power of the current PD to be powered. If it is greater than the negotiated power of the current PD to be powered, the PSE is controlled to power on the current PD to be powered, and then the next PD is taken as the current PD to be powered to determine whether the negotiated power of the current PD to be powered is less than the remaining power; otherwise, if the remaining power is less than or equal to the negotiated power of the PD to be powered, it means that the remaining power is insufficient to support the power demand of the PD to be powered, so the power-on process ends. In the process of the preprocessing unit powering on the PD in a preset order, the PD hot plug may occur. If a PD connected to the power supply port is unplugged while powered, the total number of PDs m will become smaller. At the same time, if the negotiated power of the unplugged PD itself is very large, and the total negotiated power of the PSE chip power-on process controlled by the preprocessing unit has been determined, it may happen that after the PD is unplugged while powered, the total negotiated power of all PDs that are still connected is less than the output total power, resulting in an infinite loop of the preprocessing unit sequential power-on process. Therefore, when judging whether the negotiated power of the nth PD is less than the difference between the output total power and the negotiated power of all powered-on PDs, if the negotiated power of the nth PD is less than the difference, the PSE chip is controlled to power on the nth PD, and after setting n=n+1, it is judged whether n is less than m. If n is greater than m, the power-on process is terminated to prevent the infinite loop of the power-on process. It is also possible not to add the step of judging whether n is less than m, but to specify the value of n to be 1 to m-1 to prevent the infinite loop of the power-on process.
[0082] Among them, the remaining power = the total output power of the power supply - the negotiated power of all PDs that have been powered on before the current PD to be powered. It should be noted that in order to avoid the device operating at the boundary, when the remaining power is equal to the negotiated power of the PD to be powered, it is also considered that the remaining power is insufficient to support the power demand of the PD to be powered.
[0083] When the total output power of the power supply is large and can fully power any PD connected to all power supply ports, the pre-processing unit controls the PSE to power on the valid PD according to the preset rules, or directly controls the PSE to power on the valid PD in a random order or a preset order or at the same time after detecting the validity of the PD, without using the processes (c1) to (c8). The preset order can be determined by the user according to the power supply priority of the PD, and the power supply priority is determined by the user according to factors such as the importance of the PD and the power supply time.
[0084] If the power supply port is not connected to a valid PD, the pre-processing unit ends the power supply process.
[0085] Since the operation of the pre-processing unit in the MCU is independent of the operation of the main control unit, and it can start running after the main control unit is powered on, the power supply device of the PoE system does not have to wait for the main control unit to obtain the startup file, load the OS from the startup file, start the main program, and initialize various devices. The pre-processing unit can complete the detection, classification, and power supply process, thereby enabling the power supply device to quickly power on the PD. After the main control unit completes the startup of the main program, since the power-on process has basically been completed by the pre-processing unit, the main control unit does not perform the process of setting the PSE chip to semi-automatic mode to power on the PD under normal circumstances, but reads the configuration information of the PSE chip and determines whether the PSE chip has powered the PD through the configuration information. If the PSE chip has powered the PD, the main control unit obtains the status information of the PSE chip, such as the power level, current current and voltage, etc., records and saves the status information as the starting state for the subsequent control of the PSE chip; if the PSE chip has not powered the PD, the main control unit initializes the PSE chip, and subsequently sets these PSEs to semi-automatic mode when necessary and controls them to power on the PD; then the entire system configuration is completed according to the pre-saved configuration rules, and the system configuration includes setting whether to power on non-standard PDs, whether to allow high impact current at the moment of powering on, and whether to power off during PD idle time. The pre-processing unit will no longer work after completing the PD power-on, and the PSE chip will be fully controlled by the main control unit. The main control unit can be used to configure a rich management function for the PoE system, which is more conducive to the flexible control and processing of the PoE system power supply.
[0086] Figure 5 Another exemplary diagram of the system framework of the present invention is shown. Figure 5 The system framework shown is Figure 2 The difference between the system framework shown is that the preprocessing unit and the main control unit are integrated into the main control chip. The preprocessing unit can run before the main control unit runs; or run in parallel with the main control unit. Since the startup of the main program of the main control unit is the longest time-consuming stage, it is preferred that the preprocessing unit runs before the main control unit loads the main program or jumps to the main program, thereby achieving fast power-on of the PD. The pre-order time from the startup of the main control unit to the loading of the main program or the jump to the main program can be estimated in advance, and then the startup time of the preprocessing unit can be set so that the preprocessing unit starts running before the pre-order time. Figure 6This is an example diagram of the power-on startup process of the power supply device of the present invention, in which the pre-processing unit and the main control unit of the power supply device are integrated in the main control chip, and the pre-processing unit starts to run before the main control unit BIOS / BOOT initializes the DDR. After the main program of the main control unit is started, the main control unit takes over the control of the PSE chip from the pre-processing unit after initializing each device. The integration of the pre-processing unit and the main control unit in the main control chip is conducive to reducing hardware devices, but the pressure on the CPU of the main control chip will increase; the pre-processing unit and the main control unit run independently on the MCU and the main control chip respectively. Although the hardware devices will increase, the pressure on the CPU of the main control chip can be reduced.
[0087] based on Figure 2 and Figure 5 The system framework shown in the figure, the present invention also provides an Ethernet power supply method, Figure 7 A schematic diagram of a process of Ethernet power supply method is shown, such as Figure 7 As shown, the Ethernet power supply method includes:
[0088] Step S701, whether the pre-processing unit main control unit is powered on and started;
[0089] Step S702, if the main control unit is powered on, control the PSE chip to detect whether the power supply port is connected to a valid powered device;
[0090] Step S703: When it is determined that the power supply port is connected to a valid powered device, the PSE chip is controlled to power on the valid PD according to a preset rule.
[0091] Figure 8 A schematic diagram of another Ethernet power supply method is shown. Figure 8 As shown, the Ethernet power supply method includes:
[0092] Step S801, whether the pre-processing unit main control unit is powered on and started;
[0093] Step S802, if the main control unit is powered on, control the PSE chip to detect whether the power supply port is connected to a valid powered device;
[0094] Step S803: When it is determined that the power supply port is connected to a valid powered device, the PSE chip is controlled to power on the valid PD according to a preset rule.
[0095] Step S804, the main control unit reads the configuration information of the PSE chip;
[0096] Step S805, judging whether the PSE chip has supplied power to the PD according to the configuration information;
[0097] Step S806: If the PSE chip has supplied power to the PD, then obtain the status information of the PSE chip;
[0098] Step S807, if the PSE chip does not power the PD, initialize the PSE chip; and,
[0099] Step S808: completing system configuration according to pre-saved configuration rules.
[0100] A volatile memory can be set in the main control unit, or the volatile memory can be connected to the main control unit. In the method, the preprocessing unit can determine whether the main control unit is powered on by detecting whether the data in the volatile memory disappears. If the data in the volatile memory disappears, it means that the main control unit is powered off, then the startup performed by the main control unit is a power-on startup, and the main control unit will rewrite the data in the volatile memory after powering on. If the data in the volatile memory has always existed and has not disappeared, the main control unit has not been powered off, and there is no need to power on. The preprocessing unit can be connected to the main control unit to obtain the detection result of the main control unit on the volatile memory, and determine whether the main control unit is powered on according to the detection result, or the preprocessing unit can be directly connected to the volatile memory, and the preprocessing unit can determine whether the main control unit is powered on by detecting the data in the volatile memory.
[0101] However, setting up a volatile memory will increase hardware consumption and is inconvenient to install. Therefore, it is better that the pre-processing unit obtains the logical result calculated by the connected main control unit, and the logical result is used to determine whether the main control unit is powered on and started, and is calculated by the main control unit based on the clock signal, reset signal and related state parameters using a preset logical algorithm; or the pre-processing unit obtains the clock signal, reset signal and related state parameters of the connected main control unit, uses a preset logical algorithm to calculate the logical result, and then determines whether the main control unit is powered on and started based on the logical result.
[0102] If the main control unit is powered on, in one possible implementation, the preprocessing unit sets the PSE chip to the Semi Auto mode. In different PoE standards, the PSE chip in the semi-automatic mode will automatically detect whether the power supply port is connected to a valid PD, or automatically detect whether the power supply port is connected to a valid PD, and perform physical layer classification on the valid PD; in another possible implementation, the preprocessing unit sets the PSE chip to the manual mode, and the preprocessing unit sends instructions to the PSE chip to control the PSE chip to detect whether the power supply port is connected to a valid PD. After the detection is completed, the preprocessing unit can also send instructions to the PSE chip to control the PSE chip to perform physical layer classification on the PD. For a valid PD, the PSE chip determines the power level, the PSE chip can specify the power level of the valid PD, or the PSE chip determines the power level of the PD by classifying the physical layer of the PD.
[0103] For valid PDs, the preprocessing unit controls the PSE chip to power on them according to preset rules. If the total output power of the power supply is large, it is completely possible to power any PD of all power supply ports. In this case, the preprocessing unit controls the PSE to power on the PD according to preset rules, and can control the PSE to power on valid PDs directly in a random order or a preset order or at the same time after detecting the validity of the PD. The preset order can be determined by the user according to the power supply priority of the PD, and the power supply priority is determined by the user according to factors such as the importance of the PD and the power supply time.
[0104] The controlling the PSE chip to power on the valid PD according to the preset rules may specifically also include: the pre-processing unit first obtains the total output power of the power supply by reading the power parameters of the power supply, the total output power is the maximum power that the power supply can supply to all PDs, and does not include the power consumption of the PSE chip, the main control chip and the MCU. After obtaining the total output power, the pre-processing unit obtains the negotiated power of the valid PD, and the negotiated power is determined according to the power level of the PD. After the pre-processing unit obtains the negotiated power of each PD, it calculates the sum of the negotiated powers of all PDs, and determines whether the sum of the negotiated powers is less than or equal to the total output power of the power supply. If the sum of the negotiated powers is less than or equal to the total output power, the PSE chip is controlled to power on the PD in sequence according to a random order or a preset order. The pre-processing unit can power on the PD by enabling the power switch of the PSE chip, and then the PSE chip supplies power to the PD according to the negotiated power of the PD. The preset order is determined by the user according to the power supply priority of the PD, and the power supply priority is determined by the user according to factors such as the importance of the PD and the power supply time. If the sum of the negotiated powers is greater than the total output power, the preprocessing unit determines whether the negotiated power of the nth PD is less than the remaining power in a preset order, where the remaining power = the total output power of the power supply - the negotiated power of all powered-on PDs; if the negotiated power of the nth PD is less than the remaining power, the PSE chip is controlled to power on the nth PD, setting n = n + 1, and returns to the step of determining whether the negotiated power of the nth PD is less than the remaining power, that is, the above judgment and power-on control are performed on the next PD in a preset order until all PDs that have obtained the negotiated power are processed. Where n is a natural number, n = 1, 2, ... m-1, and m is the total number of PDs whose negotiated power is obtained by the preprocessing unit.
[0105] After the main control unit completes the startup of the main program, the power-on process has basically been completed in advance by the pre-processing unit. Therefore, the main control unit does not perform the process of setting the PSE chip to semi-automatic mode to power on the PD under normal circumstances, but reads the configuration information of the PSE chip, and determines whether the PSE chip has powered the PD through the configuration information. If the PSE chip has powered the PD, the main control unit obtains the status information of the PSE chip as the starting state for subsequent control of the PSE chip; if the PSE chip has not powered the PD, the PSE chip is initialized as in the case without the pre-processing unit; then the main control unit completes the entire system configuration according to the pre-saved configuration rules. The pre-processing unit no longer works after completing the PD power-on, and the main control unit takes over the control of the PSE chip. The main control unit can be used to configure a rich management function for the PoE system, which is more conducive to the flexible processing of the PoE system power supply.
[0106] Fig. 9A block diagram of an Ethernet power supply device is shown, the Ethernet power supply device includes a preprocessing module and a main control module, the preprocessing module and the main control module can be installed in the main control chip at the same time, or the preprocessing module is installed in the MCU, and the main control module is installed in the main control chip.
[0107] The preprocessing module comprises:
[0108] The power-on startup judgment submodule is used to judge whether the main control chip is powered on and started;
[0109] A PSE control submodule, used to control the PSE chip to detect whether the power supply port is connected to a valid powered device if the main control unit is powered on;
[0110] A power-on control submodule, used to control the PSE chip to power on the valid PD according to a preset rule when it is determined that the power supply port is connected to a valid powered device;
[0111] The main control module comprises:
[0112] A power supply determination submodule, used to determine whether the PSE chip has supplied power to the PD;
[0113] A PSE status information reading submodule, used to obtain status information of the PSE chip if the PSE chip has supplied power to the PD;
[0114] A PSE initialization submodule, used to initialize the PSE chip if the PSE chip does not supply power to the PD;
[0115] The system configuration submodule is used to complete the system configuration according to the pre-saved configuration rules.
[0116] Among them, if the pre-processing module is installed in the main control chip, a volatile memory can be set in the main control chip, and the power-on startup judgment submodule can determine whether the main control chip is powered on by detecting whether the data in the volatile memory disappears. If the data in the volatile memory disappears, it means that the main control chip is powered off, and the startup performed by the main control chip is a power-on startup; if the data in the volatile memory has always existed and has not disappeared, the main control chip is not powered off, and there is no need to power on. If the pre-processing module is installed in an MCU independent of the main control chip, the main control chip can detect the volatile memory, and the power-on startup judgment submodule obtains the detection result of the main control chip on the volatile memory, and determines whether the main control chip is powered on according to the detection result.
[0117] Setting up a volatile memory will increase hardware consumption. It is better that the main control chip uses a preset logic algorithm to calculate a logic result based on the clock signal, reset signal and related state parameters, and the logic result is used to determine whether the main control chip is powered on and started. The power-on startup judgment submodule obtains the logic result calculated by the main control chip, and determines whether the main control chip is powered on and started according to the logic result; or the power-on startup judgment submodule obtains the clock signal, reset signal and related state parameters of the main control chip, and uses a preset logic algorithm to calculate a logic result, and then determines whether the main control unit is powered on and started according to the logic result. The above scheme can be realized when the preprocessing module is installed in the main control chip or the MCU.
[0118] Among them, the PSE control submodule can set the PSE chip to semi-automatic mode. In different PoE standards, the PSE chip in semi-automatic mode will automatically detect whether the power supply port is connected to a valid powered device, or automatically detect whether the power supply port is connected to a valid powered device, and perform physical layer classification on the valid PD. The PSE control submodule can also set the PSE chip to manual mode, and the PSE control submodule sends instructions to the PSE chip to control the PSE chip to detect whether the power supply port is connected to a valid powered device, or the PSE control submodule sends instructions to the PSE chip to control the PSE chip to perform validity detection and physical layer classification on the PD. For a valid PD, the PSE chip determines the power level. The PSE chip can specify the power level of the valid PD, or the PSE chip determines the power level of the PD by grading the physical layer of the PD.
[0119] Wherein, when the power-on control submodule controls the PSE chip to power on the valid PD according to the preset rules, the total output power of the power supply is first obtained by reading the power parameters of the power supply, and the total output power is the maximum power that the power supply can supply to all PDs. After obtaining the total output power, the power-on control submodule obtains the negotiated power of the PD connected to the power supply port, and the negotiated power is determined according to the power level of the PD. After obtaining the negotiated power of each PD, the power-on control submodule calculates the sum of the negotiated powers of all PDs, and determines whether the sum of the negotiated powers is less than or equal to the total output power of the power supply. If the sum of the negotiated powers is less than or equal to the total output power, the PSE chip is controlled to power on the PD in sequence according to a random order or a preset order. The power-on control submodule can power on the PD by enabling the power switch of the PSE chip, and then the PSE chip supplies power to the PD according to the negotiated power of the PD. The preset order is determined by the user according to the power supply priority of the PD, and the power supply priority is determined by the user according to factors such as the importance of the PD and the power supply time. If the sum of the negotiated powers is greater than the total output power, the power-on control submodule determines whether the negotiated power of the nth PD is less than the remaining power in a preset order, where the remaining power = the total output power of the power supply - the negotiated power of all powered-on PDs; if the negotiated power of the nth PD is less than the remaining power, the PSE chip is controlled to power on the nth PD, setting n = n + 1, and returns to the step of determining whether the negotiated power of the nth PD is less than the remaining power, until all PDs that have obtained the negotiated power are processed. Where n is a natural number, n = 1, 2, ... m-1, and m is the total number of PDs whose negotiated power is obtained by the preprocessing unit.
[0120] If the total output power of the power supply is large, it is possible to power any PD of all ports of the PSE chip. In this case, the power-on control submodule controls the PSE to power on the valid PD according to the preset rules, or directly controls the PSE to power on the valid PD in a random order or a preset order or simultaneously after detecting the validity of the PD. The preset order can be determined by the user according to the power supply priority of the PD, and the power supply priority is determined by the user according to factors such as the importance of the PD and the power supply time.
[0121] The preprocessing module and the main control module can be installed in the main control chip at the same time and executed by the main control chip. The preprocessing module can be executed before the main control module is executed, or it can be executed in parallel with the main control module. Since the main program of the main control module takes the longest time to start, it is preferred that the preprocessing module is executed before the main control module loads the main program or jumps to the main program, so as to realize fast power-on of the PD. The pre-order time from the start of the main control module to the loading of the main program or the jump to the main program can be estimated in advance, and then the start-up time of the preprocessing module can be set, so that the preprocessing module starts running before the pre-order time. The main control module can also be installed in the main control chip, and the preprocessing module can be installed in an MCU independent of the main control chip. The preprocessing module and the main control module are executed independently, and the preprocessing module is executed by the MCU after the main control chip is powered on. Therefore, the Ethernet power supply device does not have to wait for the main control module to execute the process of obtaining the startup file, loading the OS from the startup file, starting the main program, and initializing each device of the main program, so as to realize fast power-on of the PD. Moreover, the main control module can be used to configure a variety of management functions for the PoE system to improve the flexibility and efficiency of PoE system power supply management.
[0122] After the main control module completes the startup of the main program, the power-on process has basically been completed in advance by the pre-processing module. Therefore, the main control module does not perform the process of setting the PSE chip to semi-automatic mode to power on the PD under normal circumstances, but the power supply judgment submodule reads the configuration information of the PSE chip and determines whether the PSE chip has powered the PD through the configuration information. If the PSE chip has powered the PD, the PSE status information reading submodule obtains the status information of the PSE chip as the starting state for subsequent PSE chip control; if the PSE chip has not powered the PD, the PSE initialization submodule initializes the PSE chip as in the case without the pre-processing module; then the system configuration submodule completes the entire system configuration according to the pre-saved configuration rules. The pre-processing module no longer works after completing the PD power-on, and the main control module takes over the control of the PSE chip.
[0123] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.
[0124] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that has the functions specified in one or more boxes.
[0125] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0127] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0128] The above-described embodiments of the present invention do not constitute a limitation on the protection scope of the present invention. Any modification, equivalent replacement and improvement made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A power supply device, comprising a power supply device chip, a main control unit and a power supply port, characterized in that: It also includes a pre-processing unit, the pre-processing unit is used to: Determining whether the main control unit is powered on and started; If the main control unit is powered on and started, before the main control unit completes the power-on and startup procedure, the power supply device chip is controlled to detect whether the power supply port is connected to a valid powered device, and the preprocessing unit runs before the main control unit runs, or runs in parallel with the main control unit; When it is determined that the power supply port is connected to a valid powered device, the power supply device chip is controlled to power on the valid powered device according to a preset rule.
2. The power supply device according to claim 1, characterized in that: The main control unit is used for: Determining whether the power supply device chip has supplied power to the powered device; If the power supply device chip has supplied power to the powered device, obtaining status information of the power supply device chip; If the power supply device chip does not supply power to the powered device, initializing the power supply device chip; Complete system configuration according to pre-saved configuration rules.
3. The power supply device according to claim 1, characterized in that: The preprocessing unit controls the power supply device chip to detect whether the power supply port is connected to a valid powered device after the main control unit is powered on and before the main control unit completes BIOS / BOOT startup, main program startup, device initialization and system configuration processing.
4. The power supply device according to claim 3, characterized in that: The pre-processing unit sets the power supply device chip to the Semi Auto mode, so that the power supply device chip automatically completes the detection of the PD and controls the power supply device chip to power on the valid PD.
5. The power supply device according to any one of claims 1 to 4, characterized in that: Whether the main control unit is powered on and started is determined by detecting whether the data in the volatile memory disappears.
6. The power supply device according to any one of claims 1 to 4, characterized in that: When the preprocessing unit controls the power supply device chip to power on the valid powered device according to a preset rule, it is specifically used to: Obtain the total output power of the power supply to the powered device; Obtain the negotiated power of each powered device; Determine the powered device to be powered on according to the total output power and the negotiated power of each powered device; The power supply device chip is controlled to power on the powered device to be powered on.
7. The power supply device according to claim 6, characterized in that: The preprocessing unit and the main control unit run in the main control chip, and the preprocessing unit runs before the main control unit loads or jumps to the main program; Alternatively, the main control unit runs in a main control chip, the pre-processing unit runs in a microcontroller independent of the main control chip, and the microcontroller is connected to the power supply and the power supply device chip.
8. An Ethernet power supply method, applied to a power supply device, the power supply device comprising a power supply device chip, a main control unit, a power supply port, and a pre-processing unit, characterized in that: The method comprises: The pre-processing unit determines whether the main control unit is powered on and started; If the main control unit is powered on and started, the pre-processing unit controls the power supply device chip to detect whether the power supply port is connected to a valid powered device before the main control unit completes the power-on and startup procedure, and the pre-processing unit runs before the main control unit runs, or runs in parallel with the main control unit; When it is determined that the power supply port is connected to a valid powered device, the preprocessing unit controls the power supply device chip to power on the valid powered device according to a preset rule.
9. The Ethernet power supply method according to claim 8, characterized in that: Also includes: The main control unit determines whether the power supply device chip has supplied power to the powered device; If the power supply device chip has supplied power to the powered device, obtaining status information of the power supply device chip; If the power supply device chip does not supply power to the powered device, initializing the power supply device chip; Complete system configuration according to pre-saved configuration rules.
10. The Ethernet power supply method according to claim 8, characterized in that: The preprocessing unit controls the power supply device chip to detect whether the power supply port is connected to a valid powered device after the main control unit is powered on and before the main control unit completes BIOS / BOOT startup, main program startup, device initialization and system configuration processing.
11. The Ethernet power supply method according to claim 10, characterized in that: The pre-processing unit sets the power supply device chip to the Semi Auto mode, so that the power supply device chip automatically completes the detection of the PD and controls the power supply device chip to power on the valid PD.
12. The Ethernet power supply method according to any one of claims 8 to 11, characterized in that: Whether the main control unit is powered on and started is determined by detecting whether the data in the volatile memory disappears.
13. The Ethernet power supply method according to claim 12, characterized in that: The pre-processing unit powers on the valid powered device according to a preset rule, including: Obtain the total output power of the power supply to the powered device; Obtain the negotiated power of each powered device; Determine the powered device to be powered on according to the total output power and the negotiated power of each powered device; The power supply device chip is controlled to power on the powered device to be powered on.
14. An Ethernet power supply device, characterized in that: Including main control module and pre-processing module; The preprocessing module comprises: The power-on startup judgment submodule is used to judge whether the main control module is powered on and started; A PSE control submodule, which is used to control the power supply device chip to detect whether the power supply port is connected to a valid powered device before the main control module completes the power-on startup procedure if the main control module is powered on and started, and the preprocessing module runs before the main control module runs, or runs in parallel with the main control module; The power-on control submodule is used to control the power supply device chip to power on the valid powered device according to a preset rule when it is determined that the power supply port is connected to a valid powered device.
15. The Ethernet power supply device according to claim 14, characterized in that: The main control module comprises: A power supply determination submodule, used to determine whether the power supply device chip has supplied power to the powered device; A PSE status information reading submodule, used for obtaining status information of the power supply device chip if the power supply device chip has supplied power to the powered device; A PSE initialization submodule, configured to initialize the power supply device chip if the power supply device chip does not supply power to the powered device; The system configuration submodule is used to complete the system configuration according to the pre-saved configuration rules.
16. The Ethernet power supply device according to claim 14 or 15, characterized in that: The preprocessing module and the main control module are installed in the main control chip, and the preprocessing module runs before the main control module is loaded or jumps to the main program; Alternatively, the main control module is installed in a main control chip, the pre-processing module is installed in a microcontroller independent of the main control chip, and the microcontroller is connected to a power supply and a power supply device chip.
Citation Information
Patent Citations
Method for power over Ethernet, power sourcing equipment and system for power over Ethernet
CN104954145A
Camera starting method for mobile terminal and mobile terminal
CN105120112A