Electric energy meter electricity stealing type judging method and device, computer equipment and storage medium

文档序号:1168891 发布日期:2020-09-18 浏览:4次 中文

阅读说明:本技术 电能表窃电类型判断方法、装置、计算机设备和存储介质 (Electric energy meter electricity stealing type judging method and device, computer equipment and storage medium ) 是由 杨光 秦艳 王伟亮 张金朋 潘超 顾林晖 曾仁勇 于 2020-06-18 设计创作,主要内容包括:本申请涉及一种电能表窃电类型判断方法、装置、计算机设备和存储介质。所述方法包括:获取输入电能表的至少一个完整周期的电压波形的采样数据;判断所述采样数据中除了零值的其它数据的正负符号是否相同;如果所述采样数据中除了零值的其它数据的正负符号相同,则所述至少一个完整周期的电压波形的采样数据为二极管干扰后的电压波形的采样数据。采用本方法能够判断电能表的窃电干扰类型从而做相应的补偿计量。(The application relates to a method and a device for judging electricity stealing type of an electric energy meter, computer equipment and a storage medium. The method comprises the following steps: acquiring sampling data of a voltage waveform of at least one complete cycle input to the electric energy meter; judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same; and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference. The method can judge the type of the electricity stealing interference of the electric energy meter so as to carry out corresponding compensation metering.)

1. A method for judging the electricity stealing type of an electric energy meter is characterized by comprising the following steps:

acquiring sampling data of a voltage waveform of at least one complete cycle input to the electric energy meter;

judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same;

and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference.

2. The method of claim 1, after determining whether the signs of the data other than zero in the sample data are the same, comprising:

if the signs of the data except the zero value in the sampled data are different, acquiring the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers in the sampled data;

calculating the difference ratio of the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers;

judging whether the difference ratio is larger than a first preset ratio or not;

and if the difference ratio is larger than a first preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the interference of the direct current pulse level.

3. The method of claim 1, after determining whether the signs of the data other than zero in the sample data are the same, comprising:

if the positive and negative signs of other data except for zero values in the sampled data are different, acquiring a peak value in the sampled data;

calculating the difference value of every two adjacent data in the sampling data, and acquiring the largest difference value in the difference values;

calculating the ratio of the maximum difference to the peak value;

and if the ratio is larger than a second preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating current chopping interference.

4. The method of claim 3, after calculating a difference between every two adjacent ones of the sampled data and obtaining a largest difference of the differences, comprising:

judging whether the sign of the previous adjacent data or the next adjacent data of the sampling data corresponding to the maximum difference value is opposite to that of the previous adjacent data or the next adjacent data;

and if the sign of the previous adjacent data or the next adjacent data of the sampling data corresponding to the maximum difference value is not opposite to that of the sampling data, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating-current chopping interference.

5. The method of claim 3, wherein after obtaining a peak in the sampled data if the signs of data other than zero in the sampled data are not the same, comprising:

acquiring sampling data which is closest to a zero point in the sampling data;

calculating the ratio of the difference value of the previous adjacent data and the next adjacent data of the sampling data closest to the zero point to the peak value;

and if the ratio of the difference value of the previous adjacent data and the next adjacent data of the sampling data closest to the zero point to the peak value is smaller than a third preset proportion, the sampling data of the voltage waveform of the at least one complete period is the sampling data of the voltage waveform after the alternating-current chopping interference.

6. The method according to claim 2, characterized in that said first preset proportion is 30%.

7. The method according to claim 3, characterized in that said second preset proportion is 20%.

8. An electric energy meter electricity stealing type judging device, characterized by comprising:

the method comprises the following steps that a data acquisition module is adopted and used for acquiring sampling data of voltage waveforms of at least one complete period of an input electric energy meter;

the first judgment module is used for judging whether the positive and negative signs of other data except for zero values in the sampling data are the same;

and the diode interference determining module is used for determining the sampling data of the voltage waveform of the at least one complete period as the sampling data of the voltage waveform after the diode interference if the positive and negative signs of the data except for zero values in the sampling data are the same.

9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The application relates to the technical field of electric power metering equipment, in particular to a method and a device for judging electricity stealing type of an electric energy meter, computer equipment and a storage medium.

Background

In the process of metering the electric quantity by the electric energy meter, some illegal users interfere the electric energy meter, so that the electric energy meter generates a metering error. Three common electricity stealing interferences (alternating current chopping interference, diode interference and direct current pulse level interference) can cause the distortion of the voltage waveform input into the electric energy meter, cause the change of the voltage sampling value of the metering module of the electric energy meter and influence the accuracy of the electric energy metering of the electric energy meter.

However, the conventional electric energy meter cannot detect whether the voltage waveform input to the electric energy meter has been disturbed, which may cause the charging inconsistent with the actual power consumption, and cause a great loss to the power supplier.

Disclosure of Invention

In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for determining an electricity stealing type of an electric energy meter, which can determine an interference type of the electric energy meter.

A method for judging the electricity stealing type of an electric energy meter comprises the following steps:

acquiring sampling data of a voltage waveform of at least one complete cycle input to the electric energy meter;

judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same;

and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference.

In one embodiment, after determining whether the signs of the data other than zero in the sample data are the same, the method includes: if the signs of the data except the zero value in the sampled data are different, acquiring the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers in the sampled data; calculating the difference ratio of the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers; judging whether the difference ratio is larger than a first preset ratio or not; and if the difference ratio is larger than a first preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the interference of the direct current pulse level.

In one embodiment, after determining whether the signs of the data other than zero in the sample data are the same, the method includes: if the positive and negative signs of other data except for zero values in the sampled data are different, acquiring a peak value in the sampled data; calculating the difference value of every two adjacent data in the sampling data, and acquiring the largest difference value in the difference values; calculating the ratio of the maximum difference to the peak value; and if the ratio is larger than a second preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating current chopping interference.

In one embodiment, after calculating the difference between every two adjacent data in the sampled data and obtaining the largest difference in the differences, the method includes: judging whether the sign of the previous adjacent data or the next adjacent data of the sampling data corresponding to the maximum difference value is opposite to that of the previous adjacent data or the next adjacent data; and if the sign of the previous adjacent data or the next adjacent data of the sampling data corresponding to the maximum difference value is not opposite to that of the sampling data, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating-current chopping interference.

In one embodiment, after obtaining a peak in the sampled data if the signs of the data other than zero in the sampled data are not the same, the method includes: acquiring sampling data which is closest to a zero point in the sampling data; calculating the ratio of the difference value of the previous adjacent data and the next adjacent data of the sampling data closest to the zero point to the peak value; and if the ratio of the difference value of the previous adjacent data and the next adjacent data of the sampling data closest to the zero point to the peak value is smaller than a third preset proportion, the sampling data of the voltage waveform of the at least one complete period is the sampling data of the voltage waveform after the alternating-current chopping interference.

In one embodiment, the first predetermined proportion is 30%.

In one embodiment, the second predetermined proportion is 20%.

An electric energy meter electricity stealing type judging device, comprising:

the method comprises the following steps that a data acquisition module is adopted and used for acquiring sampling data of voltage waveforms of at least one complete period of an input electric energy meter;

the first judgment module is used for judging whether the positive and negative signs of other data except for zero values in the sampling data are the same;

and the diode interference determining module is used for determining the sampling data of the voltage waveform of the at least one complete period as the sampling data of the voltage waveform after the diode interference if the positive and negative signs of the data except for zero values in the sampling data are the same.

A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:

acquiring sampling data of a voltage waveform of at least one complete cycle input to the electric energy meter;

judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same;

and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference.

A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:

acquiring sampling data of a voltage waveform of at least one complete cycle input to the electric energy meter;

judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same;

and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference.

According to the electric energy meter electricity stealing type judging method, the electric energy meter electricity stealing type judging device, the computer equipment and the storage medium, the sign is judged by collecting the sampling data of the voltage waveform of at least one complete period input into the electric energy meter, the sampling data is judged to be interfered by the diode when the sign is the same, whether the electric energy meter is interfered by the diode can be quickly judged, therefore, the compensation metering of the diode interference of the electric energy meter is carried out, and the loss of a power supply party is avoided.

Drawings

FIG. 1 is a diagram illustrating an exemplary embodiment of an application environment of a method for determining electricity stealing types of an electric energy meter;

FIG. 2 is a schematic flow chart illustrating a method for determining the type of electricity stealing of an electric energy meter according to an embodiment;

FIG. 3 is a schematic wiring diagram of a diode disturbance in one embodiment;

FIG. 4 is a block diagram showing the structure of an electricity stealing type determining apparatus for an electric energy meter according to an embodiment;

FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The electric energy meter electricity stealing type judging method can be applied to the application environment shown in figure 1. Wherein the electric energy meter 102 communicates with the server 104 through a network. The server 104 acquires sampling data of voltage waveforms of at least one complete cycle input to the electric energy meter 102 from the electric energy meter 102; judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same; and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference. The server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.

In one embodiment, as shown in fig. 2, a method for determining the electricity stealing type of an electric energy meter is provided, which is described by taking the electric energy meter in fig. 1 as an example, and includes the following steps:

and S110, acquiring sampling data of the voltage waveform of at least one complete period input into the electric energy meter.

The electric energy meter is used for measuring electric energy, the electric energy meter collects voltage waveform data in the circuit according to a fixed time interval and records the voltage waveform data as sampling data, and the electric energy meter records the voltage waveform according to the sampling data to calculate the electric energy. The undisturbed voltage waveform is a sine waveform, and sampling data of one period or sampling data of a plurality of periods of the voltage waveform can be acquired in the embodiment.

Specifically, the voltage waveform has a cycle of 360 °, and 64 samples of data are acquired for each cycle of the voltage waveform, each sample being 5.625 ° apart.

For example, an HT502X chip is built in the electric energy meter, an ADC waveform Buffer function with frequency sampling of 128 × 16bit (64 sampling data are collected for each period of voltage waveform, and sampling data of voltage waveforms collected for two periods) built in the HT502X chip is turned on, ADC sampling data of a voltage channel are set and recorded, a data Buffer mechanism is started, data updating is turned on to complete interrupt enabling, and after the interrupt is completed, ADC sampling data is updated, and the ADC sampling data of voltage waveforms obtained for 2 complete periods is transferred and stored by reading an R _ Buffer register (address ACH).

And S120, judging whether the signs of the data except the zero value in the sampling data are the same.

Each sampling data is one value in the voltage waveform, the sampling data which is not interfered is distributed in a sine mode in a coordinate axis with the ordinate being the voltage original value and the abscissa being the frequency, and the sampling data can be larger than zero, can be smaller than zero or equal to zero. And the other data except the zero value in the sampling data is the sampling data with the zero value removed.

And S130, if the signs of the data except the zero value in the sampling data are the same, the sampling data of the voltage waveform of the at least one complete period is the sampling data of the voltage waveform after the diode interference.

The positive and negative signs of other data except zero in the sampled data are the same, which means that all the sampled data are positioned in the same direction of the coordinate axis and accord with the characteristics after the diode interference, so that the sampled data can be judged to be the sampled data of the voltage waveform after the diode interference.

According to the electric energy meter electricity stealing type judging method, the positive and negative signs are judged by collecting the sampling data of the voltage waveform of at least one complete period input into the electric energy meter, the sampling data is judged to be interfered by the diode when the positive and negative signs are the same, whether the electric energy meter is interfered by the diode can be quickly judged, therefore, compensation metering of diode interference of the electric energy meter is carried out, and the loss of a power supply party is avoided.

In one embodiment, after step S130, the method includes: and when the data except the zero value in the sampling data are all smaller than zero, judging that the sampling data are the sampling data when the diode is reversely connected to the position of the zero line input end of the electric energy meter. As shown in fig. 3, 1S is an electric energy meter live wire input interface, 2S is an electric energy meter zero wire input interface, 2L is a zero wire output interface, and 1L is a live wire output interface, and as shown in fig. 3A, the diode is reversely connected to the electric energy meter zero wire input end, and at this time, the data except for the zero value in the corresponding sampling data are all smaller than zero.

In one embodiment, after step S130, the method includes: and when the data except the zero value in the sampling data is larger than zero, judging that the sampling data is the sampling data when the diode is connected to the position of the zero line input end of the electric energy meter. As shown in fig. 3, 1S is a live wire input interface of the electric energy meter, 2S is a zero wire input interface of the electric energy meter, 2L is a zero wire output interface, 1L is a live wire output interface, and as shown in fig. 3B, the diode is connected to a zero wire input end of the electric energy meter, and at this time, data except for a zero value in the corresponding sampling data are all larger than zero.

In one embodiment, after step S120, the method includes: if the signs of the data except the zero value in the sampled data are different, acquiring the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers in the sampled data; calculating the difference ratio of the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers; judging whether the difference ratio is larger than a first preset ratio or not; and if the difference ratio is larger than a first preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the interference of the direct current pulse level.

The sampling data has positive numbers and negative numbers, the position of the wave crest of the voltage waveform is generally the maximum value of the positive numbers, the absolute value of the maximum value of the positive numbers in the sampling data is equal to the maximum value of the positive numbers in the sampling data, and the position of the wave trough of the voltage waveform is generally the minimum value of the negative numbers. The difference value ratio is (greater value-smaller value)/greater value, wherein the greater value is the greater value of the absolute value of the maximum value of the positive numbers in the sampled data and the absolute value of the minimum value of the negative numbers in the sampled data, and the smaller value is the smaller value of the absolute value of the maximum value of the positive numbers in the sampled data and the absolute value of the minimum value of the negative numbers in the sampled data. Wherein, the first predetermined proportion may be 30%.

For example, the maximum value of the positive numbers in the sampled data is 420, the absolute value is 420 after the absolute value is taken, the minimum value of the negative numbers in the sampled data is-20, the absolute value is 20 after the absolute value is taken, the difference ratio is (420-20)/420 ≈ 95%, the difference ratio is greater than a first preset ratio of 30%, and the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the dc pulse level interference.

In this embodiment, whether the difference ratio is greater than a first preset ratio is determined by calculating the difference ratio, and after the difference ratio is greater than the first preset ratio and the sampling data is determined to be sampling data after dc pulse level interference, the compensation measurement of the dc pulse level interference is performed on the electric energy meter, so that the loss of a power supplier is avoided.

In one embodiment, after determining whether the signs of the data other than zero in the sample data are the same, the method includes: if the positive and negative signs of other data except for zero values in the sampled data are different, acquiring a peak value in the sampled data; calculating the difference value of every two adjacent data in the sampling data, and acquiring the largest difference value in the difference values; calculating the ratio of the maximum difference to the peak value; and if the ratio is larger than a second preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating current chopping interference.

Wherein the peak value in the sample data is the maximum value in the sample data, and the difference value between every two adjacent sample data in the sample data is the absolute value of the difference value between every two adjacent sample data, for example, the adjacent two sample data a1 and a2, and the difference value between the adjacent two sample data is | a1-a2 |. Because there are a plurality of sampling data, the difference value of every two adjacent data obtained by calculation is also a plurality of, and the difference value is a non-negative number. Wherein the second preset proportion is determined according to the sampling frequency, and the second preset proportion may be 20%, for example, one period voltage waveform is 360 °, each period voltage waveform is 64 sampling data, each sampling data is 5.625 ° (360 °/64 °), sin (5.625 °) 0.09802 is obtained by substituting the sine function, that is, the percentage of the maximum difference between two adjacent buffered data to the peak value is 9.802%, combining the result of the actual device test, and leaving a decision margin space of 50%, and the second preset proportion is 20%.

In one embodiment, after calculating the difference between every two adjacent data in the sampled data and obtaining the largest difference in the differences, the method includes: judging whether the sign of the previous adjacent data or the next adjacent data of the sampling data corresponding to the maximum difference value is opposite to that of the previous adjacent data or the next adjacent data; and if the sign of the previous adjacent data or the next adjacent data of the sampling data corresponding to the maximum difference value is not opposite to that of the sampling data, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating-current chopping interference.

The maximum difference value corresponds to a pair of adjacent acquired data, and is recorded as M1 and M2, M1 and M2 are behind M1 and M2 according to the time sequence, whether the former adjacent data of M1 is opposite to the M1 in sign or whether the latter adjacent value data of M2 is opposite to the M2 in sign is judged, if the former adjacent data of M1 is opposite to the M1 in sign or the latter adjacent value data of M2 is opposite to the M2 in sign, the M1 or M2 is near the zero point, and if neither M1 nor M2 is near the zero point, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the ac chopping interference.

In this embodiment, by determining whether the difference between adjacent data of the collected data near the zero point is the maximum difference, and when it is determined that the collected data corresponding to the maximum difference is not near the zero point, it is determined that the sampled data is the sampled data after the ac chopping interference, the electric energy meter is subjected to the supplementary measurement of the ac chopping interference, and the loss of the power supplier is avoided.

In one embodiment, after obtaining a peak in the sampled data if the signs of the data other than zero in the sampled data are not the same, the method includes: acquiring sampling data which is closest to a zero point in the sampling data; calculating the ratio of the difference value of the previous adjacent data and the next adjacent data of the sampling data closest to the zero point to the peak value; and if the ratio of the difference value of the previous adjacent data and the next adjacent data of the sampling data closest to the zero point to the peak value is smaller than a third preset proportion, the sampling data of the voltage waveform of the at least one complete period is the sampling data of the voltage waveform after the alternating-current chopping interference.

The sampling data closest to the zero point is the sampling data near the zero point, and the sign of the previous sampling data or the next sampling data of the sampling data is opposite to that of the previous sampling data or the next sampling data. For example, the near-zero-crossing point sample data is M0, the previous adjacent data of M0 is V1, the next adjacent data of M0 is V2, the difference between the previous adjacent data V1 and the next adjacent value data V2 of the sample data M0 closest to the zero point is V1-V2, the peak value is H, the ratio of the difference between the previous adjacent data and the next adjacent value data of the sample data closest to the zero point to the peak value is (V1-V2)/H, the third preset ratio may be 5%, and if (V1-V2)/H is less than 5%, the sample data of the voltage waveform of the at least one complete cycle is the sample data of the voltage waveform after the ac chopping interference.

For example, the voltage waveform of one period is 360 °, 64 sampling data are provided for each period, each sampling data is separated by 5.625 ° (360 °/64), sin (5.625 °) 0.09802 is obtained by substituting the sine function, namely, the maximum difference of two adjacent buffered data accounts for 9.802% of the peak value, and the third preset proportion is set to be 5% in combination with the result of the actual device test and the decision margin space of 50% is reserved.

It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.

In one embodiment, as shown in fig. 4, there is provided an electric energy meter electricity stealing type determination device, including: a data acquisition module 210, a first determination module 220, and a diode interference determination module 230 are employed, wherein:

the data acquisition module 210 is adapted to acquire sampled data of at least one complete cycle of the voltage waveform input to the power meter.

The first determining module 220 is configured to determine whether signs of data other than zero in the sampled data are the same.

A diode interference determining module 230, configured to determine the sampled data of the voltage waveform of the at least one complete cycle as the sampled data of the voltage waveform after the diode interference if the signs of the data other than the zero value in the sampled data are the same.

In one embodiment, the electric energy meter electricity stealing type determining device further includes: the absolute value acquisition module is used for acquiring the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers in the sampled data if the positive and negative signs of other data except for the zero value in the sampled data are different; the difference ratio calculation module is used for calculating the difference ratio of the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers; the second judgment module is used for judging whether the difference ratio is larger than a first preset ratio or not; and the direct current pulse level interference determining module is used for determining the sampling data of the voltage waveform of the at least one complete period as the sampling data of the voltage waveform after the direct current pulse level interference if the difference ratio is greater than a first preset ratio.

In one embodiment, the electric energy meter electricity stealing type determining device further includes: the peak value acquisition module is used for acquiring a peak value in the sampled data if the positive and negative signs of other data except for zero values in the sampled data are different; the difference value calculation module is used for calculating the difference value of every two adjacent data in the sampling data and acquiring the largest difference value in the difference values; a ratio calculation module for calculating a ratio of the maximum difference to the peak value; and the alternating current chopping interference determining module is used for determining the sampling data of the voltage waveform of the at least one complete period as the sampling data of the voltage waveform after the alternating current chopping interference if the ratio is larger than a second preset ratio.

In one embodiment, the electric energy meter electricity stealing type determining device further includes: a third judging module, configured to judge whether a previous adjacent data or a subsequent adjacent data of the sampling data corresponding to the maximum difference value is opposite to a sign of the previous adjacent data or the subsequent adjacent data; the alternating current chopping interference determining module is further configured to determine that the sampling data of the voltage waveform of the at least one complete cycle is sampling data of the voltage waveform after the alternating current chopping interference if the previous adjacent data or the next adjacent data of the sampling data corresponding to the maximum difference value is not opposite in sign to the previous adjacent data or the next adjacent data.

In one embodiment, the electric energy meter electricity stealing type determining device further includes: the zero crossing point acquisition module is used for acquiring the sampling data which is closest to the zero point in the sampling data; the ratio calculation module is further configured to calculate a ratio of a difference value between previous adjacent data and next adjacent data of the sampling data closest to the zero point to the peak value; the alternating current chopping interference determining module is further configured to determine that the sampling data of the voltage waveform of the at least one complete period is sampling data of the voltage waveform after the alternating current chopping interference if a ratio of a difference value between previous adjacent data and next adjacent data of the sampling data closest to the zero point to the peak value is smaller than a third preset proportion.

In one embodiment, the first predetermined proportion is 30%. The second predetermined proportion is 20%. The third predetermined proportion is 5%.

For specific limitations of the electric energy meter electricity stealing type judging device, reference may be made to the above limitations of the electric energy meter electricity stealing type judging method, which will not be described herein again. All or part of each module in the electric energy meter electricity stealing type judging device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store the sampled data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a method for judging the electricity stealing type of the electric energy meter.

Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

acquiring sampling data of a voltage waveform of at least one complete cycle input to the electric energy meter;

judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same;

and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference.

In one embodiment, the processor, when executing the computer program, further performs the steps of: if the signs of the data except the zero value in the sampled data are different, acquiring the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers in the sampled data; calculating the difference ratio of the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers; judging whether the difference ratio is larger than a first preset ratio or not; and if the difference ratio is larger than a first preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the interference of the direct current pulse level.

In one embodiment, the processor, when executing the computer program, further performs the steps of: if the positive and negative signs of other data except for zero values in the sampled data are different, acquiring a peak value in the sampled data; calculating the difference value of every two adjacent data in the sampling data, and acquiring the largest difference value in the difference values; calculating the ratio of the maximum difference to the peak value; and if the ratio is larger than a second preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating current chopping interference.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

acquiring sampling data of a voltage waveform of at least one complete cycle input to the electric energy meter;

judging whether the positive and negative signs of the data except for the zero value in the sampling data are the same;

and if the signs of the data except the zero value in the sampled data are the same, the sampled data of the voltage waveform of the at least one complete period is the sampled data of the voltage waveform after the diode interference.

In one embodiment, the computer program when executed by the processor further performs the steps of: if the signs of the data except the zero value in the sampled data are different, acquiring the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers in the sampled data; calculating the difference ratio of the absolute value of the maximum value in the positive numbers and the absolute value of the minimum value in the negative numbers; judging whether the difference ratio is larger than a first preset ratio or not; and if the difference ratio is larger than a first preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the interference of the direct current pulse level.

In one embodiment, the computer program when executed by the processor further performs the steps of:

if the positive and negative signs of other data except for zero values in the sampled data are different, acquiring a peak value in the sampled data; calculating the difference value of every two adjacent data in the sampling data, and acquiring the largest difference value in the difference values; calculating the ratio of the maximum difference to the peak value; and if the ratio is larger than a second preset ratio, the sampling data of the voltage waveform of at least one complete period is the sampling data of the voltage waveform after the alternating current chopping interference.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种二次设备不停电接入母线电压辅助装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类