CN114356061A - Power failure detection method, device and system and detection equipment - Google Patents

Power failure detection method, device and system and detection equipment Download PDF

Info

Publication number
CN114356061A
CN114356061A CN202111420918.8A CN202111420918A CN114356061A CN 114356061 A CN114356061 A CN 114356061A CN 202111420918 A CN202111420918 A CN 202111420918A CN 114356061 A CN114356061 A CN 114356061A
Authority
CN
China
Prior art keywords
data
power supply
communication
group
determining
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.)
Granted
Application number
CN202111420918.8A
Other languages
Chinese (zh)
Other versions
CN114356061B (en
Inventor
吴迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111420918.8A priority Critical patent/CN114356061B/en
Publication of CN114356061A publication Critical patent/CN114356061A/en
Application granted granted Critical
Publication of CN114356061B publication Critical patent/CN114356061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
    • Y04S10/52Outage or fault management, e.g. fault detection or location

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a power failure detection method, device, system and detection equipment, and relates to the technical field of servers. The power failure detection method is applied to detection equipment, wherein the detection equipment is connected with a power supply, and the method comprises the following steps: sending a target mode setting instruction to the power supply, wherein the target mode setting instruction comprises a test index corresponding to the power supply; receiving communication data sent by a power supply based on the test indexes; and analyzing the communication data, and determining whether the power supply fails according to the analysis result. By adopting the method, the detection equipment can receive the communication data sent by the power supply, so that the working condition of the power supply under the test index can be monitored based on the communication data, and whether the power supply fails or not is further determined, thereby realizing the monitoring of the power supply, ensuring that the failure of the power supply can be found in time, and avoiding the abnormality of the whole server caused by the failure of the power supply.

Description

Power failure detection method, device and system and detection equipment
Technical Field
The invention relates to the technical field of servers, in particular to a power failure detection method, device, system and detection equipment.
Background
With the development of technology, the functions of the server are more and more perfect. The server is not isolated from communication with the power supply for normal operation. The server and power supply typically communicate using an IIC bus.
In the prior art, as shown in fig. 1, a power supply is usually placed in service to supply power normally, a management module of a server accesses a secondary chip of the power supply through an IIC bus, and an IIC protocol analyzer can monitor communication data between the power supply and the server.
In the method, the IIC protocol analyzer can only acquire a large amount of communication data and cannot analyze and research the communication data, so that power failure cannot be detected.
Disclosure of Invention
In view of this, the embodiment of the present invention provides a power failure detection method, which aims to solve the problem that a power failure cannot be detected.
According to a first aspect, an embodiment of the present invention provides a power failure detection method, which is applied to a detection device, where the detection device is connected to a power supply, and the method includes:
sending a target mode setting instruction to the power supply, wherein the target mode setting instruction comprises a test index corresponding to the power supply;
receiving communication data sent by a power supply based on the test indexes;
and analyzing the communication data, and determining whether the power supply fails according to the analysis result.
According to the power failure detection method provided by the embodiment of the invention, the detection equipment sends the target mode setting instruction to the power supply, so that the power supply can be in the target mode, and the communication data is sent to the detection equipment based on the test index included in the target mode setting instruction, so that the detection equipment can receive the communication data sent by the power supply, the working condition of the power supply under the test index can be monitored based on the communication data, whether the power supply fails or not is further determined, the monitoring on the power supply is realized, the failure of the power supply can be ensured to be found in time, and the abnormality of the whole server caused by the power failure is avoided.
With reference to the first aspect, in a first implementation manner of the first aspect, analyzing the communication data, and determining whether the power supply fails according to the analysis result includes:
identifying communication data;
determining the type of each part of data in the communication data, wherein the type comprises static data and dynamic data;
analyzing the communication data according to the types of the data of each part;
and determining whether the power supply fails according to the analysis result.
The power failure detection method provided by the embodiment of the invention identifies the communication data and determines the type of each part of data in the communication data, so that different analysis methods can be adopted for different types of communication data, the accuracy of communication data analysis is ensured, and the problem that the data analysis is wrong and whether the power fails or not can be finally determined because the same analysis method is adopted for all the communication data is avoided.
With reference to the first aspect, in a second implementation manner of the first aspect, analyzing the communication data according to the type of each part of the data includes:
if the type of the partial data is static data, acquiring the static data;
taking a first group of data in the static data as first reference data;
comparing other group data in the static data with the first reference data;
if the other group data is different from the first reference data, recording the other group data different from the first reference data;
and determining a first communication failure rate of the static data according to the recording result.
According to the power failure detection method provided by the embodiment of the invention, the first group of data in the static data is used as the first reference data, so that other groups of data can be compared with the first reference data. And under the condition that the other group data are different from the first reference data, recording the other group data different from the first reference data, and determining the first communication failure rate of the static data according to the recording result, so that the accuracy of the determined first communication failure rate can be ensured.
With reference to the second embodiment of the first aspect, in a third embodiment of the first aspect, determining whether the power supply fails according to the analysis result includes:
comparing the first communication failure rate with a first preset error rate;
if the first communication failure rate is less than or equal to a first preset error rate, determining that the power supply does not fail;
and if the first communication failure rate is greater than a first preset error rate, determining that the power supply fails.
According to the power failure detection method provided by the embodiment of the invention, a first communication failure rate is compared with a first preset error rate; if the first communication failure rate is less than or equal to a first preset error rate, determining that the power supply does not fail; and if the first communication failure rate is greater than a first preset error rate, determining that the power supply fails. So that the accuracy of the determined power failure can be ensured.
With reference to the first implementation manner of the first aspect, in a fourth implementation manner of the first aspect, analyzing the communication data according to the type of each part of the data includes:
if the type of the partial data is dynamic data, acquiring the dynamic data;
determining the load rate of the power supply corresponding to each dynamic data according to the identification information corresponding to the dynamic data;
grouping the dynamic data according to each load rate;
and analyzing each group of dynamic data after grouping.
According to the power failure detection method provided by the embodiment of the invention, the load rate of the power supply corresponding to each dynamic data is determined according to the identification information corresponding to the dynamic data; and then grouping the dynamic data according to each load rate, and analyzing each group of grouped dynamic data. Therefore, the accuracy of analyzing each group of dynamic data can be ensured, and the inaccurate analysis of the dynamic data caused by the same analysis method adopted for the dynamic data corresponding to different load rates is avoided.
With reference to the fourth implementation manner of the first aspect, in the fifth implementation manner of the first aspect, the analyzing the grouped sets of dynamic data includes:
determining the precision gradient corresponding to each group of dynamic data according to the load rate corresponding to each group of dynamic data;
taking the dynamic data of the target group number in each group of dynamic data as second reference data, and deleting the dynamic data before the second reference data group number;
comparing other data in each group of dynamic data with second reference data;
if the difference value between the other data and the second reference data is out of the precision gradient range, recording the other data of which the difference value exceeds the second reference data;
and determining the second communication failure rate of each group of dynamic data according to the recording result.
According to the power failure detection method provided by the embodiment of the invention, the precision gradient corresponding to each group of dynamic data is determined according to the load rate corresponding to each group of dynamic data, so that the accuracy of analyzing each group of dynamic data can be ensured. And the dynamic data of the target group number in each group of dynamic data is used as second reference data, and the dynamic data before the second reference data group number is deleted, so that the unstable data in each group of dynamic data can be deleted, and the influence of the unstable data on the research result is avoided. And then, comparing other data in each group of dynamic data with the second reference data, if the difference value between the other data and the second reference data is out of the precision gradient range, recording the other data of which the difference value exceeds the second reference data, and determining the second communication failure rate of each group of dynamic data according to the recording result. Therefore, the accuracy of the second communication failure rate of each group of dynamic data is ensured.
With reference to the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, determining whether the power supply fails according to the analysis result includes:
determining the maximum second communication failure rate from the second communication failure rates corresponding to each group of dynamic data;
comparing the maximum second communication failure rate with a second preset error rate;
if the maximum second communication failure rate is less than or equal to a second preset error rate, determining that the power supply does not fail;
and if the maximum second communication failure rate is greater than a second preset error rate, determining that the power supply fails.
According to the power failure detection method provided by the embodiment of the invention, the maximum second communication failure rate is determined from the second communication failure rates corresponding to each group of dynamic data; the maximum second communication failure rate is compared with a second preset error rate. The second communication failure rate corresponding to each group of dynamic data does not need to be compared with a second preset error rate, so that the working efficiency is improved. Determining that the power supply does not fail under the condition that the maximum second communication failure rate is less than or equal to a second preset error rate; and determining the power failure under the condition that the maximum second communication failure rate is greater than a second preset error rate. Thereby ensuring the accuracy of the power failure determination.
According to a second aspect, an embodiment of the present invention further provides a power failure detection apparatus, including:
the sending module is used for sending a target mode setting instruction to the power supply, wherein the target mode setting instruction comprises a test index corresponding to the power supply;
the receiving module is used for receiving communication data sent by the power supply based on the test indexes;
and the determining module is used for analyzing the communication data and determining whether the power supply fails according to the analysis result.
According to the power failure detection device provided by the embodiment of the invention, the detection equipment sends the target mode setting instruction to the power supply, so that the power supply can be in the target mode, and the communication data is sent to the detection equipment based on the test index included in the target mode setting instruction, so that the detection equipment can receive the communication data sent by the power supply, the working condition of the power supply under the test index can be monitored based on the communication data, whether the power supply fails or not is further determined, the monitoring on the power supply is realized, the failure of the power supply can be ensured to be found in time, and the abnormality of the whole server caused by the power failure is avoided.
According to a third aspect, an embodiment of the present invention further provides a power failure detection system, where the power failure detection system includes: a power supply and a detection device; the power supply comprises a wireless communication module and a chip, the power supply is communicated with the detection equipment based on the wireless communication module,
the detection equipment sends a target mode setting instruction to the power supply, wherein the target mode setting instruction comprises a test index corresponding to the power supply;
the power supply receives a target mode setting instruction and sends communication data to the detection equipment based on the test index in the target mode;
the detection equipment receives communication data sent by the power supply based on the test indexes; and analyzing the communication data, and determining whether the power supply fails according to the analysis result.
In the power failure detection system provided by the embodiment of the invention, the detection device sends the target mode setting instruction to the power supply, so that the power supply can be in the target mode, and the communication data is sent to the detection device based on the test index included in the target mode setting instruction, so that the detection device can receive the communication data sent by the power supply, thereby monitoring the working condition of the power supply under the test index based on the communication data, further determining whether the power supply fails, further realizing the monitoring of the power supply, ensuring the timely discovery of the failure of the power supply, and avoiding the abnormality of the whole server caused by the power failure.
According to a fourth aspect, an embodiment of the present invention provides a detection apparatus, including a memory and a processor, where the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions, so as to perform the power failure detection method in the first aspect or any one of the implementation manners of the first aspect.
According to a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the method for detecting a power failure in the first aspect or any one of the implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a diagram illustrating a management module for a battery and a server according to the prior art;
FIG. 2 is a flow chart of a power failure detection method provided by another embodiment of the invention;
FIG. 3 is a flow chart of a power failure detection method provided by another embodiment of the invention;
FIG. 4 is a functional block diagram of a power failure detection apparatus provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of a hardware structure of a detection apparatus provided by an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a power failure detection system provided by an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
It should be noted that, in the method for detecting a power failure provided in this embodiment of the present application, an execution main body of the method may be a power failure detection device, and the power failure detection device may be implemented as part or all of a computer device in a software, hardware, or a combination of software and hardware, where the computer device may be a server or a terminal, where the server in this embodiment of the present application may be one server or a server cluster composed of multiple servers, and the terminal in this embodiment of the present application may be another intelligent hardware device such as a smart phone, a personal computer, a tablet computer, a wearable device, and an intelligent robot. In the following method embodiments, the following description will be made by taking the example where the execution subject is a detection device.
In an embodiment of the present application, as shown in fig. 2, a power failure detection method is provided, which is described by taking an example that the method is applied to a detection device, where the detection device is connected to a power supply, and the method includes the following steps:
s11, sending a target mode setting command to the power supply.
The target mode setting instruction comprises a test index corresponding to the power supply.
Specifically, the detection device may send the target mode device instruction to the power supply based on the communication device with the power supply.
In an optional implementation manner of the present application, the communication device may be a communication module inside the power supply, and the power supply receives the target mode setting instruction sent by the detection device based on the communication module.
In another optional implementation manner of the present application, the communication device may also be a wireless communication module, and the wireless communication module may be plugged into or unplugged from a power supply. When the wireless communication module is plugged into the power supply, the power supply can receive a target mode setting instruction sent by the detection device based on the wireless communication module.
After the power supply receives a target mode setting instruction sent by the detection equipment, the power supply is set to be in a target mode, and some parameter information of the power supply is set according to a test index corresponding to the power supply and included in the target mode setting instruction. The parameter information may include parameters such as a load factor of the power supply.
The target mode may be a master-slave mode or a normal mode. When the target mode is a master-slave mode, the power supply may include a communication module and a chip, the communication module may serve as a master device, and the chip may serve as a slave device.
In an optional implementation manner, the communication module receives a target module setting instruction sent by the detection device, and sends the target mode setting instruction and a test index corresponding to the power supply included in the target mode setting instruction to the chip together. The chip sets the mode of the power supply to be a master-slave mode, and sets related parameters of the power supply according to the test indexes. For example, the test indicator may be a load rate of the power supply, where the load rate may be 10%, 20%, 30%, and the like, and the test indicator may also be other indicators of the power supply, and the test indicator is not specifically limited in this embodiment of the application.
In another optional implementation, the communication module receives a target module setting instruction sent by the detection device, and may first send a target mode setting requirement in the target mode setting instruction to the chip. And after the chip sets the mode of the power supply to be the master-slave mode, sending a test index corresponding to the power supply included in the target mode setting instruction to the chip, and then setting relevant parameters of the power supply by the chip according to the test index.
After the relevant parameters of the power supply are set according to the test indexes, the chip can acquire the communication data corresponding to the power supply under the relevant test indexes, then the communication data are transmitted to the communication module, and the communication module transmits the communication data to the detection equipment.
When the target mode is the normal mode, the test index corresponding to the power supply included in the target mode setting instruction may be a normal operation index, and the normal operation index is used to indicate that the power supply normally communicates with the baseboard management controller in the server. And after receiving a target mode setting instruction sent by the detection equipment, the power supply enters a normal mode and communicates with the substrate management controller. And a communication module in the power supply acquires communication data for communication between the power supply and the substrate management controller and sends the communication data to the detection equipment.
And S12, receiving the communication data sent by the power supply based on the test index.
Specifically, the detection device receives communication data transmitted by the power supply based on the test index in the target mode based on communication with the power supply.
And S13, analyzing the communication data, and determining whether the power supply has a fault according to the analysis result.
Specifically, after the detection device receives communication data sent by the power supply based on the test index, the communication data can be analyzed, and then whether the power supply fails or not can be determined according to the analysis result.
Details about this step will be described later.
According to the power failure detection method provided by the embodiment of the invention, the detection equipment sends the target mode setting instruction to the power supply, so that the power supply can be in the target mode, and the communication data is sent to the detection equipment based on the test index included in the target mode setting instruction, so that the detection equipment can receive the communication data sent by the power supply, the working condition of the power supply under the test index can be monitored based on the communication data, whether the power supply fails or not is further determined, the monitoring on the power supply is realized, the failure of the power supply can be ensured to be found in time, and the abnormality of the whole server caused by the power failure is avoided.
In this embodiment, a power failure detection method is provided, which can be used for a detection device, and fig. 3 is a flowchart of the power failure detection method according to the embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
s21, sending a target mode setting command to the power supply.
Please refer to S11 in fig. 1, which is not described herein again.
And S22, receiving the communication data sent by the power supply based on the test index.
Please refer to S11 in fig. 1, which is not described herein again.
And S23, analyzing the communication data, and determining whether the power supply has a fault according to the analysis result.
Specifically, the above S23 may include:
and S231, identifying the communication data.
Specifically, after receiving the communication data sent by the power supply based on the test index, the detection device may identify the communication data according to the identification information of the communication data.
And S232, determining the type of each part of data in the communication data.
Wherein the types include static data and dynamic data.
Specifically, the detection device may determine which communication data belong to static data and which communication data belong to dynamic data according to the identification information of the communication data.
S233, the communication data is analyzed according to the type of each part of the data.
Specifically, the detection device may analyze different types of communication data by using different methods according to the types of the data of each part.
In an optional implementation manner of the present application, when the type of the partial data is static data, the following steps may be included:
(1) and obtaining static data.
(2) And taking a first group of data in the static data as first reference data.
(3) And comparing other group data in the static data with the first reference data.
(4) And recording other group data different from the first reference data if the other group data is different from the first reference data.
(5) And determining a first communication failure rate of the static data according to the recording result.
Specifically, when the type of the partial data is static data, the detection device acquires the static data. The static data may be an invariant value written into the chip by the power supply itself, such as a power supply model, manufacturer information, and the like.
The detection device can read the static data, determine whether the static data has empty data, and delete the read address corresponding to the empty data if the static data has empty data. And if the static data does not have the null data, the detection equipment acquires the effective data in the static data and stores the effective data in the static data.
The detection device acquires a first group of data corresponding to valid data in the static data, and takes the first group of data as first reference data. And then comparing the other group of data in the static data with the first reference data, and if the other group of data is different from the first reference data, recording and marking the other group of data different from the first reference data.
For example, if the first group of data corresponding to the valid data in the static data is ABC, the first reference data is ABC. If the other group of data is ABC, the other group of data is the same as the first reference data; if the other group data has data which is not ABC, the other group data which is not ABC is recorded and marked.
The detection device determines a first communication failure rate of the static data according to the number of other sets of data recorded different from the first reference data.
For example, assuming that the valid data in the static data has 100 sets, the first set of data in the 100 sets of valid data is the first reference data, and 5 sets of data in the remaining 99 sets of data are different from the first reference data, the detection device determines that the 5 sets of data are abnormal, and divides the 5 sets of abnormal data by the 100 sets of valid data to determine that the first communication failure rate is 5%.
In the embodiment of the application, the first group of data in the static data is used as the first reference data, so that other groups of data can be compared with the first reference data. And under the condition that the other group data are different from the first reference data, recording the other group data different from the first reference data, and determining the first communication failure rate of the static data according to the recording result, so that the accuracy of the determined first communication failure rate can be ensured.
In another optional implementation manner of the present application, when the type of the partial data is dynamic data, the following steps may be included:
(1) and acquiring dynamic data.
(2) And determining the load rate of the power supply corresponding to each dynamic data according to the identification information corresponding to the dynamic data.
(3) And grouping the dynamic data according to each load rate.
(4) Analyzing each group of dynamic data after grouping
Specifically, when the partial data is dynamic data, the detection device acquires the dynamic data. And then determining the load rate of the power supply corresponding to each dynamic data according to the identification information corresponding to the dynamic data. The identification information may be an Ishare signal included in each piece of dynamic data, or may be other signals, which is not specifically limited in this embodiment of the application. The dynamic data may be output voltage, output current, and the like, which belong to timely variation values.
Then, the detection device groups the dynamic data according to the load rates corresponding to the dynamic data, and divides the dynamic data with the same load rate into a group. And then the detection equipment analyzes each grouped group of dynamic data.
In the embodiment of the application, the load rate of the power supply corresponding to each dynamic data is determined according to the identification information corresponding to the dynamic data; and then grouping the dynamic data according to each load rate, and analyzing each group of grouped dynamic data. Therefore, the accuracy of analyzing each group of dynamic data can be ensured, and the inaccurate analysis of the dynamic data caused by the same analysis method adopted for the dynamic data corresponding to different load rates is avoided.
In an optional embodiment of the present application, the analyzing the grouped sets of dynamic data may include the following steps:
41) and determining the precision gradient corresponding to each group of dynamic data according to the load rate corresponding to each group of dynamic data.
42) And taking the dynamic data of the target group number in each group of dynamic data as second reference data, and deleting the dynamic data before the second reference data group number.
43) And comparing other data in each group of dynamic data with the second reference data.
44) And if the difference value between the other data and the second reference data is out of the precision gradient range, recording the other data of which the difference value exceeds the second reference data.
45) And determining the second communication failure rate of each group of dynamic data according to the recording result.
Specifically, the dynamic data acquired by different power supply load rates are different, and therefore, the detection device can determine the precision gradient corresponding to each group of dynamic data according to the load rate corresponding to each group of dynamic data.
Illustratively, when the load rate corresponding to the dynamic data is 10%, the accuracy gradient corresponding to the set of dynamic data is ± 0.5, and when the load rate corresponding to the dynamic data is 20%, the accuracy gradient corresponding to the set of dynamic data is ± 0.3.
After determining the precision gradient corresponding to each group of dynamic data, the detection device analyzes each group of data. In an alternative embodiment, the detection device may calculate a difference between two adjacent dynamic data in each set of dynamic data, and determine that each set of dynamic data is stable when the difference between two adjacent dynamic data is smaller than a preset value. And then determining the first group of stable dynamic data in each group of dynamic data as second reference data, and deleting unstable dynamic data before the second reference data in each group of dynamic data.
In another alternative embodiment, the detection device may use the dynamic data of the target number of groups in each group of dynamic data as the second reference data. The target group number may be 10 or 20, and the target group number is not specifically limited in the embodiments of the present application. Then, the detection device takes the target number of sets of dynamic data in each set of dynamic data as second reference data, and deletes the dynamic data before the second reference data set number.
After determining the second reference data in each set of dynamic data, the detection device compares the other dynamic data in each set of dynamic data with the second reference data. And if the difference value between the other data in each group of dynamic data and the second reference data is out of the precision gradient range, recording the other data of which the difference value exceeds the second reference data.
Illustratively, the precision gradient corresponding to the dynamic data with the load rate of 10% is ± 0.5, the detection device compares other data in the dynamic data with the load rate of 10% with the second reference data, and if the difference between the other data and the second reference data is within a range of ± 0.5, the other data is determined to be normal; if the difference between the other data and the second reference data is out of the range of ± 0.5, the other data whose difference exceeds the second reference data is recorded.
And the detection equipment determines the second communication failure rate of each group of dynamic data according to the recording result.
According to the power failure detection method provided by the embodiment of the invention, the precision gradient corresponding to each group of dynamic data is determined according to the load rate corresponding to each group of dynamic data, so that the accuracy of analyzing each group of dynamic data can be ensured. And the dynamic data of the target group number in each group of dynamic data is used as second reference data, and the dynamic data before the second reference data group number is deleted, so that the unstable data in each group of dynamic data can be deleted, and the influence of the unstable data on the research result is avoided. And then, comparing other data in each group of dynamic data with the second reference data, if the difference value between the other data and the second reference data is out of the precision gradient range, recording the other data of which the difference value exceeds the second reference data, and determining the second communication failure rate of each group of dynamic data according to the recording result. Therefore, the accuracy of the second communication failure rate of each group of dynamic data is ensured.
And S234, determining whether the power supply fails according to the analysis result.
In an optional implementation manner of the present application, when the type of the partial data is static data, the following steps may be included:
(1) and comparing the first communication failure rate with a first preset error rate.
(2) And if the first communication failure rate is less than or equal to a first preset error rate, determining that the power supply does not fail.
(3) And if the first communication failure rate is greater than a first preset error rate, determining the power failure.
Specifically, after determining a first communication failure rate of the static data, the detection device compares the first communication failure rate with a first preset error rate. And if the first communication failure rate is less than or equal to a first preset error rate, determining that the power supply does not fail. And if the first communication failure rate is greater than a first preset error rate, determining that the power supply fails.
The power failure detection method provided by the embodiment of the invention can ensure the accuracy of the determined power failure.
In an optional implementation manner of the present application, when the type of the partial data is dynamic data, the following steps may be included:
(1) and determining the maximum second communication failure rate from the second communication failure rates corresponding to the dynamic data groups.
(2) And comparing the maximum second communication failure rate with a second preset error rate.
(3) And if the maximum second communication failure rate is less than or equal to a second preset error rate, determining that the power supply does not fail.
(4) And if the maximum second communication failure rate is greater than a second preset error rate, determining the power failure.
Specifically, after the detection device determines the second communication failure rate corresponding to each group of dynamic data, the second communication failure rates corresponding to each group of dynamic data may be compared to determine the maximum second communication failure rate. The maximum second communication failure rate is compared with a second preset error rate. If the maximum second communication failure rate is less than or equal to a second preset error rate, determining that the power supply does not fail; and if the maximum second communication failure rate is greater than a second preset error rate, determining that the power supply fails.
According to the power failure detection method provided by the embodiment of the invention, the maximum second communication failure rate is determined from the second communication failure rates corresponding to each group of dynamic data; the maximum second communication failure rate is compared with a second preset error rate. The second communication failure rate corresponding to each group of dynamic data does not need to be compared with a second preset error rate, so that the working efficiency is improved. Determining that the power supply does not fail under the condition that the maximum second communication failure rate is less than or equal to a second preset error rate; and determining the power failure under the condition that the maximum second communication failure rate is greater than a second preset error rate. Thereby ensuring the accuracy of the power failure determination.
The power failure detection method provided by the embodiment of the invention identifies the communication data and determines the type of each part of data in the communication data, so that different analysis methods can be adopted for different types of communication data, the accuracy of communication data analysis is ensured, and the problem that the data analysis is wrong and whether the power fails or not can be finally determined because the same analysis method is adopted for all the communication data is avoided.
It should be understood that although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
As shown in fig. 4, the present embodiment provides a power failure detection apparatus, including:
a sending module 41, configured to send a target mode setting instruction to a power supply, where the target mode setting instruction includes a test indicator corresponding to the power supply;
a receiving module 42, which receives communication data sent by the power supply based on the test index;
and the determining module 43 is configured to analyze the communication data and determine whether the power supply fails according to an analysis result.
In an embodiment of the application, the determining module is specifically configured to identify communication data; determining the type of each part of data in the communication data, wherein the type comprises static data and dynamic data; analyzing the communication data according to the types of the data of each part; and determining whether the power supply fails according to the analysis result.
In an embodiment of the application, the determining module is specifically configured to obtain the static data if the type of the part of data is the static data; taking a first group of data in the static data as first reference data; comparing other group data in the static data with the first reference data; if the other group data is different from the first reference data, recording the other group data different from the first reference data; and determining a first communication failure rate of the static data according to the recording result.
In an embodiment of the application, the determining module is specifically configured to compare the first communication failure rate with a first preset error rate; if the first communication failure rate is less than or equal to a first preset error rate, determining that the power supply does not fail; and if the first communication failure rate is greater than a first preset error rate, determining that the power supply fails.
In an embodiment of the application, the determining module is specifically configured to obtain the dynamic data if the type of the part of data is the dynamic data; determining the load rate of the power supply corresponding to each dynamic data according to the identification information corresponding to the dynamic data; grouping the dynamic data according to each load rate; and analyzing each group of dynamic data after grouping.
In an embodiment of the application, the determining module is specifically configured to determine, according to a load rate corresponding to each group of dynamic data, a precision gradient corresponding to each group of dynamic data; taking the dynamic data of the target group number in each group of dynamic data as second reference data, and deleting the dynamic data before the second reference data group number; comparing other data in each group of dynamic data with second reference data; if the difference value between the other data and the second reference data is out of the precision gradient range, recording the other data of which the difference value exceeds the second reference data; and determining the second communication failure rate of each group of dynamic data according to the recording result.
In an embodiment of the application, the determining module is specifically configured to determine a maximum second communication failure rate from second communication failure rates corresponding to each group of dynamic data; comparing the maximum second communication failure rate with a second preset error rate; if the maximum second communication failure rate is less than or equal to a second preset error rate, determining that the power supply does not fail; and if the maximum second communication failure rate is greater than a second preset error rate, determining that the power supply fails.
For specific limitations and beneficial effects of the power failure detection apparatus, reference may be made to the above limitations on the power failure detection method, which is not described herein again. The various modules in the above power failure detection apparatus may be implemented wholly or partially by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the detection device, and can also be stored in a memory in the detection device in a software form, so that the processor can call and execute operations corresponding to the modules.
The embodiment of the invention also provides detection equipment which is provided with the power failure detection device shown in the figure 4.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a detection apparatus according to an alternative embodiment of the present invention, and as shown in fig. 5, the detection apparatus may include: at least one processor 51, such as a CPU (Central Processing Unit), at least one communication interface 53, memory 54, at least one communication bus 52. Wherein a communication bus 52 is used to enable the connection communication between these components. The communication interface 53 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a standard wireless interface. The Memory 54 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 54 may alternatively be at least one memory device located remotely from the processor 51. Wherein the processor 51 may be combined with the power failure detection apparatus described in fig. 4, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 for executing any of the above method steps.
The communication bus 52 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 52 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The memory 54 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 54 may also comprise a combination of the above types of memories.
The processor 51 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 51 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 54 is also used to store program instructions. The processor 51 may call program instructions to implement the power failure detection method as shown in the embodiments of fig. 2 to 3 of the present application.
The embodiment of the invention also provides a power failure detection system which is provided with the detection equipment shown in the figure 5. The power failure detection system includes: a power source 61 and a detection device 62 as described above and shown in fig. 5. The power supply 61 includes a wireless communication module 611 and a chip 612, the power supply 61 communicates with the detection device 62 based on the wireless communication module 611,
the detection device 62 sends a target mode setting instruction to the power supply 61, wherein the target mode setting instruction comprises a test index corresponding to the power supply 61;
the power supply 61 receives the target mode setting instruction and transmits communication data to the detection device 62 based on the test index in the target mode;
the detection device 62 receives communication data transmitted by the power supply 61 based on the test index; the communication data is analyzed, and it is determined whether the power supply 61 has failed based on the analysis result.
An embodiment of the present invention further provides a non-transitory computer storage medium, where a computer-executable instruction is stored in the computer storage medium, and the computer-executable instruction can execute the power failure detection method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A power failure detection method applied to a detection device connected to a power supply, the method comprising:
sending a target mode setting instruction to the power supply, wherein the target mode setting instruction comprises a test index corresponding to the power supply;
receiving communication data sent by the power supply based on the test index;
and analyzing the communication data, and determining whether the power supply has a fault according to an analysis result.
2. The method of claim 1, wherein analyzing the communication data to determine whether the power supply is faulty according to the analysis result comprises:
identifying the communication data;
determining the types of the data of each part in the communication data, wherein the types comprise static data and dynamic data;
analyzing the communication data according to the types of the data of each part;
and determining whether the power supply fails according to the analysis result.
3. The method of claim 2, wherein analyzing the communication data based on the type of the portions of data comprises:
if the type of the partial data is static data, acquiring the static data;
taking a first group of data in the static data as first reference data;
comparing the other set of data in the static data with the first reference data;
if the other group data is different from the first reference data, recording other group data different from the first reference data;
and determining a first communication failure rate of the static data according to the recording result.
4. The method of claim 3, wherein determining whether the power supply is malfunctioning based on the analysis comprises:
comparing the first communication failure rate with a first preset error rate;
if the first communication failure rate is less than or equal to the first preset error rate, determining that the power supply does not fail;
and if the first communication failure rate is greater than the first preset error rate, determining the power failure.
5. The method of claim 2, wherein analyzing the communication data based on the type of the portions of data comprises:
if the type of the partial data is dynamic data, acquiring the dynamic data;
determining the load rate of the power supply corresponding to each dynamic data according to the identification information corresponding to the dynamic data;
grouping the dynamic data according to each load rate;
and analyzing each group of the dynamic data after grouping.
6. The method of claim 5, wherein analyzing the grouped sets of the dynamic data comprises:
determining the precision gradient corresponding to each group of dynamic data according to the load rate corresponding to each group of dynamic data;
taking the dynamic data of the target group number in each group of the dynamic data as second reference data, and deleting the dynamic data before the second reference data group number;
comparing other data in each set of the dynamic data with the second reference data;
if the difference value between the other data and the second reference data is out of the precision gradient range, recording the other data of which the difference value exceeds the second reference data;
and determining the second communication failure rate of each group of the dynamic data according to the recording result.
7. The method of claim 6, wherein determining whether the power supply is malfunctioning based on the analysis comprises:
determining the maximum second communication failure rate from the second communication failure rates corresponding to the dynamic data of each group;
comparing the maximum second communication failure rate with a second preset error rate;
if the maximum second communication failure rate is less than or equal to the second preset error rate, determining that the power supply does not fail;
and if the maximum second communication failure rate is greater than the second preset error rate, determining the power failure.
8. A power failure detection apparatus, comprising:
the sending module is used for sending a target mode setting instruction to the power supply, wherein the target mode setting instruction comprises a test index corresponding to the power supply;
the receiving module is used for receiving communication data sent by the power supply based on the test index;
and the determining module is used for analyzing the communication data and determining whether the power supply fails according to the analysis result.
9. A power failure detection system, characterized in that the power failure detection system comprises: a power supply and a detection device; the power supply comprises a wireless communication module and a chip, the power supply is communicated with the detection equipment based on the wireless communication module,
the detection equipment sends a target mode setting instruction to the power supply, wherein the target mode setting instruction comprises a test index corresponding to the power supply;
the power supply receives the target mode setting instruction and sends communication data to the detection equipment based on the test index in a target mode;
the detection equipment receives communication data sent by the power supply based on the test index; and analyzing the communication data, and determining whether the power supply has a fault according to an analysis result.
10. A detection device comprising a memory and a processor, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the power failure detection method of any one of claims 1-7.
CN202111420918.8A 2021-11-26 2021-11-26 Power failure detection method, device, system and detection equipment Active CN114356061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111420918.8A CN114356061B (en) 2021-11-26 2021-11-26 Power failure detection method, device, system and detection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111420918.8A CN114356061B (en) 2021-11-26 2021-11-26 Power failure detection method, device, system and detection equipment

Publications (2)

Publication Number Publication Date
CN114356061A true CN114356061A (en) 2022-04-15
CN114356061B CN114356061B (en) 2023-06-09

Family

ID=81096118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111420918.8A Active CN114356061B (en) 2021-11-26 2021-11-26 Power failure detection method, device, system and detection equipment

Country Status (1)

Country Link
CN (1) CN114356061B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683696A (en) * 2018-12-25 2019-04-26 浪潮电子信息产业股份有限公司 Fault of server power supply detection system, method, apparatus, equipment and medium
CN111983383A (en) * 2020-08-17 2020-11-24 海南电网有限责任公司信息通信分公司 Power system fault first-aid repair method and system
CN112148542A (en) * 2020-09-22 2020-12-29 江苏安超云软件有限公司 Reliability test method, device and system for distributed storage cluster
WO2021017364A1 (en) * 2019-07-26 2021-02-04 京信通信系统(中国)有限公司 Network failure diagnosis method and apparatus, network device, and storage medium
CN113094215A (en) * 2019-12-23 2021-07-09 中国移动通信集团湖南有限公司 Fault detection method, system and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683696A (en) * 2018-12-25 2019-04-26 浪潮电子信息产业股份有限公司 Fault of server power supply detection system, method, apparatus, equipment and medium
WO2021017364A1 (en) * 2019-07-26 2021-02-04 京信通信系统(中国)有限公司 Network failure diagnosis method and apparatus, network device, and storage medium
CN113094215A (en) * 2019-12-23 2021-07-09 中国移动通信集团湖南有限公司 Fault detection method, system and device
CN111983383A (en) * 2020-08-17 2020-11-24 海南电网有限责任公司信息通信分公司 Power system fault first-aid repair method and system
CN112148542A (en) * 2020-09-22 2020-12-29 江苏安超云软件有限公司 Reliability test method, device and system for distributed storage cluster

Also Published As

Publication number Publication date
CN114356061B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
US9569325B2 (en) Method and system for automated test and result comparison
TW201732789A (en) Disk failure prediction method and apparatus
CN110471816B (en) Data management method and device for solid state disk
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN113708986B (en) Server monitoring apparatus, method and computer-readable storage medium
CN114356061B (en) Power failure detection method, device, system and detection equipment
CN116225802A (en) Fault testing method and device and computing equipment
CN115623464A (en) Fault processing method and device for Bluetooth module of electric energy meter and electric energy meter
CN115185724A (en) Fault processing method, device, electronic equipment and storage medium
CN110781043B (en) Quality detection method and device for storage product, storage medium and equipment
CN113568806A (en) SAS card link state monitoring method, system, device and readable storage medium
CN113010423A (en) Method and device for detecting reliability of electric energy meter software, computer equipment and medium
CN111124804B (en) Test method and device
CN114356617B (en) Error injection testing method, device, system and computing equipment
CN108760120A (en) A kind of method and device of testing hard disk backboard adaptability to changes
CN114840599B (en) Semiconductor source data parsing method, ETL system, computer device and product
CN113848497A (en) Battery performance testing method and device, computer equipment and storage medium
CN113986142B (en) Disk fault monitoring method, device, computer equipment and storage medium
CN116319269B (en) New energy edge side communication module with communication fault self-detection and quick isolation functions
US10498592B2 (en) Method and baseboard management control system for automatically providing error status data
CN116453573A (en) Solid state disk performance test method and device, electronic equipment and readable medium
CN114204682A (en) Method, system and equipment for testing functional module of main station online monitoring control function
CN117347812A (en) Method and system for testing semiconductor device
CN116880398A (en) Fault analysis method and system of instrument control equipment, electronic equipment and storage medium
CN116627730A (en) Smart log acquisition and analysis method, system, device and 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
GR01 Patent grant
GR01 Patent grant