CN113179170A - Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium - Google Patents
Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium Download PDFInfo
- Publication number
- CN113179170A CN113179170A CN202110332338.7A CN202110332338A CN113179170A CN 113179170 A CN113179170 A CN 113179170A CN 202110332338 A CN202110332338 A CN 202110332338A CN 113179170 A CN113179170 A CN 113179170A
- Authority
- CN
- China
- Prior art keywords
- receiving end
- power receiving
- end equipment
- power supply
- monitored
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000012545 processing Methods 0.000 title claims description 22
- 230000002159 abnormal effect Effects 0.000 claims abstract description 99
- 230000008569 process Effects 0.000 claims abstract description 23
- 238000012544 monitoring process Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 23
- 230000005856 abnormality Effects 0.000 claims description 19
- 230000006870 function Effects 0.000 claims description 17
- 238000003672 processing method Methods 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 11
- 238000001514 detection method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000006872 improvement Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000012358 sourcing Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/10—Current supply arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Power Sources (AREA)
Abstract
The invention discloses an exception handling method and device for power receiving end equipment, power supply end equipment and a medium, wherein the method comprises the following steps: acquiring data packet statistical information of an Ethernet power supply port for accessing monitored power receiving end equipment; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time; judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information; and when the monitored power receiving end equipment is judged to be in an abnormal state, executing the operation of restarting and resetting the monitored power receiving end equipment. By adopting the embodiment of the invention, the power supply end equipment can monitor and process the abnormity of the power receiving end equipment, and the communication abnormity time is reduced.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an exception handling method and apparatus for a power receiving end device, a power supply end device, and a medium.
Background
The existing poe (power Over ethernet) switch is generally used as a standard power supply end device to supply power to a rear-stage standard power receiving end device, and the power supply end device recognizes that the rear-stage device is the standard power receiving end device, that is, supplies power to the rear-stage standard power receiving end device. At present, the abnormality of the power receiving end equipment is generally monitored manually, and when the abnormality of the power receiving end equipment is found, the abnormality of the power receiving end equipment is handled manually. However, the inventor finds that the following technical problems exist in the prior art in the process of implementing the invention: by artificially monitoring and processing the abnormity of the power receiving end equipment, even if the power receiving end equipment has abnormity which can be recovered by reset, the power receiving end equipment can keep an abnormal state and cannot be automatically recovered unless the power receiving end equipment is artificially restarted, so that the normal communication can be greatly influenced, particularly for application scenes which need the long-time uninterrupted work of the power receiving end equipment, such as AP wireless coverage, IP camera video monitoring and the like.
Disclosure of Invention
Embodiments of the present invention provide an exception handling method and apparatus for a power receiving end device, a power supply end device, and a medium, which can implement exception monitoring and exception handling for the power receiving end device by the power supply end device, and reduce communication exception time.
In order to achieve the above object, an embodiment of the present invention provides an exception handling method for a power receiving end device, which is applied to a power supply end device, and the method includes:
acquiring data packet statistical information of an Ethernet power supply port for accessing monitored power receiving end equipment; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time;
judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information;
and when the monitored power receiving end equipment is judged to be in an abnormal state, executing the operation of restarting and resetting the monitored power receiving end equipment.
As an improvement of the above scheme, after the obtaining of the packet statistics information for accessing the ethernet power supply port of the monitored power receiving end device, before the determining, according to the packet statistics information, whether the monitored power receiving end device is in an abnormal state, the method further includes the steps of:
judging whether an abnormal monitoring condition corresponding to the monitored power receiving end equipment is met; the abnormal monitoring condition at least comprises that an abnormal monitoring function corresponding to the monitored power receiving end equipment is in an opening state;
if yes, executing the step of judging whether the monitored power receiving end equipment is in an abnormal state according to the data packet statistical information;
and if not, returning to the step of acquiring the data packet statistical information of the Ethernet power supply port for accessing the monitored power receiving end equipment.
As an improvement of the above scheme, the abnormal monitoring condition further includes that an accumulated packet receiving number from a time when the ethernet power supply port has last accessed the monitored power receiving end device to a current time reaches a preset number, and the preset number is greater than or equal to 0.
As an improvement of the above scheme, in the process of determining an abnormal monitoring condition, when it is detected that the power over ethernet port is unplugged, the process of determining the abnormal monitoring condition is stopped, and the state of the power over ethernet port is continuously detected, until it is detected that the power over ethernet port is reconnected to the monitored power receiving end device, returning to the step of obtaining the data packet statistical information for the power over ethernet port connected to the monitored power receiving end device;
in the abnormal state judgment process, when the fact that the Ethernet power supply port is pulled out is detected, the abnormal state judgment process is stopped, the state of the Ethernet power supply port is continuously detected, and the step of obtaining the data packet statistical information of the Ethernet power supply port used for accessing the monitored power receiving end equipment is returned to when the fact that the Ethernet power supply port is connected with the monitored power receiving end equipment again is detected.
As an improvement of the above scheme, the determining, according to the data packet statistical information, whether the monitored power receiving end device is in an abnormal state specifically includes:
judging whether the duration of not receiving the data packet continuously by the Ethernet power supply port reaches a first preset duration or not according to the data packet statistical information;
if yes, judging that the monitored power receiving end equipment is in an abnormal state;
if not, judging that the monitored power receiving end equipment is not in an abnormal state.
As an improvement of the above, the method further comprises the steps of:
and when the monitored power receiving end equipment is judged not to be in the abnormal state, acquiring the data packet statistical information of the Ethernet power supply port again, and returning to the step of judging whether the monitored power receiving end equipment is in the abnormal state according to the data packet statistical information.
As an improvement of the above scheme, the operation of restarting and resetting the monitored power receiving end device specifically includes:
controlling the power over Ethernet port to stop supplying power;
and when the time length of stopping power supply reaches a second preset time length, controlling the Ethernet power supply port to recover power supply, and returning to the step of acquiring the data packet statistical information of the Ethernet power supply port for accessing the monitored power receiving end equipment.
Accordingly, another embodiment of the present invention provides an exception handling apparatus for a power receiving end device, which is applied to a power supplying end device, and includes:
the data packet statistical information acquisition module is used for acquiring data packet statistical information of an Ethernet power supply port for accessing the monitored power receiving end equipment; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time;
the abnormal state judgment module is used for judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information;
and the restart reset control module is used for executing the operation of restarting and resetting the monitored power receiving end equipment when the monitored power receiving end equipment is judged to be in an abnormal state.
Another embodiment of the present invention further provides a power supply end device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements the exception handling method of the power receiving end device as described in any one of the above.
Another embodiment of the present invention is a computer-readable storage medium, which includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for processing an exception of a power receiving end apparatus as described in any one of the above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
acquiring data packet statistical information of an Ethernet power supply port for accessing monitored power receiving end equipment through power supply end equipment, wherein the data packet statistical information comprises the number of received packets of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time, judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information, executing the operation of restarting and resetting the monitored power receiving end equipment when judging that the monitored power receiving end equipment is in the abnormal state, thereby realizing that the power supply end equipment monitors the abnormality of the power receiving end equipment in time, and restarting and resetting the monitored power receiving end equipment in time when discovering that the power receiving end equipment is abnormal, thereby timely processing the abnormality of the monitored power receiving end equipment which can be restarted and restored to restore the normal operation of the power receiving end equipment, the communication abnormal time is effectively reduced.
Drawings
Fig. 1 is a schematic flowchart of an exception handling method for a power receiving end device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a power supply end device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an exception handling apparatus of a power receiving end device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another power supply end device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Fig. 1 is a schematic flowchart of an exception handling method for a power receiving end device according to an embodiment of the present invention.
The embodiment of the invention provides an exception handling method of power receiving end equipment, which is applied to power supply end equipment and comprises the following steps:
s11, acquiring data packet statistical information for accessing the Ethernet power supply port of the monitored power receiving end equipment; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time;
s12, judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information;
and S13, when the monitored power receiving end equipment is judged to be in an abnormal state, executing the operation of restarting and resetting the monitored power receiving end equipment.
Exemplarily, referring to fig. 2, the power sourcing equipment in this embodiment includes a main control chip, a switching module, a PSE module, and an ethernet port; the ethernet port may include a plurality of ethernet power supply ports, so that one power supply end device may be connected to a plurality of power receiving end devices. When one Ethernet power supply port is connected with the monitored power receiving end equipment, the main control chip controls the PSE module to supply power to the Ethernet power supply port. In this embodiment, the method may be executed by a main control chip, and specifically, the main control chip continuously reads the transceiving data information of the poe port from the mib register of the switch module, so as to obtain the packet statistics information of the poe port.
Illustratively, the packet statistics information includes a packet receiving amount at each time after the power over ethernet port has last accessed the monitored power receiving end device.
It should be noted that, when it is determined that the monitored power receiving end device is in an abnormal state, the monitored power receiving end device can be reset by executing the reset operation of the monitored power receiving end device, so that the abnormal problem that can be recovered by reset in the power receiving end device is solved.
Compared with the prior art, the embodiment of the invention acquires the data packet statistical information of the Ethernet power supply port for accessing the monitored power receiving end equipment through the power supply end equipment, wherein the data packet statistical information comprises the number of received packets of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time, judges whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information, and executes the operation of restarting and resetting the monitored power receiving end equipment when judging that the monitored power receiving end equipment is in the abnormal state, thereby realizing the abnormal monitoring of the power receiving end equipment by the power supply end equipment, and timely restarting and resetting the monitored power receiving end equipment when discovering that the power receiving end equipment is abnormal, and timely processing the abnormal condition of the monitored power receiving end equipment, which can be recovered by restarting, the normal operation of the power receiving end equipment is recovered, and the abnormal communication time is effectively reduced.
As an optional embodiment, the method further comprises the steps of:
s14, when it is determined that the monitored power receiving end device is not in the abnormal state, reacquiring the packet statistics information of the ethernet power sourcing port, and returning to the step of determining whether the monitored power receiving end device is in the abnormal state according to the packet statistics information (i.e., step S12).
In this embodiment, when it is determined that the monitored power receiving end device is not in an abnormal state, the packet statistical information of the ethernet power supply port is obtained again, and the process returns to step S12, so that the abnormal condition of the monitored power receiving end device is continuously determined, and when the monitored power receiving end device is abnormal, the abnormal condition is detected and processed in time, so that the communication abnormal time is effectively reduced.
As an alternative embodiment, after the step S11 and before the step S12, the method further includes the steps of:
s21, judging whether an abnormal monitoring condition corresponding to the monitored power receiving end equipment is met; the abnormal monitoring condition at least comprises that an abnormal monitoring function corresponding to the monitored power receiving end equipment is in an opening state;
s22, if yes, executing the step S12;
s23, if not, returning to the step S11 to re-execute the method.
For example, referring to fig. 2, the power supply end device in this embodiment may further include a function switch connected to the main control chip, and a user may turn on the function switch to turn on the abnormal monitoring function corresponding to the monitored power receiving end device, and after the main control chip reads a function turn-on signal from the function switch, it is determined that the abnormal monitoring function corresponding to the monitored power receiving end device is in a turn-on state.
In this embodiment, through judging with when the unusual monitoring condition that the monitored power receiving end equipment corresponds satisfies, just carry out the judgement of abnormal state, can reduce the use and the electric energy loss of operation resource when need not carrying out unusual monitoring to make the operation of supply end equipment more economical and efficient, and, through setting up unusual monitoring condition include at least with the unusual monitor function that the monitored power receiving end equipment corresponds is in the on-state, can realize independently activating each ethernet power supply port of supply end equipment, to idle ethernet power supply port, can avoid it to carry out unusual detection and processing, thereby reduce the use and the electric energy loss of operation resource.
Further, the anomaly monitoring condition further includes:
and the accumulated packet receiving quantity from the moment when the Ethernet power supply port is accessed to the monitored power receiving end equipment for the last time to the current moment reaches a preset quantity, wherein the preset quantity is more than or equal to 0.
It should be noted that, in a specific implementation, the preset number may be set according to an actual need, and is not limited herein. For example, when the preset number is set to be equal to 0, the abnormality detection and processing may be performed immediately after the monitored power receiving end device is connected to the power over ethernet port, and when the preset number is set to be greater than 0, the abnormality detection and processing may be performed on the premise that it is determined that the power receiving end device can normally operate.
Optionally, in the process of determining an abnormal monitoring condition (i.e., the process of performing step S21, S22, or S23), when it is detected that the power over ethernet port is unplugged, the process of determining the abnormal monitoring condition is stopped, and the state of the power over ethernet port is continuously detected, until it is detected that the power over ethernet port is reconnected to the monitored power receiving end device, returning to the step of obtaining the packet statistics information of the power over ethernet port for accessing the monitored power receiving end device (i.e., step S11) to re-execute the method;
in the abnormal state judgment process (i.e., the process of executing steps S12, S13, or S14), when the occurrence of a pulling event at the poe port is detected, the abnormal state judgment process is stopped, and the state of the poe port is continuously detected until the poe port is detected to be reconnected to the monitored powered end device, the method returns to the step of acquiring the packet statistics information for accessing the poe port of the monitored powered end device (i.e., step S11) to re-execute the method.
Optionally, the detection time interval of whether the power over ethernet port is unplugged may be set to be less than the time required from the link down to the link up of the port, so that the accuracy of plugging and unplugging detection of the port can be effectively ensured.
Specifically, the port plugging/unplugging detection may be performed by reading data in a link status register of a switching chip of the power over ethernet port in the power supply end device.
In this embodiment, once it is detected that the ethernet power supply port is plugged, the statistical information of the data packet is cleared, and the method is executed again, so that the accuracy of exception handling can be effectively improved.
As one optional embodiment, the step S12 specifically includes:
s121, judging whether the duration of the Ethernet power supply port which does not receive the data packet reaches a first preset duration or not according to the data packet statistical information;
s122, if yes, judging that the monitored power receiving end equipment is in an abnormal state;
and S123, if not, judging that the monitored power receiving end equipment is not in an abnormal state.
It should be noted that, in a specific implementation, the first preset time period may be set according to an actual situation, and is not limited herein.
It can be understood that when the monitored power receiving end device is abnormal, the communication operation cannot be normally performed, and therefore, if the duration that the ethernet power supply port does not receive the data packet reaches the first preset duration, it can be determined that the monitored power receiving end device is abnormal.
In this embodiment, whether the duration that the data packet is not received continuously by the ethernet power supply port reaches a first preset duration is determined according to the data packet statistical information, so that whether the monitored power receiving end device is abnormal can be simply and efficiently determined.
In a specific embodiment, the latest acquired data packet statistical information may be compared with the last statistical information to determine whether the ethernet power supply port receives a packet, if the data packet statistical information changes, indicating that a packet is received, the duration that the ethernet power supply port continues not to receive a data packet is reset, the timing is restarted, the acquired data packet statistical information is recorded, and then when the next exception determination is performed, the next acquired data packet statistical information is compared with the acquired data packet statistical information again, so that the process is repeated; if the statistical information of the data packet does not change, it indicates that the data packet is not received, the duration of the power over ethernet port that does not receive the data packet continuously increases, and in addition, because the statistical information of the data packet does not change, it may not be necessary to record the statistical information of the data packet acquired this time, and then when the next exception judgment is performed, the statistical information of the data packet acquired next time is compared with the statistical information of the data packet recorded latest, so that the comparison is repeated, and if the statistical information of the data packet does not change for the first preset time, the exception is judged.
As one optional embodiment, the operation of resetting the monitored power receiving end device includes:
s131, controlling the Ethernet power supply port to stop supplying power;
s132, when the time length of stopping power supply reaches a second preset time length, controlling the ethernet power supply port to resume power supply, and returning to the step of obtaining the data packet statistical information for accessing the ethernet power supply port of the monitored power receiving end device (i.e., step S11), so as to execute the method again.
It should be noted that, in a specific implementation, the second preset time period may be set according to an actual situation, and is not limited herein.
In this embodiment, the power supply is stopped by controlling the ethernet power supply port, and when the time length of stopping power supply reaches a second preset time length, the ethernet power supply port is controlled to resume power supply, so that the monitored power receiving end device can be effectively restarted and reset, and after the monitored power receiving end device finishes restarting and resetting, the step S11 is returned to execute the method again, so that the monitored power receiving end device can be effectively monitored after restarting and resetting, and the situation that cannot be handled in time when abnormality occurs again is prevented.
Fig. 3 is a schematic structural diagram of an exception handling apparatus of a power receiving end device according to an embodiment of the present invention.
The embodiment provides an exception handling apparatus for a power receiving end device, which is applied to a power supply end device, and the apparatus includes:
the data packet statistical information acquisition module 21 is configured to acquire data packet statistical information for accessing an ethernet power supply port of the monitored power receiving end device; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time;
the abnormal state judgment module 22 is configured to judge whether the monitored power receiving end device is in an abnormal state according to the data packet statistical information;
and the restart reset control module 23 is configured to execute an operation of restarting and resetting the monitored power receiving end device when it is determined that the monitored power receiving end device is in an abnormal state.
Compared with the prior art, in this embodiment, the data packet statistical information of the ethernet power supply port for accessing the monitored power receiving end device is obtained by the power supply end device, where the data packet statistical information includes the number of received packets after the ethernet power supply port has been accessed to the monitored power receiving end device for the last time, and then, whether the monitored power receiving end device is in an abnormal state is determined according to the data packet statistical information, and when it is determined that the monitored power receiving end device is in an abnormal state, the operation of resetting the monitored power receiving end device is executed, so that the power supply end device can monitor the power receiving end device for an abnormality, and the monitored power receiving end device is reset in time when the power receiving end device is found to be abnormal, thereby timely handling the abnormality of the monitored power receiving end device that can be reset and recovered, the normal operation of the power receiving end equipment is recovered, and the abnormal communication time is effectively reduced.
As one optional embodiment, the apparatus further includes a monitoring condition determining module;
the data packet statistical information acquisition module triggers the monitoring condition judgment module after acquiring data packet statistical information of an Ethernet power supply port for accessing the monitored power receiving end equipment;
the monitoring condition judgment module is specifically configured to:
judging whether an abnormal monitoring condition corresponding to the monitored power receiving end equipment is met; the abnormal monitoring condition at least comprises that an abnormal monitoring function corresponding to the monitored power receiving end equipment is in an opening state;
if yes, triggering the abnormal state judgment module;
if not, triggering the data packet statistical information acquisition module.
Further, the abnormal monitoring condition further includes that the accumulated packet receiving quantity from the moment when the ethernet power supply port has last accessed the monitored power receiving end device to the current moment reaches a preset quantity, and the preset quantity is greater than or equal to 0.
Further, in the process of judging an abnormal monitoring condition, when it is detected that the power over ethernet port is unplugged, the process of judging the abnormal monitoring condition is stopped, and the state of the power over ethernet port is continuously detected, until it is detected that the power over ethernet port is reconnected to the monitored power receiving end device, the data packet statistical information acquisition module is triggered;
in the abnormal state judgment process, when the fact that the Ethernet power supply port is pulled out is detected, the abnormal state judgment process is stopped, the state of the Ethernet power supply port is continuously detected, and the data packet statistical information acquisition module is triggered until the fact that the Ethernet power supply port is connected to the monitored power receiving end equipment again is detected.
As an optional embodiment, the abnormal state determining module is specifically configured to:
judging whether the duration of not receiving the data packet continuously by the Ethernet power supply port reaches a first preset duration or not according to the data packet statistical information;
if yes, judging that the monitored power receiving end equipment is in an abnormal state;
if not, judging that the monitored power receiving end equipment is not in an abnormal state.
As an optional embodiment, the apparatus further includes an abnormality detection loop module, where the abnormality detection loop module is specifically configured to:
and when the monitored power receiving end equipment is judged not to be in an abnormal state, the statistical information of the data packet of the Ethernet power supply port is obtained again, and the abnormal state judgment module is triggered.
As one optional embodiment, the operation of resetting the monitored power receiving end device includes:
controlling the power over Ethernet port to stop supplying power;
and when the time length of stopping power supply reaches a second preset time length, controlling the Ethernet power supply port to recover power supply, and returning to the step of acquiring the data packet statistical information of the Ethernet power supply port for accessing the monitored power receiving end equipment.
It should be noted that, for the specific description of the embodiments of the apparatuses, reference may be made to the embodiments of the methods described above, and details are not described herein again.
Fig. 4 is a schematic diagram of another power supply end device according to an embodiment of the present invention.
The power supply end device provided by the embodiment of the invention comprises a processor 31, a memory 32 and a computer program which is stored in the memory 32 and configured to be executed by the processor 31, besides the components of the power supply end device, wherein the processor 31 implements the exception handling method of the power receiving end device according to any one of the above embodiments when executing the computer program.
When the processor 31 executes the computer program, the steps in the above-described embodiment of the method for processing the exception of the power receiving end device are implemented, for example, all the steps of the method for processing the exception of the power receiving end device shown in fig. 1. Alternatively, the processor 31, when executing the computer program, implements the functions of each module/unit in the above-mentioned abnormality processing apparatus embodiment of the power receiving end device, for example, the functions of each module of the abnormality processing apparatus of the power receiving end device shown in fig. 3.
Illustratively, the computer program may be divided into one or more modules, which are stored in the memory 32 and executed by the processor 31 to accomplish the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the power supply end device. For example, the computer program may be divided into a packet statistic information obtaining module, an abnormal state judging module, and a restart reset control module, where the specific functions of the modules are as follows: the data packet statistical information acquisition module is used for acquiring data packet statistical information of an Ethernet power supply port for accessing the monitored power receiving end equipment; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time; the abnormal state judgment module is used for judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information; and the restart reset control module is used for executing the operation of restarting and resetting the monitored power receiving end equipment when the monitored power receiving end equipment is judged to be in an abnormal state.
The power supply device may include, but is not limited to, a processor 31 and a memory 32. It will be understood by those skilled in the art that the schematic diagram is merely an example of a power end device, and does not constitute a limitation of the power end device, and may include more or less components than those shown, or combine some components, or different components, for example, the power end device may also include an input-output device, a network access device, a bus, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 31 is a control center of the power supply terminal equipment and connects various parts of the whole power supply terminal equipment by using various interfaces and lines.
The memory 32 can be used to store the computer programs and/or modules, and the processor 31 can implement various functions of the power supply end device by running or executing the computer programs and/or modules stored in the memory 32 and calling the data stored in the memory 32. The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the power supply-side device, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module/unit integrated with the power supply end device can be stored in a computer readable storage medium if the module/unit is realized in the form of a software functional unit and is sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (10)
1. An exception handling method for a power receiving end device is applied to a power supply end device, and comprises the following steps:
acquiring data packet statistical information of an Ethernet power supply port for accessing monitored power receiving end equipment; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time;
judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information;
and when the monitored power receiving end equipment is judged to be in an abnormal state, executing the operation of restarting and resetting the monitored power receiving end equipment.
2. The method for processing the exception of the power receiving end device according to claim 1, wherein after the obtaining of the packet statistics information for accessing the power over ethernet port of the monitored power receiving end device, before the determining, according to the packet statistics information, whether the monitored power receiving end device is in the exception state, the method further comprises the steps of:
judging whether an abnormal monitoring condition corresponding to the monitored power receiving end equipment is met; the abnormal monitoring condition at least comprises that an abnormal monitoring function corresponding to the monitored power receiving end equipment is in an opening state;
if yes, executing the step of judging whether the monitored power receiving end equipment is in an abnormal state according to the data packet statistical information;
and if not, returning to the step of acquiring the data packet statistical information of the Ethernet power supply port for accessing the monitored power receiving end equipment.
3. The method for processing an abnormality of a power receiving end device according to claim 2, wherein the abnormality monitoring condition further includes:
and the accumulated packet receiving quantity from the moment when the Ethernet power supply port is accessed to the monitored power receiving end equipment for the last time to the current moment reaches a preset quantity, wherein the preset quantity is more than or equal to 0.
4. The method for processing the exception of the power receiving end device according to claim 2, wherein in the process of determining the exception monitoring condition, when it is detected that the power over ethernet port is unplugged, the process of determining the exception monitoring condition is stopped, and the state of the power over ethernet port is continuously detected, until it is detected that the power over ethernet port is reconnected to the monitored power receiving end device, returning to the step of obtaining the packet statistics information for the power over ethernet port connected to the monitored power receiving end device;
in the abnormal state judgment process, when the fact that the Ethernet power supply port is pulled out is detected, the abnormal state judgment process is stopped, the state of the Ethernet power supply port is continuously detected, and the step of obtaining the data packet statistical information of the Ethernet power supply port used for accessing the monitored power receiving end equipment is returned to when the fact that the Ethernet power supply port is connected with the monitored power receiving end equipment again is detected.
5. The method for processing an exception of a power receiving end device according to claim 1, wherein the determining, according to the data packet statistical information, whether the monitored power receiving end device is in an exception state specifically includes:
judging whether the duration of not receiving the data packet continuously by the Ethernet power supply port reaches a first preset duration or not according to the data packet statistical information;
if yes, judging that the monitored power receiving end equipment is in an abnormal state;
if not, judging that the monitored power receiving end equipment is not in an abnormal state.
6. The method for processing the abnormality of the power receiving end device according to claim 1, characterized by further comprising the steps of:
and when the monitored power receiving end equipment is judged not to be in the abnormal state, acquiring the data packet statistical information of the Ethernet power supply port again, and returning to the step of judging whether the monitored power receiving end equipment is in the abnormal state according to the data packet statistical information.
7. The method for processing an exception of power receiving end equipment according to claim 1, wherein the operation of resetting the monitored power receiving end equipment includes:
controlling the power over Ethernet port to stop supplying power;
and when the time length of stopping power supply reaches a second preset time length, controlling the Ethernet power supply port to recover power supply, and returning to the step of acquiring the data packet statistical information of the Ethernet power supply port for accessing the monitored power receiving end equipment.
8. An abnormality processing apparatus of a power receiving end device, applied to a power supplying end device, the apparatus comprising:
the data packet statistical information acquisition module is used for acquiring data packet statistical information of an Ethernet power supply port for accessing the monitored power receiving end equipment; the data packet statistical information comprises the packet receiving quantity of the Ethernet power supply port which is accessed to the monitored power receiving end equipment for the last time;
the abnormal state judgment module is used for judging whether the monitored power receiving end equipment is in an abnormal state or not according to the data packet statistical information;
and the restart reset control module is used for executing the operation of restarting and resetting the monitored power receiving end equipment when the monitored power receiving end equipment is judged to be in an abnormal state.
9. A power supply side device characterized by comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the abnormality processing method of the power receiving side device according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for processing the exception of the power receiving apparatus according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110332338.7A CN113179170A (en) | 2021-03-29 | 2021-03-29 | Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110332338.7A CN113179170A (en) | 2021-03-29 | 2021-03-29 | Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113179170A true CN113179170A (en) | 2021-07-27 |
Family
ID=76922611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110332338.7A Pending CN113179170A (en) | 2021-03-29 | 2021-03-29 | Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113179170A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114337196A (en) * | 2022-01-07 | 2022-04-12 | 苏州浪潮智能科技有限公司 | Micro server based PSE power supply control and micro server |
CN115412379A (en) * | 2022-08-22 | 2022-11-29 | 浪潮思科网络科技有限公司 | Ethernet power supply system monitoring management method, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08123704A (en) * | 1994-10-20 | 1996-05-17 | Toshiba Corp | Controller |
CN108390763A (en) * | 2018-03-06 | 2018-08-10 | 深圳市巨联高科技有限公司 | PoE interchangers, internet protocol camera system and its automatic testing method |
CN112256479A (en) * | 2020-10-19 | 2021-01-22 | 深圳中科德能科技有限公司 | Method and device for restarting power receiving end equipment, terminal equipment and storage medium |
-
2021
- 2021-03-29 CN CN202110332338.7A patent/CN113179170A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08123704A (en) * | 1994-10-20 | 1996-05-17 | Toshiba Corp | Controller |
CN108390763A (en) * | 2018-03-06 | 2018-08-10 | 深圳市巨联高科技有限公司 | PoE interchangers, internet protocol camera system and its automatic testing method |
CN112256479A (en) * | 2020-10-19 | 2021-01-22 | 深圳中科德能科技有限公司 | Method and device for restarting power receiving end equipment, terminal equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114337196A (en) * | 2022-01-07 | 2022-04-12 | 苏州浪潮智能科技有限公司 | Micro server based PSE power supply control and micro server |
CN114337196B (en) * | 2022-01-07 | 2023-07-14 | 苏州浪潮智能科技有限公司 | PSE power supply control based on micro server and micro server |
CN115412379A (en) * | 2022-08-22 | 2022-11-29 | 浪潮思科网络科技有限公司 | Ethernet power supply system monitoring management method, equipment and medium |
CN115412379B (en) * | 2022-08-22 | 2024-05-10 | 浪潮思科网络科技有限公司 | Monitoring management method, equipment and medium for power over Ethernet system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105916010B (en) | A kind of standby and awakening method and device of smart television | |
CN102761439B (en) | Device and method for detecting and recording abnormity on basis of watchdog in PON (Passive Optical Network) access system | |
CN113179170A (en) | Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium | |
CN104782082A (en) | New approach for controller area network bus off handling | |
US20140122421A1 (en) | Information processing apparatus, information processing method and computer-readable storage medium | |
CN111273923A (en) | FPGA (field programmable Gate array) upgrading method based on PCIe (peripheral component interface express) interface | |
CN105425932A (en) | Management method and system for whole cabinet sever power source | |
EP3780700B1 (en) | Power consumption anomaly prompting method, server, and terminal | |
CN110912985B (en) | Network link scheduling method and related equipment | |
CN115658113A (en) | Server self-starting method and device, readable storage medium and electronic equipment | |
CN111124761B (en) | Equipment restarting method, device, equipment and medium | |
EP3989597A1 (en) | Optical network unit (onu) power down alarm method and apparatus, device and storage medium | |
CN114050983A (en) | Flow self-adaptive acquisition method and device, storage medium and electronic equipment | |
CN115114118A (en) | Server monitoring method and related equipment | |
WO2020088351A1 (en) | Method for sending device information, computer device and distributed computer device system | |
CN107528705B (en) | Fault processing method and device | |
US9929899B2 (en) | Snapshot message | |
CN117559357A (en) | Method, system and device for protecting server power supply | |
CN103036778B (en) | The ossified apparatus and method of equipment are prevented in a kind of family gateway equipment | |
CN112596940A (en) | Multi-stage fault tolerance method, device and storage medium | |
CN114374627A (en) | Method, device and system for restarting baseboard management controller and server | |
CN112910732A (en) | Method and equipment for resetting edge computing server | |
CN113765504A (en) | Universal dynamic delay jitter elimination method, device, terminal and storage medium | |
CN111562997A (en) | Media channel quick recovery method, system and storage medium | |
JP2000307600A (en) | Heart beat circuit for device system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210727 |
|
RJ01 | Rejection of invention patent application after publication |