CN107782421B - Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things - Google Patents

Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things Download PDF

Info

Publication number
CN107782421B
CN107782421B CN201710947142.2A CN201710947142A CN107782421B CN 107782421 B CN107782421 B CN 107782421B CN 201710947142 A CN201710947142 A CN 201710947142A CN 107782421 B CN107782421 B CN 107782421B
Authority
CN
China
Prior art keywords
value
oscillation sensor
calibrated
reference voltage
water meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710947142.2A
Other languages
Chinese (zh)
Other versions
CN107782421A (en
Inventor
祝向辉
张军虎
陈强
周鹭鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanchuan Wisdom Technology Co Ltd
Original Assignee
Sanchuan Wisdom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanchuan Wisdom Technology Co Ltd filed Critical Sanchuan Wisdom Technology Co Ltd
Priority to CN201710947142.2A priority Critical patent/CN107782421B/en
Publication of CN107782421A publication Critical patent/CN107782421A/en
Application granted granted Critical
Publication of CN107782421B publication Critical patent/CN107782421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F25/00Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume

Landscapes

  • Physics & Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention provides a method for calibrating a metering threshold value based on a nonmagnetic NB-IoT (NB-IoT) Internet of things water meter, which comprises the following steps: s1, acquiring a reference value of a metering threshold value through a preset reference LC oscillation sensor for detecting environmental change; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter; s2, comparing the reference value with the reference value detected by the reference LC oscillation sensor at the previous time, and calibrating the metering threshold of the LC oscillation sensor to be calibrated according to the comparison result; wherein the reference value comprises a reference highest value and/or a reference lowest value. According to the invention, the reference LC oscillation sensor is used for detecting the environment change condition, so that the self-adaptive calibration of the metering threshold value of the LC oscillation sensor according to the environment change is realized, the metering precision of the water meter under different environments is ensured, and the failure rate of the water meter in operation is reduced.

Description

Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things
Technical Field
The invention relates to the technical field of metering, in particular to a method for calibrating a metering threshold value of a water meter based on a nonmagnetic NB-IoT (NB-IoT) internet of things.
Background
The water resource crisis leads to the increasing importance of the whole society on water, so that the detection of water resource management information is important. The flow measurement is an important part in scientific measurement, and the water flow measurement is the most important component in the flow measurement, and plays an important role in production and life of residents.
In the prior art, the traditional water meter metering mode mainly adopts Hall, reed pipes and other magnetic sensors to detect the flow, so that a permanent magnet is required to be arranged on an impeller. Because the water supply pipeline is rusted and the water quality is poor, the magnet on the impeller can easily adsorb iron chips, iron rust and the like in water and form accumulation, thereby hindering the rotation of the impeller and increasing the abrasion, and seriously or even not rotating, and greatly influencing the service life of the water meter. Meanwhile, the magnetic force of the magnet is weakened due to the change of the environment temperature after long-time work, so that the sampling reliability is influenced.
In the non-magnetic metering mode in the prior art, the basic principle of the non-magnetic metering is as follows: converting fluid flow into rotational motion and converting sensed flow into sensed revolutions. Fig. 1 is a schematic view of a nonmagnetic metering principle provided by the prior art, and as shown in fig. 1, a disk moving with water flow is installed on a machine surface to divide the surface of the disk into two parts; the half is covered with damping metal such as copper sheet; the other half is an insulating material. Placing the inductors in the two resonant circuits above the impeller; when fluid flows through, the inductor alternates between the metal and non-metal regions. The damping factor of an oscillating LC circuit depends mainly on the relative position of the inductance and the metallic material. The damping factor of the inductor above the metal area is larger than that of the nonmetal area; the larger the damping factor is, the faster the LC oscillation is damped; by measuring different damping coefficients of the resonant tank, a measurement of the rotation can be achieved.
The working principle of the SCAN IF module is as follows: and the SCAN IF module converts the oscillation waveform generated by the inductor into a digital signal and then transmits the digital signal to the MCU. The SCAN IF module consists of 3 parts: an Analog Front End (AFE), a signal Processing State Machine (PSM), and a Timing State Machine (TSM). FIG. 2 is a schematic diagram of an oscillating waveform generated by an LC circuit provided in the prior art, as shown in FIG. 2, first, an analog front end provides an excitation to the LC circuit; delaying for a certain time t delayAnd then starting AD sampling to collect level signals. The comparator compares whether the acquired voltage exceeds the set reference voltage or not; if at a period of time t gateIf the collected voltage does not exceed the reference voltage, the corresponding zone bit is cleared; otherwise, setting is carried out.
The digital signal generated after the comparison is transmitted to a signal processing state machine. The state machine will derive the current turntable position and the number and direction of rotations (two or more LCs are required) from the last state previously stored and the state newly entered this time. The timing state machine can automatically control the analog front end and the excitation circuitry of the sensor and its signal processor when there is no CPU interrupt.
Therefore, the prior art has at least the following technical drawbacks: when the water meter runs on site for a long time, the external running environment changes, such as temperature and humidity, components are aged after the water meter runs for a long time, and the water meter is generally powered by a battery, so that the voltage of the battery is reduced after the water meter runs for a long time; the connection between the signal acquisition device and the dial plate may become loose, so that the distance between the LC sensor and the rotating disc changes, and the like. The above environmental changes all cause the oscillation waveform generated by the LC sensor to change, the metering threshold of the water meter changes, and the reference voltage is inaccurate, thereby affecting the metering precision of the water meter.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a calibration method for a metering threshold value based on a nonmagnetic NB-IoT (NB-IoT) Internet of things water meter.
The invention provides a calibration method of a metering threshold of a nonmagnetic water meter on the one hand, and S1, a reference value of the metering threshold is obtained through a preset reference LC oscillation sensor for detecting environmental change; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter; s2, comparing the reference value with the reference value detected by the reference LC oscillation sensor at the previous time, and calibrating the metering threshold of the LC oscillation sensor to be calibrated according to the comparison result; wherein the reference value comprises a reference highest value and/or a reference lowest value.
Wherein the step S1 further includes: s11, acquiring a plurality of detection values detected by the reference LC oscillation sensor by changing the reference voltage in the SCAN IF module; s12, acquiring an average value of the plurality of detection values as the reference value; wherein the detection value comprises detecting a highest value and/or detecting a lowest value.
The LC oscillation sensor to be calibrated comprises a first LC oscillation sensor to be calibrated and a second LC oscillation sensor to be calibrated, and the first LC oscillation sensor to be calibrated, the second LC oscillation sensor to be calibrated and the reference LC oscillation sensor are sequentially arranged clockwise; correspondingly, when the first LC oscillation sensor to be calibrated enters a non-damping area from a damping area, acquiring a voltage value detected by the reference LC oscillation sensor as the highest detection value; and when the second LC oscillation sensor to be calibrated enters a non-damping area from a damping area, acquiring a voltage value detected by the reference LC oscillation sensor as the lowest detection value.
Wherein the step S2 further includes: acquiring a deviation value between the reference value and the reference value detected last time; acquiring the proportion of the deviation value in the reference value detected at the previous time according to the deviation value; and adjusting the metering threshold value of the LC oscillation sensor to be calibrated according to the proportion.
Wherein the step S11 further includes: s111, taking the previous reference voltage as an initial reference voltage value; s112, obtaining an output result of the comparator after delaying for a period of time; if the output result is 0, reducing the initial reference voltage value by a second offset value, and writing the initial reference voltage value into a register as a first reference voltage value; if the output result is 1, adding a first offset value to the initial reference voltage value, and repeatedly performing step S112 until the comparator output result is 0; s113, obtaining an output result of the comparator after delaying for a period of time; if the output result is 1, adding a second offset value to the first reference voltage value, and writing the first reference voltage value into a register as a second reference voltage value after reducing a third offset value; if the output result is 0, decreasing a second offset value from the first reference voltage value, and repeatedly performing step S113 until the comparator output result is 1; wherein the second offset value is less than the first offset value; s114, obtaining an output result of the comparator after delaying for a period of time; if the output result is 1, taking the second reference voltage value as the current reference voltage value; if the output result is 0, decreasing a third offset value on the second reference voltage value, and repeatedly performing step S114 until the comparator output result is 1; wherein the third offset value is less than the second offset value; and S115, acquiring second reference voltage values in two critical states of which the output result of the comparator is changed from 0 to 1 in the step S114, and taking the average value of the second reference voltage values in the two critical states as the detection value.
Wherein, after the step S115, the method further includes: comparing the detection value with the detection value obtained in the previous time to obtain a detection value difference value; and if the difference value of the detection values is larger than a preset value, discarding the corresponding detection value.
Wherein the step S12 further includes: sequencing the detection values from large to small to obtain a sequencing table; and acquiring the average value of a plurality of detection values positioned in the middle in the sorting table as the reference value.
The invention also provides equipment based on the calibration method of the metering threshold value of the nonmagnetic water meter, which comprises a reference LC oscillation sensor and an LC oscillation sensor to be calibrated; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter; the reference LC oscillation sensor is used for detecting environmental changes.
The invention also relates to a calibrating device for the metering threshold of a nonmagnetic water meter, which comprises the following components: the acquisition module is used for acquiring a reference value of a metering threshold value through a preset reference LC oscillation sensor for detecting environmental change; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter; the calibration module is used for comparing the reference value with a reference value detected by the reference LC oscillation sensor at the previous time and calibrating the metering threshold of the LC oscillation sensor to be calibrated according to the comparison result; wherein the reference value comprises a reference highest value and/or a reference lowest value.
Wherein the obtaining module further comprises: a first acquisition unit configured to acquire a plurality of detection values detected by the reference LC oscillation sensor by changing a reference voltage in the SCAN IF module; a second acquisition unit configured to acquire an average value of the plurality of detection values as the reference value; wherein the detection value comprises detecting a highest value and/or detecting a lowest value.
According to the calibration method for the metering threshold of the water meter based on the nonmagnetic NB-IoT internet of things, provided by the invention, the reference LC oscillation sensor is utilized to detect the environment change condition, so that the metering threshold of the LC oscillation sensor is self-adaptively calibrated according to the environment change, the metering accuracy of the water meter under different environments is ensured, and the failure rate of the water meter in operation is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic view of a nonmagnetic metering principle provided in the prior art;
FIG. 2 is a schematic diagram of an oscillating waveform generated by an LC circuit provided in the prior art;
fig. 3 is a schematic flow chart of a method for calibrating a metering threshold of a nonmagnetic water meter according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a highest detection value of the calibration method for the metering threshold of the nonmagnetic water meter according to the embodiment of the present invention;
FIG. 5 is a schematic diagram of a lowest detection value of a calibration method for a metering threshold of a nonmagnetic water meter according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of a method for calibrating a metering threshold of a nonmagnetic water meter according to an embodiment of the present invention to obtain a voltage value of an LC oscillation sensor;
fig. 7 is a schematic structural diagram of a calibration apparatus for a metering threshold of a nonmagnetic water meter according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 3 is a schematic flow chart of a method for calibrating a metering threshold of a nonmagnetic water meter according to an embodiment of the present invention, as shown in fig. 3, including: s1, acquiring a reference value of a metering threshold value through a preset reference LC oscillation sensor for detecting environmental change; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter; s2, comparing the reference value with the reference value detected by the reference LC oscillation sensor at the previous time, and calibrating the metering threshold of the LC oscillation sensor to be calibrated according to the comparison result; wherein the reference value comprises a reference highest value and/or a reference lowest value.
The reference LC oscillation sensor is used for detecting the environment change condition of the water meter; two LC oscillation sensors are usually arranged on the traditional water meter, and the position and the direction of rotation can be determined through the two LC oscillation sensors; in the embodiment of the invention, a third LC oscillation sensor, namely a reference LC oscillation sensor, is additionally arranged; the channel of the reference LC oscillation sensor is opened when the environment is detected to be changed.
Wherein different LC oscillating sensors typically have different metering thresholds, and the metering thresholds comprise two values, i.e., a highest value and a lowest value; when the detection environment changes, the metering threshold of the LC oscillation sensor may change.
The environmental change comprises a plurality of aspects, such as temperature and humidity change of the environment where the water meter is located, aging of components of the water meter or corresponding devices, reduction of battery voltage and the like; the metrology threshold is affected and thus the metrology accuracy is affected.
In step S1, upon initial installation of the water meter or upon a change in the environment in which the water meter is considered to be in use, the reference LC oscillator sensor may be turned on to detect a reference value for the metering threshold.
Fig. 4 is a schematic diagram of the highest detection value of the calibration method for the metering threshold of the nonmagnetic water meter according to the embodiment of the present invention, as shown in fig. 4, three LC oscillation sensors, namely CH0, CH1 and CH2, should be arranged on the upper surface of the water meter in advance; and the three sensors are uniformly and annularly arranged on the water meter at 120 degrees with each other. Two of the three sensors can be selected as LC oscillation sensors to be calibrated, for example, CH0 and CH 1; in normal water meter metering, only CH0 and CH1 need be turned on as the position and direction of rotation can be determined. And, the CH3 is selected as a reference LC oscillation sensor, and the third channel CH2 is turned on when detecting whether the environment is changed.
Compared with two LC oscillation sensors arranged on a traditional non-magnetic water meter, the third LC oscillation sensor used for detecting environmental changes is arranged, and the metering threshold values of the other two LC oscillation sensors can be calibrated through the change conditions of the detection values of the third LC oscillation sensor.
In step S2, comparing the reference value of the metering threshold acquired in step S1 with the reference value detected by the previous reference LC oscillation sensor; if a large deviation of the two reference values is confirmed, a large change in the environment can be confirmed, and the calibration of the metering threshold of the LC oscillation sensor to be calibrated is required.
It should be noted that the reference value comprises a reference highest value and/or a reference lowest value; when comparing, comparing the reference highest value with the previous reference highest value, and comparing the reference lowest value with the previous reference lowest value; also, only the highest value or the lowest value that differ greatly may be calibrated.
According to the calibration method for the metering threshold of the non-magnetic water meter, provided by the embodiment of the invention, the reference LC oscillation sensor is used for detecting the environment change condition, so that the metering threshold of the LC oscillation sensor is calibrated in a self-adaptive manner according to the environment change, the metering accuracy of the water meter under different environments is ensured, and the failure rate of the water meter in the operation process is reduced.
On the basis of any of the above embodiments, the step S1 further includes: s11, acquiring a plurality of detection values detected by the reference LC oscillation sensor by changing the reference voltage in the SCAN IF module; s12, acquiring an average value of the plurality of detection values as the reference value; wherein the detection value comprises detecting a highest value and/or detecting a lowest value.
Wherein, the SCAN IF peripheral (module) can not directly output the reference LC oscillation sensor at a certain positionOne point (t) gatePoint), will only be t gateOutputting the comparison result of the voltage value of the point and the reference voltage; therefore, it is necessary to adjust the reference voltage to the sum t by changing the value of the reference voltage and then according to the output result of the comparator gateThe voltage value of the point is closest to the point, and then the reference voltage is output, namely the reference voltage at the moment is considered to be the detected CH2 at t gateThe voltage value of the spot.
Wherein the detection value is a highest value and/or a lowest value of the detected reference LC oscillation sensor metering threshold.
Specifically, in step S11, by changing the reference voltage set in the SCAN IF module, a plurality of detection values are then acquired; then, an average value of the plurality of detection values is obtained, and the average value is used as a reference value. For example, after 15 detected maximum values are obtained for the detected maximum values, an average value of the 15 detected maximum values is obtained, and the average value is a reference maximum value.
Due to the instability of detection, the reference value is more accurate by obtaining a plurality of detection values and calculating the average value as the reference value, and the calibration precision is improved.
On the basis of any one of the above embodiments, the LC oscillation sensor to be calibrated includes a first LC oscillation sensor to be calibrated and a second LC oscillation sensor to be calibrated, and the first LC oscillation sensor to be calibrated, the second LC oscillation sensor to be calibrated, and the reference LC oscillation sensor are sequentially arranged clockwise; correspondingly, when the first LC oscillation sensor to be calibrated enters a non-damping area from a damping area, acquiring a voltage value detected by the reference LC oscillation sensor as the highest detection value; and when the second LC oscillation sensor to be calibrated enters a non-damping area from a damping area, acquiring a voltage value detected by the reference LC oscillation sensor as the lowest detection value.
In the embodiment of the invention, the turntable rotates once to have two metering points, and when the state of CH0 is changed from 00 to 01(0 is that the sensor is in a damping area, and 1 is that the sensor is in a non-damping area), the metering point with the highest value is detected for CH 2; when the state of CH1 changes from 00 to 01, the lowest value metric point is detected for CH 2.
Fig. 4 is a schematic diagram of the highest detection value of the calibration method for the metering threshold of the nonmagnetic water meter according to the embodiment of the present invention, as shown in fig. 4, when the LC oscillation attenuation of the CH2 channel is the minimum, i.e. t detected by the MCU (micro control unit) at the position is considered to be gateThe voltage AD value of the point is the highest value of detection of the metering threshold.
Fig. 5 is a schematic diagram of the calibration method for the metering threshold of the nonmagnetic water meter according to the embodiment of the present invention, as shown in fig. 5, when the LC oscillation of the CH2 channel is damped most, i.e. t detected by the MCU at the position is considered to be t gateThe voltage AD value at the point is the lowest value for detection of the measurement threshold.
Thus, ideally, one highest detected value and one lowest detected value are acquired for each revolution of the turntable.
On the basis of any of the above embodiments, the step S2 further includes: acquiring a deviation value between the reference value and the reference value detected last time; acquiring the proportion of the deviation value in the reference value detected at the previous time according to the deviation value; and adjusting the metering threshold value of the LC oscillation sensor to be calibrated according to the proportion.
The following description will be given taking the reference value as the reference maximum value; if the current reference maximum value is 821 and the previous detected reference maximum value is 815, the deviation value is 6; the deviation value accounts for about 0.73% of the reference value 815 detected at the previous time, i.e., the reference value is relatively increased by 0.73%; and the highest value of the metering threshold of the LC oscillation sensor to be calibrated currently is 845, the highest value of the adjusted metering threshold is 845 (1+ 0.73%) -851.
And calibrating the metering threshold of the LC oscillation sensor to be calibrated according to the change proportion of the reference LC oscillation sensor, wherein the obtained calibration result can effectively adapt to environmental change.
On the basis of any of the above embodiments, the step S11 further includes: s111, taking the previous reference voltage as an initial reference voltage value; s112, obtaining an output result of the comparator after delaying for a period of time; if the output result is 0, reducing the initial reference voltage value by a second offset value, and writing the initial reference voltage value into a register as a first reference voltage value; if the output result is 1, adding a first offset value to the initial reference voltage value, and repeatedly performing step S112 until the comparator output result is 0; s113, obtaining an output result of the comparator after delaying for a period of time; if the output result is 1, adding a second offset value to the first reference voltage value, and writing the first reference voltage value into a register as a second reference voltage value after reducing a third offset value; if the output result is 0, decreasing a second offset value from the first reference voltage value, and repeatedly performing step S113 until the comparator output result is 1; wherein the second offset value is less than the first offset value; s114, obtaining an output result of the comparator after delaying for a period of time; if the output result is 1, taking the second reference voltage value as the current reference voltage value; if the output result is 0, decreasing a third offset value on the second reference voltage value, and repeatedly performing step S114 until the comparator output result is 1; wherein the third offset value is less than the second offset value; and S115, acquiring second reference voltage values in two critical states of which the output result of the comparator is changed from 0 to 1 in the step S114, and taking the average value of the second reference voltage values in the two critical states as the detection value.
Wherein, the comparator compares two or more data items to determine whether they are equal or determine the magnitude relation and the arrangement order between them is called as comparison; the comparator is a circuit for comparing an analog voltage signal with a reference voltage, the two paths of inputs of the comparator are analog signals, the output of the comparator is a binary signal 0 or 1, and when the difference value of the input voltage is increased or decreased and the positive sign and the negative sign are not changed, the output of the comparator is kept constant.
Fig. 6 is a schematic flow chart of the method for calibrating the metering threshold of the nonmagnetic water meter according to the embodiment of the present invention, where as shown in fig. 6, in step S111, an initial reference voltage is written into the register, for example, the last detection value is used as the initial reference voltage value.
In step S112, delaying for a period of time, if the comparator output is 0, indicating that the reference voltage value is greater than the detection value, subtracting a second offset value (for example, 20) from the initial reference voltage at that time, writing the result into a register, and proceeding to the next step S113; if the output of the comparator is 1, the reference voltage value needs to be increased, a certain offset value (a first offset value, for example, 30) can be added, then, the time is delayed for a period of time, and the comparator judges again; the first offset value (e.g., 30) is incremented each time until the comparator output is 1, at which time the first reference voltage value is greater than the detection value.
In step S112, the output of the comparator is 0 at the initial value. Since the algorithm is stepped from high to low during subsequent adjustments, if the initial value is too low, resulting in the comparator outputting 1 for the first time, an erroneous value will be detected.
In addition, because the wheel is running all the time, the relative positions of the LC sensor and the damping region of the CH2 channel are changing all the time; and the faster the wheel disc rotates, the faster the position changes, so that the detected voltage high and low values are necessarily deviated; to reduce this deviation, the time of detection must be compressed to be short; therefore, in step S112, the initial reference voltage is obtained by adding a certain amount of upward offset to the previous reference voltage, and the detection process can be effectively shortened.
In step S113, according to the first reference voltage value obtained in step S112, coarse adjustment is performed on the voltage value; specifically, delaying for a period of time, if the comparator output is 1, indicating that the first reference voltage value is smaller than the detection value, increasing the first reference voltage value by a second offset value (for example, 20), and decreasing the third offset value (for example, 2), then writing the first reference voltage value into the register, and proceeding to the next step S114; if the output of the comparator is 0, the first reference voltage value needs to be reduced, a certain offset value (a second offset value, for example, 20) can be reduced, then, the time is delayed for a period of time, and the comparator judges again; the second offset value (e.g., 20) is decreased each time until the comparator output is 1, at which time the first reference voltage value is less than the detection value.
In step S114, the voltage value is finely adjusted according to the second reference voltage value obtained in step S113; specifically, delaying for a period of time, if the output of the comparator is 1, indicating that the second reference voltage value is smaller than the detection value, outputting the second reference voltage value as the current reference voltage value, and entering the next step S115; if the output of the comparator is 0, the second reference voltage value needs to be reduced, a certain offset value (a third offset value, for example, 2) can be reduced, then, the time is delayed for a period of time, and the comparator judges again; this third offset value (e.g., 2) is reduced each time until the comparator output is 1, at which time the second reference voltage value is less than the detection value.
In step S115, according to the adjustment process of step S114, the process of changing the output result of the comparator from 0 to 1 corresponds to two second reference voltage values, that is, the output result of the comparator corresponding to one voltage value is 0, and the output result of the comparator corresponding to the other voltage value is 1; and the two voltage values only differ by a third offset value; averaging the two critical voltage values to obtain t of the waveform generated by the CH2 channel gateThe voltage detection value of the point.
By changing the reference voltage value, the detection value of the reference LC oscillation sensor can be effectively acquired.
On the basis of any of the above embodiments, the step S115 further includes: comparing the detection value with the detection value obtained in the previous time to obtain a detection value difference value; and if the difference value of the detection values is larger than a preset value, discarding the corresponding detection value.
Specifically, the detected value (the highest detected value and/or the lowest detected value) acquired each time is compared with the reference value detected last time (if the detected value is the first detection reference, the detected value is compared with the factory value); if the difference value is within a certain range, the corresponding detection value is considered to be effective, otherwise, the detection value is discarded; thus, the error value is removed, and the detection precision is improved.
On the basis of any of the above embodiments, the step S12 further includes: sequencing the detection values from large to small to obtain a sequencing table; and acquiring the average value of a plurality of detection values positioned in the middle in the sorting table as the reference value.
Specifically, for example, 15 detection maximum values are acquired; sorting the 15 highest values in a descending order; removing the 3 highest values with the largest value and the 3 highest values with the smallest value in the sorting table; and calculating the average value of the remaining 9 highest values as the reference highest value.
To illustrate the method provided by the above embodiments of the present invention, the following experiment is exemplified, and the experimental procedures are as follows:
1, recovering 3 non-magnetic water meters from a factory and placing the non-magnetic water meters in a normal-temperature environment;
step 2, the non-magnetic water meter is powered by a direct current power supply, and the voltage is adjusted to 3.6V of the normal voltage;
step 3, sending a calibration command to the water meter, and recording calibration values of CH0 and CH1 after the calibration of the water meter is completed;
step 4, starting a detection function of detecting CH2, and recording a default reference value after detection is finished, namely after calibration, a first detection value (H represents a highest value, and L represents a lowest value) of a CH2 channel;
TABLE 1 reference values for changes in the external environment
Figure BDA0001431965650000131
Step 5, adjusting the voltage to 3.0V (in this experiment, the voltage is lowered as an example, and the external environment is changed);
step 6, starting a detection function of detecting CH2, recording a detection value after detection is finished, and recording the metering threshold values of CH0 and CH1 after adjustment if the detection value is adjusted;
and 7, sending a calibration command to the water meter, and recording the adjusted calibration value (3.0V) after the water meter is calibrated.
Table 1 shows reference values when the external environment is changed according to an embodiment of the present invention; based on the above table 1, after the voltage of the water meter is reduced from 3.6V to 3.0V, the comparison value of CH2 is obviously changed compared with the comparison value of CH2 under the condition of 3.6V by detecting the detection value of CH 2; therefore, the calibration algorithm provided by the embodiment of the invention calculates that the metering thresholds of CH0 and CH1 under the current condition should be adjusted to the adjusted metering thresholds of CH0 and CH1 shown in Table 1.
To verify whether the calibrated metrology threshold is close to the actual metrology threshold, another calibration is performed at 3.0V to obtain the actual metrology thresholds for CH0 and CH1 at 3.0V, i.e., the calibration values in table 1.
As can be seen by comparison, the adjusted metering threshold is very close to the adjusted calibration value; the actual metering threshold values under the two power supply conditions of 3.6V and 3.0V, namely the calibration value and the adjusted calibration value in the table 1 are obviously changed; if the calibration value under 3.6V is continuously used after the voltage is reduced to 3.0V, the metering accuracy cannot be ensured, and the metering threshold value after being adjusted is closer to the actual metering threshold value, which shows that the automatic adjustment algorithm can be suitable for the condition that the metering threshold value is changed due to the voltage reduction.
The embodiment of the invention also provides equipment for calibrating the metering threshold of the nonmagnetic water meter based on the method, which comprises a reference LC oscillation sensor and an LC oscillation sensor to be calibrated; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter; the reference LC oscillation sensor is used for detecting environmental changes.
Fig. 7 is a schematic structural diagram of a calibration apparatus for a metering threshold of a nonmagnetic water meter according to an embodiment of the present invention, as shown in fig. 7, including: an obtaining module 701, configured to obtain a reference value of a metering threshold through a preset reference LC oscillation sensor for detecting an environmental change; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter; a calibration module 702, configured to compare the reference value with a reference value detected by the reference LC oscillation sensor at the previous time, and calibrate a metering threshold of the LC oscillation sensor to be calibrated according to a comparison result; wherein the reference value comprises a reference highest value and/or a reference lowest value.
Specifically, the obtaining module 701 may turn on the reference LC oscillation sensor to detect the reference value of the metering threshold when the water meter is initially installed or when the environment of the water meter is considered to be changed during the use.
Specifically, according to the reference value of the metering threshold acquired in the acquisition module 701, the calibration module 702 compares the reference value with the reference value detected by the previous reference LC oscillation sensor; if the calibration module 702 confirms that the two reference values have a large deviation, it can be confirmed that the environment has changed greatly, and the metering threshold of the LC oscillation sensor to be calibrated needs to be calibrated.
According to the calibrating device for the metering threshold of the non-magnetic water meter, provided by the embodiment of the invention, the reference LC oscillation sensor is used for detecting the environment change condition, so that the metering threshold of the LC oscillation sensor is calibrated in a self-adaptive manner according to the environment change, the metering accuracy of the water meter under different environments is ensured, and the failure rate of the water meter in the operation process is reduced.
On the basis of any of the above embodiments, the obtaining module 701 further includes: a first acquisition unit configured to acquire a plurality of detection values detected by the reference LC oscillation sensor by changing a reference voltage in the SCAN IF module; a second acquisition unit configured to acquire an average value of the plurality of detection values as the reference value; wherein the detection value comprises detecting a highest value and/or detecting a lowest value.
On the basis of any one of the above embodiments, the LC oscillation sensor to be calibrated includes a first LC oscillation sensor to be calibrated and a second LC oscillation sensor to be calibrated, and the first LC oscillation sensor to be calibrated, the second LC oscillation sensor to be calibrated, and the reference LC oscillation sensor are sequentially arranged clockwise; correspondingly, when the first LC oscillation sensor to be calibrated enters a non-damping area from a damping area, the first acquisition unit acquires a voltage value detected by the reference LC oscillation sensor as the highest detection value; when the second LC oscillation sensor to be calibrated enters a non-damping area from a damping area, the first acquisition unit acquires the voltage value detected by the reference LC oscillation sensor as the lowest detection value.
On the basis of any of the above embodiments, the calibration module 702 further includes: a deviation unit for acquiring a deviation value between the reference value and the reference value detected last time; the proportion unit is used for acquiring the proportion of the deviation value in the reference value detected at the previous time according to the deviation value; and the adjusting unit is used for adjusting the metering threshold of the LC oscillation sensor to be calibrated according to the deviation proportion.
On the basis of any one of the above embodiments, the first obtaining unit further includes:
the initialization subunit is used for taking the previous reference voltage as an initial reference voltage value;
the first offset subunit is used for obtaining the output result of the comparator after delaying for a period of time; if the output result is 0, reducing the initial reference voltage value by a second offset value, and writing the initial reference voltage value into a register as a first reference voltage value; if the output result is 1, adding a first offset value to the initial reference voltage value, and repeatedly executing until the output result of the comparator is 0;
the second offset subunit is used for obtaining the output result of the comparator after delaying for a period of time; if the output result is 1, adding a second offset value to the first reference voltage value, and writing the first reference voltage value into a register as a second reference voltage value after reducing a third offset value; if the output result is 0, reducing a second offset value on the first reference voltage value, and repeating the execution until the output result of the comparator is 1; wherein the second offset value is less than the first offset value;
the third offset subunit is used for obtaining the output result of the comparator after delaying for a period of time; if the output result is 1, taking the second reference voltage value as the current reference voltage value; if the output result is 0, reducing a third offset value on the second reference voltage value, and repeating the execution until the output result of the comparator is 1; wherein the third offset value is less than the second offset value;
and the average value subunit is used for acquiring the second reference voltage values in the two critical states of which the output result of the comparator in the third offset subunit is changed from 0 to 1, and taking the average value of the second reference voltage values in the two critical states as the detection value.
On the basis of any of the above embodiments, the first obtaining unit further includes: the screening subunit is used for comparing the detection value with the detection value obtained last time to obtain a detection value difference value; and if the difference value of the detection values is larger than a preset value, discarding the corresponding detection value.
On the basis of any one of the above embodiments, the second obtaining unit further includes: the sorting subunit is used for sorting the detection values from large to small to obtain a sorting table; and the reference value subunit is used for acquiring the average value of a plurality of detection values positioned in the middle in the sorting table as the reference value.
According to the method, the device and the apparatus for calibrating the metering threshold of the non-magnetic water meter, provided by the embodiment of the invention, when the non-magnetic water meter is installed on site, an installer does not need to set the non-magnetic water meter one by one according to the site environment, so that the installation steps are simplified; in addition, the metering threshold value can be automatically adjusted according to the change of the external environment (such as temperature and humidity, component aging, battery voltage reduction and the like) in the long-term operation of the field environment, so that the metering precision is ensured; maintenance personnel are not needed to perform timing manual calibration, and the operation flow is simplified. The failure rate of the product in operation is reduced; and, application scope is extensive, for example can use on NB-IOT does not have magnetism water gauge and loRa does not have magnetism water gauge, and the collection system mould appearance and the carousel speed of these two kinds of tables are different, and two kinds of water gauges through the test of long-term operation, and the measurement data is all good.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A calibration method for a metering threshold of a nonmagnetic water meter is characterized by comprising the following steps:
s1, acquiring a reference value of a metering threshold value through a preset reference LC oscillation sensor for detecting environmental change; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter;
s2, comparing the reference value with the reference value detected by the reference LC oscillation sensor at the previous time, and calibrating the metering threshold of the LC oscillation sensor to be calibrated according to the comparison result;
wherein the reference value comprises a reference highest value and/or a reference lowest value;
wherein the step S2 further includes: acquiring a deviation value between the reference value and the reference value detected last time; acquiring the proportion of the deviation value in the reference value detected at the previous time according to the deviation value; and adjusting the metering threshold value of the LC oscillation sensor to be calibrated according to the proportion.
2. The method according to claim 1, wherein the step S1 further comprises:
s11, acquiring a plurality of detection values detected by the reference LC oscillation sensor by changing the reference voltage in the SCAN IF module;
s12, acquiring an average value of the plurality of detection values as the reference value;
wherein the detection value comprises detecting a highest value and/or detecting a lowest value.
3. The method of claim 2,
the LC oscillation sensor to be calibrated comprises a first LC oscillation sensor to be calibrated and a second LC oscillation sensor to be calibrated, and the first LC oscillation sensor to be calibrated, the second LC oscillation sensor to be calibrated and the reference LC oscillation sensor are sequentially arranged clockwise; accordingly, the number of the first and second electrodes,
when the first LC oscillation sensor to be calibrated enters a non-damping area from a damping area, acquiring a voltage value detected by the reference LC oscillation sensor as the highest detection value;
and when the second LC oscillation sensor to be calibrated enters a non-damping area from a damping area, acquiring a voltage value detected by the reference LC oscillation sensor as the lowest detection value.
4. The method according to claim 1, wherein the step S2 further comprises:
acquiring a deviation value between the reference value and the reference value detected last time;
acquiring the proportion of the deviation value in the reference value detected at the previous time according to the deviation value;
and adjusting the metering threshold value of the LC oscillation sensor to be calibrated according to the proportion.
5. The method according to claim 2, wherein the step S11 further comprises:
s111, taking the previous reference voltage as an initial reference voltage value;
s112, obtaining an output result of the comparator after delaying for a period of time;
if the output result is 0, reducing the initial reference voltage value by a second offset value, and writing the initial reference voltage value into a register as a first reference voltage value;
if the output result is 1, adding a first offset value to the initial reference voltage value, and repeatedly performing step S112 until the comparator output result is 0;
s113, obtaining an output result of the comparator after delaying for a period of time;
if the output result is 1, adding a second offset value to the first reference voltage value, and writing the first reference voltage value into a register as a second reference voltage value after reducing a third offset value;
if the output result is 0, decreasing a second offset value from the first reference voltage value, and repeatedly performing step S113 until the comparator output result is 1;
wherein the second offset value is less than the first offset value;
s114, obtaining an output result of the comparator after delaying for a period of time;
if the output result is 1, taking the second reference voltage value as the current reference voltage value;
if the output result is 0, decreasing a third offset value on the second reference voltage value, and repeatedly performing step S114 until the comparator output result is 1;
wherein the third offset value is less than the second offset value;
and S115, acquiring second reference voltage values in two critical states of which the output result of the comparator is changed from 0 to 1 in the step S114, and taking the average value of the second reference voltage values in the two critical states as the detection value.
6. The method according to claim 5, wherein the step S115 is followed by:
comparing the detection value with the detection value obtained in the previous time to obtain a detection value difference value;
and if the difference value of the detection values is larger than a preset value, discarding the corresponding detection value.
7. The method according to claim 2, wherein the step S12 further comprises:
sequencing the detection values from large to small to obtain a sequencing table;
and acquiring the average value of a plurality of detection values positioned in the middle in the sorting table as the reference value.
8. An apparatus based on the calibration method for the metering threshold of the nonmagnetic water meter as set forth in any one of claims 1 to 7, characterized by comprising a reference LC oscillation sensor and an LC oscillation sensor to be calibrated;
the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter;
the reference LC oscillation sensor is used for detecting environmental changes.
9. A calibrating device for metering threshold of a nonmagnetic water meter is characterized by comprising:
the acquisition module is used for acquiring a reference value of a metering threshold value through a preset reference LC oscillation sensor for detecting environmental change; the reference LC oscillation sensor and the LC oscillation sensor to be calibrated are uniformly and annularly arranged on the upper surface of the water meter;
the calibration module is used for comparing the reference value with a reference value detected by the reference LC oscillation sensor at the previous time and calibrating the metering threshold of the LC oscillation sensor to be calibrated according to the comparison result;
wherein the reference value comprises a reference highest value and/or a reference lowest value;
wherein the step S2 further includes: acquiring a deviation value between the reference value and the reference value detected last time; acquiring the proportion of the deviation value in the reference value detected at the previous time according to the deviation value; and adjusting the metering threshold value of the LC oscillation sensor to be calibrated according to the proportion.
10. The apparatus of claim 9, wherein the obtaining module further comprises:
a first acquisition unit configured to acquire a plurality of detection values detected by the reference LC oscillation sensor by changing a reference voltage in the SCAN IF module;
a second acquisition unit configured to acquire an average value of the plurality of detection values as the reference value;
wherein the detection value comprises detecting a highest value and/or detecting a lowest value.
CN201710947142.2A 2017-10-12 2017-10-12 Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things Active CN107782421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710947142.2A CN107782421B (en) 2017-10-12 2017-10-12 Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710947142.2A CN107782421B (en) 2017-10-12 2017-10-12 Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things

Publications (2)

Publication Number Publication Date
CN107782421A CN107782421A (en) 2018-03-09
CN107782421B true CN107782421B (en) 2020-02-11

Family

ID=61434421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710947142.2A Active CN107782421B (en) 2017-10-12 2017-10-12 Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things

Country Status (1)

Country Link
CN (1) CN107782421B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108981772B (en) * 2018-06-12 2020-09-18 杭州绿鲸科技有限公司 Non-contact non-magnetic anti-disassembly detection method for meter
CN108801383A (en) * 2018-08-20 2018-11-13 江苏赛达电子科技有限公司 Non-magnetic intelligent water meter based on NB-IoT
CN109163742A (en) * 2018-09-30 2019-01-08 深圳市华旭科技开发有限公司 A kind of no magnetic sensing metering circuit and method
CN111737239B (en) * 2020-05-25 2021-07-02 清远博依特智能科技有限公司 Meter value correction method, device and storage medium
CN113624306B (en) * 2021-09-06 2023-11-14 宁波水表(集团)股份有限公司 Fault detection device and method for electromagnetic water meter sensor

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1563908A (en) * 2004-03-12 2005-01-12 杭州利尔达单片机技术有限公司 Non-magnet senser measurer and its measuring method
CN101189423A (en) * 2005-06-06 2008-05-28 罗伯特·博世有限公司 Method and device for correcting the signal of a sensor
CN102686987A (en) * 2009-11-09 2012-09-19 皇家飞利浦电子股份有限公司 Flow sensing method with temperature compensation
CN104422499A (en) * 2013-09-03 2015-03-18 北京谊安医疗系统股份有限公司 Calibration method and device for flow sensor of medical instrument
CN105222866A (en) * 2015-09-14 2016-01-06 新乡市恒冠仪表有限公司 A kind of condenser type intelligent boiler liquid level of steam drum meter
CN105578943A (en) * 2013-10-02 2016-05-11 迈科工程有限责任两合公司 Method for calibrating a cleaning device
EP3184973A1 (en) * 2015-12-21 2017-06-28 Endress + Hauser Flowtec AG Device for measuring a property of a flowing fluid

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1563908A (en) * 2004-03-12 2005-01-12 杭州利尔达单片机技术有限公司 Non-magnet senser measurer and its measuring method
CN101189423A (en) * 2005-06-06 2008-05-28 罗伯特·博世有限公司 Method and device for correcting the signal of a sensor
CN102686987A (en) * 2009-11-09 2012-09-19 皇家飞利浦电子股份有限公司 Flow sensing method with temperature compensation
CN104422499A (en) * 2013-09-03 2015-03-18 北京谊安医疗系统股份有限公司 Calibration method and device for flow sensor of medical instrument
CN105578943A (en) * 2013-10-02 2016-05-11 迈科工程有限责任两合公司 Method for calibrating a cleaning device
CN105222866A (en) * 2015-09-14 2016-01-06 新乡市恒冠仪表有限公司 A kind of condenser type intelligent boiler liquid level of steam drum meter
EP3184973A1 (en) * 2015-12-21 2017-06-28 Endress + Hauser Flowtec AG Device for measuring a property of a flowing fluid

Also Published As

Publication number Publication date
CN107782421A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
CN107782421B (en) Calibration method for water meter metering threshold value based on nonmagnetic NB-IoT (NB-IoT) internet of things
CN106368960A (en) Device and method for detecting critical cavitation point of centrifugal pump
US20120068694A1 (en) Method of detecting absolute rotational position
CN102359759B (en) Measuring system for electrical runout amount of revolving body
CN105319235A (en) Method for detecting residual rate of pre-pressure
CN113029305B (en) Hydropower station water level measurement self-adaptive fault diagnosis and correction system and method
CN202853662U (en) Turbine flowmeter and flowmeter picker installing system
CN103363869A (en) Detection device for circular arc surface
CN202216664U (en) System for measuring electrical runout of revolving body
CN108406442B (en) Grating scale performance detection method and system
CN107356281B (en) multi-sensor multiplexing rotating device position correction method
CN112577555B (en) Non-magnetic sampling forward and backward metering intelligent water meter
CN110207769B (en) Coil induction type water meter capable of detecting and correcting data error
CN111722013A (en) Method and system for detecting 25hz phase-sensitive track circuit signal
CN205049594U (en) Velocity of water flow measuring device
RU2401425C1 (en) Method for automatic control of particle size in stream of material
EP3134740B1 (en) Generating timing signals
CN102175293A (en) System and method for adjusting accuracy of mechanical water meter
Boggarpu et al. New learning algorithm for high-quality velocity measurement from low-cost optical encoders
CN112924017A (en) Detection method of power plant tile vibration sensor
CN205027363U (en) Magnetic compass bow is to sensor installation device
CN102298367B (en) Standardized general-type analog quantity optimization control method
CN2833522Y (en) Dual-magnetic head dual-sensor counting apparatus
CN116359539A (en) Magneto-electric type rotation speed sensor with adjustable length
CN208432630U (en) A kind of tool for quick and precisely installing bistrique 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