CN110207769B - Coil induction type water meter capable of detecting and correcting data error - Google Patents
Coil induction type water meter capable of detecting and correcting data error Download PDFInfo
- Publication number
- CN110207769B CN110207769B CN201910606720.5A CN201910606720A CN110207769B CN 110207769 B CN110207769 B CN 110207769B CN 201910606720 A CN201910606720 A CN 201910606720A CN 110207769 B CN110207769 B CN 110207769B
- Authority
- CN
- China
- Prior art keywords
- voltage difference
- secondary coil
- water meter
- sub
- sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F1/00—Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
- G01F1/56—Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using electric or magnetic effects
- G01F1/58—Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using electric or magnetic effects by electromagnetic flowmeters
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Fluid Mechanics (AREA)
- General Physics & Mathematics (AREA)
- Measuring Volume Flow (AREA)
Abstract
The invention discloses a coil induction type water meter capable of detecting and correcting data errors. The method for detecting and correcting the data error comprises the following steps: the method comprises the steps of obtaining induction voltage difference data, calculating a voltage difference metering value, generating a segmented voltage difference vector sequence, calculating the distance between the voltage difference vector sequences, judging whether water meter detection data need to be corrected or not and carrying out data replacement. The method and the system solve the technical problem that the existing coil induction type water meter cannot detect data errors and correct data.
Description
Technical Field
The invention belongs to the technical field of water meters, and particularly relates to a coil induction type water meter capable of detecting and correcting data errors.
Background
At present, a reed switch, a Hall element and a Wiegand sensor are mostly adopted for water meter measurement, but because the inherent mechanical property, the service life and the vibration resistance of a dry yellow tube are influenced, the Hall element has too large current and also has the problem of low or high flow rate frequency response; the Wiegand sensor has the defect of large magnetic resistance, is easy to adsorb the impeller to increase the initial flow, and is expensive. Therefore, the existing remote water meter adopts the principle of no coil induction to convert the rotation of a mechanical meter gear or the rotation of a pointer into an electric pulse signal, for example, chinese patent CN201810125788.7 discloses a non-magnetic remote water meter, patent CN100535603C discloses an induction type angular position sensor, wherein a semicircular steel sheet (4a) or a partially metallized disk (4) is arranged on a rotating shaft (a) of a water meter base meter, an external inductance coil and 4 inductance coils (2 pairs of secondary coils) uniformly arranged in the external inductance coil (primary coil) are arranged above (parallel to) the disk of a water meter body glass, and as shown in fig. 1, the water flow is measured by detecting the voltage difference of the paired inductance coils.
In the industrial water and domestic water fields, the induction coil, circuit components and other precision parts are interfered by collision or external environment, the coil induction type water meter can generate data detection errors, the metering precision of the water meter is reduced, even the flow calculation error of the water meter can be caused, and the loss is brought to consumers or water suppliers. There is therefore a need for a coil induction water meter solution that can detect data errors and perform data corrections. Therefore, a coil induction type water meter capable of detecting and correcting data errors is provided.
Disclosure of Invention
The invention aims to solve the technical problem that the existing coil induction type water meter cannot detect data errors and correct data, and provides a coil induction type water meter capable of detecting and correcting the data errors.
The invention adopts a coil induction type water meter described in the background technology, which comprises a body, a non-circular metal sheet which is arranged in a dial plate and coaxially rotates with a pointer in the dial plate, and a metering module which is positioned right above the non-circular metal sheet; the metering module comprises a single chip microcomputer, an inductance coil which is electrically connected with the single chip microcomputer and used for receiving and transmitting pulse signals, and a circuit used for detecting the difference of the induction voltages; the induction coil comprises a primary coil used for pulse signal transmission and a plurality of pairs of secondary coils used for pulse signal reception; and the singlechip calculates the water flow according to the induction voltage difference data of each pair of secondary coils at each sampling moment. The invention adds the program for detecting data error and correcting the error into the single chip microcomputer.
The invention discloses a method for detecting and correcting data errors of a coil induction type water meter, which comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet.
Generating a sequence of segmented voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; dividing each period into a plurality of sub-periods, marking the number of the sub-periods as m, numbering the sub-periods as j according to the time sequence, wherein j is more than or equal to 1 and is less than or equal to m; acquiring the metering value of the induced voltage difference sampled by each secondary coil in each sub-period,the number of the inductive voltage difference metering values in the sub-periods is represented by a variable n, and the inductive voltage difference metering values in the sub-periods are represented by a variable vijkExpressed as, 1. ltoreq. k. ltoreq.n; generating a segmented voltage difference vector sequence a according to the inductive voltage difference metering values of each secondary coil pair in each sub-periodij=(vij1,vij2,…,vijk,…vijn)。
Number of said sub-periodsWherein D is a preset segmentation threshold and satisfies that D is more than or equal to T0(ii) a Number of induced voltage difference metric values within said sub-period
Calculating the distance between the voltage difference vector sequences: obtaining a preset voltage difference vector sequence of each secondary coil pair in one period when the water meter works normally, segmenting the voltage difference vector sequence according to sub-periods to obtain a standard segmented voltage difference vector sequence, and using bijThe expression (for example, a voltage difference vector sequence of each secondary coil pair detected at the time of shipment of the meter is taken and the sequence is regarded as a standard voltage difference vector sequence), and a variable u for the induced voltage difference measurement value in the standard segment voltage difference vector sequenceijkExpressed as, 1. ltoreq. k. ltoreq.n; calculating a segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijBy the variable sijAnd (4) showing.
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance betweenOr
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance between
Judging whether the water meter detection data needs to be corrected and carrying out data replacement: judging the distance sijWhether the distance is larger than a preset distance threshold value S or not, if so, judging that the corresponding secondary coil pair has data abnormity, and judging whether the distance is larger than the distance S of the secondary coil pairijCalculating the deviation of the secondary coil pair by the variable phiiIndicating whether or not there is a deviation value phi of the secondary coil pairiIf the deviation is smaller than the preset deviation threshold value L, the water meter is judged to have a fault at the moment, the detection data cannot be corrected, otherwise, the water meter detection data is judged to have an error at the moment, data correction is needed, and the segmented voltage difference vector sequence a of the secondary coil with the distance larger than S is subjected toijUsing a standard sequence of segmented voltage difference vectors bijCarrying out replacement; if sij<And S, judging that the water meter detection data has no error at the moment, and not needing to correct the data.
The invention relates to a coil induction type water meter, comprising:
a water meter body;
one or more processors;
a readable storage medium; and
one or more programs, wherein the one or more programs are stored in a readable storage medium and configured to be executed by the one or more processors, the programs comprising instructions for performing the above-described methods.
The method of the invention has the advantages that:
(1) compared with the traditional processing mode, the voltage difference data of each secondary coil pair are digitized and statistically processed by calculating the metering value of the induced voltage difference data and generating a voltage difference vector sequence, and the calculation complexity is low.
(2) The distance between the voltage difference vector sequence in different sub-periods and the standard sequence and the deviation value of the distance can be effectively judged whether the water meter has detection errors on the premise of no fault through the secondary coil, and data correction is carried out on the basis.
Drawings
FIG. 1 is a diagram of a prior art coil induction water meter;
FIG. 2 is a graph showing the voltage difference metric of two pairs of secondary windings according to the first embodiment of the present invention;
fig. 3 is a flowchart of a method for detecting and correcting data errors of a coil-type water meter according to an embodiment of the present invention.
Detailed Description
The following describes in detail preferred embodiments of the present invention.
The invention adopts a coil induction type water meter described in the background technology, which comprises a body, a non-circular metal sheet which is arranged in a dial plate and coaxially rotates with a pointer in the dial plate, and a metering module which is positioned right above the non-circular metal sheet; the metering module comprises a single chip microcomputer, an inductance coil which is electrically connected with the single chip microcomputer and used for receiving and transmitting pulse signals, and a circuit used for detecting the difference of the induction voltages; the induction coil comprises a primary coil used for pulse signal transmission and a plurality of pairs of secondary coils used for pulse signal reception; and the singlechip calculates the water flow according to the induction voltage difference data of each pair of secondary coils at each sampling moment. The embodiment of the invention adds a program for detecting data errors and correcting the errors into the single chip microcomputer.
The embodiment discloses a method for detecting and correcting data errors of a coil induction type water meter.
In the first embodiment, the non-circular metal sheet is a semicircular metal sheet, and the 4 secondary coils are divided into two pairs which are connected in series and in opposite phase.
The method for detecting and correcting the data error of the coil induction type water meter comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage differenceviWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet. In this embodiment, the logarithm N of the secondary coil is 2, and the two pairs of secondary coils are numbered 1 and 2, respectively; preset sampling time interval T0Acquiring the induced voltage difference data of each pair of secondary coils at a certain time, v, 0.1 second1V is 7 millivolts2When the preset measurement threshold value V is 5 mv, the induced voltage difference measurement value of the two pairs of secondary coils is 1.
Generating a sequence of segmented voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; dividing each period into a plurality of sub-periods, marking the number of the sub-periods as m, numbering the sub-periods as j according to the time sequence, wherein j is more than or equal to 1 and is less than or equal to m; acquiring the inductive voltage difference metering values sampled by each secondary coil in each sub-period, wherein the number of the inductive voltage difference metering values in the sub-period is represented by a variable n, and the inductive voltage difference metering values in each sub-period is represented by a variable vijkExpressed as, 1. ltoreq. k. ltoreq.n; generating a segmented voltage difference vector sequence a according to the inductive voltage difference metering values of each secondary coil pair in each sub-periodij=(vij1,vij2,…,vijk,…vijn)。
Number of said sub-periodsWherein D is a preset segmentation threshold and satisfies that D is more than or equal to T0(ii) a Number of induced voltage difference metric values within said sub-periodIn this embodiment, the induced voltage difference metric values of each secondary winding pair are counted to obtain two voltage difference metric value display graphs, as shown in fig. 2, and the period is calculated according to the two voltage difference metric value display graphsp is 0.8 second, a preset segmentation threshold value D is 0.2, m is 0.8/0.2 is 4, each period is divided into 4 sub-periods, the sub-periods are numbered as j according to the time sequence, and j is more than or equal to 1 and less than or equal to m; obtaining the inductive voltage difference metering values of each secondary coil in each sub-period, and the quantity of the inductive voltage difference metering values in the sub-period Variable v for measuring induced voltage difference in each sub-periodijkRepresenting that k is more than or equal to 1 and less than or equal to 2, thereby generating a segmented voltage difference vector sequence of each secondary coil pair, a11=(1,0),a12=(1,-1),a13=(-1,0),a14=(1,1),a21=(1,1),a22=(1,1),a23=(-1,-1),a24=(-1,0)。
Calculating the distance between the voltage difference vector sequences: obtaining a preset voltage difference vector sequence of each secondary coil pair in one period when the water meter works normally, segmenting the voltage difference vector sequence according to sub-periods to obtain a standard segmented voltage difference vector sequence, and using bijRepresenting a variable u for a metric of induced differential voltage in a sequence of standard segmented differential voltage vectorsijkExpressed as, 1. ltoreq. k. ltoreq.n; calculating a segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijBy the variable sijAnd (4) showing.
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance betweenOr
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance betweenThe true bookIn the embodiment, the preset voltage difference vector sequence of each secondary coil pair in one period when the water meter works normally is b1=(1,0,-1,-1,-1,0,1,1),b2The standard segment voltage difference vector sequence b is obtained by segmenting the (1,1,1,0, -1, -1, -1,0) according to the sub-period11=(1,0),b12=(-1,-1),b13=(-1,0),b14=(1,1),b21=(1,1),b22=(1,0),b23=(-1,-1),b24(-1, 0); calculating distance
Judging whether the water meter detection data needs to be corrected and carrying out data replacement: judging the distance sijWhether the distance is larger than a preset distance threshold value S or not, if so, judging that the corresponding secondary coil pair has data abnormity, and judging whether the distance is larger than the distance S of the secondary coil pairijCalculating the deviation of the secondary coil pair by the variable phiiIndicating whether or not there is a deviation value phi of the secondary coil pairiIf the deviation is smaller than a preset deviation threshold value L, judging that the water meter has a fault at the moment and the data can not be corrected; otherwise, judging that the water meter detection data has errors at the moment, correcting the data, and carrying out the segmented voltage difference vector sequence a of the secondary coil with the distance greater than SijUsing a standard sequence of segmented voltage difference vectors bijCarrying out replacement; if sij<And S, judging that the water meter detection data has no error at the moment, and not needing to correct the detection data.
Deviation value of each secondary coil pairIn the present embodiment, the preset distance threshold S is 0.2, where S is12=2>S,s22=1>S, judging that data abnormality exists in the two pairs of secondary coils, and determining the distance S between the pairs of secondary coils according to the data abnormalityijThe deviation value of the secondary coil pair is calculated, the preset deviation threshold L is 0.1, Φ1>L,Φ2>L, judging that the detection data of the water meter has errors at the moment, correcting the detection data, and comparing s12And s22The voltage difference vector sequence a corresponding to the two pairs of secondary coils12And a22Using the standard voltage difference vector sequence b respectively12And b22Make a substitution, i.e. a12=b12=(-1,-1),a22=b22=(1,0)。
A flowchart of a method for detecting and correcting data errors of a coil induction water meter according to the present embodiment is shown in fig. 3.
The second embodiment is a method for detecting and correcting data errors of a coil induction type water meter.
In the second embodiment, the non-circular metal sheet is a semicircular metal sheet, and the 4 secondary coils are divided into two pairs which are connected in series and in opposite phase.
The method for detecting and correcting the data error of the coil induction type water meter comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, then the inductionThe measured value of the voltage difference is 1 if viWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet. In this embodiment, the logarithm N of the secondary coil is 2, and the two pairs of secondary coils are numbered 1 and 2, respectively; preset sampling time interval T0Acquiring the induced voltage difference data of each pair of secondary coils at a certain time, v, 0.1 second1V is 7 millivolts2When the preset measurement threshold value V is 5 mv, the induced voltage difference measurement value of the two pairs of secondary coils is 1.
Generating a sequence of segmented voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; dividing each period into a plurality of sub-periods, marking the number of the sub-periods as m, numbering the sub-periods as j according to the time sequence, wherein j is more than or equal to 1 and is less than or equal to m; acquiring the inductive voltage difference metering values sampled by each secondary coil in each sub-period, wherein the number of the inductive voltage difference metering values in the sub-period is represented by a variable n, and the inductive voltage difference metering values in each sub-period is represented by a variable vijkExpressed as, 1. ltoreq. k. ltoreq.n; generating a segmented voltage difference vector sequence a according to the inductive voltage difference metering values of each secondary coil pair in each sub-periodij=(vij1,vij2,…,vijk,…vijn)。
Number of said sub-periodsWherein D is a preset segmentation threshold and satisfies that D is more than or equal to T0(ii) a Number of induced voltage difference metric values within said sub-periodIn this embodiment, the induced voltage difference metric values of each secondary winding pair are counted to obtain two voltage difference metric value display graphs, as shown in fig. 2, and the calculation period p is 0.8 seconds, the preset segment threshold value D is 0.2, the m is 0.8/0.2 and 4, and each period is divided into 4 segmentsThe sub-periods are numbered as j according to the time sequence, and j is more than or equal to 1 and less than or equal to m; obtaining the inductive voltage difference metering values of each secondary coil in each sub-period, and the quantity of the inductive voltage difference metering values in the sub-period Variable v for measuring induced voltage difference in each sub-periodijkRepresenting that k is more than or equal to 1 and less than or equal to 2, thereby generating a segmented voltage difference vector sequence of each secondary coil pair, a11=(1,0),a12=(1,-1),a13=(-1,0),a14=(1,1),a21=(1,1),a22=(1,1),a23=(-1,-1),a24=(-1,0)。
Calculating the distance between the voltage difference vector sequences: obtaining a preset voltage difference vector sequence of each secondary coil pair in one period when the water meter works normally, segmenting the voltage difference vector sequence according to sub-periods to obtain a standard segmented voltage difference vector sequence, and using bijRepresenting a variable u for a metric of induced differential voltage in a sequence of standard segmented differential voltage vectorsijkExpressed as, 1. ltoreq. k. ltoreq.n; calculating a segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijBy the variable sijAnd (4) showing.
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance betweenOr
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance betweenIn this embodiment, the preset voltage difference of each secondary coil pair in one period when the water meter works normallyThe vector sequences are respectively b1=(1,0,-1,-1,-1,0,1,1),b2The standard segment voltage difference vector sequence b is obtained by segmenting the (1,1,1,0, -1, -1, -1,0) according to the sub-period11=(1,0),b12=(-1,-1),b13=(-1,0),b14=(1,1),b21=(1,1),b22=(1,0),b23=(-1,-1),b24(-1, 0); calculating the distance s11=|a11-b11|=|1-1|+|0-0|=0,s12=|a12-b12|=|1+1|+|-1+1|=2,s13=|a13-b13|=|-1+1|+|0-0|=0,s14=|a14-b14|=|1-1|+|1-1|=0,s21=|a21-b21|=|1-1|+|0-0|=0,s22=|a22-b22|=|1-1|+|1-0|=1,s23=|a23-b23|=|-1+1|+|-1+1|=0,s24=|a24-b24|=|-1+1|+|0-0|=0。
Judging whether the water meter detection data needs to be corrected and carrying out data replacement: judging the distance sijWhether the distance is larger than a preset distance threshold value S or not, if so, judging that the corresponding secondary coil pair has data abnormity, and judging whether the distance is larger than the distance S of the secondary coil pairijCalculating the deviation of the secondary coil pair by the variable phiiIndicating whether or not there is a deviation value phi of the secondary coil pairiIf the deviation is smaller than a preset deviation threshold value L, judging that the water meter has a fault at the moment and the data can not be corrected; otherwise, judging that the water meter detection data has errors at the moment, correcting the data, and carrying out the segmented voltage difference vector sequence a of the secondary coil with the distance greater than SijUsing a standard sequence of segmented voltage difference vectors bijCarrying out replacement; if sij<And S, judging that the water meter detection data has no error at the moment, and not needing to correct the detection data.
Deviation value of each secondary coil pairIn the present embodiment, the preset distance threshold S is 0.2, where S is12=2>S,s22=1>S, judging that data abnormality exists in the two pairs of secondary coils, and determining the distance S between the pairs of secondary coils according to the data abnormalityijThe deviation value of the secondary coil pair is calculated, the preset deviation threshold L is 0.1, Φ1>L,Φ2>L, judging that the detection data of the water meter has errors at the moment, correcting the detection data, and comparing s12And s22The voltage difference vector sequence a corresponding to the two pairs of secondary coils12And a22Using the standard voltage difference vector sequence b respectively12And b22Make a substitution, i.e. a12=b12=(-1,-1),a22=b22=(1,0)。
The third embodiment is a method for detecting and correcting data errors of a coil induction type water meter.
In the third embodiment, the non-circular metal sheet is a semicircular metal sheet, and the 6 secondary coils are divided into three pairs which are connected in series and in reverse phase.
The method for detecting and correcting the data error of the coil induction type water meter comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet. In the present embodiment, the pair of secondary coilsThe number N is 3, numbered 1, 2, 3, respectively; preset sampling time interval T0Acquiring the induced voltage difference data of each pair of secondary coils at a certain time, v, 0.1 second17 millivolts, v210 millivolts, v3When the preset measurement threshold V is 5 mv at 1 mv, the induced voltage difference measurement values of the three pairs of secondary coils are 1, and-1, respectively.
Generating a sequence of segmented voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; dividing each period into a plurality of sub-periods, marking the number of the sub-periods as m, numbering the sub-periods as j according to the time sequence, wherein j is more than or equal to 1 and is less than or equal to m; acquiring the inductive voltage difference metering values sampled by each secondary coil in each sub-period, wherein the number of the inductive voltage difference metering values in the sub-period is represented by a variable n, and the inductive voltage difference metering values in each sub-period is represented by a variable vijkExpressed as, 1. ltoreq. k. ltoreq.n; generating a segmented voltage difference vector sequence a according to the inductive voltage difference metering values of each secondary coil pair in each sub-periodij=(vij1,vij2,…,vijk,…vijn)。
Number of said sub-periodsWherein D is a preset segmentation threshold and satisfies that D is more than or equal to T0(ii) a Number of induced voltage difference metric values within said sub-periodIn this embodiment, the induced voltage difference metering values of each secondary coil pair are counted, and a calculation period p is 0.8 seconds, a preset segmentation threshold value D is 0.2, m is 0.8/0.2 is 4, each period is divided into 4 sub-periods, the sub-periods are numbered as j according to the time sequence, and j is greater than or equal to 1 and less than or equal to m; obtaining the inductive voltage difference metering values of each secondary coil in each sub-period, and the quantity of the inductive voltage difference metering values in the sub-periodThe measurement value of the induced voltage difference in each sub-periodBy variable vijkRepresenting that k is more than or equal to 1 and less than or equal to 2, thereby generating a segmented voltage difference vector sequence of each secondary coil pair, a11=(1,0),a12=(1,-1),a13=(-1,0),a14=(1,1),a21=(1,1),a22=(1,1),a23=(-1,-1),a24=(-1,0),a31=(-1,1),a32=(0,-1),a33=(1,-1),a34=(0,1)。
Calculating the distance between the voltage difference vector sequences: obtaining a preset voltage difference vector sequence of each secondary coil pair in one period when the water meter works normally, segmenting the voltage difference vector sequence according to sub-periods to obtain a standard segmented voltage difference vector sequence, and using bijRepresenting a variable u for a metric of induced differential voltage in a sequence of standard segmented differential voltage vectorsijkExpressed as, 1. ltoreq. k. ltoreq.n; calculating a segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijBy the variable sijAnd (4) showing.
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance betweenOr
The segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijThe distance betweenIn this embodiment, the preset voltage difference vector sequences of each secondary coil pair in one period when the water meter normally works are b1=(1,0,-1,-1,-1,0,1,1),b2=(1,1,1,0,-1,-1,-1,0),b3(-1,1,1, -1,1, -1,0,1), which is segmented according to sub-periods to obtain a standard segment voltage difference vector sequence b11=(1,0),b12=(-1,-1),b13=(-1,0),b14=(1,1),b21=(1,1),b22=(1,0),b23=(-1,-1),b24=(-1,0),b31=(-1,1),b32=(0,-1),b33=(1,-1),b34(0, 1); calculating distance
Judging whether the water meter detection data needs to be corrected and carrying out data replacement: judging the distance sijWhether the distance is larger than a preset distance threshold value S or not, if so, judging that the corresponding secondary coil pair has data abnormity, and judging whether the distance is larger than the distance S of the secondary coil pairijCalculating the deviation of the secondary coil pair by the variable phiiIndicating whether or not there is a deviation value phi of the secondary coil pairiIf the deviation is smaller than a preset deviation threshold value L, judging that the water meter has a fault at the moment and the data can not be corrected; otherwise, judging that the water meter detection data has errors at the moment, correcting the data, and carrying out the segmented voltage difference vector sequence a of the secondary coil with the distance greater than SijUsing a standard sequence of segmented voltage difference vectors bijCarrying out replacement; if sij<And S, judging that the water meter detection data has no error at the moment, and not needing to correct the detection data.
Deviation value of each secondary coil pairIn the present embodiment, the preset distance threshold S is 0.2, where S is12=2>S,s22=1>S, judging that data abnormality exists in the two pairs of secondary coils, and determining the distance S between the pairs of secondary coils according to the data abnormalityijThe deviation value of the secondary coil pair is calculated, the preset deviation threshold L is 0.1, Φ1>L,Φ2>L, judging that the detection data of the water meter has errors at the moment, correcting the detection data, and comparing s12And s22The voltage difference vector sequence a corresponding to the two pairs of secondary coils12And a22Using the standard voltage difference vector sequence b respectively12And b22Make a substitution, i.e. a12=b12=(-1,-1),a22=b22=(1,0)。
The embodiment of the invention provides a coil induction type water meter, which comprises:
a water meter body;
one or more processors;
a readable storage medium; and
one or more programs, wherein the one or more programs are stored in a readable storage medium and configured to be executed by the one or more processors, the programs comprising instructions for performing the method of embodiment one or embodiment two.
Of course, a user of ordinary skill in the art should recognize that the above embodiments are only for illustrating the present invention and are not to be construed as limiting the present invention, and that the changes and modifications of the above embodiments are within the scope of the present invention.
Claims (7)
1. A method for detecting and correcting data errors of a coil induction type water meter is characterized by comprising the following steps:
acquiring magnetic induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, the metering value of the induced voltage difference is-1;
generating a sequence of segmented voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; dividing each period into a plurality of sub-periods, marking the number of the sub-periods as m, numbering the sub-periods as j according to the time sequence, wherein j is more than or equal to 1 and is less than or equal to m; acquiring the inductive voltage difference metering values sampled by each secondary coil in each sub-period, wherein the number of the inductive voltage difference metering values in the sub-period is represented by a variable n, and the inductive voltage difference metering values in each sub-period is represented by a variable vijkExpressed as, 1. ltoreq. k. ltoreq.n; generating a segmented voltage difference vector sequence a according to the inductive voltage difference metering values of each secondary coil pair in each sub-periodij=(vij1,vij2,…,vijk,…vijn);
Calculating the distance between the voltage difference vector sequences: obtaining a preset voltage difference vector sequence of each secondary coil pair in one period when the water meter works normally, segmenting the voltage difference vector sequence according to sub-periods to obtain a standard segmented voltage difference vector sequence, and using bijRepresenting a variable u for a measured value of an induced voltage difference in a sequence of voltage difference vectorsijkExpressed as, 1. ltoreq. k. ltoreq.n; calculating a segmented voltage difference vector sequence a of each secondary coil pairijSequence b of voltage difference vectors with standard segmentsijBy the variable sijRepresents;
judging whether the water meter detection data needs to be corrected and carrying out data replacement: judging the distance sijWhether the distance is larger than a preset distance threshold value S or not, if so, judging that the corresponding secondary coil pair has data abnormity, and judging whether the distance is larger than the preset distance threshold value S or not according to the data abnormityDistance s of secondary coil pairijCalculating the deviation of the secondary coil pair by the variable phiiIndicating the deviation values of said secondary coil pairsJudging whether the deviation value phi of the secondary coil pair exists or notiIf the deviation is smaller than a preset deviation threshold value L, judging that the water meter has a fault at the moment and the data can not be corrected; otherwise, judging that the water meter detection data has errors at the moment, correcting the data, and carrying out the segmented voltage difference vector sequence a of the secondary coil with the distance greater than SijUsing a standard sequence of segmented voltage difference vectors bijAnd (6) replacing.
2. The method of detecting and correcting data errors in a coil-type water meter recited in claim 1, wherein said predetermined sampling interval T is a predetermined sampling interval0Less than the time taken for a half turn of the non-round metal sheet.
7. A coil-type water meter comprising:
a water meter body;
one or more processors;
a readable storage medium; and
one or more programs, wherein the one or more programs are stored in a readable storage medium and configured to be executed by the one or more processors, the programs comprising instructions for performing the methods of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910606720.5A CN110207769B (en) | 2019-07-06 | 2019-07-06 | Coil induction type water meter capable of detecting and correcting data error |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910606720.5A CN110207769B (en) | 2019-07-06 | 2019-07-06 | Coil induction type water meter capable of detecting and correcting data error |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110207769A CN110207769A (en) | 2019-09-06 |
CN110207769B true CN110207769B (en) | 2020-10-02 |
Family
ID=67796416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910606720.5A Active CN110207769B (en) | 2019-07-06 | 2019-07-06 | Coil induction type water meter capable of detecting and correcting data error |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110207769B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113390475B (en) * | 2021-01-29 | 2024-07-09 | 杭州全仁电子科技有限公司 | Multifunctional metering module and rotary metering device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4262542A (en) * | 1979-10-09 | 1981-04-21 | Emerson Electric Co. | Family of magnetic flowmeters |
EP0340766A2 (en) * | 1988-05-04 | 1989-11-08 | Fischer & Porter GmbH | Compensation method for noise voltage from the electrode circuit of a magneto-inductive flow meter and for offset voltage originating from the amplifier |
CN101162163A (en) * | 2007-11-20 | 2008-04-16 | 浙江大学 | Capacitor type electromagnetic flow meter |
CN104359389A (en) * | 2014-11-05 | 2015-02-18 | 北京航空航天大学 | Pulsed eddy current measuring method for measuring relative wall thickness variable of ferromagnetic component |
CN105027414A (en) * | 2013-03-05 | 2015-11-04 | 大金工业株式会社 | Power Converter Controls |
CN105371906A (en) * | 2014-08-29 | 2016-03-02 | 桓达科技股份有限公司 | Electromagnetic flowmeter with frequency conversion type liquid conductivity measuring function |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3995484A (en) * | 1975-08-14 | 1976-12-07 | Sybron Corporation | Electromagnetic flowmeter characterized by zero quadrature signal |
US4170133A (en) * | 1978-05-08 | 1979-10-09 | Gardner William L | Planar helical flowmeter |
US5866823A (en) * | 1997-05-13 | 1999-02-02 | Hersey Measurement Company | Commutating electrode magnetic flowmeter |
JP3854420B2 (en) * | 1999-02-22 | 2006-12-06 | 三菱重工食品包装機械株式会社 | Electromagnetic flow meter |
DE102004046238A1 (en) * | 2004-09-22 | 2006-03-23 | Endress + Hauser Flowtec Ag | Magnetic-inductive flowmeter |
CN102109366A (en) * | 2010-12-13 | 2011-06-29 | 浦瑞斯仪表(上海)有限公司 | Multi-frequency pulse digital width adjustment constant current source for electromagnetic flow meter |
CN102288932B (en) * | 2011-05-10 | 2015-03-04 | 山东电力研究院 | Method for accurately measuring lightning strike fault waveform of power transmission line |
CN105444822A (en) * | 2014-08-29 | 2016-03-30 | 桓达科技股份有限公司 | Electromagnetic flowmeter with the function of measuring the conductivity of amplitude-modulated pipeline liquid |
CH712932A2 (en) * | 2016-09-16 | 2018-03-29 | NM Numerical Modelling GmbH | Method for determining the position of a position sensor of a position measuring system. |
-
2019
- 2019-07-06 CN CN201910606720.5A patent/CN110207769B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4262542A (en) * | 1979-10-09 | 1981-04-21 | Emerson Electric Co. | Family of magnetic flowmeters |
EP0340766A2 (en) * | 1988-05-04 | 1989-11-08 | Fischer & Porter GmbH | Compensation method for noise voltage from the electrode circuit of a magneto-inductive flow meter and for offset voltage originating from the amplifier |
CN101162163A (en) * | 2007-11-20 | 2008-04-16 | 浙江大学 | Capacitor type electromagnetic flow meter |
CN105027414A (en) * | 2013-03-05 | 2015-11-04 | 大金工业株式会社 | Power Converter Controls |
CN105371906A (en) * | 2014-08-29 | 2016-03-02 | 桓达科技股份有限公司 | Electromagnetic flowmeter with frequency conversion type liquid conductivity measuring function |
CN104359389A (en) * | 2014-11-05 | 2015-02-18 | 北京航空航天大学 | Pulsed eddy current measuring method for measuring relative wall thickness variable of ferromagnetic component |
Also Published As
Publication number | Publication date |
---|---|
CN110207769A (en) | 2019-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8872508B2 (en) | Method and apparatus for a half-bridge variable differential transformer position sensing system | |
US20110187355A1 (en) | Method of processing encoder signals | |
CN107782421B (en) | Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things | |
EP3584541B1 (en) | Initialization method and initialization device | |
CN110207769B (en) | Coil induction type water meter capable of detecting and correcting data error | |
DK2024715T3 (en) | METHOD AND DEVICE FOR DETERMINING VOLUME OR MASS FLOW | |
CN110207770B (en) | Coil induction type water meter capable of identifying interference and position | |
CN110332964B (en) | Coil induction type water meter capable of detecting fault | |
CN118548944A (en) | High-precision flow measurement method and device based on Hall element | |
CN212391050U (en) | Magnetic flowmeter with noise adaptive dead time | |
US12169136B2 (en) | Method for operating a magneto-inductive flowmeter, and magneto-inductive flowmeter | |
CN110345998B (en) | Coil induction type water meter capable of detecting countercurrent and method for detecting countercurrent | |
CN114199318A (en) | Gas volume measuring and calculating method, device and storage medium | |
CN209945434U (en) | Induction type non-magnetic remote water meter | |
CN110345999B (en) | Water meter capable of eliminating data jitter caused by water quality | |
JP4488344B2 (en) | Water meter | |
CN110375817B (en) | Coil induction type water meter capable of predicting water flow change | |
CN112204354A (en) | Method for automatically calibrating a camshaft sensor to correct for target runout | |
CN110672175B (en) | High-reliability three-Hall bidirectional metering device and method | |
CN103791973B (en) | Non-core coil induction type meter data collection device | |
CN112577555B (en) | Non-magnetic sampling forward and backward metering intelligent water meter | |
CN112013884B (en) | Method for determining jitter of metering data | |
CN204613287U (en) | The current sampling circuit of hall device under periodically strong variation magnetic field | |
CN109298238A (en) | A kind of frequency measurement method and its measuring system | |
KR101288944B1 (en) | Flow rate measuring algorithm of digital meter using MF sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |