CN117907878B - Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium - Google Patents

Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium Download PDF

Info

Publication number
CN117907878B
CN117907878B CN202410294708.6A CN202410294708A CN117907878B CN 117907878 B CN117907878 B CN 117907878B CN 202410294708 A CN202410294708 A CN 202410294708A CN 117907878 B CN117907878 B CN 117907878B
Authority
CN
China
Prior art keywords
voltage waveform
alternating
voltage
waveform
period
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
CN202410294708.6A
Other languages
Chinese (zh)
Other versions
CN117907878A (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.)
Shangyu Shenzhen Technology Co ltd
Original Assignee
Shangyu Shenzhen 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 Shangyu Shenzhen Technology Co ltd filed Critical Shangyu Shenzhen Technology Co ltd
Priority to CN202410294708.6A priority Critical patent/CN117907878B/en
Publication of CN117907878A publication Critical patent/CN117907878A/en
Application granted granted Critical
Publication of CN117907878B publication Critical patent/CN117907878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

The application provides a method and a device for judging power failure of an alternating current power supply, electronic equipment and a storage medium, wherein the method comprises the following steps: monitoring the alternating voltage waveform of the target alternating current power supply in real time to obtain a waveform comparison result of the first alternating voltage waveform and the second alternating voltage waveform; after the first alternating voltage waveform and the second alternating voltage waveform are determined to be inconsistent from the target moment according to the waveform comparison result, N first instantaneous voltage values corresponding to the N first moments are obtained according to the first alternating voltage waveform, and N second instantaneous voltage values corresponding to the N first moments are obtained according to the second alternating voltage waveform; determining N instantaneous voltage differences according to the N first instantaneous voltage values and the N second instantaneous voltage values; and judging that the target alternating current power supply is powered off under the condition that M instantaneous voltage differences are larger than a preset voltage threshold value and M is larger than or equal to a preset number in the N instantaneous voltage differences.

Description

Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium
Technical Field
The present application relates to the field of power detection technologies, and in particular, to a method and apparatus for determining power failure of an ac power supply, an electronic device, and a storage medium.
Background
With the rapid development of smart power grids and internet of things, the importance of ac power outage detection is becoming more and more significant. For example, in urban data centers and critical infrastructure, power outages may result in data loss or service outages, thereby affecting the operation of the power system. Therefore, accurately and reliably detecting the power failure condition of alternating current is important for timely taking measures, guaranteeing data safety and stably operating facilities.
In the related art, a falling slope of a voltage waveform of an ac power supply is generally used to determine whether the ac power supply is powered off, that is, the voltage waveform of the ac power supply is sampled and detected, when the sampled voltage waveform changes in a falling manner, the falling slope of the voltage waveform is calculated, and after it is determined that the falling slope is greater than or equal to a slope threshold for a period of time, the ac power supply is determined to be powered off.
However, in the above manner, when the instantaneous voltage at the time of power failure of the ac power supply approaches the zero crossing point, the instantaneous voltage value at this time is smaller, however, an electromagnetic interference suppression (Electromagnetic Interference, which may be simply referred to as EMI) circuit may exist in the circuit, and the filter capacitor in the EMI circuit may continuously release energy to resist interference, which may cause the voltage waveform of the ac power supply to slowly decrease with a relatively small slope, so that it is impossible to determine whether the ac power supply is powered off according to the slope, and thus the efficiency of determining whether the ac power supply is powered off in the related art is lower.
Disclosure of Invention
The application provides a method and a device for judging whether an alternating current power supply is powered off, electronic equipment and a storage medium, which are used for improving the judging efficiency of whether the alternating current power supply is powered off or not.
In a first aspect, the present application provides a method for determining whether an ac power source is powered off, the method comprising: the method comprises the steps of monitoring an alternating-current voltage waveform of a target alternating-current power supply in real time to obtain a waveform comparison result of a first alternating-current voltage waveform and a second alternating-current voltage waveform, wherein the first alternating-current voltage waveform is a current monitored alternating-current voltage waveform, the second alternating-current voltage waveform is an alternating-current voltage waveform which is monitored after the first alternating-current voltage waveform is monitored and is connected with the first alternating-current voltage waveform, and the first alternating-current voltage waveform and the second alternating-current voltage waveform are two alternating-current voltage waveforms with the same period duration; after the first alternating voltage waveform and the second alternating voltage waveform are determined to be inconsistent from the target moment according to the waveform comparison result, N first instantaneous voltage values corresponding to N first moments are obtained according to the first alternating voltage waveform, N second instantaneous voltage values corresponding to N first moments are obtained according to the second alternating voltage waveform, wherein the N first moments are all moments when the first alternating voltage waveform and the second alternating voltage waveform monitored after the target moment are inconsistent, and N is more than or equal to 1; determining N instantaneous voltage differences according to the N first instantaneous voltage values and the N second instantaneous voltage values; and judging that the target alternating current power supply is powered off under the condition that M instantaneous voltage differences are larger than a preset voltage threshold value and M is larger than or equal to a preset number in the N instantaneous voltage differences, wherein M is larger than or equal to 1 and N is smaller than or equal to N.
By adopting the technical scheme, the alternating voltage waveform is continuously monitored, and waveforms with the same period duration (namely a first alternating voltage waveform and a second alternating voltage waveform) are continuously acquired, so that the change of the alternating voltage is captured in real time, the change of an alternating current power supply can be found out in real time, and basic data is provided for further judgment and analysis; the first alternating voltage waveform monitored at present and the second alternating voltage waveform monitored at the next time are continuously compared, a waveform comparison result can be obtained, the continuity and consistency of the voltage waveform along with time can be monitored, and further effective guarantee is provided for judging whether the state of the alternating current power supply is stable or not; determining that the first alternating voltage waveform and the second alternating voltage waveform are inconsistent from the target moment according to the waveform comparison result, accurately positioning the waveform inconsistency starting moment, acquiring N first instantaneous voltage values corresponding to N first moments according to the first alternating voltage waveform, and acquiring the voltage value at a specific moment to more accurately analyze the change of the voltage waveform; calculating N first instantaneous voltage values and N second instantaneous voltage values to determine N instantaneous voltage difference values, and quantitatively analyzing the variation degree of the voltage waveform by comparing the instantaneous voltages of two continuous waveforms; if the instantaneous voltage difference value of a sufficient number (namely M) is larger than a preset voltage threshold value, judging that the target alternating current power supply is powered off, and through the preset voltage threshold value and the preset number, effectively reducing the misjudgment of the power failure of the alternating current power supply, and judging the power failure of the alternating current power supply when the voltage change is truly obvious and reaches a certain number of times, thereby improving the accuracy and reliability of the power failure judgment. By adopting the method, the voltage waveforms are monitored in real time, the voltage waveforms with the same and continuous period duration are continuously compared, when the voltage waveforms are inconsistent, N instantaneous voltage differences between the two voltage waveforms at abnormal moments (namely N first moments) are judged according to the preset voltage threshold and the preset quantity, and then the target alternating current power supply outage can be rapidly judged at the initial stage of abnormality. The technical problem of whether the alternating current power supply is powered off or not in the related art is solved, and the technical effect of improving the judging efficiency of whether the alternating current power supply is powered off or not is achieved.
Optionally, when it is determined that M transient voltage differences exist among the N transient voltage differences and are greater than a preset voltage threshold, and M is greater than or equal to a preset number, determining that the target ac power supply is powered off specifically includes: comparing the N instantaneous voltage differences with a preset voltage threshold to obtain a difference comparison result; under the condition that M instantaneous voltage differences among the N instantaneous voltage differences are larger than a preset voltage threshold value according to the difference comparison result, comparing M with the preset number to obtain a number comparison result; and under the condition that M is larger than or equal to the preset number according to the number comparison result, judging that the target alternating current power supply is powered off.
By adopting the technical scheme, each determined instantaneous voltage difference value (total N instantaneous voltage difference values) is compared with a preset voltage threshold value, so that the instantaneous voltage difference values which represent obvious voltage changes, namely, the voltage changes exceeding the normal fluctuation range can be identified, and voltage abnormality and potential power problems can be identified early through the voltage changes; determining how many instantaneous voltage differences (namely M) exceed a preset voltage threshold according to the difference comparison result, screening important voltage fluctuation, providing quantitative data for judging whether an alternating current power supply is stable or not, and further effectively reducing false alarm caused by neglecting small fluctuation; comparing M instantaneous voltage difference values exceeding a preset voltage threshold value with a preset number, and judging whether the voltage fluctuation reaches the degree possibly affecting the power supply stability or not through comparison; if the M (the number of the instantaneous voltage difference values exceeding the preset voltage threshold) is larger than or equal to the preset number, judging that the target alternating current power supply is powered off, namely judging whether the alternating current power supply is powered off or not by comparing the size and the number of the instantaneous voltage difference values, and providing accurate power-off information for subsequent processing and maintenance work.
Optionally, the monitoring method includes monitoring an ac voltage waveform of the target ac power source in real time to obtain a waveform comparison result of the first ac voltage waveform and the second ac voltage waveform, and specifically includes: the method comprises the steps of monitoring a first alternating voltage waveform of a target alternating current power supply in real time in a first period to obtain a first real-time monitoring result, wherein the first period is a period in which the first alternating voltage waveform is monitored currently; determining that no abnormality exists in the first alternating-current voltage waveform according to the first real-time monitoring result; and monitoring a second alternating voltage waveform of the target alternating current power supply in real time in a second period, and performing first overlapping comparison on the first alternating voltage waveform and the second alternating voltage waveform to obtain a waveform comparison result, wherein the second period is a period in which the second alternating voltage waveform is monitored, and the first period and the second period are two adjacent periods with the same period duration.
By adopting the technical scheme, the first alternating voltage waveform of the target alternating voltage power supply is monitored in real time in the first period (namely the period in which the first alternating voltage waveform is currently monitored), so that a first real-time monitoring result is obtained, the instant state of the voltage waveform can be captured in time, and whether the target alternating voltage power supply is powered off can be judged at the initial stage of abnormality occurrence; analyzing the first ac voltage waveform based on the first real-time monitoring result to determine that no abnormality exists in the first ac voltage waveform, so as to ensure that a reference standard (i.e., a normal first ac voltage waveform) exists at any time in the monitoring period; the second alternating voltage waveform is monitored in real time in the second period (the period which is the same as the first period and is adjacent to the first period), and the first alternating voltage waveform and the second alternating voltage waveform are subjected to first overlapping comparison to obtain waveform comparison results, so that the change or abnormality between the voltage waveforms can be more intuitively identified through the first overlapping comparison, namely, the tiny change between the voltage waveforms can be more easily captured through the comparison of the voltage waveforms in the two adjacent periods, and the changes possibly indicate the abnormality of an alternating current power supply, thereby realizing earlier intervention and maintenance.
Optionally, after determining, according to the waveform comparison result, that the first ac voltage waveform and the second ac voltage waveform are inconsistent from the target time, acquiring N first instantaneous voltage values corresponding to the N first times according to the first ac voltage waveform, and acquiring N second instantaneous voltage values corresponding to the N first times according to the second ac voltage waveform, including: determining that the first alternating voltage waveform and the second alternating voltage waveform are inconsistent from a target moment in the second period according to the waveform comparison result; n first instantaneous voltage values corresponding to N first moments in the second period are obtained from the first alternating voltage waveform, and N second instantaneous voltage values corresponding to N first moments are obtained from the second alternating voltage waveform.
By adopting the technical scheme, according to the waveform comparison result, the first alternating voltage waveform and the second alternating voltage waveform are determined to be inconsistent from the specific moment (namely the target moment) of the second period, and the abnormal starting moment of the voltage waveform can be accurately positioned, so that the abnormality of the alternating current power supply can be responded quickly; n first instantaneous voltage values corresponding to N first moments in a second period are obtained from the first alternating voltage waveform, and N second instantaneous voltage values corresponding to N first moments are obtained from the second alternating voltage waveform at the same time, namely, the obtained instantaneous voltage values at the same moments in two periods are compared, so that the change or deviation of the voltage can be quantized more accurately, the trend which is obviously different from that of a normal waveform can be displayed more accurately and intuitively, and whether the target alternating current power supply is powered off can be judged rapidly and accurately.
Optionally, after determining that there is no abnormality in the first ac voltage waveform according to the first real-time monitoring result, the method further includes: storing the first alternating voltage waveform into a waveform database; monitoring a second alternating voltage waveform of the target alternating current power supply in real time in a third period, and acquiring a first alternating voltage waveform from a waveform database; and performing second overlapping comparison on the first alternating-current voltage waveform and the second alternating-current voltage waveform to obtain a waveform comparison result, wherein a third period is a period in which the second alternating-current voltage waveform is monitored, and the first period and the third period are two adjacent periods with the same period duration.
By adopting the technical scheme, after the monitoring of the first alternating-current voltage waveform is completed, the first alternating-current voltage waveform is stored in the waveform database, so that the persistence of the voltage waveform is ensured, and the historical voltage waveform can be traced back and analyzed later; the second alternating voltage waveform is monitored in real time in a third period, meanwhile, the first alternating voltage waveform is obtained from a waveform database, and potential power failure conditions can be detected in early stages by comparing the voltage waveforms across time and identifying the changes of the voltage waveforms at different moments; and in a third period, performing second overlapping comparison on the second alternating-current voltage waveform monitored in real time and the first alternating-current voltage waveform stored in the waveform database to obtain a waveform comparison result, and comparing the waveform comparison result through more waveform sampling points, so that the accuracy of identifying the voltage change trend can be improved. By storing and comparing voltage waveforms over successive periods, effective assurance is provided for early determination of power outage and other power problems.
Optionally, before the first ac voltage waveform of the target ac power source is monitored in real time in the first period to obtain the first real-time monitoring result, the method further includes: monitoring a third alternating voltage waveform of the target alternating current power supply in real time in a fourth period to obtain a third real-time monitoring result, wherein the period time length of the fourth period is longer than or equal to the period time length of the first period; and storing the third alternating voltage waveform under the condition that the third alternating voltage waveform is determined to have no abnormality according to the third real-time monitoring result.
By adopting the technical scheme, the third alternating voltage waveform of the target alternating current power supply is monitored in real time in the fourth period to obtain the real-time monitoring result of the third period, if the third alternating voltage waveform is determined to be abnormal according to the third real-time monitoring result, the third alternating voltage waveform is stored, and the normal alternating voltage waveform is stored to provide a base line for subsequent analysis so as to help distinguish the normal waveform from the abnormal waveform, thereby accurately identifying outage or other power quality problems. By continuously monitoring and storing the normal voltage waveform, a detailed history may be established, and if the history shows that the voltage waveform is stable, any significant deviation may be indicative of a power outage of the target ac power source.
Optionally, determining N instantaneous voltage differences according to the N first instantaneous voltage values and the N second instantaneous voltage values specifically includes: subtracting the N first instantaneous voltage values from N second instantaneous voltage values which are in one-to-one correspondence to obtain N instantaneous voltage differences; the absolute values of the N instantaneous voltage differences are determined as N instantaneous voltage differences.
By adopting the technical scheme, the N first instantaneous voltage values and the N second instantaneous voltage values are subjected to one-by-one subtraction operation to obtain N instantaneous voltage differences, the instantaneous voltage differences reflect the voltage variation of two alternating voltage waveforms at a specific moment, namely, the voltage variation is quantized, and the tiny fluctuation of the voltage is detected, so that the aim of improving the judging efficiency of alternating voltage outage is fulfilled; the absolute value of each instantaneous voltage difference obtained in the previous step is calculated to obtain the magnitude of N instantaneous voltage difference values, the determination of the absolute value eliminates the sign of the difference value, a clear difference magnitude measure is provided, whether the voltage change is within an acceptable range or whether abnormal voltage fluctuation possibly causing power failure exists can be determined by observing the difference values, and the abnormal state of the power system can be rapidly identified, so that corresponding protection measures are started to prevent potential equipment damage or service interruption.
In a second aspect, an embodiment of the present application provides a device for determining whether an ac power supply is powered off, where the device includes: the first acquisition module is used for monitoring the alternating-current voltage waveform of the target alternating-current power supply in real time to acquire a waveform comparison result of a first alternating-current voltage waveform and a second alternating-current voltage waveform, wherein the first alternating-current voltage waveform is a current monitored alternating-current voltage waveform, the second alternating-current voltage waveform is an alternating-current voltage waveform which is monitored after the first alternating-current voltage waveform is monitored and is connected with the first alternating-current voltage waveform, and the first alternating-current voltage waveform and the second alternating-current voltage waveform are two alternating-current voltage waveforms with the same period duration; the second acquisition module is used for acquiring N first instantaneous voltage values corresponding to N first moments according to the first alternating voltage waveform after the first alternating voltage waveform and the second alternating voltage waveform are determined to be inconsistent from the target moment according to the waveform comparison result, and acquiring N second instantaneous voltage values corresponding to N first moments according to the second alternating voltage waveform, wherein the N first moments are moments when the first alternating voltage waveform and the second alternating voltage waveform are monitored to be inconsistent after the target moment, and N is more than or equal to 1; the first determining module is used for determining N instantaneous voltage difference values according to N first instantaneous voltage values and N second instantaneous voltage values; the second determining module is used for judging that the target alternating current power supply is powered off when M instantaneous voltage differences among the N instantaneous voltage differences are larger than a preset voltage threshold value and M is larger than or equal to a preset number, wherein M is larger than or equal to 1 and N is smaller than or equal to N.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors and memory; the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform the method as described in the first aspect and any possible implementation of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect and any possible implementation of the first aspect.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
1. By monitoring the voltage waveforms in real time, continuously comparing the voltage waveforms with the same and continuous period duration, when the voltage waveforms are inconsistent, judging N instantaneous voltage differences between the two voltage waveforms at abnormal moments (namely N first moments) according to a preset voltage threshold value and a preset quantity, and further judging that the target alternating current power supply is powered off at the initial stage of abnormality. The technical problem of whether the alternating current power supply is powered off or not in the related art is solved, and the technical effect of improving the judging efficiency of whether the alternating current power supply is powered off or not is achieved.
2. By comparing the magnitude and the number of the instantaneous voltage difference values, whether the alternating current power supply is powered off or not is judged, and accurate power-off information is provided for subsequent processing and maintenance work.
3. By comparing the voltage waveforms of two adjacent periods, small changes between the voltage waveforms can be more easily captured, and the changes can indicate the abnormality of the alternating current power supply, so that the early intervention and maintenance can be realized.
Drawings
FIG. 1 is a flow chart of a method for determining whether an AC power source is powered off in an embodiment of the application;
FIG. 2 is a flow chart of a method for determining whether an AC power source is powered off in an embodiment of the application;
FIG. 3 is a schematic diagram showing an understanding of the comparison of waveforms of alternating voltages in accordance with an embodiment of the present application;
FIG. 4 is a block diagram of a device for determining whether an AC power source is off in an embodiment of the application;
fig. 5 is a schematic structural diagram of an electronic device according to the disclosure.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure is intended to encompass any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The application provides a method for judging the power failure of an alternating current power supply, referring to fig. 1, fig. 1 is a flow chart of the method for judging the power failure of the alternating current power supply in the embodiment of the application, which comprises the following steps:
Step S101, monitoring an alternating current voltage waveform of a target alternating current power supply in real time to obtain a waveform comparison result of a first alternating current voltage waveform and a second alternating current voltage waveform, wherein the first alternating current voltage waveform is a current monitored alternating current voltage waveform, the second alternating current voltage waveform is an alternating current voltage waveform which is monitored after the first alternating current voltage waveform is monitored and is connected with the first alternating current voltage waveform, and the first alternating current voltage waveform and the second alternating current voltage waveform are two alternating current voltage waveforms with the same period duration;
In the above embodiment, it is assumed that a potential fault, particularly a power failure event, in the power system needs to be detected and prevented, and the specific implementation steps include that a voltage sensor can be used to monitor an ac voltage waveform of a target ac power source in real time, the voltage sensor is connected with a data acquisition system, the data acquisition system is responsible for recording voltage readings and converting the voltage readings into digital signals so as to perform further analysis, and the current working state of the power system can be captured in real time and original data can be provided for subsequent analysis; selecting a period duration (e.g., 10ms, 15ms, 20ms, etc., without limitation), and recording a voltage waveform (i.e., a first ac voltage waveform) during the period; after the first ac voltage waveform is monitored and the last ac voltage waveform of the first ac voltage waveform is compared with the first ac voltage waveform to determine that the first ac voltage waveform is not abnormal, immediately monitoring the voltage waveform (the second ac voltage waveform) in the period with the same next period, wherein the first ac voltage waveform and the second ac voltage waveform must be ensured to have the same period duration so as to perform accurate comparison; in the process of monitoring the second alternating voltage waveform, data processing software or a microprocessor can be utilized to compare and analyze the first alternating voltage waveform and the second alternating voltage waveform, for example, the comparison and analysis can be performed through graph superposition comparison and analysis, the comparison and analysis can be performed through calculating the voltage difference value of the corresponding points of the two waveforms, and the tiny voltage waveform change can be detected through comparing the two continuous alternating voltage waveforms, so that the alternating current power supply outage can be judged at the initial stage of the change; if a significant voltage waveform difference is found in the comparison analysis, an alarm is triggered and the relevant maintenance personnel is notified. Depending on the severity of the discrepancy, predetermined protective measures, such as, for example, disconnecting the power supply, may be automatically performed to avoid equipment damage or other security risks. By implementing the steps, the power failure and other faults of the alternating current power system can be monitored and prevented in real time, so that the reliability and the safety of the power system are enhanced, the risk of equipment damage caused by power problems is reduced, and continuous guarantee is provided for facility operation.
Step S102, after determining that the first alternating voltage waveform and the second alternating voltage waveform are inconsistent from the target moment according to the waveform comparison result, acquiring N first instantaneous voltage values corresponding to N first moments according to the first alternating voltage waveform, and acquiring N second instantaneous voltage values corresponding to N first moments according to the second alternating voltage waveform, wherein N first moments are moments when the first alternating voltage waveform and the second alternating voltage waveform are inconsistent after the target moment, and N is more than or equal to 1;
In the above embodiment, assuming that a potential fault, particularly a power outage event, in the power system needs to be detected and prevented, the specific implementation steps are that the voltage sensor can be used to monitor the ac voltage waveform in real time; after the first alternating voltage waveform is monitored, and the last alternating voltage waveform of the first alternating voltage waveform is compared with the first alternating voltage waveform to determine that the first alternating voltage waveform is abnormal, the voltage waveform (second alternating voltage waveform) in the period with the same duration is monitored immediately; the data analysis software can be utilized to compare and analyze the first alternating voltage waveform with the second alternating voltage waveform; if the first ac voltage waveform and the second ac voltage waveform are inconsistent (for example, the amplitude is inconsistent, the frequency is inconsistent, the phase is inconsistent, etc., which are not limited herein), all inconsistent time points are identified from the target time point (i.e., N first time points, N is greater than or equal to 1, N first time points may be the time points which are screened from the first time points and meet the requirements, etc., which are not limited herein); recording the instantaneous voltage values (i.e., N first instantaneous voltage values) of the first alternating voltage waveform and the instantaneous voltage values (i.e., N second instantaneous voltage values) of the second alternating voltage waveform corresponding to each first moment; analyzing differences between the N first instantaneous voltage values and the N second instantaneous voltage values, and judging that potential problems exist in the power system if the differences exceed a preset voltage threshold value; based on the analysis, it is necessary to trigger an alarm, record an event, notify the relevant maintenance personnel, and automatically perform predetermined emergency measures, such as cutting off power, to protect the power system and connected equipment. By implementing these steps, by monitoring and analyzing the instantaneous voltage values at non-uniform moments of the continuous voltage waveforms, minute voltage changes in the power system can be detected instantaneously, which may be indicative of a larger power problem, and further measures are taken before the power problem becomes a serious fault, thereby improving the reliability and safety of the power system.
Step S103, determining N instantaneous voltage difference values according to the N first instantaneous voltage values and the N second instantaneous voltage values; in the above embodiment, the N first instantaneous voltage values and the N second instantaneous voltage values may be obtained at the same time, or may be obtained according to the priorities or weights of the first ac voltage waveform and the second ac voltage waveform, for example, when the priorities or weights of the second ac voltage waveform are greater than those of the first ac voltage waveform, the N second instantaneous voltage values may be preferentially obtained from the second ac voltage waveform, when the priorities or weights of the second ac voltage waveform are less than those of the first ac voltage waveform, the N first instantaneous voltage values may be preferentially obtained from the first ac voltage waveform, and the like, which is not limited herein.
Step S104, judging that the target alternating current power supply is powered off under the condition that M instantaneous voltage differences among the N instantaneous voltage differences are larger than a preset voltage threshold value and M is larger than or equal to a preset number, wherein M is larger than or equal to 1 and N is smaller than or equal to N.
In the above embodiment, the preset voltage threshold may be preset, and after the preset voltage threshold is preset, the preset voltage threshold may be adjusted according to the actual application requirement. The preset number can be preset, and after the preset number is preset, the preset number can be adjusted according to actual application requirements.
Through the steps, the alternating voltage waveform is continuously monitored, waveforms with the same period duration (namely a first alternating voltage waveform and a second alternating voltage waveform) are continuously obtained, so that the change of the alternating voltage is captured in real time, the change of an alternating current power supply can be found out in real time, and basic data is provided for further judgment and analysis; the first alternating voltage waveform monitored at present and the second alternating voltage waveform monitored at the next time are continuously compared, a waveform comparison result can be obtained, the continuity and consistency of the voltage waveform along with time can be monitored, and further effective guarantee is provided for judging whether the state of the alternating current power supply is stable or not; determining that the first alternating voltage waveform and the second alternating voltage waveform are inconsistent from the target moment according to the waveform comparison result, accurately positioning the waveform inconsistency starting moment, acquiring N first instantaneous voltage values corresponding to N first moments according to the first alternating voltage waveform, and acquiring the voltage value at a specific moment to more accurately analyze the change of the voltage waveform; calculating N first instantaneous voltage values and N second instantaneous voltage values to determine N instantaneous voltage difference values, and quantitatively analyzing the variation degree of the voltage waveform by comparing the instantaneous voltages of two continuous waveforms; if the instantaneous voltage difference value of a sufficient number (namely M) is larger than a preset voltage threshold value, judging that the target alternating current power supply is powered off, and through the preset voltage threshold value and the preset number, effectively reducing the misjudgment of the power failure of the alternating current power supply, and judging the power failure of the alternating current power supply when the voltage change is truly obvious and reaches a certain number of times, thereby improving the accuracy and reliability of the power failure judgment. By adopting the method, the voltage waveforms are monitored in real time, the voltage waveforms with the same and continuous period duration are continuously compared, when the voltage waveforms are inconsistent, N instantaneous voltage differences between the two voltage waveforms at abnormal moments (namely N first moments) are judged according to the preset voltage threshold and the preset quantity, and then the target alternating current power supply outage can be rapidly judged at the initial stage of abnormality. The technical problem of whether the alternating current power supply is powered off or not in the related art is solved, and the technical effect of improving the judging efficiency of whether the alternating current power supply is powered off or not is achieved.
The main body of execution of the above steps may be a system, for example, a power monitoring system, a control device having a power monitoring function, a processing device having a power monitoring function, or the like, but is not limited thereto.
In an optional embodiment, when it is determined that M transient voltage differences exist among the N transient voltage differences and are greater than a preset voltage threshold, and M is greater than or equal to a preset number, determining that the target ac power supply is powered off specifically includes: comparing the N instantaneous voltage differences with a preset voltage threshold to obtain a difference comparison result; under the condition that M instantaneous voltage differences among the N instantaneous voltage differences are larger than a preset voltage threshold value according to the difference comparison result, comparing M with the preset number to obtain a number comparison result; and under the condition that M is larger than or equal to the preset number according to the number comparison result, judging that the target alternating current power supply is powered off.
In the above embodiments, the preset voltage threshold may be set based on the specific requirements and tolerance of the ac power source, for example, regarding the absolute voltage deviation, a fixed voltage value (for example, 5V, 8V, 10V, etc., not limited herein) may be set, and any instantaneous voltage difference exceeding the fixed voltage value may be considered to exceed the preset voltage threshold; regarding the percentage voltage deviation, it may be a certain percentage of the nominal voltage (for example, ±5%, ±8%, ±10% etc., not limited herein), when the ac voltage is 220V and the preset voltage threshold is set to ±10%, the preset voltage threshold is 22V; regarding the sensitivity of the device, if the sensitivity of the device to voltage variations is known, the preset voltage threshold may be set according to the sensitivity, whereas for precision devices, the preset voltage threshold may need to be set lower; regarding historical data and statistical analysis, if there is historical voltage fluctuation data, the voltage fluctuation data can be statistically analyzed to set a preset voltage threshold; regarding safety and performance criteria, setting the preset voltage threshold should also take into account appropriate safety criteria and performance requirements to ensure that no damage is done to the device; regarding emergency and fault tolerance requirements, in special cases a relatively high preset voltage threshold may be set to avoid frequent decisions about ac power outage in case of emergency or in view of fault tolerance requirements. It should be further noted that, the foregoing exemplary embodiment of the setting manner of the preset voltage threshold is only an exemplary embodiment, and the setting manner of the preset voltage threshold is not limited to the foregoing exemplary embodiment.
In an alternative embodiment, the monitoring of the ac voltage waveform of the target ac power source in real time to obtain the waveform comparison result of the first ac voltage waveform and the second ac voltage waveform specifically includes: the method comprises the steps of monitoring a first alternating voltage waveform of a target alternating current power supply in real time in a first period to obtain a first real-time monitoring result, wherein the first period is a period in which the first alternating voltage waveform is monitored currently; determining that no abnormality exists in the first alternating-current voltage waveform according to the first real-time monitoring result; and monitoring a second alternating voltage waveform of the target alternating current power supply in real time in a second period, and performing first overlapping comparison on the first alternating voltage waveform and the second alternating voltage waveform to obtain a waveform comparison result, wherein the second period is a period in which the second alternating voltage waveform is monitored, and the first period and the second period are two adjacent periods with the same period duration.
In the above embodiment, the comparison between the first ac voltage waveform and the second ac voltage waveform includes, but is not limited to, overall waveform similarity comparison, i.e., the similarity of two voltage waveforms can be measured by using a correlation coefficient, point-to-point comparison, i.e., the instantaneous voltage values of two ac voltage waveforms are compared at the same time point, the point-to-point differences (e.g., variance, standard deviation, etc., not limited herein) are calculated, waveform distortion analysis, i.e., the distortion of the waveforms is compared, the regions are compared, i.e., the waveforms are divided into several regions, and the shape and size of the same regions are compared. It should be noted that, the foregoing description of the comparison manner of the first ac voltage waveform and the second ac voltage waveform is merely an exemplary embodiment, and the comparison manner of the first ac voltage waveform and the second ac voltage waveform is not limited to the foregoing description.
In an alternative embodiment, after determining, according to the waveform comparison result, that the first ac voltage waveform and the second ac voltage waveform are inconsistent from the target time, acquiring N first instantaneous voltage values corresponding to the N first times according to the first ac voltage waveform, and acquiring N second instantaneous voltage values corresponding to the N first times according to the second ac voltage waveform, specifically includes: determining that the first alternating voltage waveform and the second alternating voltage waveform are inconsistent from a target moment in the second period according to the waveform comparison result; n first instantaneous voltage values corresponding to N first moments in the second period are obtained from the first alternating voltage waveform, and N second instantaneous voltage values corresponding to N first moments are obtained from the second alternating voltage waveform.
In the above embodiment, it is assumed that the power monitoring system is required to monitor the ac voltage of the ac power source in real time to ensure the stability and voltage quality of the ac power source, thereby protecting the sensitive device from voltage fluctuation and abnormality, and at the same time, the voltage waveform is collected by using the high-precision analog-digital converter and is subjected to digital signal processing, and the specific implementation steps are that, in the first period, the power monitoring system monitors the voltage waveform of the ac power source in real time and records the voltage data, and it is assumed that the first period is 20 ms (of course, 25 ms, 30 ms, 32 ms, etc., which are not limited herein), and the power monitoring system performs data collection in the whole first period, and confirms that the voltage waveform is not abnormal, and at this time, the waveform may be displayed as a normal sine wave; entering a second period, and continuously monitoring an alternating-current voltage waveform by the power monitoring system, wherein the power monitoring system compares the voltage waveform of the first period with the voltage waveform of the second period in real time, and the comparison can be realized through point-to-point comparison, for example, the voltage value of each sampling point is compared; at a certain time (corresponding to the target time, assumed to be 12 ms) of the second period, when the power monitoring system monitors that the voltage waveform of the second period is inconsistent with the voltage waveform of the first period, the power monitoring system extracts N first instantaneous voltage values corresponding to N first times in the second period from the voltage waveform of the first period, and simultaneously extracts N second instantaneous voltage values corresponding to N first times from the voltage waveform of the second period; assuming N is 5 (of course, 4, 10, 15, etc., and the present invention is not limited thereto), the power monitoring system compares 5 first instantaneous voltage values of a first period from 12 th to fourth (e.g., first instantaneous voltage value of 13 th to fourth, first instantaneous voltage value of 15 th to fourth, first instantaneous voltage value of 16 th to fourth, first instantaneous voltage value of 18 th to fourth, first instantaneous voltage value of 19 th to fourth, etc., and the present invention is not limited thereto) with 5 second instantaneous voltage values of a second period (e.g., second instantaneous voltage value of 13 th to fourth, second instantaneous voltage value of 15 th to fourth, second instantaneous voltage value of 16 th to fourth, second instantaneous voltage value of 18 th to fourth, etc., and the present invention is not limited thereto); the power monitoring system can record the data, compare the difference between the data and the data, judge whether abnormality exists through predefined logic (corresponding to the situation that M instantaneous voltage difference values in the N instantaneous voltage difference values are larger than a preset voltage threshold value and M is larger than or equal to the preset number), and judge that the target alternating current power supply is powered off, and trigger an alarm or take maintenance measures.
In an alternative embodiment, after determining that there is no abnormality in the first ac voltage waveform according to the first real-time monitoring result, the method further includes: storing the first alternating voltage waveform into a waveform database; monitoring a second alternating voltage waveform of the target alternating current power supply in real time in a third period, and acquiring a first alternating voltage waveform from a waveform database; and performing second overlapping comparison on the first alternating-current voltage waveform and the second alternating-current voltage waveform to obtain a waveform comparison result, wherein a third period is a period in which the second alternating-current voltage waveform is monitored, and the first period and the third period are two adjacent periods with the same period duration.
In the above-described embodiment, it is assumed that the power monitoring system is required to monitor the ac voltage of the ac power supply in real time to ensure the stability and voltage quality of the ac power supply, thereby protecting the sensitive equipment from voltage fluctuations and anomalies, and in the first period, the power monitoring system collects the ac voltage waveform of the target ac power supply and stores the waveform data in the waveform database. Assuming that the first period is from time T0 to time T1, it may be a complete ac power period; entering a third period with the same duration as the first period, and monitoring a second alternating voltage waveform in real time, wherein the second alternating voltage waveform can also be a complete alternating current power supply period from the moment T2 to the moment T3; in the process of monitoring the second alternating voltage waveform in real time by the power monitoring system, acquiring a first alternating voltage waveform stored in advance from a waveform database, performing second overlapping comparison on the acquired second alternating voltage waveform and the first alternating voltage waveform in the waveform database, and determining whether any deviation exists by comparing the consistency of the waveforms in two periods.
In an alternative embodiment, before the first ac voltage waveform of the target ac power source is monitored in real time in the first period to obtain the first real-time monitoring result, the method further includes: monitoring a third alternating voltage waveform of the target alternating current power supply in real time in a fourth period to obtain a third real-time monitoring result, wherein the period time length of the fourth period is longer than or equal to the period time length of the first period; and storing the third alternating voltage waveform under the condition that the third alternating voltage waveform is determined to have no abnormality according to the third real-time monitoring result.
In the above embodiment, the purpose of storing the normal third ac voltage waveform includes, but is not limited to, obtaining reference data, where storing the normal waveform data can provide a reference for subsequent monitoring, and when a new waveform is monitored, comparing the new waveform with the stored normal waveform, and quickly identifying deviation or abnormality; trend analysis is performed to accumulate more normal waveform data over time, which can be analyzed to identify long-term trends in power supply performance, including gradual changes, which is particularly important for predictive maintenance and fault prevention; the performance evaluation, the storage of the normal waveform can help to evaluate whether the performance of the power system accords with the operation standard, so that the long-term stable operation of the power system is ensured; fault diagnosis, when a power problem occurs, a stored normal waveform may be used as part of the fault diagnosis, and by comparing the abnormal and normal waveforms, the nature and possible cause of the problem may be more easily located.
In an alternative embodiment, the determining N instantaneous voltage differences according to the N first instantaneous voltage values and the N second instantaneous voltage values specifically includes: subtracting the N first instantaneous voltage values from N second instantaneous voltage values which are in one-to-one correspondence to obtain N instantaneous voltage differences; the absolute values of the N instantaneous voltage differences are determined as N instantaneous voltage differences.
In the above embodiment, the subtraction may be performed on the N first instantaneous voltage values and the N second instantaneous voltage values at the same time, or may be performed according to the priority or the weight of the N first instantaneous voltage values, for example, when 3 first instantaneous voltage values (first instantaneous voltage value 1, first instantaneous voltage value 2, first instantaneous voltage value 3) exist, and the priority or the weight of the 3 first instantaneous voltage values is that the first instantaneous voltage value 1 > the first instantaneous voltage value 2 > the first instantaneous voltage value 3, the subtraction may be performed on the first instantaneous voltage value 1 and the corresponding second instantaneous voltage value preferentially; the subtraction may also be performed according to the priorities or weights of the N second instantaneous voltage values, for example, when there are 3 second instantaneous voltage values (second instantaneous voltage value 1, second instantaneous voltage value 2, second instantaneous voltage value 3), and the priorities or weights of the 3 second instantaneous voltage values are respectively that the second instantaneous voltage value 1 > the second instantaneous voltage value 2 > the second instantaneous voltage value 3, the subtraction may be performed preferentially on the second instantaneous voltage value 1 and the corresponding first instantaneous voltage value, which is not limited herein.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the application. The present application will be specifically described with reference to the following examples (an ac power source is taken as a commercial power source as an example).
Fig. 2 is a flow chart of a method for determining whether an ac power supply is off in an embodiment of the application. Referring to fig. 2, the process includes the following steps:
Step S201, starting;
And (5) monitoring the waveform of the mains voltage in real time.
Step S202, storing the current mains voltage waveform (corresponding to the first AC voltage waveform);
the current mains voltage waveform without anomalies, which is monitored during the current period (corresponding to the first period described above), is stored.
Step S203, monitoring a next mains voltage waveform (corresponding to the second ac voltage waveform) in a next period (corresponding to the second period) connected to the current period;
Step S204, comparing the next mains voltage waveform with the current mains voltage waveform in the process of monitoring the next mains voltage waveform to obtain a waveform comparison result;
step S205, a first judgment is carried out according to the waveform comparison result to judge whether the waveform of the next mains voltage is consistent with the waveform of the current mains voltage, and if the first judgment result is negative, the step S202 is returned;
Fig. 3 is a schematic diagram for illustrating comparison of ac voltage waveforms in accordance with an embodiment of the present application. Referring to fig. 3, the axis of abscissa is the period of the ac voltage waveform, the axis of ordinate is the mains voltage, the L1 voltage waveform is the current monitored ac voltage waveform, the L2 voltage waveform is the ac voltage waveform connected to the L1 voltage waveform and having the same period after the L1 voltage waveform, the time T1 (corresponding to the target time) is the time when the L2 voltage waveform (corresponding to the second ac voltage waveform) starts to change, the time T2 (the N first times include the time T2) is the time when the L2 voltage waveform has changed, the V1 (the N first instantaneous voltage values include the V1) is the instantaneous voltage value of the L1 voltage waveform (corresponding to the first ac voltage waveform) at the time T2, and the V2 (the N second instantaneous voltage values include the V2) is the instantaneous voltage value of the L2 voltage waveform at the time T2.
When power failure starts to occur at the time T1, the L2 voltage waveform starts to drop, and at the time T2, V1 and V2 are compared to determine the instantaneous voltage variation between V1 and V2, i.e. the instantaneous voltage variation can be determined by adopting the following formula:
ΔV=abs(V1-V2)
When Δv is greater than a certain voltage point (corresponding to the preset voltage threshold), and a plurality of Δvs (corresponding to the M instantaneous voltage differences) are greater than the voltage point, it is determined that the mains supply is powered off.
In step S206, if the first determination result is yes, it is determined that the mains supply is powered off.
In the embodiment of the application, the continuous alternating voltage waveforms are monitored continuously, and the continuous alternating voltage waveforms are compared and analyzed, so that the inconsistency between the continuous alternating voltage waveforms can be rapidly identified, the outage moment of the alternating power supply can be rapidly judged, the outage judging time of the alternating power supply can be greatly shortened, and the judging efficiency of whether the alternating power supply is in outage or not can be further improved.
The method for determining ac power outage in the embodiment of the present application is described above, and the apparatus for determining ac power outage in the embodiment of the present application is described in detail below with reference to fig. 4, where fig. 4 is a block diagram of a structure of the apparatus for determining ac power outage in the embodiment of the present application, and the apparatus includes:
the first obtaining module 401 is configured to monitor an ac voltage waveform of a target ac power supply in real time, so as to obtain a waveform comparison result of a first ac voltage waveform and a second ac voltage waveform, where the first ac voltage waveform is a current monitored ac voltage waveform, the second ac voltage waveform is an ac voltage waveform that is monitored after the first ac voltage waveform is monitored and is connected to the first ac voltage waveform, and the first ac voltage waveform and the second ac voltage waveform are two ac voltage waveforms with the same period duration;
The second obtaining module 402 is configured to obtain N first instantaneous voltage values corresponding to N first moments according to the first ac voltage waveform after determining that the first ac voltage waveform and the second ac voltage waveform are inconsistent from the target moment according to the waveform comparison result, and obtain N second instantaneous voltage values corresponding to N first moments according to the second ac voltage waveform, where N first moments are moments when the first ac voltage waveform and the second ac voltage waveform are inconsistent after the target moment, and N is greater than or equal to 1;
A first determining module 403, configured to determine N instantaneous voltage differences according to N first instantaneous voltage values and N second instantaneous voltage values;
The second determining module 404 is configured to determine that the target ac power supply is powered off when it is determined that M transient voltage differences among the N transient voltage differences are greater than a preset voltage threshold and M is greater than or equal to a preset number, where M is greater than or equal to 1 and N is less than or equal to N.
In an alternative embodiment, the second determining module 404 includes: the first acquisition unit is used for comparing the N instantaneous voltage difference values with a preset voltage threshold value to acquire a difference value comparison result; the second acquisition unit is used for comparing M with a preset number to acquire a number comparison result under the condition that M instantaneous voltage differences among N instantaneous voltage differences are larger than a preset voltage threshold value according to the difference comparison result; and the judging unit is used for judging that the target alternating current power supply is powered off under the condition that M is larger than or equal to the preset number according to the number comparison result.
In an alternative embodiment, the first acquisition module 401 includes: the third acquisition unit is used for monitoring the first alternating voltage waveform of the target alternating current power supply in real time in a first period to acquire a first real-time monitoring result, wherein the first period is the period in which the first alternating voltage waveform is monitored currently; the first determining unit is used for determining that no abnormality exists in the first alternating-current voltage waveform according to the first real-time monitoring result; the fourth acquisition unit is used for monitoring the second alternating voltage waveform of the target alternating current power supply in real time in a second period, and performing first overlapping comparison on the first alternating voltage waveform and the second alternating voltage waveform to acquire a waveform comparison result, wherein the second period is a period in which the second alternating voltage waveform is monitored, and the first period and the second period are two adjacent periods with the same period duration.
In an alternative embodiment, the second obtaining module 402 includes: a second determining unit, configured to determine, according to the waveform comparison result, that the first ac voltage waveform and the second ac voltage waveform are inconsistent from the target time in the second period; a fifth obtaining unit, configured to obtain N first instantaneous voltage values corresponding to N first moments in the second period from the first ac voltage waveform, and obtain N second instantaneous voltage values corresponding to N first moments from the second ac voltage waveform.
In an alternative embodiment, the apparatus further comprises: the first storage module is used for storing the first alternating voltage waveform into the waveform database after determining that the first alternating voltage waveform is not abnormal according to the first real-time monitoring result; the third acquisition module is used for monitoring the second alternating voltage waveform of the target alternating current power supply in real time in a third period and acquiring the first alternating voltage waveform from the waveform database; and the fourth acquisition module is used for carrying out second overlapping comparison on the first alternating-current voltage waveform and the second alternating-current voltage waveform so as to acquire a waveform comparison result, wherein the third period is a period for monitoring the second alternating-current voltage waveform, and the first period and the third period are two adjacent periods with the same period duration.
In an alternative embodiment, the apparatus further comprises: the fifth acquisition module is used for carrying out real-time monitoring on a first alternating voltage waveform of the target alternating current power supply in a first period so as to carry out real-time monitoring on a third alternating voltage waveform of the target alternating current power supply in a fourth period before acquiring a first real-time monitoring result, so as to acquire a third real-time monitoring result, wherein the period time length of the fourth period is longer than or equal to the period time length of the first period; and the second storage module is used for storing the third alternating voltage waveform under the condition that the third alternating voltage waveform is determined to be free from abnormality according to the third real-time monitoring result.
In an alternative embodiment, the first determining module 403 includes: a sixth obtaining unit, configured to perform subtraction operation on the N first instantaneous voltage values and the N second instantaneous voltage values that are in one-to-one correspondence, so as to obtain N instantaneous voltage differences; and a third determining unit configured to determine absolute values of the N instantaneous voltage differences as the N instantaneous voltage difference values.
The application also discloses an electronic device, referring to fig. 5, fig. 5 is a schematic structural diagram of the electronic device according to the embodiment of the application. The electronic device 500 may include: at least one processor 501, at least one network interface 504, a user interface 503, a memory 505, at least one communication bus 502.
Wherein a communication bus 502 is used to enable connected communications between these components.
The user interface 503 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 503 may further include a standard wired interface and a standard wireless interface.
The network interface 504 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 501 may include one or more processing cores. The processor 501 utilizes various interfaces and lines to connect various portions of the overall electronic device (e.g., server) and performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 505 and invoking data stored in the memory 505. Alternatively, the processor 501 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 501 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 501 and may be implemented by a single chip.
The Memory 505 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 505 comprises a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 505 may be used to store instructions, programs, code sets, or instruction sets. The memory 505 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 505 may also optionally be at least one storage device located remotely from the processor 501. Referring to fig. 5, an operating system, a network communication module, a user interface module, and an application program of a method of determining whether an ac power source is off may be included in a memory 505, which is a computer storage medium.
In the electronic device 500 shown in fig. 5, the user interface 503 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 501 may be configured to invoke an application of a method of determining an ac power outage stored in the memory 505, which when executed by the one or more processors 501, causes the electronic device 500 to perform the method as described in one or more of the embodiments above. It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (9)

1. A judging method for AC power outage is characterized by comprising the following steps:
Monitoring an alternating current voltage waveform of a target alternating current power supply in real time to obtain a waveform comparison result of a first alternating current voltage waveform and a second alternating current voltage waveform, wherein the first alternating current voltage waveform is the current monitored alternating current voltage waveform, the second alternating current voltage waveform is the monitored alternating current voltage waveform connected with the first alternating current voltage waveform after the first alternating current voltage waveform is monitored, and the first alternating current voltage waveform and the second alternating current voltage waveform are two alternating current voltage waveforms with the same period duration;
After the first alternating voltage waveform and the second alternating voltage waveform are determined to be inconsistent from the target moment according to the waveform comparison result, N first instantaneous voltage values corresponding to N first moments are obtained according to the first alternating voltage waveform, N second instantaneous voltage values corresponding to the N first moments are obtained according to the second alternating voltage waveform, wherein the N first moments are all moments when the first alternating voltage waveform and the second alternating voltage waveform are monitored to be inconsistent after the target moment, and N is more than or equal to 1;
Determining N instantaneous voltage differences according to the N first instantaneous voltage values and the N second instantaneous voltage values;
Judging that the target alternating current power supply is powered off under the condition that M instantaneous voltage differences are larger than a preset voltage threshold value and the M is larger than or equal to the preset number, wherein M is larger than or equal to 1 and N is smaller than or equal to N;
After determining that the first ac voltage waveform and the second ac voltage waveform are inconsistent from the target time according to the waveform comparison result, acquiring N first instantaneous voltage values corresponding to N first times according to the first ac voltage waveform, and acquiring N second instantaneous voltage values corresponding to the N first times according to the second ac voltage waveform, wherein the method specifically comprises:
Determining that the first alternating voltage waveform is inconsistent with the second alternating voltage waveform from the target moment in a second period according to the waveform comparison result, wherein the second period is a period in which the second alternating voltage waveform is monitored;
The N first instantaneous voltage values corresponding to the N first moments in the second period are obtained from the first alternating voltage waveform, and the N second instantaneous voltage values corresponding to the N first moments are obtained from the second alternating voltage waveform.
2. The method according to claim 1, wherein the determining that the target ac power supply is powered down if it is determined that M instantaneous voltage differences among the N instantaneous voltage differences are greater than a preset voltage threshold and the M is greater than or equal to a preset number, specifically includes:
Comparing the N instantaneous voltage difference values with the preset voltage threshold value to obtain a difference value comparison result;
comparing the M with the preset quantity under the condition that the M instantaneous voltage differences among the N instantaneous voltage differences are larger than the preset voltage threshold according to the difference comparison result, so as to obtain a quantity comparison result;
And judging that the target alternating current power supply is powered off under the condition that the M is larger than or equal to the preset number according to the number comparison result.
3. The method of claim 1, wherein the monitoring the ac voltage waveform of the target ac power source in real time to obtain a waveform comparison result of the first ac voltage waveform and the second ac voltage waveform specifically comprises:
The real-time monitoring is carried out on the first alternating voltage waveform of the target alternating current power supply in a first period to obtain a first real-time monitoring result, wherein the first period is a period in which the first alternating voltage waveform is monitored currently;
determining that no abnormality exists in the first alternating-current voltage waveform according to the first real-time monitoring result;
And carrying out the real-time monitoring on the second alternating voltage waveform of the target alternating current power supply in the second period, and carrying out first overlapping comparison on the first alternating voltage waveform and the second alternating voltage waveform to obtain the waveform comparison result, wherein the first period and the second period are two adjacent periods with the same period duration.
4. A method according to claim 3, wherein after said determining that there is no abnormality in the first ac voltage waveform based on the first real-time monitoring result, the method further comprises:
storing the first alternating voltage waveform into a waveform database;
the second alternating voltage waveform of the target alternating current power supply is monitored in real time in a third period, and the first alternating voltage waveform is obtained from the waveform database;
and performing second overlapping comparison on the first alternating-current voltage waveform and the second alternating-current voltage waveform to obtain a waveform comparison result, wherein the third period is a period in which the second alternating-current voltage waveform is monitored, and the first period and the third period are two adjacent periods with the same period duration.
5. The method of claim 3, wherein prior to said real-time monitoring of said first ac voltage waveform of said target ac power source during said first period to obtain a first real-time monitoring result, said method further comprises:
The real-time monitoring is carried out on a third alternating voltage waveform of the target alternating current power supply in a fourth period to obtain a third real-time monitoring result, wherein the period time of the fourth period is longer than or equal to the period time of the first period;
and storing the third alternating current voltage waveform under the condition that the third alternating current voltage waveform is determined to have no abnormality according to the third real-time monitoring result.
6. The method according to claim 1, wherein said determining N instantaneous voltage differences from said N first instantaneous voltage values and said N second instantaneous voltage values, in particular comprises:
subtracting the N first instantaneous voltage values from the N second instantaneous voltage values in a one-to-one correspondence to obtain N instantaneous voltage differences;
the absolute values of the N instantaneous voltage differences are determined as the N instantaneous voltage differences.
7. A judging device for ac power outage, comprising:
The first acquisition module is used for monitoring an alternating current voltage waveform of a target alternating current power supply in real time to acquire a waveform comparison result of a first alternating current voltage waveform and a second alternating current voltage waveform, wherein the first alternating current voltage waveform is the current monitored alternating current voltage waveform, the second alternating current voltage waveform is the alternating current voltage waveform which is monitored after the first alternating current voltage waveform is monitored and is connected with the first alternating current voltage waveform, and the first alternating current voltage waveform and the second alternating current voltage waveform are two alternating current voltage waveforms with the same period duration;
the second acquisition module is used for acquiring N first instantaneous voltage values corresponding to N first moments according to the first alternating voltage waveform after the first alternating voltage waveform and the second alternating voltage waveform are determined to be inconsistent from the target moment according to the waveform comparison result, and acquiring N second instantaneous voltage values corresponding to the N first moments according to the second alternating voltage waveform, wherein the N first moments are moments when the first alternating voltage waveform and the second alternating voltage waveform are monitored to be inconsistent after the target moment, and N is more than or equal to 1;
The first determining module is used for determining N instantaneous voltage difference values according to the N first instantaneous voltage values and the N second instantaneous voltage values;
The second determining module is used for judging that the target alternating current power supply is powered off when M instantaneous voltage differences among the N instantaneous voltage differences are larger than a preset voltage threshold value and M is larger than or equal to a preset number, wherein M is larger than or equal to 1 and N is smaller than or equal to N;
The second acquisition module includes: a second determining unit, configured to determine, according to the waveform comparison result, that the first ac voltage waveform and the second ac voltage waveform are inconsistent from the target time in a second period, where the second period is a period in which the second ac voltage waveform is monitored; a fifth obtaining unit, configured to obtain, from the first ac voltage waveform, the N first instantaneous voltage values corresponding to the N first moments in the second period, and obtain, from the second ac voltage waveform, the N second instantaneous voltage values corresponding to the N first moments.
8. An electronic device, comprising: one or more processors and memory;
The memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-6.
9. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-6.
CN202410294708.6A 2024-03-15 2024-03-15 Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium Active CN117907878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410294708.6A CN117907878B (en) 2024-03-15 2024-03-15 Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410294708.6A CN117907878B (en) 2024-03-15 2024-03-15 Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117907878A CN117907878A (en) 2024-04-19
CN117907878B true CN117907878B (en) 2024-06-04

Family

ID=90692677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410294708.6A Active CN117907878B (en) 2024-03-15 2024-03-15 Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117907878B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554231A (en) * 2019-07-24 2019-12-10 深圳供电局有限公司 Voltage monitoring method, voltage monitoring device, computer equipment and storage medium
CN111987699A (en) * 2020-08-18 2020-11-24 广东电网有限责任公司电力调度控制中心 Current differential protection data synchronization method of alternating current line and related device
CN112816913A (en) * 2021-01-28 2021-05-18 厦门拓宝科技有限公司 Method and device for rapidly detecting power failure of single-phase alternating voltage signal, storage medium, program product and terminal equipment
CN113884777A (en) * 2021-09-22 2022-01-04 深圳拓邦股份有限公司 Open-phase detection method, circuit and device of three-phase alternating-current power supply and electrical equipment
WO2023016128A1 (en) * 2021-08-09 2023-02-16 江苏时代新能源科技有限公司 Battery cell self-discharge current detection method and apparatus, device and computer storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113899963A (en) * 2021-08-30 2022-01-07 科华数据股份有限公司 Alternating current system interference electricity detection method and device and terminal equipment
CN116914696A (en) * 2023-06-29 2023-10-20 长园深瑞继保自动化有限公司 Control method and device for bus protection and terminal equipment
CN117330990A (en) * 2023-10-16 2024-01-02 深圳市正浩创新科技股份有限公司 Power failure detection method, electronic device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554231A (en) * 2019-07-24 2019-12-10 深圳供电局有限公司 Voltage monitoring method, voltage monitoring device, computer equipment and storage medium
CN111987699A (en) * 2020-08-18 2020-11-24 广东电网有限责任公司电力调度控制中心 Current differential protection data synchronization method of alternating current line and related device
CN112816913A (en) * 2021-01-28 2021-05-18 厦门拓宝科技有限公司 Method and device for rapidly detecting power failure of single-phase alternating voltage signal, storage medium, program product and terminal equipment
WO2023016128A1 (en) * 2021-08-09 2023-02-16 江苏时代新能源科技有限公司 Battery cell self-discharge current detection method and apparatus, device and computer storage medium
CN113884777A (en) * 2021-09-22 2022-01-04 深圳拓邦股份有限公司 Open-phase detection method, circuit and device of three-phase alternating-current power supply and electrical equipment

Also Published As

Publication number Publication date
CN117907878A (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN109001649B (en) Intelligent power supply diagnosis system and protection method
CN107831422B (en) GIS equipment partial discharge diagnosis method and system
EP2992340B1 (en) System and method for ups battery monitoring and data analysis
US8988238B2 (en) Change detection system using frequency analysis and method
US20100070213A1 (en) Method for Monitoring the Electrical Energy Quality in an Electrical Energy Supply System, Power Quality Field Device and Power Quality System
JP2016226265A (en) Integrated transformer health monitoring architecture
CN114551271A (en) Method and device for monitoring machine operation condition, storage medium and electronic equipment
EP3674827B1 (en) Monitoring target selecting device, monitoring target selecting method and program
CN108627794B (en) Intelligent instrument detection method based on deep learning
CN114781476B (en) System and method for analyzing faults of measuring equipment
WO2018080523A1 (en) Data cost effective fast similarity search with priority access
KR20180121389A (en) Facility monitoring apparatus
US20140058615A1 (en) Fleet anomaly detection system and method
CN111579001A (en) Fault detection method and device for robot
CN110687851A (en) Terminal operation monitoring system and method
TWI586943B (en) Enhanced-fft online machine vibration measurement system and method
CN117907878B (en) Method and device for judging power failure of alternating current power supply, electronic equipment and storage medium
CN116380228A (en) Method, system, terminal and storage medium for monitoring operation of weighing apparatus
CN114740419A (en) Method, device, equipment and medium for analyzing error of district ammeter based on three-dimensional graph
EP3819608A1 (en) Detecting rotor anomalies by determining vibration trends during transient speed operation
KR20210033883A (en) System and method for diagnosis and monitoring leakage current and insulation of energy storage system
JP5422312B2 (en) Protective relay
CN101556168A (en) Equipment operating data monitoring device
CN117093904B (en) Transformer substation fire detection data acquisition method
KR101376205B1 (en) Ignitor spark test data logger equipment

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