CN113406526B - Power supply access condition detection method and device - Google Patents

Power supply access condition detection method and device Download PDF

Info

Publication number
CN113406526B
CN113406526B CN202010188237.2A CN202010188237A CN113406526B CN 113406526 B CN113406526 B CN 113406526B CN 202010188237 A CN202010188237 A CN 202010188237A CN 113406526 B CN113406526 B CN 113406526B
Authority
CN
China
Prior art keywords
power
power supply
frequency spectrum
sequence data
power consumption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010188237.2A
Other languages
Chinese (zh)
Other versions
CN113406526A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010188237.2A priority Critical patent/CN113406526B/en
Publication of CN113406526A publication Critical patent/CN113406526A/en
Application granted granted Critical
Publication of CN113406526B publication Critical patent/CN113406526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • G01R31/42AC power supplies

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The power supply used by the equipment comprises a first power supply and a second power supply, and first power consumption sequence data of the first power supply and second power consumption sequence data of the second power supply in the same time period are obtained; calculating the similarity between the first power consumption sequence data and the second power consumption sequence data; based on the similarity, it is determined whether there is a device that has only one power source connected. Compared with a manual detection mode, the method and the device can judge whether the power supply is connected with wrong problem equipment or not through an automatic data analysis mode, can improve the accuracy of detection results, and solve the problem of false detection or missing detection existing in manual detection.

Description

Power supply access condition detection method and device
Technical Field
The present disclosure relates to the field of power supply of devices, and in particular, to a method and apparatus for detecting a power access condition of a device using a dual-path power supply.
Background
The double-circuit power supply can effectively avoid downtime accidents caused by single-circuit power failure, and reliable power supply is provided for equipment. One basic premise that a two-way power supply can provide reliable power to a device is that the power plug of the device needs to be properly plugged into the two-way power supply. If the power supply of the equipment is connected in error, if the power plugs of the equipment are plugged into the same power supply, when the power supply fails, the power supply cannot be switched to another power supply, and redundancy failure is caused.
Therefore, for devices using two-way power, it is necessary to detect the power on condition of the device to determine that the power plug of the device is plugged in the correct position. At present, the power supply access condition of the equipment is mainly determined by a manual detection mode, and the manual detection has the problem of missing detection or false detection.
Therefore, a solution capable of accurately detecting the power access situation of the device is needed.
Disclosure of Invention
The technical problem to be solved by the present disclosure is to provide a power access condition detection scheme, which can realize accurate detection of a power access condition of a device by means of data analysis.
According to a first aspect of the present disclosure, there is provided a power access condition detection method for detecting a power access condition of a device, where a power used by the device includes a first power supply and a second power supply, and the method includes: acquiring first power consumption sequence data of a first power supply and second power consumption sequence data of a second power supply in the same time period; calculating the similarity between the first power consumption sequence data and the second power consumption sequence data; based on the similarity, it is determined whether there is a device that has only one power source connected.
According to a second aspect of the present disclosure, there is provided a power access condition detection method for detecting a power access condition of a device, where a power used by the device includes a first power supply and a second power supply, and the method includes: acquiring first frequency spectrum distribution of first power consumption sequence data of a first power supply, second frequency spectrum distribution of second power consumption sequence data of a second power supply and third frequency spectrum distribution of third power consumption sequence data of equipment in the same time period; comparing the third spectral distribution with the first spectral distribution and the second spectral distribution, respectively; if the first spectrum distribution does not have the spectrum consistent with the spectrum in the third spectrum distribution, the equipment is judged not to be connected to the first path of power supply, and/or if the second spectrum distribution does not have the spectrum consistent with the spectrum in the third spectrum distribution, the equipment is judged not to be connected to the second path of power supply.
According to a third aspect of the present disclosure, there is provided a power access condition detection method for detecting a power access condition of a device, where a power used by the device includes a first power supply and a second power supply, and the method includes: acquiring a first frequency spectrum distribution of first power consumption sequence data of a first power supply and a second frequency spectrum distribution of second power consumption sequence data of a second power supply in the same time period; comparing the first spectral distribution with the second spectral distribution; if the first frequency spectrum distribution is inconsistent with the second frequency spectrum distribution, judging that equipment which is only connected with one power supply exists.
According to a fourth aspect of the present disclosure, there is provided a power access condition detection apparatus for detecting a power access condition of a device, wherein a power source used by the device includes a first power source and a second power source, the apparatus including: the acquisition module is used for acquiring first power consumption sequence data of a first power supply and second power consumption sequence data of a second power supply in the same time period; the computing module is used for computing the similarity between the first power consumption sequence data and the second power consumption sequence data; and the judging module is used for judging whether equipment which is only connected with one power supply exists or not based on the similarity.
According to a fifth aspect of the present disclosure, there is provided a power access condition detection apparatus for detecting a power access condition of a device, wherein a power source used by the device includes a first power source and a second power source, the apparatus including: the acquisition module is used for acquiring first frequency spectrum distribution of first power consumption sequence data of a first power supply, second frequency spectrum distribution of second power consumption sequence data of a second power supply and third frequency spectrum distribution of third power consumption sequence data of equipment in the same time period; the comparison module is used for comparing the third frequency spectrum distribution with the first frequency spectrum distribution and the second frequency spectrum distribution respectively; the judging module is used for judging that the equipment is not connected to the first path of power supply if no spectrum consistent with the spectrum in the third spectrum distribution exists in the first spectrum distribution, and/or judging that the equipment is not connected to the second path of power supply if no spectrum consistent with the spectrum in the third spectrum distribution exists in the second spectrum distribution.
According to a sixth aspect of the present disclosure, there is provided a power access condition detection apparatus for detecting a power access condition of a device, wherein a power source used by the device includes a first power source and a second power source, the apparatus including: the acquisition module is used for acquiring first frequency spectrum distribution of first power consumption sequence data of a first power supply and second frequency spectrum distribution of second power consumption sequence data of a second power supply in the same time period; a comparison module for comparing the first spectral distribution and the second spectral distribution; and the judging module is used for judging that equipment which is only connected with one power supply exists if the first frequency spectrum distribution is inconsistent with the second frequency spectrum distribution.
According to a seventh aspect of the present disclosure, there is provided a computing device comprising: a processor; and a memory having executable code stored thereon, which when executed by the processor causes the processor to perform the method according to any of the first to third aspects above.
According to an eighth aspect of the present disclosure, there is provided a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method as set forth in any one of the first to third aspects above.
Therefore, compared with a manual detection mode, the automatic data analysis method can judge whether the power supply is connected with wrong problem equipment or not, can improve the accuracy of detection results, and solves the problem of false detection or missing detection existing in manual detection.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following more particular descriptions of exemplary embodiments of the disclosure as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout exemplary embodiments of the disclosure.
Fig. 1 shows a schematic flowchart of a power access condition detection method according to an embodiment of the present disclosure.
Fig. 2 shows a schematic flow chart for further determining by spectral analysis whether there is a device that has access to only one power source.
Fig. 3 shows a schematic flow chart for fast localization of a problem device based on spectral analysis.
Fig. 4 is a schematic diagram of a cabinet and functional modules for determining whether a server deployed in the cabinet is misplaced.
FIG. 5 shows a flow chart of a method for intelligently routing a server power supply for misplacement.
Fig. 6 shows a schematic flow chart of sub-steps that step S570 in fig. 5 may include.
Fig. 7 shows a block diagram of a power access condition detection apparatus according to an embodiment of the present disclosure.
Fig. 8 shows a block diagram of a power access condition detection apparatus according to another embodiment of the present disclosure.
Fig. 9 shows a schematic structural diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the present disclosure, the first power supply and the second power supply may cooperate to supply power to one or more devices, and when one of the power supplies fails, the other power supply may immediately take over its operation, and the power supplies individually supply power. Therefore, the downtime accident caused by single-circuit power failure can be effectively avoided, and reliable power supply is provided for equipment. The first power supply and the second power supply refer to two power supplies capable of independently supplying power to the equipment. For example, the first power source may be an ac power source and the second power source may be a dc power source.
The device may be any device that needs to provide a reliable power supply. In general, devices that operate continuously for a long period of time need to ensure reliability of power supply. Thus, devices that use the first power source and the second power source may include, but are not limited to, base station communication devices, monitoring devices, servers (e.g., central data servers), etc., that require long uninterrupted operation.
In order to efficiently and safely detect the power access condition of equipment using a first power supply and a second power supply, the disclosure provides an automatic detection scheme realized by a data analysis mode. The automatic detection scheme mainly comprises three parts, namely primary detection, secondary detection and equipment for positioning problems.
1. Initial inspection
Whether equipment which is connected with only one power supply exists or not can be preliminarily judged by comparing the similarity between the power consumption sequence data of the first power supply and the second power supply in the same time period. The equipment which is only connected with one power supply is the equipment with incorrect insertion position of the power socket.
Fig. 1 shows a schematic flow chart of a power access condition detection method according to one embodiment of the present disclosure. The method shown in fig. 1 may be implemented entirely in software by a computer program and may also be performed by a specifically configured computing device.
Referring to fig. 1, first power consumption sequence data is acquired at step S110. In step S120, second power consumption sequence data is acquired. The order of execution between step S110 and step S120 is not limited in this disclosure. Step S110 may be performed before step S120 is performed; step S120 may be performed before step S110 is performed; step S110 and step S120 may be performed simultaneously, regardless of the order.
Through step S110 and step S120, the first power consumption sequence data of the first power supply and the second power consumption sequence data of the second power supply in the same time period can be obtained.
The first power consumption sequence data may be used to characterize the power consumption of the first power supply at a plurality of different moments in time (for convenience of distinction, may be referred to as a first time period), and the power consumption is used to characterize the amount of energy consumed by the first power supply in a unit time, i.e. the power. The first power consumption sequence data can be obtained by continuously detecting the power consumption of the first power supply. The specific duration of the first time period can be set according to actual conditions.
The second power consumption sequence data may be used to characterize the power consumption of the second power supply at a plurality of different moments in time within the same time period, wherein the power consumption is used to characterize the amount of energy consumed by the first power supply in a unit time, i.e. the power. And the second power consumption sequence data can be obtained by continuously detecting the power consumption of the second power supply.
After the first power consumption sequence data and the second power consumption sequence data corresponding to the same time period are acquired, step S130 may be performed to calculate the similarity between the first power consumption sequence data and the second power consumption sequence data. The calculated similarity can be used for representing the fluctuation similarity of the power consumption of the first power supply and the second power supply in the same time period, namely, the similarity between the power consumption fluctuation conditions of the first power supply and the second power supply in the same time period can be calculated according to the first power consumption sequence data and the second power consumption sequence data.
The similarity between the first power consuming sequence data and the second power consuming sequence data may in particular be calculated in a number of ways. For example, the similarity may be determined by calculating a Pearson correlation coefficient between the first power-consuming sequence data and the second power-consuming sequence data, wherein the similarity is positively correlated with the correlation coefficient, and the Pearson correlation coefficient is used to measure whether the two data sets (i.e., the first power-consuming sequence data and the second power-consuming sequence data) are on a line, i.e., to measure a linear correlation between the first power-consuming sequence data and the second power-consuming sequence data; for example, the similarity can be determined by calculating the euclidean distance between the first power consumption sequence data and the second power consumption sequence data, wherein the similarity is positively correlated with the euclidean distance, and the euclidean distance is used for representing the distance between two points in the m-dimensional space, namely the distance between the first power consumption sequence data and the second power consumption sequence data; for example, the similarity between the first power consumption sequence data and the second power consumption sequence data can also be calculated by a dynamic time warping method (DYNAMIC TIME WARPING, DTW), and a specific implementation process of calculating the similarity by DTW is not described in detail.
In general, loads and load change conditions of different devices are different, and if a device which is connected to only one power supply exists, power consumption sequence data of the first power supply and the second power supply tend to be different. Therefore, in step S140, it may be determined whether there is a device that has access to only one power source based on the similarity.
If the power consumption similarity of the first power supply and the second power supply in the same time period is higher, the equipment accessed by the first power supply and the equipment accessed by the second power supply can be considered to be the same, namely, the equipment accessed by only one power supply does not exist; otherwise, the similarity is lower, which indicates that the power consumption of the first power supply and the second power supply in the same time period are dissimilar, and the equipment accessed by the first power supply and the equipment accessed by the second power supply can be considered to be different, namely, the equipment accessed by only one power supply exists.
As an example, it may be determined that there is a device accessing the same power supply if the similarity is below a first threshold; and/or under the condition that the similarity is larger than a second threshold value, judging that the equipment accessing the same power supply does not exist, wherein the second threshold value is larger than or equal to the first threshold value.
2. Rechecking
Under the condition that the similarity is lower than a first threshold value, the existence of equipment which is only connected with one power supply can be initially considered, and whether the existence of equipment which is only connected with one power supply is further judged through a spectrum analysis mode.
Fig. 2 shows a schematic flow chart for further determining by spectral analysis whether there is a device that has access to only one power source. The method shown in fig. 2 may be implemented entirely in software by a computer program and may also be performed by a specifically configured computing device. Spectral analysis is a signal analysis method, and the main idea is to map a time domain signal to a frequency domain for expression.
Referring to fig. 2, in step S210, a first spectral distribution is acquired. In step S220, a second spectral distribution is acquired. The order of execution between step S210 and step S220 is not limited in this disclosure. Step S210 may be performed before step S220 is performed; step S220 may be performed first and then step S210 may be performed first; step S210 and step S220 may be performed simultaneously, regardless of the order.
The first power consumption sequence data, the second power consumption sequence data may be regarded as a time domain signal. The first spectral distribution is a spectral distribution obtained by mapping a first power consumption sequence of a time domain type to a frequency domain. The second spectral distribution is a spectral distribution obtained by mapping second power consumption sequence data of a time domain type to a frequency domain. Among them, power consumption sequence data may be mapped to a frequency domain using, but not limited to, a Fast Fourier Transform (FFT), a Wavelet Transform (WT) suitable for non-stationary sequences, or the like, to obtain a spectrum distribution.
In step S230, the first spectral distribution and the second spectral distribution are compared.
In step S240, if the first spectrum distribution and the second spectrum distribution are not identical, it is determined that there is a device that has only one power source connected. Otherwise, it can be determined that there is no device which has access to only one power supply.
Therefore, under the condition that the equipment which is only connected with one power supply is judged by comparing the similarity between the first power consumption sequence data and the second power consumption sequence data, whether the equipment which is only connected with one power supply is further judged by a spectrum analysis mode, and therefore the accuracy of a final judging result can be improved.
3. Problem locating device
Devices that only access one power source may be considered problematic devices. Under the condition that the number of devices connected with a first power supply and a second power supply is large, how to quickly locate problem devices from the devices is a technical problem which needs to be solved at present.
The present disclosure proposes a solution for fast locating problem devices by spectral analysis.
Fig. 3 shows a schematic flow chart for fast localization of a problem device based on spectral analysis. The method shown in fig. 3 may be implemented entirely in software by a computer program and may also be performed by a specifically configured computing device.
Referring to fig. 3, in step S310, a first spectral distribution is acquired; in step S320, a second spectral distribution is acquired; in step S330, a third spectral distribution is acquired. The order of execution between step S310 and step S330 is not limited in this disclosure.
For the first spectral distribution and the second spectral distribution, reference may be made to the above related description, and the description is omitted here. The third spectral distribution refers to a spectral distribution of third power consumption sequence data of the device in the same time period (the first time period as mentioned above). Wherein the third power consumption sequence data may be mapped to the frequency domain using, but not limited to, a Fast Fourier Transform (FFT), a Wavelet Transform (WT) suitable for non-stationary sequences, or the like, to obtain a third spectral distribution.
In the case where there are a plurality of devices using the first power source and the second power source, the third spectral distribution of each device can be acquired.
In step S340, for each device, the third spectral distribution of the device is compared with the first spectral distribution and the second spectral distribution, respectively.
In step S350, based on the comparison result, it is determined whether the device is connected to the first power supply and whether the device is connected to the second power supply.
Generally, if a device has access to a power supply, there should be a spectrum in the spectrum distribution of the power supply that coincides with the spectrum (e.g., may be the dominant spectrum) in the spectrum distribution of the device.
Therefore, if the first spectrum distribution does not have the spectrum consistent with the spectrum in the third spectrum distribution, the equipment can be judged not to be connected to the first power supply; otherwise, if the spectrum consistent with the spectrum in the third spectrum distribution exists in the first spectrum distribution, the device can be judged to be connected to the first power supply.
Accordingly, if the second spectrum distribution does not have a spectrum consistent with the spectrum in the third spectrum distribution, the equipment can be judged not to be connected to the second path of power supply; otherwise, if the second spectrum distribution has a spectrum consistent with the spectrum in the third spectrum distribution, the device can be judged to be connected to the second path of power supply.
Therefore, by comparing the frequency spectrum distribution of the equipment with the frequency spectrum distribution of each power supply, whether the equipment is connected to the power supply can be judged, so that the problem equipment can be positioned.
After the problem equipment is positioned, prompt information for representing the problem equipment can be output. Where the hint information may include, but is not limited to, device location, time of detection. The prompt information can inform related personnel in a warning mode.
The implementation flow of the power access condition detection method of the present disclosure is described in detail with reference to fig. 1 to 3. The present disclosure may first perform a primary inspection based on the method shown in fig. 1, perform a secondary inspection based on the method shown in fig. 2 when the primary inspection result indicates that there is a device that is only connected to one power supply, and locate a problem device based on the method shown in fig. 3 when the secondary inspection result also indicates that there is a device that is only connected to one power supply.
Alternatively, the disclosure may also determine whether there is a device that accesses only one power supply directly based on the method shown in fig. 2, and locate the problem device based on the method shown in fig. 3 when it is determined that there is a device that accesses only one power supply.
Alternatively, the present disclosure may also determine whether a device is a problem device one by one directly based on the method shown in fig. 3.
In one embodiment of the present disclosure, the power access situation of the device may be periodically determined based on the methods shown in fig. 1 to 3 to find and locate a problematic device. The power consumption of the first power supply, the power consumption of the second power supply and the power consumption of each device can be periodically detected respectively to obtain first power consumption sequence data of the first power supply, second power consumption sequence data of the second power supply and third power consumption sequence data of each device in each detection period. The duration of the detection period may be set as desired, for example, may be set to one day or may be set to one week.
For the power consumption sequence data detected in each detection period, the power supply access condition of the device can be judged based on the methods shown in fig. 1 to 3 so as to find and locate the problem device. The loads of different devices cannot be always the same, so that even if the inspection is missed once, the next round of inspection can be abnormal, and zero missing report can be achieved theoretically.
Application example
Two rows of receptacles are typically included in cabinets that provide dual redundancy. For ease of distinction, these two rows of sockets may be referred to as PDU1, PDU2, respectively. It is normal to ensure that two power supplies of one server are plugged onto PDU1, PDU2, respectively. Wherein PDU is an acronym for rack jack (Power Distribution Unit).
The method and the device can judge whether the double-circuit power supply of the server is misplaced or not through intelligent analysis of actual operation data under the condition that no additional hardware is introduced and no interference is generated to the production environment, and locate the misplaced server.
Fig. 4 is a schematic diagram of a cabinet and functional modules for determining whether a server deployed in the cabinet is misplaced.
As shown in fig. 4, a plurality of servers 1, 2, N may be installed in a cabinet. And two paths of redundant power supplies of PDU1 and PDU2 are installed in the cabinet. PDU1 may be a DC power supply and PDU2 may be an AC power supply. Alternatively, PDU1 may have multiple sub-PDUs and PDU2 may have multiple sub-PDUs, where the sub-PDUs may be combined into one PDU to be viewed.
The detection system can be composed of a power detection module, a database, an anti-misplug inspection module and an misplug alarm module.
The power detection module may be used to detect power values of all servers, PDUs (PDU 1 and PDU 2) in real time and store the detected data to a database.
The misplug prevention inspection module can be used for reading data from the database at intervals, analyzing the data and judging whether the cabinet is a server with misplug of a power supply.
The misplug alarm module can generate an alarm based on the result of the misplug prevention inspection module.
FIG. 5 shows a flow chart of a method for intelligently routing a server power supply for misplacement.
Referring to fig. 5, in step S510, a patrol is periodically triggered. The patrol period may be 1 day, 1 week or longer.
In step S520, two-way PDU and power consumption sequence data of each server are extracted. The extraction length is equal to the period length, e.g. a time series of 1 week each time each extraction is triggered once every 1 week.
In step S530, it is determined whether each time sequence is complete, if there is a missing power consumption sequence, such as PDU1 or PDU2, the process may return to step S510 to wait for the next inspection; if there are few points missing in a certain power consumption sequence data, interpolation may be appropriately performed to supplement the sequence data, and the process proceeds to step S540.
In step S540, the power consumption sequence of each PDU is filtered, noise is filtered, and data is smoothed.
In step S550, the similarity is calculated, for example, the fluctuation similarity of the power consumption of the two-way PDU may be calculated. The similarity of the power consumption sequences of the two paths of PDUs after filtering can be calculated based on, but not limited to, a Pearson correlation coefficient method, an Euclidean distance method and a dynamic normalization method.
In step S560, it is determined whether the power consumption sequences of the two-way PDU after filtering are similar.
If so, returning to the step S510 to wait for the next inspection; if not, the process advances to step S570.
In step S570, spectrum analysis is performed, and a server of the misplaced power supply is determined based on the spectrum characteristics.
Fig. 6 shows a schematic flow chart of sub-steps that step S570 in fig. 5 may include.
Referring to fig. 6, in step S571, a spectrum of original power consumption sequence data is extracted. Wherein the spectral distribution of the raw power consumption sequence data may be obtained based on, but not limited to, a fast fourier transform, wavelet transform.
In step S572, the spectrum of the power consumption of the two-way PDU is compared. If the spectra are consistent, jumping to step S577, and returning to 'no anomaly found'; if the spectra are not consistent, the process advances to step S573.
In step S573, the primary spectrum of each server is compared with the primary spectrum of each PDU in turn. For the power consumption main spectrum of a certain server, if the main spectrum consistent with the power consumption main spectrum of the server exists in the main spectrum of a certain path of PDU, jumping to step S577, and returning to 'no abnormality found'; otherwise, step S576 is performed to determine that "the server is not inserted in the PDU.
Returning to fig. 5, in step S580, the determination result is output. The location of the problem server found in step S570 and the inspection time can be reported by means of an alarm.
The present disclosure may produce at least the following benefits: 1. and the manual operation is avoided. The whole flow can realize unmanned operation, unmanned staring on a screen, and expert analysis results are not needed; 2. low implementation cost. The standard data center has the functions of monitoring and storing the power consumption data, so that any hardware is not required to be additionally installed; 3. high safety. Because the method is based on the existing actual operation data, no additional intervention is introduced into the equipment, no additional measurement is carried out, and no influence is generated on the safe production on site; 4. high accuracy. The regular triggering inspection is adopted, and the loads of different servers cannot be always the same, so that even if inspection is missed once, the next round of inspection can be abnormal, and zero-missing report can be realized theoretically; 5. high efficiency. Because all working lines are on-line and intelligent, the scanning and analysis of the whole machine room can be completed within a few hours; in contrast, manual off-station measurements take days or even longer.
Fig. 7 shows a block diagram of a power access condition detection apparatus according to an embodiment of the present disclosure. Wherein the functional modules of the power access condition detection apparatus may be implemented by hardware, software, or a combination of hardware and software implementing the principles of the present disclosure. Those skilled in the art will appreciate that the functional modules depicted in fig. 7 may be combined or divided into sub-modules to implement the principles of the invention described above. Accordingly, the description herein may support any possible combination, or division, or even further definition of the functional modules described herein.
The following is a brief description of the functional modules that the power access condition detection apparatus may have and the operations that each functional module may perform, and details related to these functional modules may be referred to above in connection with the description of fig. 1, which is not repeated here.
Referring to fig. 7, the power access condition detecting apparatus 700 includes an obtaining module 710, a calculating module 720, and a judging module 730.
The acquiring module 710 is configured to acquire first power consumption sequence data of a first power supply and second power consumption sequence data of a second power supply in the same time period. The calculation module 720 is configured to calculate a similarity between the first power consumption sequence data and the second power consumption sequence data. The determining module 730 is configured to determine, based on the similarity, whether there is a device that only accesses one power supply. Wherein the similarity can be used to characterize the fluctuating similarity of power consumption of the first and second power supplies over the same period of time.
The determining module 730 may determine that there is a device that only accesses one power supply if the similarity is lower than the first threshold; and/or the determining module 730 may determine that there is no device that only accesses one power supply if the similarity is greater than a second threshold, where the second threshold is greater than or equal to the first threshold.
The power access condition detection apparatus 700 may further include a comparison module. The obtaining module 710 may be further configured to obtain a first spectrum distribution of the first power consumption sequence data and obtain a second spectrum distribution of the second power consumption sequence data when the similarity is lower than a first threshold; the comparison module may be for comparing the first spectral distribution and the second spectral distribution; the judging module may be configured to judge that there is a device that accesses only one power supply if the first spectrum distribution and the second spectrum distribution are inconsistent.
The obtaining module 710 may be further configured to obtain third power consumption sequence data of the device in the same time period; and acquiring a third spectrum distribution of third power consumption sequence data under the condition that the equipment which only has access to one power supply exists. The comparison module may also be configured to compare the third spectral distribution with the first spectral distribution and the second spectral distribution, respectively. The judging module may be configured to judge that the device is not connected to the first power supply if no spectrum consistent with the spectrum in the third spectrum distribution exists in the first spectrum distribution, and/or judge that the device is not connected to the second power supply if no spectrum consistent with the spectrum in the third spectrum distribution exists in the second spectrum distribution.
The power access condition detection apparatus 700 may further include an output module. And outputting prompt information for representing equipment which is not connected with the first path of power supply and/or the second path of power supply.
The power access condition detection apparatus 700 may further include a detection module, configured to periodically detect power consumption of the first power supply and power consumption of the second power supply, respectively, so as to obtain first power consumption sequence data of the first power supply and second power consumption sequence data of the second power supply in each detection period. The calculation module 720 may periodically trigger the calculation to calculate the similarity between the first power consumption sequence data and the second power consumption sequence data in each detection period.
Fig. 8 shows a block diagram of a power access condition detection apparatus according to another embodiment of the present disclosure. Wherein the functional modules of the power access condition detection apparatus may be implemented by hardware, software, or a combination of hardware and software implementing the principles of the present disclosure. Those skilled in the art will appreciate that the functional modules depicted in fig. 8 may be combined or divided into sub-modules to implement the principles of the invention described above. Accordingly, the description herein may support any possible combination, or division, or even further definition of the functional modules described herein.
The following is a brief description of the functional modules that the power access condition detection apparatus may have and the operations that each functional module may perform, and details related thereto may be referred to above in connection with the description of fig. 2 or fig. 3, which are not repeated herein.
Referring to fig. 8, the power access condition detection apparatus 800 includes an acquisition module 810, a comparison module 820, and a determination module 830.
As one example of the present disclosure, the obtaining module 810 may be configured to obtain a first spectrum distribution of first power consumption sequence data of a first power supply, a second spectrum distribution of second power consumption sequence data of a second power supply, and a third spectrum distribution of third power consumption sequence data of a device within the same time period; the comparison module 820 may be configured to compare the third spectral distribution with the first spectral distribution and the second spectral distribution, respectively; the determining module 830 may be configured to determine that the device is not connected to the first power supply if there is no spectrum in the first spectrum distribution that is consistent with the spectrum in the third spectrum distribution, and/or determine that the device is not connected to the second power supply if there is no spectrum in the second spectrum distribution that is consistent with the spectrum in the third spectrum distribution.
The obtaining module 810 may also be configured to obtain third power consumption sequence data of the device in the same time period; and acquiring a third spectrum distribution of third power consumption sequence data under the condition that the equipment which only has access to one power supply exists. The comparison module 820 may also be configured to compare the third spectral distribution to the first spectral distribution and the second spectral distribution, respectively. The determining module 830 may be configured to determine that the device is not connected to the first power supply if there is no spectrum in the first spectrum distribution that is consistent with the spectrum in the third spectrum distribution, and/or determine that the device is not connected to the second power supply if there is no spectrum in the second spectrum distribution that is consistent with the spectrum in the third spectrum distribution.
As another example of the present disclosure, the obtaining module 810 may be configured to obtain a first spectrum distribution of first power consumption sequence data of a first power supply and a second spectrum distribution of second power consumption sequence data of a second power supply within the same time period; the comparison module 820 may be used to compare the first spectral distribution with the second spectral distribution; the determining module 830 may be configured to determine that there is a device that only accesses one power supply if the first spectrum distribution and the second spectrum distribution are inconsistent.
Fig. 9 is a schematic diagram of a computing device that may be used to implement the above-described power access condition detection method according to an embodiment of the present disclosure.
Referring to fig. 9, a computing device 900 includes a memory 910 and a processor 920.
Processor 920 may be a multi-core processor or may include multiple processors. In some embodiments, processor 920 may include a general-purpose host processor and one or more special coprocessors such as, for example, a Graphics Processor (GPU), a Digital Signal Processor (DSP), etc. In some embodiments, the processor 920 may be implemented using custom circuitry, for example, an Application SPECIFIC INTEGRATED Circuit (ASIC) or a field programmable gate array (FPGA, field Programmable GATE ARRAYS).
Memory 910 may include various types of storage units, such as system memory, read Only Memory (ROM), and persistent storage. Where the ROM may store static data or instructions required by the processor 920 or other modules of the computer. The persistent storage may be a readable and writable storage. The persistent storage may be a non-volatile memory device that does not lose stored instructions and data even after the computer is powered down. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the persistent storage may be a removable storage device (e.g., diskette, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as dynamic random access memory. The system memory may store instructions and data that are required by some or all of the processors at runtime. Furthermore, memory 910 may include any combination of computer-readable storage media including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks may also be employed. In some implementations, memory 910 may include readable and/or writable removable storage devices such as Compact Discs (CDs), digital versatile discs (e.g., DVD-ROMs, dual-layer DVD-ROMs), blu-ray discs read only, super-density discs, flash memory cards (e.g., SD cards, min SD cards, micro-SD cards, etc.), magnetic floppy disks, and the like. The computer readable storage medium does not contain a carrier wave or an instantaneous electronic signal transmitted by wireless or wired transmission.
The memory 910 has executable code stored thereon, which when processed by the processor 920, causes the processor 920 to perform the above-described power access condition detection method.
The power access condition detection method, apparatus and computing device according to the present disclosure have been described in detail above with reference to the accompanying drawings.
Furthermore, the method according to the present disclosure may also be implemented as a computer program or computer program product comprising computer program code instructions for performing the above steps defined in the above method of the present disclosure.
Or the disclosure may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or computer program, or computer instruction code) that, when executed by a processor of an electronic device (or computing device, server, etc.), causes the processor to perform the various steps of the above-described methods according to the disclosure.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (13)

1. The utility model provides a power access condition detection method for detecting the power access condition of equipment, wherein, the power that equipment used includes first way power and second way power, and this method includes:
acquiring first power consumption sequence data of the first power supply and second power consumption sequence data of the second power supply in the same time period;
Calculating the similarity between the first power consumption sequence data and the second power consumption sequence data, wherein the similarity is used for representing the fluctuation similarity of the power consumption of the first power supply and the second power supply in the same time period;
Based on the similarity, whether equipment which only accesses one power supply exists is judged.
2. The method of claim 1, wherein determining whether there is a device accessing the same power source based on the similarity comprises:
under the condition that the similarity is lower than a first threshold value, judging that equipment which is only connected with one power supply exists; and/or
And under the condition that the similarity is larger than a second threshold value, judging that no equipment which only accesses one power supply exists, wherein the second threshold value is larger than or equal to the first threshold value.
3. The method of claim 1, further comprising:
under the condition that the similarity is lower than a first threshold value, acquiring a first frequency spectrum distribution of the first power consumption sequence data and acquiring a second frequency spectrum distribution of the second power consumption sequence data;
Comparing the first spectral distribution and the second spectral distribution;
And if the first frequency spectrum distribution is inconsistent with the second frequency spectrum distribution, judging that equipment which is connected with one power supply only exists.
4. A method according to claim 3, wherein the device is a plurality, the method further comprising:
acquiring third power consumption sequence data of the equipment in the same time period;
Acquiring a third spectrum distribution of the third power consumption sequence data under the condition that equipment which is connected with only one power supply exists;
comparing the third spectral distribution with the first spectral distribution and the second spectral distribution, respectively;
And if the first frequency spectrum distribution does not have the frequency spectrum consistent with the frequency spectrum in the third frequency spectrum distribution, judging that the equipment is not connected to the first path of power supply, and/or if the second frequency spectrum distribution does not have the frequency spectrum consistent with the frequency spectrum in the third frequency spectrum distribution, judging that the equipment is not connected to the second path of power supply.
5. The method of claim 4, further comprising:
And outputting prompt information for representing equipment which is not connected with the first path of power supply and/or the second path of power supply.
6. The method of claim 1, further comprising:
Periodically detecting the power consumption of the first power supply and the power consumption of the second power supply respectively to obtain first power consumption sequence data of the first power supply and second power consumption sequence data of the second power supply in each detection period,
Wherein the step of calculating the similarity between the first power consumption sequence data and the second power consumption sequence data comprises: and calculating the similarity between the first power consumption sequence data and the second power consumption sequence data in each detection period.
7. The utility model provides a power access condition detection method for detecting the power access condition of equipment, wherein, the power that equipment used includes first way power and second way power, and this method includes:
Acquiring first frequency spectrum distribution of first power consumption sequence data of the first power supply, second frequency spectrum distribution of second power consumption sequence data of the second power supply and third frequency spectrum distribution of third power consumption sequence data of the equipment in the same time period;
comparing the third spectral distribution with the first spectral distribution and the second spectral distribution, respectively;
And if the first frequency spectrum distribution does not have the frequency spectrum consistent with the frequency spectrum in the third frequency spectrum distribution, judging that the equipment is not connected to the first path of power supply, and/or if the second frequency spectrum distribution does not have the frequency spectrum consistent with the frequency spectrum in the third frequency spectrum distribution, judging that the equipment is not connected to the second path of power supply.
8. The utility model provides a power access condition detection method for detecting the power access condition of equipment, wherein, the power that equipment used includes first way power and second way power, and this method includes:
Acquiring a first frequency spectrum distribution of first power consumption sequence data of the first power supply and a second frequency spectrum distribution of second power consumption sequence data of the second power supply in the same time period;
Comparing the first spectral distribution and the second spectral distribution;
And if the first frequency spectrum distribution is inconsistent with the second frequency spectrum distribution, judging that equipment which is connected with one power supply only exists.
9. The utility model provides a power access condition detection device for detect the power access condition of equipment, wherein, the power that equipment used includes first way power and second way power, and the device includes:
the acquisition module is used for acquiring first power consumption sequence data of the first power supply and second power consumption sequence data of the second power supply in the same time period;
the computing module is used for computing the similarity between the first power consumption sequence data and the second power consumption sequence data, wherein the similarity is used for representing the fluctuation similarity of the power consumption of the first power supply and the second power supply in the same time period; and
And the judging module is used for judging whether equipment which is only connected with one power supply exists or not based on the similarity.
10. The utility model provides a power access condition detection device for detect the power access condition of equipment, wherein, the power that equipment used includes first way power and second way power, and the device includes:
The acquisition module is used for acquiring first frequency spectrum distribution of first power consumption sequence data of the first power supply, second frequency spectrum distribution of second power consumption sequence data of the second power supply and third frequency spectrum distribution of third power consumption sequence data of the equipment in the same time period;
A comparison module for comparing the third spectral distribution with the first spectral distribution and the second spectral distribution, respectively;
And the judging module is used for judging that the equipment is not connected to the first path of power supply if no frequency spectrum consistent with the frequency spectrum in the third frequency spectrum distribution exists in the first frequency spectrum distribution, and/or judging that the equipment is not connected to the second path of power supply if no frequency spectrum consistent with the frequency spectrum in the third frequency spectrum distribution exists in the second frequency spectrum distribution.
11. The utility model provides a power access condition detection device for detect the power access condition of equipment, wherein, the power that equipment used includes first way power and second way power, and the device includes:
The acquisition module is used for acquiring first frequency spectrum distribution of first power consumption sequence data of the first power supply and second frequency spectrum distribution of second power consumption sequence data of the second power supply in the same time period;
A comparison module for comparing the first spectral distribution and the second spectral distribution;
And the judging module is used for judging that equipment which is only connected with one power supply exists if the first frequency spectrum distribution is inconsistent with the second frequency spectrum distribution.
12. A computing device, comprising:
a processor; and
A memory having executable code stored thereon, which when executed by the processor causes the processor to perform the method of any of claims 1 to 8.
13. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any of claims 1 to 8.
CN202010188237.2A 2020-03-17 2020-03-17 Power supply access condition detection method and device Active CN113406526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010188237.2A CN113406526B (en) 2020-03-17 2020-03-17 Power supply access condition detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010188237.2A CN113406526B (en) 2020-03-17 2020-03-17 Power supply access condition detection method and device

Publications (2)

Publication Number Publication Date
CN113406526A CN113406526A (en) 2021-09-17
CN113406526B true CN113406526B (en) 2024-06-11

Family

ID=77677156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010188237.2A Active CN113406526B (en) 2020-03-17 2020-03-17 Power supply access condition detection method and device

Country Status (1)

Country Link
CN (1) CN113406526B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002278563A (en) * 2001-03-16 2002-09-27 Sony Corp Device and method for processing information, distribution system, program storage medium and program
JP2009296840A (en) * 2008-06-09 2009-12-17 Fuji Electric Device Technology Co Ltd Switching power supply
CN103675471A (en) * 2012-09-06 2014-03-26 苏州工业园区新宏博通讯科技有限公司 Single three-phase automatic identification method
WO2014128901A1 (en) * 2013-02-22 2014-08-28 日立アプライアンス株式会社 Power source control guidance device, power source control guidance method, and power source control guidance program
CN104615226A (en) * 2015-02-12 2015-05-13 联想(北京)有限公司 Power supply management system and power supply management method
CN106602156A (en) * 2016-12-23 2017-04-26 珠海市魅族科技有限公司 Power management method and device
CN109445560A (en) * 2018-09-04 2019-03-08 深圳市宝德计算机***有限公司 Multiple servers power control method, equipment and computer readable storage medium
CN109615833A (en) * 2019-01-15 2019-04-12 安徽皖兴通信息技术有限公司 A kind of method of dual power supply device looses power alarm
CN109861378A (en) * 2019-02-26 2019-06-07 国网浙江慈溪市供电有限公司 Power supply hot change-over method, system, electronic equipment and computer-readable medium for power grid
CN110148998A (en) * 2019-05-24 2019-08-20 北京达佳互联信息技术有限公司 A kind of static transfer switch STS and its control method and no-break power unit
CN110228395A (en) * 2019-06-14 2019-09-13 上海蔚来汽车有限公司 Two-supply circuit system
CN110390357A (en) * 2019-07-17 2019-10-29 国网浙江省电力有限公司电力科学研究院 A kind of DTU safety monitoring method based on side channel
CN110389553A (en) * 2019-07-31 2019-10-29 浪潮商用机器有限公司 A kind of equipment power dissipation monitoring device and method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002278563A (en) * 2001-03-16 2002-09-27 Sony Corp Device and method for processing information, distribution system, program storage medium and program
JP2009296840A (en) * 2008-06-09 2009-12-17 Fuji Electric Device Technology Co Ltd Switching power supply
CN103675471A (en) * 2012-09-06 2014-03-26 苏州工业园区新宏博通讯科技有限公司 Single three-phase automatic identification method
WO2014128901A1 (en) * 2013-02-22 2014-08-28 日立アプライアンス株式会社 Power source control guidance device, power source control guidance method, and power source control guidance program
CN104615226A (en) * 2015-02-12 2015-05-13 联想(北京)有限公司 Power supply management system and power supply management method
CN106602156A (en) * 2016-12-23 2017-04-26 珠海市魅族科技有限公司 Power management method and device
CN109445560A (en) * 2018-09-04 2019-03-08 深圳市宝德计算机***有限公司 Multiple servers power control method, equipment and computer readable storage medium
CN109615833A (en) * 2019-01-15 2019-04-12 安徽皖兴通信息技术有限公司 A kind of method of dual power supply device looses power alarm
CN109861378A (en) * 2019-02-26 2019-06-07 国网浙江慈溪市供电有限公司 Power supply hot change-over method, system, electronic equipment and computer-readable medium for power grid
CN110148998A (en) * 2019-05-24 2019-08-20 北京达佳互联信息技术有限公司 A kind of static transfer switch STS and its control method and no-break power unit
CN110228395A (en) * 2019-06-14 2019-09-13 上海蔚来汽车有限公司 Two-supply circuit system
CN110390357A (en) * 2019-07-17 2019-10-29 国网浙江省电力有限公司电力科学研究院 A kind of DTU safety monitoring method based on side channel
CN110389553A (en) * 2019-07-31 2019-10-29 浪潮商用机器有限公司 A kind of equipment power dissipation monitoring device and method

Also Published As

Publication number Publication date
CN113406526A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
US20090313505A1 (en) System and method for detecting combinations of perfomance indicators associated with a root cause
CN109725220B (en) Detection method, system and device for transformer oil cooling loop
CN105068901A (en) Disk detection method
CN104221475A (en) Fault detection, localization and performance monitoring of photosensors for lighting controls
CN116340076B (en) Hard disk performance test method, device and medium
EP2135144B1 (en) Machine condition monitoring using pattern rules
CN111459719B (en) Anti-downtime power-off protection system for computer
CN106597160B (en) Electronic equipment fault detection method and device
CN103412941A (en) Data correction method and device
CN109032887A (en) A kind of faulty hard disk method for rapidly positioning and system
CN205450911U (en) Mainboard of DRAM and applied this DRAM
CN113406526B (en) Power supply access condition detection method and device
CN110888776A (en) Database health state detection method, device and equipment
CN110874311A (en) Database detection method and device, computer equipment and storage medium
CN110739025A (en) storage equipment power failure test method, device and system
CN114019422A (en) Transformer fault monitoring system based on ATT-BilSTM
CN111464377A (en) Network card inspection method, device, equipment and storage medium
CN111124809B (en) Test method and device for server sensor system
CN114629690B (en) Device safety baseline compliance detection method and device and computer device
CN116705138A (en) Solid state disk testing method and storage medium
CN115728665A (en) Power failure detection circuit, method and system
US20120158326A1 (en) Computer component detection system and method
CN111309584A (en) Data processing method and device, electronic equipment and storage medium
CN116224208A (en) Error detection method, system and storage medium of electric energy meter
CN113917343A (en) Battery module state detection method and device, electronic equipment 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40058163

Country of ref document: HK

GR01 Patent grant