AC system power swing detection method, device and terminal equipment
Through phase locking and sliding window filtering processing technology, the voltage difference of each phase can be directly determined, which solves the problem of single-phase voltage drops being covered up, improves the accuracy and real-time performance of AC system power failure detection, and avoids false detections.
Patent Information
- Application Number
- CN202111007577.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-08-30
AI Technical Summary
When the existing technology detects power fluctuations in an AC system, a single-phase voltage drop is easily covered by the other two-phase voltages, resulting in inaccurate detection, and the problem of false detection caused by AC voltage changes is difficult to solve.
By acquiring voltage data in real time, the voltage difference is determined after phase locking, and the voltage difference of each phase is extracted and filtered based on the sliding window to determine whether power failure occurs and avoid phase delay and voltage distortion from affecting detection accuracy.
It improves the accuracy of the AC system's electric shock detection, avoids the problem of false detection, and enhances the real-time and accuracy of the detection.
Smart Images

Figure CN113899963B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of fault detection, and more specifically, relates to an alternating current system power fluctuation detection method, device and terminal equipment. Background Art
[0002] Power sloshing is a common power grid fault, usually defined as a voltage transient exceeding 10% of the rated voltage and lasting for 10ms to 1min. Power sloshing is currently the most common power grid fault, affecting the long-term stability of equipment operation, causing the production process to be unable to continue, resulting in a large amount of economic and time losses.
[0003] The existing technology usually uses the instantaneous amplitude judgment method of the voltage under the DQ axis system to detect electric shaking. Because for a three-phase AC system, a DC voltage can be obtained after the three-phase voltage DQ is coupled. The DC voltage can be directly compared with the rated voltage to determine whether an electric shaking occurs. This method is easy to use and has a good detection effect for simultaneous drops in the three-phase voltage. However, in actual use, single-phase voltage drops are more common. When this dropped voltage is converted to DQ voltage, it will be masked by the other two-phase voltages, resulting in the inability to accurately detect electric shaking using this method. The single-phase voltage detection method is relatively complicated. The object of single-phase detection is the AC voltage quantity, which will change over time, and is more prone to false detection problems, thereby affecting the accuracy of electric shaking detection. Summary of the invention
[0004] The object of the present invention is to provide a method, device and terminal equipment for detecting power fluctuations in an AC system, so as to accurately detect power fluctuations in the AC system.
[0005] According to a first aspect of an embodiment of the present invention, there is provided a method for detecting power swing in an AC system, comprising:
[0006] Acquire voltage data of a target AC system in real time, and determine voltage difference data corresponding to the target AC system according to the voltage data and the theoretical voltage data after phase-locking the voltage data and the preset theoretical voltage data;
[0007] Extracting each voltage difference value of each phase under the current sliding window from the voltage difference value data based on a preset sliding window, and determining a weight corresponding to each voltage difference value of each phase under the current sliding window according to the current moment and the sampling moment corresponding to each voltage difference value of each phase under the current sliding window;
[0008] Based on the weights corresponding to the voltage differences of each phase in the current sliding window, the voltage differences of each phase in the current sliding window are filtered to obtain the filtered values of each phase at the current moment;
[0009] Based on the filter value of each phase at the current moment, it is determined whether the target AC system has a power shake at the current moment.
[0010] In a possible implementation, extracting each voltage difference value of each phase under the current sliding window from the voltage difference value data based on a preset sliding window includes:
[0011] The latest N voltage difference values of each phase are extracted from the voltage difference data as the voltage difference values of each phase under the current sliding window; wherein N is a preset sliding window length, and the sliding window length is determined according to the current moment.
[0012] In a possible implementation, the weight corresponding to each voltage difference value of a phase in the current sliding window is determined according to the current moment and the sampling moment corresponding to each voltage difference value of the phase in the current sliding window, including:
[0013] The sampling time corresponding to each voltage difference of the phase under the current sliding window is recorded as the sampling time corresponding to the current sliding window;
[0014] If the sampling moments corresponding to the current sliding window are all within the valley period, the weights of the voltage differences of the phase under the current sliding window are evenly distributed;
[0015] If the sampling times corresponding to the current sliding window are all within the peak period, the weights of the voltage differences of the phase under the current sliding window are allocated according to the difference between the sampling times corresponding to the current sliding window and the current time;
[0016] If the sampling moments corresponding to the current sliding window include both sampling moments belonging to the peak period and sampling moments belonging to the valley period, the current sliding window is divided into at least two sub-windows according to the time periods to which the sampling moments corresponding to the current sliding window belong, and a corresponding weight is assigned to each sub-window according to the number of voltage differences corresponding to each sub-window, and a weight is assigned to each voltage difference of the phase under each sub-window based on the weight corresponding to each sub-window and the time period to which each sub-window belongs, so as to obtain the weight of each voltage difference of the phase under the current sliding window.
[0017] In a possible implementation, the difference between the sampling time corresponding to each voltage difference value of the phase under the current sliding window and the current time is recorded as the time difference corresponding to each voltage difference value of the phase;
[0018] The time difference corresponding to each voltage difference of the phase is negatively correlated with the weight of each voltage difference of the phase.
[0019] In a possible implementation, a weight is assigned to each voltage difference of the phase under a sub-window based on the weight corresponding to the sub-window and the time period to which the sub-window belongs, including:
[0020] If the sampling moments corresponding to the sub-windows are all within the valley period, the weights corresponding to the sub-windows are evenly distributed according to the number of voltage differences corresponding to the sub-windows, and the weights obtained by the even distribution are used as the weights of the voltage differences of the phase under the sub-windows;
[0021] If the sampling moments corresponding to the sub-window are all within the peak period, the ratio of the voltage differences of the phase in the sub-window is determined according to the difference between the sampling moments corresponding to the voltage differences of the phase in the sub-window and the current moment, and the weight of the voltage difference of the phase in the sub-window is determined based on the weight corresponding to the sub-window and the ratio of the voltage difference of the phase in the sub-window.
[0022] In a possible implementation, the filtering value of each phase at the current moment is determined according to the following formula:
[0023]
[0024] Among them, ΔUx is the filtered value of phase x at the current moment, x is a, b, c, N is the preset sliding window length, ΔUxi represents the i-th voltage difference of phase x in the current sliding window, and δi is the weight corresponding to the i-th voltage difference ΔUxi.
[0025] In a possible implementation, judging whether power shaking occurs in the target AC system at the current moment based on the filter value of each phase at the current moment includes:
[0026] It is detected whether the filtering value of each phase at the current moment is within the preset voltage fluctuation range. If the filtering value of a certain phase at the current moment is not within the preset voltage fluctuation range, it is determined that the target AC system has a power shake at the current moment.
[0027] A second aspect of an embodiment of the present invention provides an AC system power swing detection device, comprising:
[0028] A data acquisition module, used for acquiring voltage data of a target AC system in real time, and determining voltage difference data corresponding to the target AC system according to the voltage data and the theoretical voltage data after phase-locking the voltage data and the preset theoretical voltage data;
[0029] A sliding window data acquisition module, used to extract each voltage difference value of each phase under the current sliding window from the voltage difference value data based on a preset sliding window, and determine the weight corresponding to each voltage difference value of each phase under the current sliding window according to the current moment and the sampling moment corresponding to each voltage difference value of each phase under the current sliding window;
[0030] A sliding window filtering module is used to filter the voltage difference of each phase under the current sliding window based on the weights corresponding to each voltage difference of each phase under the current sliding window, so as to obtain the filtering value of each phase at the current moment;
[0031] The power shaking detection module is used to determine whether the target AC system has a power shaking at the current moment based on the filtering value of each phase at the current moment.
[0032] According to a third aspect of an embodiment of the present invention, a terminal device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned AC system power swing detection method when executing the computer program.
[0033] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned AC system power swing detection method are implemented.
[0034] The AC system power swing detection method, device and terminal device provided by the embodiments of the present invention have the following beneficial effects:
[0035] Different from the solution in the prior art that transforms the voltage into the DQ coordinate system for electric shock detection, the present invention directly determines the voltage of each phase based on the voltage difference data of each phase, which can effectively prevent the voltage of one phase from being masked by the voltages of the other two phases, thereby improving the accuracy of electric shock detection in the AC system. On this basis, the present invention determines the voltage difference data by a phase-locked manner, which can effectively offset the influence of phase delay on the detection accuracy. The present invention also filters the voltage data by a sliding window, thereby effectively avoiding voltage distortion or voltage being pulled down by the load and causing false detection, thereby further improving the accuracy of electric shock detection in the present invention, thereby solving the problem of false detection caused by changes in AC voltage in conventional single-phase detection schemes. In addition, when performing filtering, the present invention also takes into account the current moment and the sampling moment of each voltage data, that is, takes into account the influence of sampling delay on detection accuracy, and once again achieves a further improvement in the accuracy of electric shock detection in the AC system. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1A schematic diagram of a flow chart of a method for detecting power swing in an AC system provided by an embodiment of the present invention;
[0038] Figure 2 A structural block diagram of an AC system power swing detection device provided by an embodiment of the present invention;
[0039] Figure 3 A schematic block diagram of a terminal device provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0040] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0041] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0042] Please refer to Figure 1 , Figure 1 A flow chart of a method for detecting power swing in an AC system provided by an embodiment of the present invention, the method comprising:
[0043] S101: acquiring voltage data of a target AC system in real time, and determining voltage difference data corresponding to the target AC system according to the voltage data and the theoretical voltage data after phase-locking the voltage data and the preset theoretical voltage data.
[0044] In this embodiment, the voltage data and the preset theoretical voltage data can be phase modulated, that is, the phase consistency of the voltage data and the theoretical voltage data can be achieved through a phase-locked operation, and then the difference between the theoretical voltage data and the voltage data after phase locking is used as the voltage difference data of the target AC system to offset the influence of phase delay on the detection accuracy.
[0045] S102: extracting each voltage difference value of each phase in the current sliding window from the voltage difference data based on a preset sliding window, and determining the weight corresponding to each voltage difference value of each phase in the current sliding window according to the current moment and the sampling moment corresponding to each voltage difference value of each phase in the current sliding window.
[0046] In this embodiment, the voltage difference values of each phase under the current sliding window are extracted from the voltage difference data based on the preset sliding window, including:
[0047] The latest N voltage difference values of each phase are extracted from the voltage difference data as the voltage difference values of each phase under the current sliding window, where N is the preset sliding window length, N is an integer, and the sliding window length is determined according to the current moment.
[0048] Among them, the difference between the current time and the peak time (that is, the center time of the peak period) is positively correlated with the sliding window length, that is, the closer the current time is to the peak period, the shorter the sliding window length is, and the farther the current time is from the peak period, the longer the sliding window length is. This method can effectively ensure the real-time detection of power fluctuations during peak periods.
[0049] The latest N voltage difference values refer to voltage difference values obtained based on the latest N voltage data sampled and theoretical voltage data.
[0050] In this embodiment, the weights corresponding to the voltage differences of each phase under the current sliding window can be determined according to the time period to which the current moment belongs and the difference between the current moment and the sampling moment, so as to improve the accuracy and timeliness of power shaking detection.
[0051] S103: filtering the voltage difference of each phase in the current sliding window based on the weight corresponding to each voltage difference of each phase in the current sliding window to obtain the filtered value of each phase at the current moment.
[0052] In a possible implementation, the filtering value of each phase at the current moment is determined according to the following formula:
[0053]
[0054] Among them, ΔUx is the filtered value of phase x at the current moment, x is a, b, c, N is the preset sliding window length, ΔUxi represents the i-th voltage difference of phase x in the current sliding window, and δi is the weight corresponding to the i-th voltage difference ΔUxi.
[0055] S104: Determine whether a power shake occurs in the target AC system at the current moment based on the filter value of each phase at the current moment.
[0056] In a possible implementation of this embodiment, judging whether a power shake occurs in the target AC system at the current moment based on the filter value of each phase at the current moment includes:
[0057] Detect whether the filter value of each phase at the current moment is within the preset voltage fluctuation range. If the filter value of a phase at the current moment is not within the preset voltage fluctuation range, it is determined that the target AC system has a power shake at the current moment. If the filter values of each phase at the current moment are all within the preset voltage fluctuation range, it is determined that the target AC system has no power shake at the current moment.
[0058] Among them, the AC system described in the present invention can be a single-phase AC system, a two-phase AC system or a three-phase AC system, that is, the AC system power swing detection method provided by the present invention can be applied to a single-phase AC system, a two-phase AC system or a three-phase AC system, and the "each phase" mentioned in steps S102 to S104 refers to the each phase of the single-phase AC system, the two-phase AC system or the three-phase AC system (it should be pointed out that the single-phase AC system has only one phase, and each phase refers to the corresponding phase of the single-phase AC system).
[0059] From the above, it can be concluded that, unlike the solution in the prior art that transforms the voltage into the DQ coordinate system for electric shock detection, the embodiment of the present invention directly determines the voltage of each phase based on the voltage difference of each phase, which can effectively avoid the voltage of a certain phase being masked by the voltages of the other two phases, thereby improving the accuracy of electric shock detection in the AC system. On this basis, the embodiment of the present invention determines the voltage difference by phase locking, which can effectively offset the influence of phase delay on the detection accuracy. The embodiment of the present invention also filters the voltage difference by sliding window, thereby effectively avoiding voltage distortion or voltage being pulled down by the load. Misdetection caused by the load, thereby further improving the accuracy of electric shock detection in the embodiment of the present invention, thereby solving the problem of misdetection caused by changes in AC voltage in conventional single-phase detection schemes. In addition, when performing filtering, the embodiment of the present invention also takes into account the current moment and the sampling moment of each voltage difference, that is, takes into account the influence of sampling delay on detection accuracy, and once again achieves a further improvement in the accuracy of electric shock detection in the AC system.
[0060] In a possible implementation, the weight corresponding to each voltage difference value of a phase in the current sliding window is determined according to the current moment and the sampling moment corresponding to each voltage difference value of the phase in the current sliding window, including:
[0061] The sampling time corresponding to each voltage difference of the phase under the current sliding window is recorded as the sampling time corresponding to the current sliding window.
[0062] If the sampling moments corresponding to the current sliding window are all within the valley period, the weights of the voltage differences of the phase under the current sliding window are evenly distributed.
[0063] If the sampling moments corresponding to the current sliding window are all within the peak period, the weights of the voltage differences of the phase under the current sliding window are allocated according to the difference between the sampling moment corresponding to the current sliding window and the current moment.
[0064] If the sampling moments corresponding to the current sliding window include both sampling moments belonging to the peak period and sampling moments belonging to the valley period, the current sliding window is divided into at least two sub-windows according to the time periods to which the sampling moments corresponding to the current sliding window belong, and a corresponding weight is assigned to each sub-window according to the number of voltage differences corresponding to each sub-window, and a weight is assigned to each voltage difference of the phase under each sub-window based on the weight corresponding to each sub-window and the time period to which each sub-window belongs, so as to obtain the weight of each voltage difference of the phase under the current sliding window.
[0065] In this embodiment, the off-peak period refers to a preset off-peak period of electricity consumption, and the peak period refers to a preset peak period of electricity consumption.
[0066] In this embodiment, if the sampling moments corresponding to the current sliding window are all within the valley period, the weight of each voltage difference is set to 1 / sliding window length.
[0067] In this embodiment, if the sampling moments corresponding to the current sliding window are all within the peak period, the weights of the voltage differences of the phase in the current sliding window are allocated according to the difference between the sampling moment and the current moment. The sum of the weights of the voltage differences of the phase in the current sliding window is 1.
[0068] In a possible implementation, the difference between the sampling time corresponding to each voltage difference of the phase under the current sliding window and the current time is recorded as the time difference corresponding to each voltage difference of the phase. The time difference corresponding to each voltage difference of the phase can be set to be negatively correlated with the weight of each voltage difference of the phase. In other words, the larger the time difference corresponding to a certain voltage difference, the smaller the weight of the voltage difference. This setting can effectively ensure the real-time nature of the difference and achieve timely response to power shaking detection.
[0069] In a possible implementation, the weight of each voltage difference value can also be determined based on the affiliation between the time difference corresponding to each voltage difference value of the phase and the preset time difference range. If the time difference corresponding to a certain voltage difference value belongs to the first preset time difference range, the weight of the voltage difference value is set to the first weight. In other words, the weights corresponding to the voltage difference values whose corresponding time differences belong to the same preset time difference range are all equal. On this basis, the average time difference corresponding to the preset time difference range can also be set to be negatively correlated with the weights of each voltage difference value. For example, if the sliding window length is 10, then for a certain phase, the current sliding window contains 10 voltage difference values of the phase. According to the method described in this embodiment, the weights of the first 4 voltage differences can be set to 0.05, the weights of the middle four voltage differences can be set to 0.1, and the weights of the last two voltage differences can be set to 0.2. This solution can simplify the calculation and take into account the real-time performance of the difference.
[0070] In this embodiment, the sampling moments corresponding to the current sliding window cover both the peak period and the valley period, so the voltage difference values in the current sliding window can be processed separately according to the time periods to which they belong, that is, the current sliding window is divided into at least two sub-windows according to the time periods to which the sampling moments corresponding to the current sliding window belong (that is, the windows corresponding to the voltage difference values at the same time period at the sampling moments constitute one sub-window), and corresponding weights are allocated to each sub-window according to the number of voltage differences corresponding to each sub-window (specifically, the more voltage differences corresponding to each sub-window, the greater the weight allocated to each sub-window, that is, the weight corresponding to each sub-window is determined according to the ratio of the voltage difference values corresponding to each sub-window to all the voltage differences corresponding to the current sliding window), and weights are allocated to each voltage difference value of the phase under each sub-window based on the weights corresponding to each sub-window and the time period to which each sub-window belongs.
[0071] In a possible implementation, a weight is assigned to each voltage difference of the phase under a sub-window based on the weight corresponding to the sub-window and the time period to which the sub-window belongs, including:
[0072] If the sampling moments corresponding to the sub-window are all within the valley period, the weights corresponding to the sub-window are evenly distributed according to the number of voltage differences corresponding to the sub-window, and the weights obtained by the even distribution are used as the weights of the voltage differences of the phase under the sub-window.
[0073] In this embodiment, if the sampling moments corresponding to the sub-window are all within the valley period, the weight of each voltage difference of the phase under the sub-window = the weight corresponding to the sub-window / the number of voltage differences corresponding to the sub-window.
[0074] If the sampling moments corresponding to the sub-window are all within the peak period, the ratio of the voltage differences of the phase in the sub-window is determined according to the difference between the sampling moments corresponding to the voltage differences of the phase in the sub-window and the current moment, and the weight of the voltage difference of the phase in the sub-window is determined based on the weight corresponding to the sub-window and the ratio of the voltage difference of the phase in the sub-window.
[0075] In this embodiment, the difference between the sampling time corresponding to each voltage difference of the phase in the sub-window and the current time is greater, and the proportion corresponding to each voltage difference of the phase in the sub-window is larger. On this basis, the weight of each voltage difference of the phase in the sub-window = the weight corresponding to the sub-window * the proportion of each voltage difference of the phase in the sub-window.
[0076] Corresponding to the AC system power swing detection method of the above embodiment, Figure 2 This is a structural block diagram of an AC system power swing detection device provided by an embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown. Figure 2The AC system power fluctuation detection device 20 includes: a data acquisition module 21, a sliding window data acquisition module 22, a sliding window filtering module 23, and a power fluctuation detection module 24.
[0077] Among them, the data acquisition module is used to acquire the voltage data of the target AC system in real time, and determine the voltage difference data corresponding to the target AC system according to the voltage data and the theoretical voltage data after phase-locking the voltage data and the preset theoretical voltage data.
[0078] The sliding window data acquisition module is used to extract the voltage difference values of each phase under the current sliding window from the voltage difference data based on a preset sliding window, and determine the weights corresponding to the voltage difference values of each phase under the current sliding window according to the current moment and the sampling moments corresponding to the voltage difference values of each phase under the current sliding window.
[0079] The sliding window filtering module is used to filter the voltage difference of each phase under the current sliding window based on the weights corresponding to each voltage difference of each phase under the current sliding window, so as to obtain the filtering value of each phase at the current moment.
[0080] The power shaking detection module is used to determine whether a power shaking occurs in the target AC system at the current moment based on the filtering value of each phase at the current moment.
[0081] In a possible implementation, the data acquisition module 21 is specifically used for:
[0082] The latest N voltage difference values of each phase are extracted from the voltage difference data as the voltage difference values of each phase under the current sliding window, where N is the preset sliding window length, which is determined according to the current moment.
[0083] In a possible implementation, for a certain phase voltage difference, the sliding window data acquisition module 22 is specifically used to:
[0084] The sampling time corresponding to each voltage difference of the phase under the current sliding window is recorded as the sampling time corresponding to the current sliding window.
[0085] If the sampling moments corresponding to the current sliding window are all within the valley period, the weights of the voltage differences of the phase under the current sliding window are evenly distributed.
[0086] If the sampling moments corresponding to the current sliding window are all within the peak period, the weights of the voltage differences of the phase under the current sliding window are allocated according to the difference between the sampling moment corresponding to the current sliding window and the current moment.
[0087] If the sampling moments corresponding to the current sliding window include both sampling moments belonging to the peak period and sampling moments belonging to the valley period, the current sliding window is divided into at least two sub-windows according to the time periods to which the sampling moments corresponding to the current sliding window belong, and a corresponding weight is assigned to each sub-window according to the number of voltage differences corresponding to each sub-window, and a weight is assigned to each voltage difference of the phase under each sub-window based on the weight corresponding to each sub-window and the time period to which each sub-window belongs, so as to obtain the weight of each voltage difference of the phase under the current sliding window.
[0088] In a possible implementation, the difference between the sampling time corresponding to each voltage difference value of the phase in the current sliding window and the current time is recorded as the time difference corresponding to each voltage difference value of the phase.
[0089] The time difference corresponding to each voltage difference of the phase is negatively correlated with the weight of each voltage difference of the phase.
[0090] In a possible implementation, for a certain phase voltage difference, the sliding window data acquisition module 22 is specifically used to:
[0091] When the sampling moments corresponding to a sub-window are all within the valley period, the weights corresponding to the sub-window are evenly distributed according to the number of voltage differences corresponding to the sub-window, and the weights obtained by the even distribution are used as the weights of the voltage differences of the phase under the sub-window.
[0092] When the sampling moments corresponding to a sub-window are all within the peak period, the ratio of the voltage differences of the phase under the sub-window is determined according to the difference between the sampling moments corresponding to the voltage differences of the phase under the sub-window and the current moment, and the weight of the voltage difference of the phase under the sub-window is determined based on the weight corresponding to the sub-window and the ratio of the voltage difference of the phase under the sub-window.
[0093] In a possible implementation, the sliding window filtering module 23 determines the filtering value of each phase at the current moment according to the following formula:
[0094]
[0095] Among them, Ux is the filtered value of phase x at the current moment, x is a, b, c, N is the preset sliding window length, Uxi represents the i-th voltage difference of phase x in the current sliding window, and δi is the weight corresponding to the i-th voltage difference Uxi.
[0096] In a possible implementation, the power shaking detection module 24 is specifically used for:
[0097] It is detected whether the filter value of each phase at the current moment is within the preset voltage fluctuation range. If the filter value of a phase at the current moment is not within the preset voltage fluctuation range, it is determined that the target AC system has a power shake at the current moment.
[0098] See also Figure 3 , Figure 3 A schematic block diagram of a terminal device provided by an embodiment of the present invention. Figure 3 The terminal 300 in the embodiment shown may include: one or more processors 301, one or more input devices 302, one or more output devices 303 and one or more memories 304. The processors 301, input devices 302, output devices 303 and memories 304 communicate with each other via a communication bus 305. The memory 304 is used to store computer programs, which include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. The processor 301 is configured to call the program instructions to perform the following operations to perform the functions of the modules / units in the above-mentioned device embodiments, such as Figure 2 The functions of modules 21 to 24 are shown.
[0099] It should be understood that in the embodiment of the present invention, the processor 301 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0100] The input device 302 may include a touch panel, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.
[0101] The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 301. A portion of the memory 304 may also include a non-volatile random access memory. For example, the memory 304 may also store information about the device type.
[0102] In a specific implementation, the processor 301, input device 302, and output device 303 described in the embodiment of the present invention can execute the implementation methods described in the first and second embodiments of the AC system power swing detection method provided in the embodiment of the present invention, and can also execute the implementation methods of the terminal described in the embodiment of the present invention, which will not be repeated here.
[0103] In another embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, wherein the program instructions are executed by a processor to implement all or part of the processes in the above-mentioned embodiment method, and may also be completed by instructing the relevant hardware through the computer program, wherein the computer program may be stored in a computer-readable storage medium, and wherein the computer program may be executed by the processor to implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the contents contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signal and telecommunication signal.
[0104] The computer-readable storage medium may be an internal storage unit of the terminal of any of the foregoing embodiments, such as a hard disk or memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0105] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the terminals and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0107] In the several embodiments provided in the present application, it should be understood that the disclosed terminals and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.
[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0110] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for detecting power swing in an AC system, characterized in that: include: Acquire voltage data of a target AC system in real time, and determine voltage difference data corresponding to the target AC system according to the voltage data and the theoretical voltage data after phase-locking the voltage data and the preset theoretical voltage data; Extracting each voltage difference value of each phase under the current sliding window from the voltage difference value data based on a preset sliding window, and recording the sampling time corresponding to each voltage difference value of the phase under the current sliding window as the sampling time corresponding to the current sliding window; If the sampling moments corresponding to the current sliding window are all within the valley period, the weights of the voltage differences of the phase under the current sliding window are evenly distributed; If the sampling times corresponding to the current sliding window are all within the peak period, the weights of the voltage differences of the phase under the current sliding window are allocated according to the difference between the sampling times corresponding to the current sliding window and the current time; If the sampling moments corresponding to the current sliding window include both sampling moments belonging to the peak period and sampling moments belonging to the valley period, the current sliding window is divided into at least two sub-windows according to the time periods to which the sampling moments corresponding to the current sliding window belong, and corresponding weights are assigned to the sub-windows according to the number of voltage differences corresponding to the sub-windows, and weights are assigned to the voltage differences of the phases under the sub-windows based on the weights corresponding to the sub-windows and the time periods to which the sub-windows belong, so as to obtain the weights of the voltage differences of the phases under the current sliding window; Based on the weights corresponding to the voltage differences of each phase in the current sliding window, the voltage differences of each phase in the current sliding window are filtered to obtain the filtered values of each phase at the current moment; Based on the filter value of each phase at the current moment, it is determined whether the target AC system has a power shake at the current moment.
2. The AC system power swing detection method according to claim 1, characterized in that: The extracting each voltage difference value of each phase under the current sliding window from the voltage difference value data based on a preset sliding window includes: The latest N voltage difference values of each phase are extracted from the voltage difference data as the voltage difference values of each phase under the current sliding window; wherein N is a preset sliding window length, and the sliding window length is determined according to the current moment.
3. The AC system power swing detection method according to claim 1, characterized in that: The difference between the sampling time corresponding to each voltage difference value of the phase under the current sliding window and the current time is recorded as the time difference corresponding to each voltage difference value of the phase; The time difference corresponding to each voltage difference of the phase is negatively correlated with the weight of each voltage difference of the phase.
4. The AC system power swing detection method according to claim 1, characterized in that: Based on the weight corresponding to a sub-window and the time period to which the sub-window belongs, a weight is assigned to each voltage difference of the phase under the sub-window, including: If the sampling moments corresponding to the sub-windows are all within the valley period, the weights corresponding to the sub-windows are evenly distributed according to the number of voltage differences corresponding to the sub-windows, and the weights obtained by the even distribution are used as the weights of the voltage differences of the phase under the sub-windows; If the sampling moments corresponding to the sub-window are all within the peak period, the ratio of the voltage differences of the phase in the sub-window is determined according to the difference between the sampling moments corresponding to the voltage differences of the phase in the sub-window and the current moment, and the weight of the voltage difference of the phase in the sub-window is determined based on the weight corresponding to the sub-window and the ratio of the voltage difference of the phase in the sub-window.
5. The AC system power swing detection method according to any one of claims 1 to 4, characterized in that: Determine the filter value of each phase at the current moment according to the following formula: Among them, ΔUx is the filtered value of phase x at the current moment, x is a, b, c, N is the preset sliding window length, ΔUxi represents the i-th voltage difference of phase x in the current sliding window, and δi is the weight corresponding to the i-th voltage difference ΔUxi.
6. The AC system power swing detection method according to any one of claims 1 to 4, characterized in that: The determining whether the target AC system has power shaking at the current moment based on the filter value of each phase at the current moment includes: It is detected whether the filtering value of each phase at the current moment is within the preset voltage fluctuation range. If the filtering value of a certain phase at the current moment is not within the preset voltage fluctuation range, it is determined that the target AC system has a power shake at the current moment.
7. An AC system power swing detection device, characterized in that: include: A data acquisition module, used for acquiring voltage data of a target AC system in real time, and determining voltage difference data corresponding to the target AC system according to the voltage data and the theoretical voltage data after phase-locking the voltage data and the preset theoretical voltage data; A sliding window data acquisition module, used to extract each voltage difference value of each phase under the current sliding window from the voltage difference value data based on a preset sliding window, and record the sampling time corresponding to each voltage difference value of the phase under the current sliding window as the sampling time corresponding to the current sliding window; If the sampling moments corresponding to the current sliding window are all within the valley period, the weights of the voltage differences of the phase under the current sliding window are evenly distributed; If the sampling times corresponding to the current sliding window are all within the peak period, the weights of the voltage differences of the phase under the current sliding window are allocated according to the difference between the sampling times corresponding to the current sliding window and the current time; If the sampling moments corresponding to the current sliding window include both sampling moments belonging to the peak period and sampling moments belonging to the valley period, the current sliding window is divided into at least two sub-windows according to the time periods to which the sampling moments corresponding to the current sliding window belong, and corresponding weights are assigned to the sub-windows according to the number of voltage differences corresponding to the sub-windows, and weights are assigned to the voltage differences of the phases under the sub-windows based on the weights corresponding to the sub-windows and the time periods to which the sub-windows belong, so as to obtain the weights of the voltage differences of the phases under the current sliding window; A sliding window filtering module is used to filter the voltage difference of each phase under the current sliding window based on the weights corresponding to each voltage difference of each phase under the current sliding window, so as to obtain the filtering value of each phase at the current moment; The power shaking detection module is used to determine whether the target AC system has a power shaking at the current moment based on the filtering value of each phase at the current moment.
8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Power grid abnormal state detecting method based on maximum feature value of sample covariance matrix
CN108196165A
Voltage sag detection device
CN108333419A
Method, device and facility for correcting signal base line drift
CN108634935A
Commercial power outage detection method, electronic equipment, storage medium and energy storage system
CN109164293A
Power failure detection method and device, circuit system and computer storage medium
CN111103554A
