CN114137465B - A method for detecting and correcting double Hall measurement anomalies - Google Patents
A method for detecting and correcting double Hall measurement anomalies Download PDFInfo
- Publication number
- CN114137465B CN114137465B CN202111400659.2A CN202111400659A CN114137465B CN 114137465 B CN114137465 B CN 114137465B CN 202111400659 A CN202111400659 A CN 202111400659A CN 114137465 B CN114137465 B CN 114137465B
- Authority
- CN
- China
- Prior art keywords
- hall sensor
- hall
- pulse
- metering
- abnormal
- 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
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000005259 measurement Methods 0.000 title claims description 12
- 230000002159 abnormal effect Effects 0.000 claims abstract description 64
- 230000005856 abnormality Effects 0.000 claims abstract description 20
- 230000008569 process Effects 0.000 claims abstract description 9
- 238000001208 nuclear magnetic resonance pulse sequence Methods 0.000 claims description 23
- 230000007246 mechanism Effects 0.000 claims description 6
- 230000001502 supplementing effect Effects 0.000 claims description 6
- 239000012530 fluid Substances 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 230000008859 change Effects 0.000 description 6
- 238000012937 correction Methods 0.000 description 6
- 230000002045 lasting effect Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measuring Volume Flow (AREA)
- Details Of Flowmeters (AREA)
Abstract
The invention discloses a method for detecting and correcting double Hall metering abnormality, which comprises the following steps: acquiring a metering period length T; recording the output time of all pulses of two Hall sensors in the last n metering periods, wherein n is more than or equal to 3; judging whether the Hall sensor is abnormal according to the pulse number, and executing the next step if the Hall sensor is abnormal; and analyzing the output time of all pulses in the recorded n metering periods, judging which Hall sensor is abnormal, and further judging whether the flow value of the meter can be corrected. The method can detect the abnormality of the Hall sensors in the double Hall metering process, and correct the wrong flow value caused by the abnormality under the condition that one of the Hall sensors is abnormal, ensure that the abnormal flow value can still be counted normally, and ensure that the meter can continue to operate normally before the abnormal element is replaced by a worker.
Description
Technical Field
The invention relates to the technical field of Hall metering, in particular to a method for detecting and correcting double-Hall metering abnormality.
Background
The gas meter, the water meter and other meters often use a Hall sensor as a metering element, and gas or flowing water in the meter drives a motion mechanism to do periodic motion. The motion mechanism is generally provided with a magnet, and the magnet can pass through the Hall sensor in each motion period, and the Hall sensor can generate pulse signals in the process of passing through the Hall sensor. The flow rate and the flow velocity of the gas or the flowing water can be obtained by detecting the output pulse and the pulse period of the Hall sensor, wherein each movement period is a metering period, and the flow rate in one metering period is recorded as a unit flow rate.
The so-called double hall metering is generally to place two independent hall sensors on a periodic motion path of a motion mechanism, and a magnet sequentially sweeps over the two hall sensors, so that the two hall sensors sequentially output 1 pulse in one metering period respectively, a pulse sequence (called hall 1 and hall 2 in short in the figure) sequentially output by a first hall sensor and a second hall sensor is formed, and one pulse sequence corresponds to a flow value of 1 unit. The fluid drives the motion mechanism to move for one circle, which is marked as a metering period T, as shown in figure 1.
As in fig. 1, the pulses of the first hall sensor and the second hall sensor alternate in one metering cycle. Let us note that the length between two adjacent pulses of the first hall sensor is T1 and the length between two adjacent pulses of the second hall sensor is T2. When the flow in the pipe is stable and it is considered that there is some fluctuation in the flow, it can be considered that T1 and T2 should be approximately equal, i.e. T1≡T2≡T. In the time of 1 metering period, the pulse of the first Hall sensor and the pulse of the second Hall sensor can appear in sequence, and the pulse of the first Hall sensor and the pulse of the second Hall sensor only appear 1 time, so that a pulse sequence of the first Hall sensor and the pulse sequence of the second Hall sensor are formed.
Because the Hall element has possible manufacturing defects and component parameter errors, and meanwhile, the electric signal interference generated in the working process of the electronic component of the meter, or because the circuit breaks down, the Hall element has a certain probability of abnormality in the working process: when the magnet passes over the hall sensor, the hall sensor may continuously generate a plurality of pulse signals or not generate pulse signals, which may cause meter metering errors.
Disclosure of Invention
The invention provides a method for detecting and correcting double Hall metering abnormality in order to overcome the defects of the technology.
The technical scheme adopted for overcoming the technical problems is as follows:
A detection and correction method for double Hall metering abnormality comprises the following steps:
Acquiring a metering period length T;
Recording the output time of all pulses of two Hall sensors in the last n metering periods, wherein n is more than or equal to 3;
judging whether the Hall sensor is abnormal according to the pulse number, and executing the next step if the Hall sensor is abnormal;
And analyzing the output time of all pulses in the recorded n metering periods, judging which Hall sensor is abnormal, and further judging whether the flow value of the meter can be corrected.
Further, after the length of m consecutive metering periods is stabilized, the metering period length T is obtained, wherein m is equal to or greater than 3.
Further, every time a new metering period T passes, it is determined whether a preset difference value between T and T is exceeded:
if the measured period T exceeds the measured period T, the new measured period T is stabilized, and after T is stabilized for m times, the measured period length T=t is updated;
Otherwise, the flow fluctuation is regarded as sporadic, and the metering period length T is maintained.
Further, aiming at a civil table with smaller flow, setting the preset difference between T and T to be 10%; for commercial tables with larger flow rates, the preset difference between T and T is set to be 20%.
Further, in the process of recording the output moments of all the pulses of the two hall sensors in the last n metering periods, each time one metering period T passes, the pulse output moment of the earliest recorded metering period in the n metering periods is abandoned, and the pulse output moment of the latest experienced metering period is increased.
Further, whether abnormality occurs to the hall sensors is judged according to the pulse number, specifically, whether the pulse numbers output by the two hall sensors in n metering periods are n is judged:
If yes, both Hall sensors are normal;
otherwise, at least one Hall sensor is abnormal.
Further, the output time of all pulses in n recorded metering periods is analyzed, which hall sensor is abnormal is determined, whether the flow value of the meter can be corrected is further determined, and two hall sensors are respectively provided as a first hall sensor and a second hall sensor, and specifically comprising:
If the first Hall sensor outputs n pulses and the number of pulses output by the second Hall sensor is less than n, judging that the second Hall sensor is abnormal;
and acquiring the positions and the quantity of the missing pulses of the second Hall sensor according to the recorded pulse time, and supplementing the flow value, namely correcting the flow value.
Further, the output time of all pulses in n recorded metering periods is analyzed, which hall sensor is abnormal is determined, whether the flow value of the meter can be corrected is further determined, and two hall sensors are respectively provided as a first hall sensor and a second hall sensor, and specifically comprising:
If the first Hall sensor outputs n pulses and the second Hall sensor outputs 0 pulses, judging that the second Hall sensor is abnormal;
continuing to check whether the pulse period of the first hall sensor is stable, two cases are divided:
Firstly, if at least m continuous pulse periods of the first Hall sensor are stable, supplementing the flow value with m units, and then continuously counting according to the pulse periods of the first Hall sensor, wherein the flow value is added with 1 unit every 1 pulse period;
and secondly, if the pulse period of the first Hall sensor is unstable, judging that the first Hall sensor is abnormal or the flow is unstable, and not counting the pulses of the first Hall sensor.
Further, the output time of all pulses in n recorded metering periods is analyzed, which hall sensor is abnormal is determined, whether the flow value of the meter can be corrected is further determined, and two hall sensors are respectively provided as a first hall sensor and a second hall sensor, and specifically comprising:
If the first Hall sensor outputs n pulses and the number of the pulses output by the second Hall sensor is greater than n, judging that the second Hall sensor is abnormal;
Because the redundant pulse of the second Hall sensor and the normal pulse of the first Hall sensor do not form redundant pulse sequences of the first Hall sensor and the second Hall sensor, the flow value of the meter is not additionally increased, and the flow value does not need to be corrected.
Further, the output time of all pulses in n recorded metering periods is analyzed, which hall sensor is abnormal is determined, whether the flow value of the meter can be corrected is further determined, and two hall sensors are respectively provided as a first hall sensor and a second hall sensor, and specifically comprising:
if the pulse numbers output by the first Hall sensor and the second Hall sensor are larger than n, the two conditions are divided into two cases:
The first and the metering periods are unchanged, redundant pulses appear in at least n pulse periods, and the two Hall sensors are judged to be abnormal, and the flow value cannot be corrected because the first Hall sensor and the second Hall sensor are abnormal;
Secondly, the metering period is shortened, and no redundant pulse exists outside each pulse sequence, so that the two Hall sensors are judged to be normal; the reason that the pulse number of the two Hall sensors is larger than n is that the metering period of the two Hall sensors is smaller due to the fact that the flow is larger, and at the moment, the flow value is normal and correction is not needed.
Further, the output time of all pulses in n recorded metering periods is analyzed, which hall sensor is abnormal is determined, whether the flow value of the meter can be corrected is further determined, and two hall sensors are respectively provided as a first hall sensor and a second hall sensor, and specifically comprising:
if the number of pulses output by the first hall sensor and the second hall sensor is smaller than n, two conditions are divided:
The first and the measuring period are unchanged, the two Hall sensors are judged to be abnormal, the positions and the number of the missing pulses of the two Hall sensors are obtained according to the recorded pulse time, and the flow value is added;
and if the second metering period is increased, judging that the two Hall sensors are normal, and if the flow value is normal, correcting is not needed.
The beneficial effects of the invention are as follows:
The method can detect the abnormality of the Hall sensors in the double Hall metering process, and correct the wrong flow value caused by the abnormality under the condition that one of the Hall sensors is abnormal, ensure that the abnormal flow value can still be counted normally, and ensure that the meter can continue to operate normally before the abnormal element is replaced by a worker.
Drawings
Fig. 1 is a schematic diagram of a pulse sequence of normal output of two hall sensors.
Fig. 2 is a flow chart of a method for detecting and correcting double hall metering anomalies according to an embodiment of the invention.
Fig. 3 is a schematic diagram of a pulse sequence output normally by two hall sensors according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a first hall sensor outputting a normal pulse sequence and a second hall sensor missing pulse according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a first hall sensor outputting a normal pulse sequence and a second hall sensor outputting no pulse according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of the first hall sensor according to the embodiment of the invention, in which the pulse period is unstable and the second hall sensor has no pulse output.
Fig. 7 is a schematic diagram of a first hall sensor outputting a normal pulse sequence and a second hall sensor outputting an excessive pulse according to an embodiment of the present invention.
Fig. 8 is a schematic diagram of the first hall sensor and the second hall sensor according to the embodiment of the invention outputting redundant pulses.
Fig. 9 is a schematic diagram showing that the metering periods of the first hall sensor and the second hall sensor are both reduced according to the embodiment of the present invention.
Fig. 10 is a schematic diagram of the first hall sensor and the second hall sensor in the embodiment of the invention, in which pulses are missing.
Fig. 11 is a schematic diagram showing that the metering periods of the first hall sensor and the second hall sensor are both increased in the embodiment of the present invention.
Detailed Description
The invention will now be described in further detail with reference to the drawings and the specific examples, which are given by way of illustration only and are not intended to limit the scope of the invention, in order to facilitate a better understanding of the invention to those skilled in the art.
The embodiment discloses a detection and correction method for double-Hall metering abnormality, as shown in fig. 2, comprising the following steps:
and S1, acquiring the metering cycle length T.
Specifically, in step S1, after the length of m consecutive metering periods is stable, the metering period length T is acquired and recorded again, where m is greater than or equal to 3, the flow is generally stable for 3 consecutive periods (i.e., period tstable), and the flow is considered to be stable, and the former value, the current value and the latter value can be seen through at least 3 periods, so that the trend of change of T can be determined, for example, t1=10s, t2=4s, t3=1s, and the trend of T becoming smaller can be considered, for example, t1=10s, t2=4s, t3=10s, and it can be determined that there is fluctuation or instability in T, and that there is too little fluctuation in two periods, for at least 3 periods, so that the flow is considered to be stable.
In order to ensure that the metering period length T is more accurate, the present embodiment preferably m=5, i.e., the metering period length T is acquired after the continuous 5 metering period lengths stabilize.
As a further preferable scheme of this embodiment, every time a new metering period T passes, it is determined whether a preset difference between T and T is exceeded, that is, it is actually determined whether T has a large change with respect to T:
a. If the preset difference is exceeded, the new measurement period T after waiting for the change is stabilized, and in general, after T is stabilized for 5 consecutive times, that is, the length of 5 consecutive measurement periods is equal to T, the measurement period length t=t is updated. For the occasion of large flow fluctuation, the number of metering cycles of continuous judgment can be increased appropriately, for example, the flow is kept stable for 10 continuous metering cycles, and the flow is considered to be in a stable state.
B. Otherwise, the flow fluctuation is regarded as sporadic flow fluctuation, the metering period length T is maintained, and updating is not carried out.
Further, for civil meters with smaller flow, the flow specification is generally G4 and G4 or less, the maximum flow is 6 m/h, and in this embodiment, the preset difference between T and T is 10%, that is, the difference (larger or smaller) between T and T exceeds 10% by T, so that the change is considered to be larger. For commercial tables with larger flow rates, commercial tables, and tables with flow rates of G6 and above, and G6 specification, the maximum flow rate is 10 m/h, and in this embodiment, the preset difference between T and T is set to be 20%, that is, the difference (larger or smaller) between T and T exceeds 20% by T, so that the change is considered to be larger.
And S2, recording output moments of all pulses of the two Hall sensors in the last n metering periods, wherein n is more than or equal to 3.
After the flow is stabilized in step S1, the pulses of the two hall sensors in the last n metering periods are recorded, and the more pulse periods are recorded, the more data can be compared, the more accurate the change condition of the pulse period can be judged, but more storage and steps are needed, and in this embodiment, n=10 is preferable, namely, the 10 metering periods are taken as an example for the detailed description. In the process of recording the output time of all the pulses of the two Hall sensors in the last 10 metering periods, each time one metering period T passes, the pulse output time of the earliest recorded metering period in the 10 metering periods is abandoned, and the pulse output time of the latest metering period is increased.
And S3, judging whether the Hall sensor is abnormal according to the pulse number, and executing the next step if the Hall sensor is abnormal.
In this embodiment, whether the hall sensors are abnormal is determined according to the pulse number, specifically, whether the pulse numbers output by two hall sensors in 10 measurement periods are 10: normally, 10 pulse sequences will appear in 10 metering periods, and the number of pulses output by the two hall sensors is 10 respectively, as shown in fig. 3; otherwise, at least one Hall sensor is abnormal.
And S4, analyzing the output time of all the pulses in the recorded 10 metering periods, judging which Hall sensor is abnormal, and further judging whether the flow value of the meter can be corrected.
Two hall sensors are respectively a first hall sensor and a second hall sensor, and for convenience of description in the drawings, in fig. 3 to 11, hall 1 represents the first hall sensor, and hall 2 represents the second hall sensor. If the Hall sensors are abnormal, the position relation of the output pulses of the two Hall sensors on the time axis can be obtained according to the recorded pulse output time points in the last 10 metering periods, and accordingly, which Hall sensor is abnormal can be judged. The present embodiment includes the following cases:
(1) The first case is specifically as follows:
If the first Hall sensor outputs 10 pulses and the number of pulses output by the second Hall sensor is less than 10, judging that the second Hall sensor is abnormal; and then according to the recorded pulse time, the position and the number of the missing pulses of the second Hall sensor can be known, and the flow value is added, namely, the flow value is corrected.
As shown in fig. 4, assuming that the second hall sensor loses 2 pulses, according to the pulse time, it can be found that there is no pulse sequence in two metering periods corresponding to the times t5 and t6 of the first hall sensor, so that the flow value is counted 2 units less, and at this time, the flow value can be corrected: that is, the flow rate value is added by 2 units.
If a condition that a certain Hall sensor frequently loses pulse is detected, the Hall sensor is marked as an abnormal element and the metering state is marked as abnormal.
(2) The second case is specifically as follows:
If the first hall sensor outputs 10 pulses and the second hall sensor outputs 0 pulses, that is, if the second hall sensor does not output pulses, as shown in fig. 5, a pulse sequence sequentially output by the first hall sensor and the second hall sensor cannot be formed, the flow value will not increase, it is determined that the second hall sensor is abnormal, and the second hall sensor is marked as an abnormal element, and the metering state is marked as abnormal.
Then, it is continuously checked whether the pulse period of the first hall sensor is stable, and two cases can be further classified:
And firstly, if the first Hall sensor is stable for at least 5 continuous pulse periods, supplementing the flow value by 5 units, and then continuously counting according to the pulse periods of the first Hall sensor, wherein the flow value is added by 1 unit every 1 pulse period.
Second, if the first hall sensor outputs pulses, but the pulse period of the first hall sensor is unstable, as shown in fig. 6, it is determined that abnormality or flow instability occurs in the first hall sensor, and the pulses of the first hall sensor are not counted at this time.
(3) The third case is specifically as follows:
If the first hall sensor outputs 10 pulses and the second hall sensor outputs more than 10 pulses, as shown in fig. 7, since there is a pulse sequence sequentially output from the first hall sensor to the second hall sensor, counting is possible, but abnormality occurs in the second hall sensor. After 10 consecutive anomalies, the second hall sensor was noted as an anomaly element and the metering state was noted as anomaly.
Since the first hall sensor normally outputs 10 pulses, the redundant pulses of the second hall sensor and the normal pulses of the first hall sensor do not form redundant pulse sequences of the first hall sensor and the second hall sensor, so that the flow value of the meter is not additionally increased, namely, no multiple counts are generated, and the flow value is not required to be corrected.
(4) The fourth case is specifically as follows:
If the number of pulses output by the first hall sensor and the second hall sensor is greater than 10, two situations are classified:
The first and the measuring periods are unchanged, and redundant pulses appear in at least 10 pulse periods, so that it can be determined that two hall sensors are abnormal, as shown in fig. 8, a pulse sequence sequentially output by the first hall sensor and the second hall sensor exists, so that counting can be performed, but abnormal output of the hall elements is continuously generated, meanwhile, multiple counting possibly occurs, and the two hall sensors need to be recorded as abnormal elements, and the measuring state is recorded as abnormal. In this case, since the first hall sensor and the second hall sensor are abnormal, the flow rate value cannot be corrected.
And secondly, the metering period is shortened, and no redundant pulse exists outside each pulse sequence, so that the two Hall sensors are judged to be normal. The reason why the number of pulses of both hall sensors is greater than 10 is that the flow rate becomes large, resulting in a decrease in the metering cycle of both hall sensors, and at this time, the flow rate value is normal without correction, as shown in fig. 9.
Before the flow becomes large, the metering period t=t1=t2, where T1 and T2 refer to the metering periods of the first hall sensor and the second hall sensor, respectively.
After the flow becomes large, both T1 and T2 become small, T > T1> T2> T3, and after the flow is stabilized, the metering period is stabilized at T3, wherein T1 and T2 are metering periods when the flow becomes large but in an unstable state.
(5) The fifth case is specifically as follows:
If the number of pulses output by the first hall sensor and the second hall sensor is smaller than 10, two situations are classified:
And if the first metering period is unchanged, judging that the two Hall sensors are abnormal and have pulse loss, acquiring the positions and the quantity of the missing pulses of the two Hall sensors according to the recorded pulse time, and supplementing the flow value. As shown in fig. 10 of the present embodiment, the first hall sensor loses the pulse at the time t6 and the time t7, and the second hall sensor loses the pulse at the time t5 and the time t6, resulting in that only 1 pulse sequence is formed during the period from t5 to t7, and the flow rate value is increased by only 1 unit, so that 2 units need to be added.
And the second, the measurement period is increased, and only the flow is reduced, then the two Hall sensors are judged to be normal, and at the moment, the flow value is normal without correction, as shown in fig. 11.
Before the flow becomes smaller, the metering period t=t1=t2, where T1 and T2 refer to the metering periods of the first hall sensor and the second hall sensor, respectively.
When the flow rate becomes smaller, T1 and T2 become larger, T < T1< T2< T3, and after the flow rate becomes stable, the metering period becomes stable at T3, wherein T1 and T2 are metering periods when the flow rate becomes smaller but is still in an unstable state.
In the invention, an intelligent gas meter adopting double Hall metering is taken as an example for illustration, a certain flow rate of gas is supplied to the gas meter, the power supply of the Hall sensor can be manually disconnected in the metering process of the gas meter, so that the Hall sensor cannot output pulses, and the power supply of the Hall sensor can be manually reconnected after the disconnection; meanwhile, a magnet can be manually placed or removed near the Hall sensor to induce the Hall sensor to generate pulses; the meter can judge which Hall sensor is abnormal through the pulse output condition of the two Hall sensors, and meanwhile, the meter reports a metering abnormality alarm to the data center, and corrects the flow value under the abnormal condition.
The anomaly detection and traffic repair process is described in detail below by way of example:
The gas meter is supplied with a certain flow rate of gas, the flow rate is stable, the movement mechanism of the meter moves for more than 50 seconds every 10 seconds, and the meter can obtain a metering cycle value T=10 seconds.
The supply of air is continued for more than 100 seconds, so that the meter can record the output moments of all the pulses of the two hall sensors in the last 10 metering cycles (time span 10×t=100 seconds).
A: continuing to supply air, artificially disconnecting the power supply of the second Hall sensor, so that the second Hall sensor cannot output pulses for 25 seconds, and during the period, the pulse sequence sequentially output by the first Hall sensor and the second Hall sensor cannot be generated, so that the flow value displayed by the meter is not increased any more, and the flow of 2 units can be lost.
B: then, the power supply of the second Hall sensor is manually connected again, and the flow value on the meter can be seen to be continuously increased within 5-10 seconds: the meter automatically increases 1 unit according to a preset program, then increases 2 units, and supplements the lost 2 units in the step a, thereby realizing the correction of abnormal flow.
C: continuing to supply air, artificially disconnecting the power supply of the second Hall sensor, so that the second Hall sensor cannot output pulses for 50 seconds, and during the period, the pulse sequence sequentially output by the first Hall sensor and the second Hall sensor cannot be generated, and the flow value displayed by the meter can be seen not to be increased any more; after 50 seconds, the meter can find that the second hall sensor has no pulse output in 5 continuous pulse periods, the meter can firstly supplement the flow value of 5 units, and then the flow value is continuously increased according to the pulse period of the first hall sensor: the flow value is increased by 1 unit every 1 pulse period. Meanwhile, the meter has the function of informing the data center of metering abnormality information and prompting the occurrence of abnormality of the second Hall sensor.
D: a magnet is artificially placed near the second Hall sensor, the magnet is withdrawn after lasting for 0.5 seconds, the magnet is induced to generate pulses, the magnet is close to the second Hall sensor again after waiting for 10 seconds, the magnet is withdrawn after lasting for 0.5 seconds, and the operation is continuously performed for more than 10 times. The meter can detect that the second Hall sensor continuously generates abnormal pulses, and the meter can report metering abnormal information to the data center to prompt the second Hall sensor to generate abnormality.
E: and artificially placing a magnet near the first Hall sensor and the second Hall sensor respectively, withdrawing after lasting for 0.5 seconds, inducing the magnet to generate pulses, and withdrawing after waiting for 5-10 seconds to approach the magnet to the first Hall sensor and the second Hall sensor again, wherein the magnet is withdrawn after lasting for 0.5 seconds, and continuously operating for more than 10 times. The flow value displayed on the meter can be additionally increased on the basis of normal metering, and meanwhile, the meter can detect that abnormal pulses appear continuously on the first Hall sensor and the second Hall sensor, and the meter can report metering abnormal information to the data center to prompt that the first Hall sensor and the second Hall sensor are abnormal.
F: the power supplies of the first Hall sensor and the second Hall sensor are manually disconnected, and after 20 seconds, the power supplies of the two Hall sensors are connected at the same time. It was found that the meter flow value did not increase within 20 seconds of the power off, and after the power was restored, the meter flow value increased by 1 unit and then increased by 2 more units.
The foregoing has described only the basic principles and preferred embodiments of the present invention, and many variations and modifications will be apparent to those skilled in the art in light of the above description, which variations and modifications are intended to be included within the scope of the present invention.
Claims (3)
1. The method for detecting and correcting the double Hall metering abnormality is characterized by comprising the following steps:
After the length of m continuous metering periods is stable, the length T of the metering periods is obtained, wherein m is more than or equal to 3, and the fluid drives the movement mechanism to move for one circle and is recorded as one metering period T; every time a new metering period T passes, judging whether a preset difference value is exceeded between T and T: if the measured period T exceeds the measured period T, the new measured period T is stabilized, and after T is stabilized for m times, the measured period length T=t is updated; otherwise, the flow fluctuation is regarded as sporadic flow fluctuation, and the metering period length T is maintained;
Recording the output time of all pulses of two Hall sensors in the last n metering periods, wherein n is more than or equal to 3; judging whether the Hall sensor is abnormal according to the pulse number, and executing the next step if the Hall sensor is abnormal; judging whether the Hall sensors are abnormal according to the pulse number, specifically judging whether the pulse numbers output by the two Hall sensors in n metering periods are n: if yes, both Hall sensors are normal; otherwise, at least one Hall sensor is abnormal;
Analyzing the output moments of all pulses in the recorded n metering periods, judging which Hall sensor is abnormal, further judging whether the flow value of the meter can be corrected, and setting two Hall sensors as a first Hall sensor and a second Hall sensor respectively, wherein the method specifically comprises the following steps:
(1) First case:
If the first Hall sensor outputs n pulses and the number of pulses output by the second Hall sensor is less than n, judging that the second Hall sensor is abnormal;
Acquiring the positions and the quantity of the missing pulses of the second Hall sensor according to the recorded pulse time, and supplementing the flow value;
(2) Second case:
If the first Hall sensor outputs n pulses and the second Hall sensor outputs 0 pulses, judging that the second Hall sensor is abnormal;
continuing to check whether the pulse period of the first hall sensor is stable, two cases are divided:
Firstly, if at least m continuous pulse periods of the first Hall sensor are stable, supplementing the flow value with m units, and then continuously counting according to the pulse periods of the first Hall sensor, wherein the flow value is added with 1 unit every 1 pulse period;
secondly, if the pulse period of the first Hall sensor is unstable, judging that the first Hall sensor is abnormal or the flow is unstable, and not counting the pulses of the first Hall sensor;
(3) Third case:
If the first Hall sensor outputs n pulses and the number of the pulses output by the second Hall sensor is greater than n, judging that the second Hall sensor is abnormal;
Because the redundant pulse of the second Hall sensor and the normal pulse of the first Hall sensor do not form redundant pulse sequences of the first Hall sensor and the second Hall sensor, the flow value of the meter is not additionally increased, and the flow value is not required to be corrected;
(4) Fourth case:
if the pulse numbers output by the first Hall sensor and the second Hall sensor are larger than n, the two conditions are divided into two cases:
The first and the metering periods are unchanged, redundant pulses appear in at least n pulse periods, and the two Hall sensors are judged to be abnormal, and the flow value cannot be corrected because the first Hall sensor and the second Hall sensor are abnormal;
secondly, the metering period is shortened, and no redundant pulse exists outside each pulse sequence, so that the two Hall sensors are judged to be normal;
(5) Fifth case:
if the number of pulses output by the first hall sensor and the second hall sensor is smaller than n, two conditions are divided:
The first and the measuring period are unchanged, the two Hall sensors are judged to be abnormal, the positions and the number of the missing pulses of the two Hall sensors are obtained according to the recorded pulse time, and the flow value is added;
and if the second metering period is larger, judging that the two Hall sensors are normal.
2. The method for detecting and correcting double Hall metering anomalies according to claim 1, characterized in that,
Aiming at a civil table with smaller flow, setting the preset difference between T and T as 10%;
For commercial tables with larger flow rates, the preset difference between T and T is set to be 20%.
3. The method for detecting and correcting a double hall measurement abnormality according to claim 1, wherein, in the process of recording output timings of all pulses of two hall sensors in the last n measurement periods, each time a measurement period T passes, the pulse output timing of the earliest recorded one measurement period in the n measurement periods is discarded, and the pulse output timing of the latest measurement period that has passed is increased.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111400659.2A CN114137465B (en) | 2021-11-24 | 2021-11-24 | A method for detecting and correcting double Hall measurement anomalies |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111400659.2A CN114137465B (en) | 2021-11-24 | 2021-11-24 | A method for detecting and correcting double Hall measurement anomalies |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114137465A CN114137465A (en) | 2022-03-04 |
CN114137465B true CN114137465B (en) | 2024-11-26 |
Family
ID=80391401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111400659.2A Active CN114137465B (en) | 2021-11-24 | 2021-11-24 | A method for detecting and correcting double Hall measurement anomalies |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114137465B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117033061A (en) * | 2023-10-07 | 2023-11-10 | 天津渤海物联科技股份有限公司 | Yield data correction method, device, equipment and storage medium |
CN117330109B (en) * | 2023-10-26 | 2024-09-06 | 重庆神缘智能科技有限公司 | Hall counting device, gas abnormal data identification method and related equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
SU1100515A1 (en) * | 1983-04-04 | 1984-06-30 | Государственный Всесоюзный Ордена Трудового Красного Знамени Научно-Исследовательский Технологический Институт Ремонта И Эксплуатации Машинно-Тракторного Парка | Stand for investigating vehicle transmission units |
KR20200118272A (en) * | 2019-04-03 | 2020-10-15 | 콘티넨탈 오토모티브 시스템 주식회사 | Apparatus and method for detecting angle sensor failure of motor for gear actuator |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
SU885941A2 (en) * | 1979-03-19 | 1981-11-30 | Предприятие П/Я М-5988 | Device for measuring alternating magnetic induction |
JPS5773620A (en) * | 1980-10-27 | 1982-05-08 | Diesel Kiki Co Ltd | Method and device for detecting fault |
JPH0820458B2 (en) * | 1989-12-29 | 1996-03-04 | 日産自動車株式会社 | Wheel speed sensor abnormality detection device |
US5112455A (en) * | 1990-07-20 | 1992-05-12 | I Stat Corporation | Method for analytically utilizing microfabricated sensors during wet-up |
DE4445378A1 (en) * | 1994-12-20 | 1996-06-27 | A B Elektronik Gmbh | Method and device for detecting the angular position of a rotating shaft |
JP3839093B2 (en) * | 1996-05-28 | 2006-11-01 | 日本高圧電気株式会社 | Method for locating acicular wave generation point in distribution line |
KR19980054076A (en) * | 1996-12-27 | 1998-09-25 | 박병재 | How to detect crankshaft position sensor failure in a car |
CN1678913A (en) * | 2002-07-04 | 2005-10-05 | 西门子公司 | device for determining the speed of rotation of a rotating machine part |
JP5167237B2 (en) * | 2009-12-24 | 2013-03-21 | トヨタ自動車株式会社 | Rotation sensor abnormality determination device |
CN103217545B (en) * | 2013-03-26 | 2015-07-08 | 南京南瑞继保电气有限公司 | Method for judging fault tolerance and abnormality of rotating speed signal of synchronous motor |
CN103472263A (en) * | 2013-09-03 | 2013-12-25 | 清华大学 | Fault diagnosing method for hall sensor of permanent magnet synchronous motor |
CN203908568U (en) * | 2014-05-28 | 2014-10-29 | 韦瑞峯 | Reading device of mechanical counter wheel and remote metering device |
JP6344307B2 (en) * | 2015-05-20 | 2018-06-20 | 株式会社デンソー | Sensor device and electric power steering device using the same |
CN110006510A (en) * | 2019-03-29 | 2019-07-12 | 浙江威星智能仪表股份有限公司 | A kind of calibration method of electron temperature temperature-pressure compensation film type gas meter |
KR102151720B1 (en) * | 2019-08-30 | 2020-09-04 | 주식회사 세바 | A control apparatus and method using velocity variation |
CN110989565B (en) * | 2019-12-31 | 2023-03-24 | 上汽通用五菱汽车股份有限公司 | Method and system for testing electric tail gate controller and storage medium |
CN112821812A (en) * | 2021-03-19 | 2021-05-18 | 浙江工业大学 | Combined control method and system based on Hall sensor motor |
-
2021
- 2021-11-24 CN CN202111400659.2A patent/CN114137465B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
SU1100515A1 (en) * | 1983-04-04 | 1984-06-30 | Государственный Всесоюзный Ордена Трудового Красного Знамени Научно-Исследовательский Технологический Институт Ремонта И Эксплуатации Машинно-Тракторного Парка | Stand for investigating vehicle transmission units |
KR20200118272A (en) * | 2019-04-03 | 2020-10-15 | 콘티넨탈 오토모티브 시스템 주식회사 | Apparatus and method for detecting angle sensor failure of motor for gear actuator |
Also Published As
Publication number | Publication date |
---|---|
CN114137465A (en) | 2022-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114137465B (en) | A method for detecting and correcting double Hall measurement anomalies | |
CN108139761B (en) | Mass flow control device and differential pressure flowmeter diagnostic method | |
EP2609408B1 (en) | Process fluid temperature measurement | |
US7941290B2 (en) | Method for error containment and diagnosis in a fluid power system | |
JP2010141807A (en) | Electronic control apparatus with analog input signal | |
JP2004150439A (en) | Method for determining failure phenomenon | |
KR20100091901A (en) | Flow controller | |
US7012397B2 (en) | Encoder and control apparatus for motor | |
US11573105B2 (en) | Sensor system using safety mechanism | |
EP3088803A1 (en) | Combustion optimization system and method | |
CN101676559A (en) | Method of alarm mask generation and condition monitoring of wind turbines | |
CN115796610A (en) | Comprehensive monitoring method and system for operation of branch pipe forming system and storage medium | |
JP5361197B2 (en) | Control rod position detector diagnostic apparatus and method | |
JPH0777546A (en) | Current detector for control load and failure diagnostic unit employing it | |
CN111964883A (en) | Method for detecting position of moving part in swing structure | |
US11714434B2 (en) | Gas safety device | |
CN112629710A (en) | Intelligent self-diagnosis method for engine temperature sensor | |
US20200209306A1 (en) | Method and device for detecting an inverted connection of a crankshaft sensor | |
CN116734911A (en) | Sensor state monitoring method and device | |
CN114136616B (en) | Magnetic suspension compressor and bearing detection method and device thereof | |
JP2009199380A (en) | Two-wire field device and field bus system | |
JP5347513B2 (en) | Gas shut-off device | |
US7818146B2 (en) | Method and device for the diagnosis of technical devices disposed within an industrial installation | |
JP7270220B2 (en) | Gas appliance fault diagnosis system | |
JP2002327649A (en) | Failure diagnostic system for electronic control system |
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 |