CN110677264B - Method and device for processing power supply fault - Google Patents

Method and device for processing power supply fault Download PDF

Info

Publication number
CN110677264B
CN110677264B CN201910945628.1A CN201910945628A CN110677264B CN 110677264 B CN110677264 B CN 110677264B CN 201910945628 A CN201910945628 A CN 201910945628A CN 110677264 B CN110677264 B CN 110677264B
Authority
CN
China
Prior art keywords
power
preset
power supply
output
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910945628.1A
Other languages
Chinese (zh)
Other versions
CN110677264A (en
Inventor
朱建宇
李俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN201910945628.1A priority Critical patent/CN110677264B/en
Publication of CN110677264A publication Critical patent/CN110677264A/en
Application granted granted Critical
Publication of CN110677264B publication Critical patent/CN110677264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides a method and a device for processing a power supply fault, relates to the technical field of communication, and can improve the maintenance efficiency of a power supply system. The scheme of this application includes: judging whether the capacitor of the power receiving equipment PD connected with the power supply port is in the standard capacitor range or not and whether the resistor is in the standard resistor range or not; if not, sequentially outputting a first preset number of test voltages; judging whether the capacitance of the PD is within a preset capacitance range and whether the resistance of the PD is within a preset resistance range when each test voltage in the first preset number of test voltages is output; if so, supplying power to the PD according to a preset output voltage; if not, sequentially outputting a second preset number of test voltages; judging whether the capacitance of the PD is within a preset capacitance range and whether the resistance of the PD is within a preset resistance range when each test voltage of a second preset number of test voltages is output; and if so, supplying power to the PD according to the preset output voltage.

Description

Method and device for processing power supply fault
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a power supply fault.
Background
Power over Ethernet (PoE), also called remote Power supply, refers to a Device that remotely powers an external Powered Device (PD) through an Ethernet interface by using a twisted pair.
In recent years, with the increasing types of PD devices, a large number of PDs which do not meet the specification may exist in the power supply system, which causes various faults in the POE power supply process, for example, the POE cannot supply power, or the POE supplies power abnormally. After these problems appear among the prior art, need the people to know the specific problem that customer's PD appears to gather the state information of the inside state register storage of PSE chip through the command line, and then go the on-the-spot modification register or upgrade PSE firmware version according to the problem of knowing and the state information of gathering, at this in-process, need gather information repeatedly, adjust repeatedly, just can solve the trouble, lead to maintenance efficiency lower.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for processing a power failure, so as to improve maintenance efficiency of a power supply system. The specific technical scheme is as follows:
in a first aspect, the present application provides a method for processing a power supply failure, where the method is applied to a power over ethernet POE switch, and the method includes:
judging whether the capacitor of the power receiving equipment PD connected with the power supply port is in the standard capacitor range or not and whether the resistor is in the standard resistor range or not;
if not, sequentially outputting a first preset number of test voltages;
judging whether the capacitance of the PD is within a preset capacitance range and whether the resistance of the PD is within a preset resistance range when each test voltage in the first preset number of test voltages is output; the preset capacitance range is larger than the standard capacitance range, and the preset resistance range is larger than the standard resistance range;
if so, supplying power to the PD according to a preset output voltage;
if not, sequentially outputting a second preset number of test voltages, wherein the second preset number is smaller than the first preset number;
judging whether the capacitance of the PD is within the preset capacitance range and whether the resistance of the PD is within the preset resistance range when each test voltage in the second preset number of test voltages is output;
and if so, supplying power to the PD according to a preset output voltage.
In one possible implementation, the method further includes:
if the PD is determined not to be powered according to the preset output voltage, the PD is powered forcibly according to the preset output voltage;
detecting whether output power exists in the power supply port;
and if so, continuing to supply power to the PD according to the preset output voltage.
In one possible implementation, the method further includes:
if the PD is detected to be powered off, detecting whether output power exists in the power supply port;
and if the power supply port has output power and the Link Layer Discovery Protocol (LLDP) message of the PD which is received last time is overtime, restarting the power supply port, and supplying power to the PD according to the preset output voltage.
In one possible implementation, after detecting whether there is output power at the power supply port if the PD is powered off, the method further includes:
if the power supply port does not have output power, acquiring a power-off reason of the PD;
and updating the parameter value of the register corresponding to the power-off reason according to the power-off reason of the PD.
In a possible implementation manner, the updating, according to the power-off reason of the PD, the parameter value of the register corresponding to the power-off reason includes:
if the power-off reason is that the instantaneous impact current of the PD is larger than an impact current turn-off threshold value, increasing the threshold value in an impact current turn-off threshold value register to a first preset current value; or,
if the power-off reason is that the instantaneous current of the PD is smaller than a specified current turn-off threshold value, reducing the threshold value in a specified current turn-off threshold value register to a second preset current value; or,
and if the power-off reason is that the instantaneous power of the PD is greater than an output power threshold value, increasing the threshold value in an output power threshold value register to a preset output power threshold value.
In a second aspect, the present application provides a power supply failure handling device, the device is applied to a power over ethernet POE switch, the device includes:
the first judgment module is used for judging whether the capacitor of the powered device PD connected with the power supply port is in the standard capacitor range or not and whether the resistor is in the standard resistor range or not;
the test module is used for outputting a first preset number of test voltages in sequence if the judgment result of the first judgment module is negative;
the second judging module is used for judging whether the capacitance of the PD is in a preset capacitance range or not and whether the resistance of the PD is in a preset resistance range or not when each test voltage in the first preset number of test voltages is output; the preset capacitance range is larger than the standard capacitance range, and the preset resistance range is larger than the standard resistance range;
the power supply module is used for supplying power to the PD according to a preset output voltage if the judgment result of the second judgment module is positive;
the test module is further configured to output a second preset number of test voltages in sequence if the determination result of the second determination module is negative, where the second preset number is smaller than the first preset number;
a third determining module, configured to determine whether the capacitance of the PD is within the preset capacitance range and whether the resistance of the PD is within the preset resistance range when each of the second preset number of test voltages is output;
the power supply module is further configured to perform forced power supply on the PD according to a preset output voltage if it is determined that the PD is not powered according to the preset output voltage.
In one possible implementation, the apparatus further includes: a first detection module;
the power supply module is further configured to supply power to the PD according to the preset output voltage if the determination result of the third determination module is negative;
the first detection module is used for detecting whether output power exists in the power supply port;
the power supply module is further configured to continue to supply power to the PD according to the preset output voltage if the detection module detects that the power supply port has the output power.
In one possible implementation, the apparatus further includes: a second detection module;
the second detection module is configured to detect whether output power exists at the power supply port if it is detected that the PD is powered off;
the power supply module is further configured to restart the power supply port and supply power to the PD according to the preset output voltage if the power supply port has output power and a link layer discovery protocol LLDP message of the PD received last time is overtime.
In one possible implementation, the apparatus further includes: the device comprises an acquisition module and an updating module;
the obtaining module is configured to obtain a power-off reason of the PD if the power supply port does not have output power;
and the updating module is used for updating the parameter value of the register corresponding to the power-off reason according to the power-off reason of the PD.
In a possible implementation manner, the update module is specifically configured to:
if the power-off reason is that the instantaneous impact current of the PD is larger than an impact current turn-off threshold value, increasing the threshold value in an impact current turn-off threshold value register to a first preset current value; or,
if the power-off reason is that the instantaneous current of the PD is smaller than a specified current turn-off threshold value, reducing the threshold value in a specified current turn-off threshold value register to a second preset current value; or,
and if the power-off reason is that the instantaneous power of the PD is greater than an output power threshold value, increasing the threshold value in an output power threshold value register to a preset output power threshold value.
In a third aspect, an embodiment of the present application provides a POE switch, where the POE switch includes: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method of implementing power failure handling as described in the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method for processing power supply failure in the first aspect.
In a fifth aspect, the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the method for power failure handling described in the first aspect.
By adopting the method and the device for processing the power supply fault, provided by the embodiment of the application, the PSE can screen the reason that the PD cannot be supplied with power by detecting whether the capacitor and the resistor of the PD are in the range of the standard capacitor and the range of the standard resistor, and if the capacitor of the PD is not in the range of the standard capacitor or the resistor is not in the range of the standard resistor, the detection range of the capacitor and the resistor can be expanded. And if the detection range is expanded, outputting a first preset number of test voltages, and supplying power to the terminal if the capacitance and the resistance of the PD conform to the expanded detection range after each test voltage is detected and output. If the output test voltages do not meet the requirements, the number of the output test voltages is reduced, whether the capacitance and the resistance of the PD meet the expanded detection range or not is judged according to each output test voltage, and if the capacitance and the resistance meet the expanded detection range, the PD can be powered. Therefore, in the embodiment of the application, the PSE can eliminate the influence of the factors which can not supply power to the PD through gradually relaxing the detection conditions, so that the power supply to the PD is realized, the manual repeated information acquisition is not needed, the PSE can automatically adjust the detection conditions to recover the power supply, and the maintenance efficiency is improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a power supply system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for processing a power failure according to an embodiment of the present application;
fig. 3 is a flowchart of another power failure processing method according to an embodiment of the present disclosure;
fig. 4 is a flowchart of another power failure processing method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a method for processing a power failure according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a power failure processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a POE switch according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a power supply system provided in an embodiment of the present application, where the system includes a POE power source, a power-sourcing equipment (PSE), and a PD.
And the POE power supply is used for supplying power to the power supply system.
The PSE in this application embodiment is Artificial Intelligence (AI) POE switch, has two at least power supply ports on a PSE, and PSE is connected to PD accessible power supply port. The main functions of the PSE include detecting an accessed PD, classifying the accessed PD, supplying power and managing power to the accessed PD, monitoring the accessed PD in real time, determining whether the connection with the PD is disconnected, and the like.
The PD is a device powered by the PSE, and may be an IP phone, an Access Point (AP), a portable device charger, a network camera, or the like.
One PSE may be connected to one or more POE power sources, and one PSE may be connected to at least one PD, and fig. 1 exemplarily shows one POE power source, one PSE connected to the POE power source, and 3 PDs connected to power supply ports of the PSE power source, although the number of devices in practical applications is not limited thereto.
Based on the power supply system shown in fig. 1, an embodiment of the present application provides a method for processing a power supply failure, where the method is applied to a POE switch, that is, a PSE in fig. 1, and as shown in fig. 2, the method includes:
s201, judging whether the capacitor of the PD connected with the power supply port is in the standard capacitor range or not and whether the resistor is in the standard resistor range or not.
If yes, executing S204, and supplying power to the PD according to the preset output voltage; if not, go to S202.
The standard capacitance range and the standard resistance range are respectively the capacitance range and the resistance range specified by IEEE802.3af/at.
S202, sequentially outputting a first preset number of test voltages.
Alternatively, the PSE may output a test voltage at specified detection intervals, for example, the specified detection intervals may be 50 milliseconds.
S203, judging whether the capacitance of the PD is in a preset capacitance range and whether the resistance of the PD is in a preset resistance range when each test voltage in the first preset number of test voltages is output.
If yes, executing S204; if not, go to S205.
The preset capacitance range is larger than the standard capacitance range, and the preset resistance range is larger than the standard resistance range.
It can be understood that if the capacitance and resistance of the PD do not meet the standard capacitance range and standard resistance range corresponding to the standard test, the test standard is lowered, i.e., the standard capacitance range and standard resistance range are expanded. In the embodiment of the present application, the detection process after the detection criterion is lowered may be referred to as a non-standard detection process.
If the capacitance of the PD is within the preset capacitance range and the resistance of the PD is within the preset resistance range for each output test voltage, the PD meets the detection condition of the non-standard detection, and then S204 is performed.
If the capacitance of the PD is not within the preset capacitance range or the resistance of the PD is not within the preset resistance range for any output test voltage, the PD does not meet the detection condition of the non-standard detection, and then S205 is performed.
And S204, supplying power to the PD according to the preset output voltage.
And S205, sequentially outputting a second preset number of test voltages.
Wherein the second preset number is smaller than the first preset number.
If the determination result of S203 is negative, it may be that there is interference in the power supply link, so that the detected voltage waveform is distorted after the PSE outputs the test voltage to affect the determination of the PSE. For example, the first preset number may be 4, and the second preset number may be 2.
In the embodiment of the application, the CPU of the PSE may modify the first preset number in the test voltage output number register to a second preset number.
That is, after the PSE outputs one test voltage, a second test voltage is output at an interval of 50 milliseconds.
S206, judging whether the capacitor of the PD is in a preset capacitor range or not and whether the resistor of the PD is in a preset resistor range or not when each test voltage in the second preset number of test voltages is output.
If yes, executing S204; if not, go to S207.
And S207, the PD is not powered.
And if the capacitor of the PD is in the preset capacitor range and the resistor of the PD is in the preset resistor range for each of the output second test voltages, determining that the PD meets the detection condition of the non-standard detection, and further supplying power to the PD according to the preset output voltage.
By adopting the power supply fault processing method provided by the embodiment of the application, the PSE can screen the reason that the PD cannot be supplied with power by detecting whether the capacitor and the resistor of the PD are in the range of the standard capacitor and the range of the standard resistor, and if the capacitor of the PD is not in the range of the standard capacitor or the resistor is not in the range of the standard resistor, the detection range of the capacitor and the resistor can be expanded. And if the detection range is expanded, outputting a first preset number of test voltages, and supplying power to the terminal if the capacitance and the resistance of the PD conform to the expanded detection range after each test voltage is detected and output. If the output test voltages do not meet the requirements, the number of the output test voltages is reduced, whether the capacitance and the resistance of the PD meet the expanded detection range or not is judged according to each output test voltage, and if the capacitance and the resistance meet the expanded detection range, the PD can be powered. Therefore, in the embodiment of the application, the PSE can eliminate the influence of the factors which can not supply power to the PD through gradually relaxing the detection conditions, so that the power supply to the PD is realized, the manual repeated information acquisition is not needed, the PSE can automatically adjust the detection conditions to recover the power supply, and the maintenance efficiency is improved.
In one implementation manner of the embodiment of the present application, as shown in fig. 3, the method further includes the following steps:
s301, if the PD is determined not to be powered according to the preset output voltage, the PD is powered forcibly according to the preset output voltage.
S302, whether output power exists in the power supply port is detected.
If yes, executing S303; if not, go to step S304.
Alternatively, if the power supply port does not have output power, it indicates that the power supply link has a hardware fault, and the output voltage, i.e. the forced power supply to the PD, may be stopped.
And S303, continuously supplying power to the PD according to the preset output voltage.
And S304, stopping power supply to the PD.
By adopting the method, after the PSE relaxes the detection condition, if the PD still does not accord with the detection condition, the PSE can forcibly supply power to the PD according to the preset output voltage, and if the output power is detected at the power supply port, the power supply to the PD is proved to be successful, and the power supply to the PD can be continued according to the preset output voltage. Therefore, under the condition that the PD cannot supply power to the PD due to the fact that the capacitance or the resistance of the PD does not accord with the detection condition, the PSE can directly try to supply power to the PD according to the preset output voltage, and the problem that the power cannot be supplied to the PD is solved under the condition that hardware faults are eliminated.
In an implementation manner of the embodiment of the present application, in a process of supplying power to a PD by a PSE, there may also be a situation of a power supply failure, and based on this, as shown in fig. 4, the method for processing the power supply failure provided in the embodiment of the present application further includes the following steps:
s401, if the PD is detected to be powered off, whether the power supply port has output power is detected.
If the output power exists at the power supply port, S402 is executed.
S402, if a Link Layer Discovery Protocol (LLDP) message of the PD which is received last time is overtime, restarting a power supply port, and supplying power to the PD according to a preset output voltage.
If the power supply port has output power, the CPU of the PSE can judge whether the PD is powered off due to abnormal operation of the PD, if the LLDP message of the PD received last time is overtime, the PD can be powered off due to abnormal operation of the PD, the PSE can realize powering on the PD again after powering off the PD by restarting the power supply port, and the power is supplied to the PD according to preset output voltage.
Alternatively, if there is no output power at the power supply port, S403 to S404 may be further performed.
And S403, if the output power does not exist in the power supply port, acquiring the power-off reason of the PD.
In the embodiment of the application, the PSE can detect the state of each PD in real time in the process of supplying power to the PD, and when detecting that the PD is abnormal in state, for example, the current is too large or the current is too low, the PSE can perform power failure processing on the PD which is abnormal in operation, and store the power failure reason in a corresponding register.
Therefore, when the PSE detects that there is no output power at the power port, the stored reason for the power outage may be retrieved.
S404, updating the parameter value of the register corresponding to the power-off reason according to the power-off reason of the PD.
Based on different outage reasons, PSE can update the parameter value of different registers, in this application embodiment, because PSE is AI POE switch, so PSE's CPU can be based on different reason of falling the power, updates the parameter value of different registers in the PSE chip, specifically includes following three kinds of circumstances:
in the first situation, if the power failure reason is that the instantaneous impact current of the PD is greater than the impact current turn-off threshold, the threshold in the impact current turn-off threshold register is increased to a first preset current value.
And based on the protection mechanism of the PSE, when the instantaneous impact current of the PD is greater than the impact current cut-off threshold value, the PSE stops supplying power to the PD. In the embodiment of the application, after the CPU of the PSE improves the threshold value in the impact current turn-off threshold value register in the PSE chip, the PSE can continuously supply power to the PD, and the power failure caused by the fact that the instantaneous impact current of the PD is larger than the impact current turn-off threshold value before adjustment can be avoided.
As an example, the inrush current off threshold is 590 milliamps and the first preset current threshold is 700 milliamps.
And in the second situation, if the power-off reason is that the instantaneous current of the PD is smaller than the specified current turn-off threshold value, the threshold value in the specified current turn-off threshold value register is reduced to a second preset current value.
Similar to the situation, based on the protection mechanism of the PSE, when the instantaneous current of the PD is less than the specified current shutdown threshold, the PSE stops supplying power to the PD. In the embodiment of the application, after the CPU of the PSE reduces the threshold value in the specified current turn-off threshold value register in the PSE chip, the PSE can continuously supply power to the PD, and the power failure caused by the fact that the instantaneous current of the PD is smaller than the specified current turn-off threshold value before adjustment can be avoided.
The impact current turn-off threshold is greater than the specified current turn-off threshold, the value range of the specified current turn-off threshold can be a value between 5 milliamperes and 10 milliamperes, as an example, the specified current turn-off threshold is 5 milliamperes, and the second preset current value is 3 milliamperes.
And in case of a third situation, if the power failure reason is that the instantaneous power of the PD is greater than the output power threshold, the threshold in the output power threshold register is increased to the preset output power threshold.
Similarly based on the protection mechanism of PSE, if the instantaneous power of PD is greater than the output power limit, PSE will think that PD is overloaded, also can stop supplying power, in this application embodiment, after the CPU of PSE reduced the threshold value in the output power threshold value register in the PSE chip, can resume supplying power.
As an example, the output power threshold is 30W (watts) and the preset power threshold is 36W.
By adopting the embodiment of the application, the PSE can judge the fault reason, and the AI function of the PSE is applied, so that the fault can be accurately repaired by adopting different methods based on different fault reasons, the fault reason can be more accurately positioned, and the power recovery efficiency is improved.
Optionally, after the PSE recovers power supply, the PSE may also print the power failure reason through a monitoring interface such as a serial port, so that the power failure reason may be displayed, so that operation and maintenance personnel and/or customers may learn the power failure reason, so that the customers may improve the PD design standard and the PD application environment for the power failure reason, and avoid subsequent power failure caused by the fact that the PD does not conform to the detection standard or the PD application environment problem.
As shown in fig. 5, after the PSE is started, whether a PD exists may be detected, and if the PD is not detected, the POE does not supply power; if the PD is detected, determining whether the PD meets the detection standard (i.e., executing the above S201), and if so, performing POE power supply, i.e., supplying power to the PD according to a preset output voltage; if not, non-standard detection is performed (i.e., the above-described S202 to S203 are performed).
After the PSE automatically starts the non-standard detection, if the detection is successful, the POE is powered (i.e., the above S204 is executed); if the detection fails, i.e., no PD satisfying the non-standard detection condition is detected, the anti-interference detection is automatically turned on (i.e., S205 to S206 are performed). If the PD meeting the updated non-standard detection condition is successfully detected through the anti-interference detection, performing POE power supply (i.e., executing S204); if the PD meeting the updated non-standard detection condition is not successfully detected, automatically turning on the forced power supply (i.e., executing S301), and detecting whether the output power exists at the power supply port (i.e., executing S302); if the output power exists at the power supply port, continuing to supply power to the PD according to the preset output voltage (namely executing S303); and if the power is not detected at the power supply port after the forced power supply is started, the forced power supply is closed, namely the POE does not supply power. This process can be referred to in particular in the description relating to the embodiments corresponding to fig. 2 and 3.
After the POE is powered (namely after the PD is powered), the PSE can detect whether a power supply fault exists in real time, and if the power supply fault is not detected, the POE is continuously powered; if a power failure is detected, processing may be performed according to the flow corresponding to fig. 4, where fig. 4 simply shows a case of restarting the power supply port and a case of updating the parameter values of the registers for the three power failure reasons in S403, and reference may be specifically made to the description above, and details are not repeated here.
Based on the same technical concept, an embodiment of the present application further provides a device for processing power supply failure, where the device is applied to a POE switch, and as shown in fig. 6, the device includes: the device comprises a first judgment module 601, a test module 602, a second judgment module 603, a power supply module 604 and a third judgment module 605.
A first determining module 601, configured to determine whether a capacitor of a powered device PD connected to a power supply port is in a standard capacitor range, and whether a resistor is in a standard resistor range;
the test module 602 is configured to output a first preset number of test voltages in sequence if the determination result of the first determining module 601 is negative;
a second determining module 603, configured to determine whether a capacitance of the PD is within a preset capacitance range and whether a resistance of the PD is within a preset resistance range when each of the first preset number of test voltages is output; the preset capacitance range is larger than the standard capacitance range, and the preset resistance range is larger than the standard resistance range;
a power supply module 604, configured to supply power to the PD according to a preset output voltage if the determination result of the second determining module 603 is yes;
the test module 602 is further configured to, if the determination result of the second determining module 603 is negative, sequentially output a second preset number of test voltages, where the second preset number is smaller than the first preset number;
a third determining module 605, configured to determine whether the capacitance of the PD is within the preset capacitance range and whether the resistance of the PD is within the preset resistance range when each test voltage of the second preset number of test voltages is output;
the power supplying module 604 is further configured to, if the determination result of the third determining module 605 is yes, supply power to the PD according to the preset output voltage.
Optionally, the apparatus further comprises: a first detection module;
the power supply module 604 is further configured to perform forced power supply on the PD according to a preset output voltage if it is determined that the PD is not powered according to the preset output voltage;
the first detection module is used for detecting whether the output power exists at the power supply port;
the power supply module 604 is further configured to continue to supply power to the PD according to the preset output voltage if the detection module detects that the power supply port has the output power.
Optionally, the apparatus further comprises: a second detection module;
the second detection module is used for detecting whether the power supply port has output power or not if the PD is detected to be powered off;
the power supply module 604 is further configured to restart the power supply port and supply power to the PD according to a preset output voltage if the power supply port has output power and the link layer discovery protocol LLDP message of the PD received last time is overtime.
Optionally, the apparatus further comprises: the device comprises an acquisition module and an updating module;
the acquisition module is used for acquiring the power-off reason of the PD if the power supply port has no output power;
and the updating module is used for updating the parameter value of the register corresponding to the power-off reason according to the power-off reason of the PD.
Optionally, the update module is specifically configured to:
if the power failure reason is that the instantaneous impact current of the PD is larger than an impact current turn-off threshold value, the threshold value in the impact current turn-off threshold value register is increased to a first preset current value; or,
if the power-off reason is that the instantaneous current of the PD is smaller than the specified current turn-off threshold value, reducing the threshold value in the specified current turn-off threshold value register to a second preset current value; or,
and if the power failure reason is that the instantaneous power of the PD is greater than the output power threshold value, increasing the threshold value in the output power threshold value register to a preset output power threshold value.
The embodiment of the present application further provides a POE switch, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the steps executed by the POE switch in the foregoing method embodiment when executing the program stored in the memory 703.
The communication bus mentioned in the POE switch may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the POE switch and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned power failure handling methods.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described embodiments of the method of power failure handling.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A method for processing power supply failure is applied to a Power Over Ethernet (POE) switch, and comprises the following steps:
judging whether the capacitor of the power receiving equipment PD connected with the power supply port is in the standard capacitor range or not and whether the resistor is in the standard resistor range or not;
if not, sequentially outputting a first preset number of test voltages;
judging whether the capacitance of the PD is within a preset capacitance range and whether the resistance of the PD is within a preset resistance range when each test voltage in the first preset number of test voltages is output; the preset capacitance range is larger than the standard capacitance range, and the preset resistance range is larger than the standard resistance range;
if so, supplying power to the PD according to a preset output voltage;
if not, sequentially outputting a second preset number of test voltages, wherein the second preset number is smaller than the first preset number;
judging whether the capacitance of the PD is within the preset capacitance range and whether the resistance of the PD is within the preset resistance range when each test voltage in the second preset number of test voltages is output;
if so, supplying power to the PD according to a preset output voltage;
the method further comprises the following steps:
if the PD is determined not to be powered according to the preset output voltage, the PD is powered forcibly according to the preset output voltage;
detecting whether output power exists in the power supply port;
and if so, continuing to supply power to the PD according to the preset output voltage.
2. The method of claim 1, further comprising:
if the PD is detected to be powered off, detecting whether output power exists in the power supply port;
and if the power supply port has output power and the Link Layer Discovery Protocol (LLDP) message of the PD which is received last time is overtime, restarting the power supply port, and supplying power to the PD according to the preset output voltage.
3. The method of claim 2, wherein after detecting whether output power is present at the power port if the PD is detected to be powered down, the method further comprises:
if the power supply port does not have output power, acquiring a power-off reason of the PD;
and updating the parameter value of the register corresponding to the power-off reason according to the power-off reason of the PD.
4. The method of claim 3, wherein the updating the parameter value of the register corresponding to the power-off reason according to the power-off reason of the PD comprises:
if the power-off reason is that the instantaneous impact current of the PD is larger than an impact current turn-off threshold value, increasing the threshold value in an impact current turn-off threshold value register to a first preset current value; or,
if the power-off reason is that the instantaneous current of the PD is smaller than a specified current turn-off threshold value, reducing the threshold value in a specified current turn-off threshold value register to a second preset current value; or,
and if the power-off reason is that the instantaneous power of the PD is greater than an output power threshold value, increasing the threshold value in an output power threshold value register to a preset output power threshold value.
5. A device for processing power supply failure is characterized in that the device is applied to a Power Over Ethernet (POE) switch, and the device comprises:
the first judgment module is used for judging whether the capacitor of the powered device PD connected with the power supply port is in the standard capacitor range or not and whether the resistor is in the standard resistor range or not;
the test module is used for outputting a first preset number of test voltages in sequence if the judgment result of the first judgment module is negative;
the second judging module is used for judging whether the capacitance of the PD is in a preset capacitance range or not and whether the resistance of the PD is in a preset resistance range or not when each test voltage in the first preset number of test voltages is output; the preset capacitance range is larger than the standard capacitance range, and the preset resistance range is larger than the standard resistance range;
the power supply module is used for supplying power to the PD according to a preset output voltage if the judgment result of the second judgment module is positive;
the test module is further configured to output a second preset number of test voltages in sequence if the determination result of the second determination module is negative, where the second preset number is smaller than the first preset number;
a third determining module, configured to determine whether the capacitance of the PD is within the preset capacitance range and whether the resistance of the PD is within the preset resistance range when each of the second preset number of test voltages is output;
the power supply module is further configured to supply power to the PD according to a preset output voltage if the determination result of the third determination module is yes;
the device further comprises: a first detection module;
the power supply module is further configured to perform forced power supply on the PD according to the preset output voltage if it is determined that the PD is not supplied with power according to the preset output voltage;
the first detection module is used for detecting whether output power exists in the power supply port;
the power supply module is further configured to continue to supply power to the PD according to the preset output voltage if the detection module detects that the power supply port has the output power.
6. The apparatus of claim 5, further comprising: a second detection module;
the second detection module is configured to detect whether output power exists at the power supply port if it is detected that the PD is powered off;
the power supply module is further configured to restart the power supply port and supply power to the PD according to the preset output voltage if the power supply port has output power and a link layer discovery protocol LLDP message of the PD received last time is overtime.
7. The apparatus of claim 6, further comprising: the device comprises an acquisition module and an updating module;
the obtaining module is configured to obtain a power-off reason of the PD if the power supply port does not have output power;
and the updating module is used for updating the parameter value of the register corresponding to the power-off reason according to the power-off reason of the PD.
8. The apparatus of claim 7, wherein the update module is specifically configured to:
if the power-off reason is that the instantaneous impact current of the PD is larger than an impact current turn-off threshold value, increasing the threshold value in an impact current turn-off threshold value register to a first preset current value; or,
if the power-off reason is that the instantaneous current of the PD is smaller than a specified current turn-off threshold value, reducing the threshold value in a specified current turn-off threshold value register to a second preset current value; or,
and if the power-off reason is that the instantaneous power of the PD is greater than an output power threshold value, increasing the threshold value in an output power threshold value register to a preset output power threshold value.
9. A POE switch, comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1 to 4.
CN201910945628.1A 2019-09-30 2019-09-30 Method and device for processing power supply fault Active CN110677264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945628.1A CN110677264B (en) 2019-09-30 2019-09-30 Method and device for processing power supply fault

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945628.1A CN110677264B (en) 2019-09-30 2019-09-30 Method and device for processing power supply fault

Publications (2)

Publication Number Publication Date
CN110677264A CN110677264A (en) 2020-01-10
CN110677264B true CN110677264B (en) 2021-11-12

Family

ID=69080662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945628.1A Active CN110677264B (en) 2019-09-30 2019-09-30 Method and device for processing power supply fault

Country Status (1)

Country Link
CN (1) CN110677264B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113939063B (en) * 2021-12-17 2022-03-22 深圳市明微电子股份有限公司 LED system power supply control method and LED system with controllable power supply

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156355A (en) * 2005-01-25 2008-04-02 凌特公司 Detecting legacy powered devices in a power over ethernet system
CN201639476U (en) * 2010-03-05 2010-11-17 洛阳理工学院 Voltage-adjustable PoE power adapter
CN103220155A (en) * 2013-04-02 2013-07-24 京信通信系统(中国)有限公司 Current expanding method, power device (PD) and power over Ethernet (POE) system
CN106161041A (en) * 2016-07-20 2016-11-23 浙江大华技术股份有限公司 A kind of receiving end equipment and the power grade method of adjustment of receiving end equipment
CN107995000A (en) * 2017-12-08 2018-05-04 锐捷网络股份有限公司 A kind of powering detection method and equipment
CN110048859A (en) * 2018-01-16 2019-07-23 中兴通讯股份有限公司 A kind of POE method of supplying power to, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7230412B2 (en) * 2005-01-25 2007-06-12 Linear Technology Corporation Distinguishing network interface card from short circuit condition in power over ethernet system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156355A (en) * 2005-01-25 2008-04-02 凌特公司 Detecting legacy powered devices in a power over ethernet system
CN201639476U (en) * 2010-03-05 2010-11-17 洛阳理工学院 Voltage-adjustable PoE power adapter
CN103220155A (en) * 2013-04-02 2013-07-24 京信通信系统(中国)有限公司 Current expanding method, power device (PD) and power over Ethernet (POE) system
CN106161041A (en) * 2016-07-20 2016-11-23 浙江大华技术股份有限公司 A kind of receiving end equipment and the power grade method of adjustment of receiving end equipment
CN107995000A (en) * 2017-12-08 2018-05-04 锐捷网络股份有限公司 A kind of powering detection method and equipment
CN110048859A (en) * 2018-01-16 2019-07-23 中兴通讯股份有限公司 A kind of POE method of supplying power to, equipment and storage medium

Also Published As

Publication number Publication date
CN110677264A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
US7864704B2 (en) Intelligent automatic reconfiguration method and apparatus for network system
US7302352B2 (en) Method and system for providing dying gasp support for a network component
CN104954145B (en) Ethernet power supply method, power supply equipment and Ethernet power supply system
CN102263645B (en) Power management method and power management system for communication equipment
US8018349B1 (en) Detecting an inline power shutoff failure
US20140122140A1 (en) Advanced managed service customer edge router
CN109862583A (en) A kind of method and device reporting exception information
CN110677264B (en) Method and device for processing power supply fault
CN113612659A (en) Equipment networking test method and device, electronic equipment and storage medium
CN109412819A (en) Method and device for warning device power down
US20050222785A1 (en) System, method and computer program product for configuring power supply apparatus
KR102032898B1 (en) Method for remote power control using power over ethernet line and the apparatus thereof
CN110389643B (en) Server and remote control method thereof
US11031804B2 (en) Power controller
CN110048859B (en) POE power supply method, equipment and storage medium
CN114189397B (en) Device and method for detecting and correcting single event effect of Ethernet interface circuit
CN110795293B (en) Method, system and device for testing soft shutdown of server
CN107179911A (en) A kind of method and apparatus for restarting management engine
CN108650101B (en) Data transmission method and equipment
CN109698755B (en) Power supply control method, power supply device and power receiving device
CN107566131B (en) PSE multi-path automatic switching chip
CN110989814A (en) Server protection method, device and equipment
CN111414274A (en) Far-end eliminating method for abnormal state of cabinet applied to data center
KR102436486B1 (en) Network system and the method perceiving and reset of abnormal power
CN101621423A (en) Line card fault detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant