CN112256479A - Method and device for restarting power receiving end equipment, terminal equipment and storage medium - Google Patents

Method and device for restarting power receiving end equipment, terminal equipment and storage medium Download PDF

Info

Publication number
CN112256479A
CN112256479A CN202011116597.8A CN202011116597A CN112256479A CN 112256479 A CN112256479 A CN 112256479A CN 202011116597 A CN202011116597 A CN 202011116597A CN 112256479 A CN112256479 A CN 112256479A
Authority
CN
China
Prior art keywords
port
state
switch
power
receiving end
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
Application number
CN202011116597.8A
Other languages
Chinese (zh)
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.)
Shenzhen Scodeno Technology Co ltd
Original Assignee
Shenzhen Scodeno Technology 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 Shenzhen Scodeno Technology Co ltd filed Critical Shenzhen Scodeno Technology Co ltd
Priority to CN202011116597.8A priority Critical patent/CN112256479A/en
Publication of CN112256479A publication Critical patent/CN112256479A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for restarting power receiving end equipment, terminal equipment and a storage medium, wherein the method is applied to a processor applied to power supply end equipment, the power supply end equipment also comprises a switching unit and a power supply management module, and the method comprises the following steps: acquiring MIB base information in a switching unit, wherein the MIB base information comprises a port state of a switch, and the port state of the switch is acquired from a power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.

Description

Method and device for restarting power receiving end equipment, terminal equipment and storage medium
Technical Field
The present invention relates to the field of network device technologies, and in particular, to a method and an apparatus for restarting a power receiving end device, a terminal device, and a storage medium.
Background
A complete PoE system includes two parts, a Power Sourcing Equipment (PSE) and a Power Device (PD). The PSE device is a device for supplying power to an ethernet client device and is also a manager of the entire PoE ethernet power supply process, and the PD device is a PSE load receiving power supply, that is, a client device of a PoE system, such as an IP phone, a network security camera, an AP, a Personal Digital Assistant (PDA), or a mobile phone charger, among many other ethernet devices. The two establish information connection related to connection condition, device type, power consumption level and the like of the power receiving end device PD based on the IEEE802.3af standard, and power is supplied to the PD through the Ethernet according to the PSE.
The existing camera or AP equipment is powered by a PoE (Power over Ethernet) switch, but the AP equipment or the camera equipment generally has a timed restarting function to restart the equipment to ensure that the equipment is not abnormal, and the timed restarting of the PD equipment can only be restarted after the specified time is reached, but if the data flow of the PD equipment is abnormal, the PD equipment cannot be recovered by restarting.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a method, an apparatus, a terminal device and a storage medium for restarting a power receiving end device, which overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for restarting a power receiving end device, where the method is applied to a processor in a power supply end device, the power supply end device further includes a switching unit and a power management module, and the method includes:
acquiring MIB (management information base) information in the switching unit, wherein the MIB information comprises a port state of a switch, and the port state of the switch is acquired from the power management module;
judging the port state of the switch in the MIB base information;
and if the port state is an abnormal state, sending a reset instruction to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment.
Optionally, the determining the port state of the switch in the MIB information includes:
acquiring a traffic state of transceiving data of a port of the switch and an error event, wherein the error event comprises one or more of an error frame, an Ethernet ultra-long frame or an Ethernet discarding event;
judging the flow state of the transceiving data of the port and the error event;
if the flow state of the received and transmitted data is normal and no error event exists, determining that the port of the switch is in a normal state;
and if the flow state of the received and transmitted data is abnormal or the error event occurs, determining that the port of the switch is in an abnormal state.
Optionally, the method further comprises:
and if the port of the switch is judged to be in an abnormal state, clearing the flow state of the transceiving data of the port of the switch and the error event.
Optionally, the method further comprises:
and in a preset time period, when the frequency of the abnormal state of the port is greater than a first preset value, sending a reset instruction to the power management module.
Optionally, if the port state is an abnormal state, sending a reset instruction to the power management module to supply power to the power receiving end device, so that the power receiving end device is restarted, including:
if the first port state is an abnormal state, a reset instruction is sent to the first port corresponding to the first port state in the power management module through the I2C, so that power is supplied to the power receiving end device, and the power receiving end device is restarted.
In a second aspect, an embodiment of the present invention provides an apparatus for restarting a power receiving end device, where the apparatus is applied to a processor in a power supply end device, the power supply end device further includes a switching unit and a power management module, and the apparatus includes:
an obtaining module, configured to obtain MIB information in the switching unit, where the MIB information includes a port state of a switch, and the port state of the switch is obtained from the power management module;
the judging module is used for judging the port state of the switch in the MIB information;
and the restarting module is used for sending a reset instruction to the power management module if the port state is an abnormal state so as to supply power to the power receiving end equipment and restart the power receiving end equipment.
Optionally, the determining module is configured to:
acquiring a traffic state of transceiving data of a port of the switch and an error event, wherein the error event comprises one or more of an error frame, an Ethernet ultra-long frame or an Ethernet discarding event;
judging the flow state of the transceiving data of the port and the error event;
if the flow state of the received and transmitted data is normal and no error event exists, determining that the port of the switch is in a normal state;
and if the flow state of the received and transmitted data is abnormal or the error event occurs, determining that the port of the switch is in an abnormal state.
Optionally, the apparatus further comprises a deletion module, wherein the deletion module is configured to:
and if the port of the switch is judged to be in an abnormal state, clearing the flow state of the transceiving data of the port of the switch and the error event.
Optionally, the determining module is configured to:
and in a preset time period, when the frequency of the abnormal state of the port is greater than a first preset value, sending a reset instruction to the power management module.
Optionally, the restart module is configured to:
if the first port state is an abnormal state, a reset instruction is sent to the first port corresponding to the first port state in the power management module through the I2C, so that power is supplied to the power receiving end device, and the power receiving end device is restarted.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the method for restarting the power receiving end device provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed, the computer program implements the method for restarting the power receiving end device provided in the first aspect.
The embodiment of the invention has the following advantages:
according to the method, the device, the terminal device and the storage medium for restarting the power receiving end device, MIB base information in a switching unit is obtained, wherein the MIB base information comprises a port state of a switch, and the port state of the switch is obtained from a power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.
Drawings
Fig. 1 is a flowchart illustrating steps of an embodiment of a method for restarting a power receiving device according to the present invention;
fig. 2 is a flowchart illustrating steps of another embodiment of a method for restarting a power receiving device according to the present invention;
fig. 3 is a block diagram of a restart apparatus of a power receiving end device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The nouns are explained as follows:
a Management Information Base (MIB), which defines data items that a managed device must hold, operations allowed to be performed on each data item, and their meanings, i.e., data variables such as control and status Information of the managed device accessible to the Management system, are stored in the MIB, is one of the contents of the TCP/IP network Management protocol standard framework.
CPLD (Complex Programmable Logic device): the complex programmable logic device is developed from PAL and GAL devices, and has relatively large scale and complex structure, and belongs to the field of large scale integrated circuit. The digital integrated circuit is a digital integrated circuit which is used by a user to construct logic functions according to respective needs. The basic design method is to generate corresponding target files by means of an integrated development software platform and methods such as schematic diagrams, hardware description languages and the like, and to transmit codes to a target chip through a download cable (programming in the system) so as to realize the designed digital system.
PD 69104A: the device is a Power-over-Ethernet (PoE) Power supply end Equipment (PSE) manager with an automatic mode and 4 ports.
Specifically, the method comprises the following steps: the embedded MOSFETs with Rds (on) of 0.3 ohm, the internal DC/DC rectifier, dynamic power management and emergency power management which can reach 4 ports at most are integrated, 3 groups of power good input (power good input) are provided, PD equipment which is designed before all standards are detected (pre-standard) is supported, the LED directly drives the ports, 4 ports and PoE maximum power supply state (PoE MAX) can be displayed, a complete 4-port PoE solution only needs 20 peripheral devices, UARTs and I2C communication ports, the voltage, current, power consumption and temperature of each port can be monitored in real time, complete monitoring can be carried out, the total power consumption of the system is less than 1.2W in an IEEE802.3at-2009 mode, and the total power consumption of the system is less than 0.52W in an IEEE802.3af-2003 mode.
An embodiment of the present invention provides a method for restarting a power receiving end device, which is used for restarting the power receiving end device. The execution main body of the embodiment is a restarting device of the power receiving end equipment, and is arranged on a processor in the power supply end equipment.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for restarting a power receiving end device according to the present invention is shown, where the method may be applied to a processor in a power providing end device, where the power providing end device further includes a switching unit and a power management module, and specifically may include the following steps:
s101, acquiring MIB base information in the switching unit, wherein the MIB base information comprises a port state of a switch, and the port state of the switch is acquired from the power management module;
specifically, the embodiment of the present invention is applied to a power supply end device, where the device includes a processor, a switching unit, and a power management module, the switching unit is connected to the power management module, and acquires MIB information, that is, a port state of a switch, from the power management module, and the processor in the power supply end device acquires the MIB information from the switching unit.
S102, judging the port state of the switch in the MIB base information;
specifically, the processor in the power supply end device determines a port state of the switch in the MIB information, where the port state of the switch in the MIB information includes: the method comprises the steps of receiving and sending data traffic state and error events, wherein the error events comprise one or more of error frames, Ethernet ultra-long frames or Ethernet drop events.
S103, if the port state is an abnormal state, sending a reset instruction to the power management module to supply power to the power receiving end equipment, and restarting the power receiving end equipment.
Specifically, after the processor in the power supply end device determines the port state of the switch in the MIB information, if the flow state of the received and transmitted data is normal and there is no error event, it determines that the port of the switch is in a normal state, and the other states are abnormal states, and when the port state is in an abnormal state, it sends a reset instruction to the power management module to supply power to the power receiving end device, so that the power receiving end device is restarted.
In actual operation, a reset instruction can be sent to a certain port in the power management module as required, so that the power receiving end device connected with the port can be restarted when data traffic is abnormal.
According to the method for restarting the power receiving end equipment, the MIB information in the switching unit is obtained, wherein the MIB information comprises the port state of the switch, and the port state of the switch is obtained from the power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.
The present invention further provides a supplementary description of the method for restarting the power receiving end device provided in the foregoing embodiment.
Optionally, the determining the port state of the switch in the MIB information includes:
acquiring a traffic state of transceiving data of a port of the switch and an error event, wherein the error event comprises one or more of an error frame, an Ethernet ultra-long frame or an Ethernet discarding event;
judging the flow state of the transceiving data of the port and the error event;
if the flow state of the received and transmitted data is normal and no error event exists, determining that the port of the switch is in a normal state;
and if the flow state of the received and transmitted data is abnormal or the error event occurs, determining that the port of the switch is in an abnormal state.
Specifically, the MIB information in the switching unit at least includes the parameters shown in table 1 below:
the switching unit at least comprises a Switch Marvell 88E6320 chip, the switching unit is connected with the power management module, the power management module at least comprises a Microsmi PD69104B chip, the chip has 4 ports for supplying power to the Ethernet, and the 4 ports are connected with the PD1, the PD2, the PD3 and the PD4, at this time, the switching unit can acquire the states of the 4 ports of the power management module, including a traffic receiving and sending state or an Ethernet frame discarding event and the like.
And then, the processor in the power supply end equipment judges the traffic receiving and sending state of the port of the switch and whether an event of Ethernet frame discarding exists, and if the traffic receiving and sending state of the port of the switch is normal and no error event exists, the port of the switch is determined to be in a normal state, and other states are abnormal states.
The specific MIB information includes an abnormal event, i.e., an error event, such as a Frame Check Sequence (FCS) error Frame, an ethernet ultra-long Frame, an ethernet discard event, and the like, and also includes data transmission and reception, where data transmission includes sending unicast data, sending broadcast data, sending multicast data, and sending an IGMP leave message; the receiving data comprises receiving unicast data, receiving multicast data, receiving broadcast data, receiving a multicast port leaving message, receiving a multicast checksum error message of the IPV6, receiving a multicast collision frame, receiving a leave discarding suppression message, receiving an MLD leaving message, receiving an MLD joining success message and the like.
TABLE 1 MIB library information
Figure RE-GDA0002846236780000091
Optionally, the method further comprises:
and if the port of the switch is judged to be in an abnormal state, clearing the flow state of the transceiving data of the port of the switch and the error event.
Optionally, the method further comprises:
and in a preset time period, when the frequency of the abnormal state of the port is greater than a first preset value, sending a reset instruction to the power management module.
Illustratively, the port abnormality determination is based on the following flow diagram
The query frequency is once 2S, the query confirmation period is 1 minute, and the judgment is made once per minute;
the judging method comprises the following steps:
the port sends and receives the traffic state and whether there is an event of Ethernet frame drop: the normal state is only when the flow is received and sent and the event is not discarded, other states are abnormal states, and the query is cleared once;
when the normal state within one minute accounts for more than 60 percent (the numerical value is adjustable and used for controlling the sensitivity), judging the normal state, and continuing to inquire;
and when the normal state in one minute is lower than 60%, judging that the PoE is abnormal, and restarting PoE power supply of the port.
Optionally, if the port state is an abnormal state, sending a reset instruction to the power management module to supply power to the power receiving end device, so that the power receiving end device is restarted, including:
if the first port state is an abnormal state, a reset instruction is sent to the first port corresponding to the first port state in the power management module through the I2C, so that power is supplied to the power receiving end device, and the power receiving end device is restarted.
As shown in fig. 2, a flowchart of steps of another embodiment of a method for restarting a power receiving end device according to the present invention is shown, and the method for restarting the power receiving end device includes:
the whole realization is realized through the CPLD, the CPLD judges the states of all ports of the switch by searching MIB library information of the switch chip, and the CPLD resets the power supply of the corresponding port through the PoE chip connected with I2C when data are abnormal, thereby achieving the effect of resetting PD equipment.
The embodiment of the invention determines the data forwarding state of the switch by using the real-time flow in the MIB library of the switch, confirms whether the interface state of the switch is normal or not by data acquisition 30 times per minute, judges that the interface state is abnormal once data abnormity occurs (abnormal receiving and transmitting or Ethernet data discarding events can be recorded as abnormal events) and continues to occur for one minute abnormity, and resets the PoE power supply of the interface
From the above implementation method, the port-based remote PD restart has the following advantages compared to the general timed restart PD:
when the single interface is in a problem, the single interface is reset, the normal transmission of other interface data is not influenced, and the self-healing influence range is small; the remote PD restart based on the port judges whether the switch is abnormal or not in a mode of comprehensive evaluation of 30 times of data within 1 minute, and has more scientific and accurate judgment.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
According to the method for restarting the power receiving end equipment, the MIB information in the switching unit is obtained, wherein the MIB information comprises the port state of the switch, and the port state of the switch is obtained from the power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.
Another embodiment of the present invention provides a restarting apparatus for a power receiving end device, which is used to execute the restarting method for the power receiving end device provided in the foregoing embodiment.
Referring to fig. 3, a block diagram of a restart apparatus of a power receiving end device according to an embodiment of the present invention is shown, where the apparatus may be applied to a processor in a power providing end device, where the power providing end device further includes a switching unit and a power management module, and specifically may include the following modules: an obtaining module 301, a judging module 302 and a restarting module 303, wherein:
the obtaining module 301 is configured to obtain MIB information in the switching unit, where the MIB information includes a port state of a switch, and the port state of the switch is obtained from the power management module;
the judging module 302 is configured to judge a port state of a switch in the MIB information;
the restart module 303 is configured to send a reset instruction to the power management module if the port state is an abnormal state, so as to supply power to the power receiving end device, so that the power receiving end device is restarted.
The restarting device of the power receiving end equipment provided by the embodiment of the invention obtains the MIB information in the switching unit, wherein the MIB information comprises the port state of the switch, and the port state of the switch is obtained from the power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.
The present invention further provides a supplementary description of the restart apparatus for a power receiving end device provided in the foregoing embodiment.
Optionally, the determining module is configured to:
acquiring a traffic state of transceiving data of a port of the switch and an error event, wherein the error event comprises one or more of an error frame, an Ethernet ultra-long frame or an Ethernet discarding event;
judging the flow state of the transceiving data of the port and the error event;
if the flow state of the received and transmitted data is normal and no error event exists, determining that the port of the switch is in a normal state;
and if the flow state of the received and transmitted data is abnormal or the error event occurs, determining that the port of the switch is in an abnormal state.
Optionally, the apparatus further comprises a deletion module, wherein the deletion module is configured to:
and if the port of the switch is judged to be in an abnormal state, clearing the flow state of the transceiving data of the port of the switch and the error event.
Optionally, the determining module is configured to:
and in a preset time period, when the frequency of the abnormal state of the port is greater than a first preset value, sending a reset instruction to the power management module.
Optionally, the restart module is configured to:
if the first port state is an abnormal state, a reset instruction is sent to the first port corresponding to the first port state in the power management module through the I2C, so that power is supplied to the power receiving end device, and the power receiving end device is restarted.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The restarting device of the power receiving end equipment provided by the embodiment of the invention obtains the MIB information in the switching unit, wherein the MIB information comprises the port state of the switch, and the port state of the switch is obtained from the power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.
Still another embodiment of the present invention provides a terminal device, configured to execute the method for restarting a power receiving end device provided in the foregoing embodiment.
Fig. 4 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 4, the terminal device includes: at least one processor 401 and memory 402;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the method for restarting the power receiving end device provided by the above-mentioned embodiment.
The terminal equipment is power supply end equipment.
In the terminal device provided in this embodiment, MIB information in the switching unit is obtained, where the MIB information includes a port state of the switch, and the port state of the switch is obtained from the power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.
A further embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the method for restarting a power receiving end device provided in any one of the above embodiments is implemented.
According to the computer-readable storage medium of the embodiment, by acquiring MIB library information in a switching unit, wherein the MIB library information includes a port state of a switch, the port state of the switch is obtained from a power management module; judging the port state of the switch in the MIB information; if the port state is an abnormal state, a reset instruction is sent to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment, so that the power receiving end equipment can still be recovered through restarting when data flow is abnormal.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (10)

1. A method for restarting power receiving end equipment is characterized in that: the processor is applied to a power supply end device, the power supply end device further comprises a switching unit and a power supply management module, and the method comprises the following steps:
acquiring MIB (management information base) information in the switching unit, wherein the MIB information comprises a port state of a switch, and the port state of the switch is acquired from the power management module;
judging the port state of the switch in the MIB base information;
and if the port state is an abnormal state, sending a reset instruction to the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment.
2. The method of claim 1, wherein: the judging the port state of the switch in the MIB base information includes:
acquiring a traffic state of transceiving data of a port of the switch and an error event, wherein the error event comprises one or more of an error frame, an Ethernet ultra-long frame or an Ethernet discarding event;
judging the flow state of the transceiving data of the port and the error event;
if the flow state of the received and transmitted data is normal and no error event exists, determining that the port of the switch is in a normal state;
and if the flow state of the received and transmitted data is abnormal or the error event occurs, determining that the port of the switch is in an abnormal state.
3. The method of claim 2, wherein: the method further comprises the following steps:
and if the port of the switch is judged to be in an abnormal state, clearing the flow state of the transceiving data of the port of the switch and the error event.
4. The method of claim 2, wherein: the method further comprises the following steps:
and in a preset time period, when the frequency of the abnormal state of the port is greater than a first preset value, sending a reset instruction to the power management module.
5. The method of claim 1, wherein: if the port state is an abnormal state, sending a reset instruction to the power management module to supply power to the power receiving end equipment, so that the power receiving end equipment is restarted, including:
if the first port state is abnormal, passing through I2And C, sending a reset instruction to a first port corresponding to the state of the first port in the power management module so as to supply power to the power receiving end equipment and restart the power receiving end equipment.
6. A restart device of a power receiving end device is characterized in that: be applied to the treater in the power supply end equipment, the power supply end equipment still includes exchange unit and power management module, the device includes:
an obtaining module, configured to obtain MIB information in the switching unit, where the MIB information includes a port state of a switch, and the port state of the switch is obtained from the power management module;
the judging module is used for judging the port state of the switch in the MIB information;
and the restarting module is used for sending a reset instruction to the power management module if the port state is an abnormal state so as to supply power to the power receiving end equipment and restart the power receiving end equipment.
7. The apparatus of claim 6, wherein: the judging module is used for:
acquiring a traffic state of transceiving data of a port of the switch and an error event, wherein the error event comprises one or more of an error frame, an Ethernet ultra-long frame or an Ethernet discarding event;
judging the flow state of the transceiving data of the port and the error event;
if the flow state of the received and transmitted data is normal and no error event exists, determining that the port of the switch is in a normal state;
and if the flow state of the received and transmitted data is abnormal or the error event occurs, determining that the port of the switch is in an abnormal state.
8. The method of claim 6, wherein: the apparatus further comprises a deletion module to:
and if the port of the switch is judged to be in an abnormal state, clearing the flow state of the transceiving data of the port of the switch and the error event.
9. A terminal device characterized by: the method comprises the following steps: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the method for restarting the power receiving end device according to any one of claims 1 to 5.
10. A computer-readable storage medium characterized by: the computer-readable storage medium has stored therein a computer program which, when executed, implements the method for restarting the power receiving end device according to any one of claims 1 to 5.
CN202011116597.8A 2020-10-19 2020-10-19 Method and device for restarting power receiving end equipment, terminal equipment and storage medium Pending CN112256479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011116597.8A CN112256479A (en) 2020-10-19 2020-10-19 Method and device for restarting power receiving end equipment, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011116597.8A CN112256479A (en) 2020-10-19 2020-10-19 Method and device for restarting power receiving end equipment, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112256479A true CN112256479A (en) 2021-01-22

Family

ID=74245600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011116597.8A Pending CN112256479A (en) 2020-10-19 2020-10-19 Method and device for restarting power receiving end equipment, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112256479A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179170A (en) * 2021-03-29 2021-07-27 普联国际有限公司 Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789110A (en) * 2016-12-20 2017-05-31 深圳市菲菱科思通信技术股份有限公司 A kind of long-range PoE controls and fault recovery method and system based on cloud method
US20180210538A1 (en) * 2017-01-25 2018-07-26 Oracle International Corporation Power distribution unit self-identification
CN108390763A (en) * 2018-03-06 2018-08-10 深圳市巨联高科技有限公司 PoE interchangers, internet protocol camera system and its automatic testing method
CN110247800A (en) * 2019-06-18 2019-09-17 国网四川省电力公司内江供电公司 A kind of intelligent substation switch on-line monitoring system
CN111064584A (en) * 2019-12-13 2020-04-24 京信通信系统(中国)有限公司 Switch POE power supply abnormity recovery method and device and switch
CN111614953A (en) * 2019-02-26 2020-09-01 浙江宇视科技有限公司 Restarting control method and system for fault IP camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789110A (en) * 2016-12-20 2017-05-31 深圳市菲菱科思通信技术股份有限公司 A kind of long-range PoE controls and fault recovery method and system based on cloud method
US20180210538A1 (en) * 2017-01-25 2018-07-26 Oracle International Corporation Power distribution unit self-identification
CN108390763A (en) * 2018-03-06 2018-08-10 深圳市巨联高科技有限公司 PoE interchangers, internet protocol camera system and its automatic testing method
CN111614953A (en) * 2019-02-26 2020-09-01 浙江宇视科技有限公司 Restarting control method and system for fault IP camera
CN110247800A (en) * 2019-06-18 2019-09-17 国网四川省电力公司内江供电公司 A kind of intelligent substation switch on-line monitoring system
CN111064584A (en) * 2019-12-13 2020-04-24 京信通信系统(中国)有限公司 Switch POE power supply abnormity recovery method and device and switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179170A (en) * 2021-03-29 2021-07-27 普联国际有限公司 Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium

Similar Documents

Publication Publication Date Title
EP3637675B1 (en) Power control and management of cascaded powered devices
KR101196024B1 (en) Supplying power over four pairs of conductors in communication cable
CN107147503B (en) Powered device and POE system
US7719956B2 (en) Trunk network system for multipoint-to-multipoint relay
US20040139179A1 (en) Method and system for router misconfiguration autodetection
CN1992707B (en) Fast restoration method of multicast service and network apparatus
CN101147356A (en) Supplying power over four pairs of conductors in communication cable
CN201294536Y (en) Ethernet power receiving equipment and Ethernet electric power system
CN104243205A (en) Message processing method and device used during virtual switch fault
CN102594584B (en) Data processing equipment and the control method of data processing equipment
CN107682857B (en) Data sharing method of Zigbee network, gateway equipment and Zigbee network system
CN110691398B (en) Network interaction method, system, equipment and storage medium of intelligent equipment
KR101619736B1 (en) Method, apparatus and system for manageing private network remotely using session initiation protocol
CN105915426B (en) The fault recovery method and device of loop network
CN102300075B (en) Using the method for WOL video conference terminal holding video conference, terminal and system
CN108964927B (en) Power over Ethernet (PoE) self-adaption method and device
CN106302536A (en) The method and apparatus of communication between all-in-one multisystem based on switch
CN112256479A (en) Method and device for restarting power receiving end equipment, terminal equipment and storage medium
CN112380047A (en) Method and device for restarting switch, terminal equipment and storage medium
CN103001822B (en) The processing method of Network Abnormal and device
US20120254639A1 (en) Communication apparatus, power control method thereof, and computer readable medium
EP2736204B1 (en) Rendezvous Point Convergence Method and Apparatus
CN101902341A (en) Method and device for supplying power for powered device
WO2016145858A1 (en) Power over ethernet control method and device
CN111971984B (en) Low-power consumption Bluetooth communication method, electronic device, network and storage medium

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210122