An auto-restore method for a power device, comprising an Ethernet exchanger and at least one power device;
- said Ethernet exchanger being connected to a computer device building a detecting/responding packet protocol in said Ethernet exchanger;
- said Ethernet exchanger comprising a CPU having a memory, and said CPU being connected to an Ethernet power control unit connected to said power device through an Ethernet interface;
- the auto-restore method comprising:
- (A) starting the auto-restore method;
- (B) judging whether a detection execution command transmitted from said computer device by said CPU, wherein if it is judged that no detection execution command is transmitted from said computer device, the procedure returns to step (A);
- otherwise, the procedure proceeds to step (C);
- (C) transmitting a detecting packet to said power device through said Ethernet interface by using said CPU;
- (D) judging whether a responding packet transmitted from said power device through said Ethernet interface is received by using said CPU, wherein if it is judged that said responding packet transmitted from said power device through said Ethernet interface is received, the procedure proceeds to step (E);
- otherwise, the procedure proceeds to step (F);
- (E) renewing detection information recorded in said memory by using said CPU, and the procedure returns to step (C);
- (F) increasing a non-responding record of said power device recorded in said memory;
- (G) judging whether said non-responding record of said power device stored in said memory is higher than an internal predetermined non-responding value in said memory by using said CPU, wherein if it is judged that said non-responding record of said power device stored in said memory is lower than an internal predetermined non-responding value in said memory, the procedure proceeds to step (C), otherwise the procedure proceeds to step (H);
- (H) judging whether a reset record of said power device stored in said memory is higher than an internal predetermined reset value in said memory by using said CPU, wherein if it is judged that said responding record of said power device stored in said memory is lower than said internal predetermined reset value in said memory, the procedure proceeds to step (I), otherwise the procedure proceeds to step (L);
- (I) transmitting a power shutdown signal to said Ethernet power control unit by using said CPU, wherein said Ethernet power control unit disconnects power supplied by said Ethernet, and said Ethernet exchanger stops transmitting power to said power device to further shutdown said power device;
- (J) transmitting a power activation signal to said Ethernet power control unit after a predetermined time by using said CPU, wherein said Ethernet exchanger continues to supply power to said power device and said power device will be reset;
- (K) increasing a reset record in said memory by using said CPU, and the procedure proceeds to step (C);
- (L) transmitting a power shutdown signal to said Ethernet power control unit by using said CPU, wherein said Ethernet power control unit disconnects power supplied by said Ethernet, and said Ethernet exchanger stops transmitting power to said power device;
- and
- (M) ending the auto-restore method.