Data processing method, data processing device and instrument of metering equipment

By using n metering sensors and magnetic components with different polarities in the smart water meter, defining and comparing the forward and reverse rules of the pulse signal state, the measurement error problem of the smart water meter in a magnetic interference environment is solved, and the measurement is improved Accuracy.

CN119202515AActive Publication Date: 2024-12-27ZHEJIANG TIANXIN INSTR TECH CO LTD +1

Patent Information

Application Number
CN202411677163.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2024-12-27
Estimated Expiration
2044-11-22

AI Technical Summary

Technical Problem

Smart water meters are prone to generate multiple interference pulses in a magnetic interference environment, resulting in large measurement errors and affecting measurement accuracy.

Method used

N metering sensors and magnetic components with different polarities are used to define forward and reverse rules, sample and compare pulse signal states. If the rules do not comply with the rules, the unit flow count will not be performed to reduce the impact of external signal interference.

Benefits of technology

It improves the measurement accuracy, reduces the impact of magnetic interference on the measurement results, and ensures the accuracy of the measurement results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119202515A_ABST
    Figure CN119202515A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device of metering equipment and an instrument. The metering device comprises n metering sensors, a first magnetic part and a second magnetic part, wherein the first magnetic part and the second magnetic part are fixed to a rotatable stand column and are different in polarity. The n metering sensors are used for outputting pulse signals according to sensed magnetic fields. Wherein n is a positive integer greater than or equal to 2; the method comprises the following steps: sampling pulse signals actually output by n metering sensors; according to signal state results obtained by continuous N times of sampling, detecting whether the signal state results accord with a forward rule or a reverse rule; if the signal state result does not conform to any rule, counting of unit flow is not executed; the counting result of the unit flow represents the rotation frequency of the stand column and is used for calculating the metering result. According to the method, the influence of external signal interference on the metering result is reduced, and the metering precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to measurement technology, and in particular to a data processing method, a data processing device and an instrument for a measurement device. Background Art

[0002] With the rapid development of water supply management informatization, smart water meters have been widely used in smart water services, improving the efficiency of water resources management.

[0003] At present, smart water meters are mechanical water meters equipped with electromechanical conversion devices. By installing a magnet on a gear inside the base of the water meter, the electromechanical conversion device samples the change in water volume through magnetic induction, and then calculates the water consumption based on the sampled value. In actual applications, there may be magnetic interference in the working environment of the water meter. The electromechanical conversion device is easily affected by magnetic interference and generates multiple interference pulses, thereby over-metering or under-metering. There is a problem of large cumulative measurement errors in smart water meters. Summary of the invention

[0004] The present application provides a data processing method, a data processing device and an instrument for metering equipment, which are used to solve the problem of large cumulative metering errors of smart water meters.

[0005] In a first aspect, the present application provides a data processing method for a metering device, wherein the metering device comprises n metering sensors and a first magnetic component and a second magnetic component fixed to a rotatable column and having different polarities, wherein the n metering sensors are used to output a pulse signal according to an induced magnetic field; wherein n is a positive integer greater than or equal to 2; and the method comprises:

[0006] Sampling the pulse signals actually output by the n measuring sensors;

[0007] According to the signal state result obtained by continuous N sampling, whether the signal state result conforms to the forward rule or the reverse rule is detected; wherein N is a positive integer; the forward rule represents the pulse signal state that the metering sensor should output during one forward rotation of the column; the reverse rule represents the pulse signal state that the metering sensor should output during one reverse rotation of the column;

[0008] If the signal status result does not meet any rule, the counting of the unit flow is not performed; the counting result of the unit flow represents the number of rotations of the column and is used to calculate the metering result.

[0009] Optionally, the method further comprises:

[0010] When the signal state result meets the forward rule, the forward count value of the unit flow is increased by one;

[0011] When the signal status result meets the reverse rule, the reverse count value of the unit flow is increased by one.

[0012] Optionally, the rule includes N sub-rules in a sequential order; wherein each sub-rule represents a pulse signal state that the n measuring sensors should output when the magnetic component passes through the n measuring sensors during the rotation of the column.

[0013] Optionally, detecting whether the signal status result complies with a forward rule or a reverse rule specifically includes:

[0014] Comparing the sub-data in the signal status result with the sub-rules in the forward rule or the reverse rule;

[0015] When the sub-data is consistent with any sub-rule, the forward count value or the reverse count value of the unit flow is increased by 1 / N.

[0016] Optionally, the sub-rule includes flip information of the pulse signals output by the n measuring sensors; and the sampling of the pulse signals actually output by the n measuring sensors specifically includes:

[0017] For each metering sensor, if it is detected that the pulse signal output by the metering sensor is reversed, the information of this reversal is recorded;

[0018] According to the order in which the flipping occurs, the flipping information of two adjacent records is integrated to obtain the sub-data.

[0019] Optionally, the number of the metering sensors is two; and the value of N is 4.

[0020] Optionally, the sub-rules of the forward rule include: ab, bA, AB, Ba; the sub-rules of the reverse rule include: ba, aB, BA, Ab; wherein a represents that the pulse signal output by the first metering sensor undergoes a forward reversal, b represents that the pulse signal output by the second metering sensor undergoes a forward reversal, A represents that the pulse signal output by the first metering sensor undergoes a reverse reversal, and B represents that the pulse signal output by the second metering sensor undergoes a reverse reversal.

[0021] Optionally, the sub-rule includes level status information of pulse signals output by the n measuring sensors; and the sampling of the pulse signals actually output by the n measuring sensors specifically includes:

[0022] For each metering sensor, if it is detected that the level of the pulse signal output by any metering sensor changes, the level information of the pulse signal currently output by each metering sensor is recorded;

[0023] According to the order of recording, the level information of the n measuring sensors recorded each time is integrated to obtain the sub-data.

[0024] Optionally, the sub-rules of the forward rule include: 10, 11, 01, 00; the sub-rules of the reverse rule include: 00, 01, 11, 10; wherein 1 indicates that the pulse signal output by the first metering sensor / the second metering sensor is a high level, and 0 indicates that the pulse signal output by the first metering sensor / the second metering sensor is a low level.

[0025] Optionally, the angle between the two metering sensors is 90 degrees.

[0026] Optionally, the first metering sensor includes a bipolar latching magnetoresistive sensor, a first capacitor, and a first filtering circuit; the power supply end of the bipolar latching magnetoresistive sensor is connected to a power supply and is connected to the ground through the first capacitor; the ground end of the bipolar latching magnetoresistive sensor is connected to the ground; and the output end of the bipolar latching magnetoresistive sensor outputs a pulse signal through the first filtering circuit.

[0027] Optionally, the first filtering circuit includes: a first resistor and a second capacitor; one end of the first resistor is connected to the output end of the bipolar latch magnetoresistive sensor; the other end of the first resistor is connected to one end of the second capacitor; the other end of the second capacitor is grounded; the other end of the first resistor is used to output a pulse signal.

[0028] Optionally, the method further comprises:

[0029] For the same measuring sensor, if the time between the current sampling and the last sampling is less than the preset time, the current sampling will be ignored.

[0030] In a second aspect, the present application provides a data processing device for a metering device, the metering device comprising n metering sensors and a first magnetic component and a second magnetic component fixed to a rotatable column and having different polarities, the n metering sensors being used to output a pulse signal according to an induced magnetic field; wherein n is a positive integer greater than or equal to 2; the data processing device comprising:

[0031] A sampling module, used for sampling the pulse signals actually output by the n measuring sensors;

[0032] The detection module is used to detect whether the signal state result conforms to the forward rule or the reverse rule according to the signal state result obtained by continuous N samplings; wherein N is a positive integer; the forward rule represents the pulse signal state that the metering sensor should output during the process of the column rotating forwardly for one circle; the reverse rule represents the pulse signal state that the metering sensor should output during the process of the column rotating reversely for one circle;

[0033] The execution module is used for not executing the counting of the unit flow if the signal status result does not meet any rule; the counting result of the unit flow represents the number of rotations of the column and is used for calculating the metering result.

[0034] In a third aspect, the present application provides a meter, comprising a metering device and a data processing apparatus as described in the second aspect.

[0035] The data processing method, data processing device and instrument of the metering equipment provided by the present application define the forward rule according to the pulse signal state that the metering sensor should output during the forward rotation of the column; and define the reverse rule according to the pulse signal state that the metering sensor should output during the reverse rotation of the column. The signal state result is obtained by continuously sampling the pulse signals actually output by n metering sensors, and is compared with the forward rule and the reverse rule respectively. If the signal state result does not meet any rule, the number of column rotations is not counted, and thus the unit flow is not counted, thereby reducing the influence of external signal interference on the metering result and improving the metering accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] Figure 1 A schematic diagram of the structure of a metering device provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of a flow chart of a data processing method for a metering device provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of the structure of a second metering device provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of the structure of a metering sensor provided in an embodiment of the present application;

[0041] Figure 5 A schematic diagram of a flow chart of a data processing method for a second metering device provided in an embodiment of the present application;

[0042] Figure 6 A schematic diagram of a pulse signal state output by a metering sensor provided in an embodiment of the present application;

[0043] Figure 7 A schematic diagram of a pulse signal state output by a second metering sensor provided in an embodiment of the present application;

[0044] Figure 8A schematic diagram of a pulse signal state output by a third metering sensor provided in an embodiment of the present application;

[0045] Fig. 9 A schematic diagram of a pulse signal state output by a fourth metering sensor provided in an embodiment of the present application;

[0046] Fig.10 A schematic diagram of a pulse signal state output by a fifth metering sensor provided in an embodiment of the present application;

[0047] Fig.11 A schematic diagram of the structure of a data processing device for a metering device provided in an embodiment of the present application.

[0048] Description of reference numerals:

[0049] 1: metering sensor; 2: first magnetic component; 3: second magnetic component; 4: column; 11: first filter circuit; 12: second filter circuit.

[0050] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0052] With the rapid development of water supply management informatization, smart water meters have been widely used in smart water services, improving the efficiency of water resources management.

[0053] At present, smart water meters are mechanical water meters equipped with electromechanical conversion devices. By installing a magnet on a gear inside the base of the water meter, the electromechanical conversion device samples the change in water volume through magnetic induction, and then calculates the water consumption based on the sampled value. In actual applications, there may be magnetic interference in the working environment of the water meter. The electromechanical conversion device is easily affected by magnetic interference and generates multiple interference pulses, thereby over-metering or under-metering, resulting in a large cumulative measurement error.

[0054] Therefore, how to reduce the impact of magnetic interference on measurement results and improve the accuracy of measurement results has become an urgent problem to be solved.

[0055] Figure 1 This is a schematic diagram of the structure of a metering device provided in an embodiment of the present application. Figure 1 As shown, the metering device includes n metering sensors 1 and a first magnetic component 2 and a second magnetic component 3 with different polarities fixed to a rotatable column 4, and the n metering sensors 1 are used to output pulse signals according to the induced magnetic field; wherein n is a positive integer greater than or equal to 2.

[0056] The metering sensor 1 may be any device that outputs a high level or a low level signal when sensing a magnetic field, and keeps outputting a high level signal or a low level signal before sensing a magnetic field of opposite polarity, and may include, for example, a double-click latching magnetic resistor. The metering sensor 1 may, for example, output a high level signal when sensing a South Pole magnetic field, and keep outputting a high level signal before sensing a North Pole magnetic field; output a low level signal when sensing a North Pole magnetic field, and keep outputting a low level signal before sensing a South Pole magnetic field. Alternatively, the metering sensor 1 may output a low level signal when sensing a South Pole magnetic field, and keep outputting a low level signal before sensing a North Pole magnetic field; output a high level signal when sensing a North Pole magnetic field, and keep outputting a high level signal before sensing a South Pole magnetic field.

[0057] The first magnetic component 2 and the second magnetic component 3 are any components that can generate a magnetic field, such as a magnet, a magnetic steel, etc. For example, the first magnetic component 2 can be a north pole magnetic component, and the second magnetic component 3 can be a south pole magnetic component; or the first magnetic component 2 can be a south pole magnetic component, and the second magnetic component 3 can be a north pole magnetic component.

[0058] The first magnetic component 2 and the second magnetic component 3 may be symmetrically arranged relative to the pillar 4, or may be asymmetrically arranged relative to the pillar 4; the first magnetic component 2 and the second magnetic component 3 may be in a straight line, or there may be a certain angle between the first magnetic component 2 and the second magnetic component 3. This embodiment of the present application does not limit this. Figure 1 The first magnetic component 2 and the second magnetic component 3 are on a straight line and symmetrically arranged relative to the column 4 as an example for schematic description.

[0059] N metering sensors 1 can be arranged above the first magnetic component 2 and the second magnetic component 3, or, the n metering sensors 1 can be arranged outside the circle centered on the column 4; the n metering sensors 1 can be distributed on the entire circumference centered on the column 4, or, the n metering sensors 1 can be distributed on half of the circumference centered on the column 4. The embodiment of the present application does not limit this. In actual applications, the arrangement of n metering sensors 1, the first magnetic component 2, and the second magnetic component 3 satisfies that the n metering sensors 1 can sense the magnetic field generated by the first magnetic component 2 and the second magnetic component 3 at different times, and only one metering sensor 1 can sense the magnetic field generated by the same magnetic component at the same time. Figure 1 An example is given for schematically explaining that n measuring sensors 1 are arranged outside the circumference of the first magnetic component 2 and the second magnetic component 3 and distributed on a half circumference with the column 4 as the center.

[0060] The column 4 can be, for example, any column that rotates based on the flow of liquid / gas. For example, it can be a character wheel on the dial of a mechanical water meter. The column 4 can drive the first magnetic component 2 and the second magnetic component 3 to rotate. During the rotation of the column 4, the first magnetic component 2 and the second magnetic component 3 can pass through n metering sensors 1.

[0061] The n metering sensors 1 are used to output pulse signals when sensing the magnetic field of the first magnetic component 2 or the magnetic field of the second magnetic component 3. For example, each metering sensor 1 can output a high-level signal when sensing the first magnetic component 2, and output a low-level signal when sensing the second magnetic component 3; or each metering sensor 1 can output a low-level signal when sensing the first magnetic component 2, and output a high-level signal when sensing the second magnetic component 3. During the process of the column 4 rotating one circle, the n metering sensors 1 can generate two low-level signals and two high-level signals. According to the number and sequence of low-level signals and high-level signals, it can be identified whether the column 4 rotates forward one circle / reverse one circle.

[0062] In one example, when the metering device is subject to magnetic interference, the n metering sensors 1 may also generate high-level signals or low-level signals when they do not sense the first magnetic component 2 and the second magnetic component 3, and an error occurs in the calculation of the number of rotations of the column 4, resulting in a metering error when measuring the water consumption based on the number of rotations of the column 4.

[0063] In view of this, the present application proposes a data processing method for metering equipment, which defines a forward rule according to the pulse signal state that the metering sensor should output during the forward rotation of the column; and defines a reverse rule according to the pulse signal state that the metering sensor should output during the reverse rotation of the column. The signal state result is obtained by continuously sampling the pulse signals actually output by n metering sensors, and is compared with the forward rule and the reverse rule respectively. If the signal state result does not meet any rule, the number of column rotations is not counted, and thus the unit flow is not counted, thereby avoiding the influence of external signal interference on the metering result.

[0064] It should be understood that Figure 1 The metering sensor 1 is illustrated by taking the metering sensor L, metering sensor M, and metering sensor K as an example. The metering sensor L, metering sensor M, and metering sensor K do not constitute a limitation on the number of metering sensors 1. In practical applications, two metering sensors 1, three metering sensors 1, or more than three metering sensors 1 can be selected as needed. This embodiment of the present application does not limit this.

[0065] It should be understood that the metering device provided in the embodiment of the present application can be used to collect data from mechanical water meters, and can also be used to collect data from gas meters.

[0066] It should be understood that the execution subject of the embodiment of the present application may be, for example, a processor, and the processor may be, for example, any device capable of receiving a pulse signal and performing data processing according to the pulse signal, such as a single-chip microcomputer, an embedded processor, a programmable logic device, and any other processing unit. Optionally, in addition to the processing unit, a peripheral circuit unit of the processing unit may also be included.

[0067] For ease of explanation, the embodiment of the present application is illustrated by taking the first magnetic component 2 as a North Pole magnetic component, the second magnetic component 3 as a South Pole magnetic component, and n metering sensors 1 outputting a high-level signal when sensing a North Pole magnetic field and outputting a low-level signal when sensing a South Pole magnetic field as an example.

[0068] The following specific embodiments are used to describe in detail how the present application performs energy storage. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The following embodiments of the present application will be described in conjunction with the accompanying drawings.

[0069] Figure 2 A flow chart of a data processing method for a metering device provided in an embodiment of the present application. Figure 1 The metering equipment shown, such as Figure 2 As shown, the method may include the following steps:

[0070] S201 . The processor samples the pulse signals actually output by n measuring sensors 1 .

[0071] The pulse signals actually output by the n measuring sensors 1 may be sampled, for example, by level sampling or by edge sampling.

[0072] S202. The processor detects whether the signal state result conforms to the forward rule or the reverse rule based on the signal state result obtained by N consecutive samplings; wherein N is a positive integer; the forward rule represents the pulse signal state that the metering sensor 1 should output during one forward rotation of the column 4; the reverse rule represents the pulse signal state that the metering sensor 1 should output during one reverse rotation of the column 4.

[0073] The value of N may be related to the number of metering sensors 1, for example, N may be twice the number of metering sensors 1. When the number of metering sensors 1 is 2, the value of N may be 4, and when the number of metering sensors 1 is 3, the value of N may be 6. The processor may sample different pulse signals output by each metering sensor 1 during one rotation of the column 4.

[0074] The clockwise rotation of the column 4 may represent a positive rotation, and the counterclockwise rotation of the column 4 may represent a reverse rotation; or the counterclockwise rotation of the column 4 may represent a positive rotation, and the clockwise rotation of the column 4 may represent a reverse rotation. The embodiment of the present application is illustrated by taking the clockwise rotation of the column 4 as an example to represent a positive rotation, and the counterclockwise rotation of the column 4 as an example to represent a reverse rotation.

[0075] Continue as Figure 1 As shown, during one rotation of the column 4 in the forward direction, the pulse signal states that the metering sensor L, the metering sensor M, and the metering sensor K should output are: the metering sensor L outputs a high-level signal, the metering sensor M outputs a high-level signal, the metering sensor K outputs a high-level signal, the metering sensor L outputs a low-level signal, the metering sensor M outputs a low-level signal, and the metering sensor K outputs a low-level signal.

[0076] During one reverse rotation of the column 4, the pulse signal states that the metering sensor L, the metering sensor M, and the metering sensor K should output are: the metering sensor K outputs a low-level signal, the metering sensor M outputs a low-level signal, the metering sensor L outputs a low-level signal, the metering sensor K outputs a high-level signal, the metering sensor M outputs a high-level signal, and the metering sensor L outputs a high-level signal.

[0077] It should be understood that when the metering sensor L, the metering sensor M and the metering sensor K are located at different positions of the first magnetic component 2 and the second magnetic component 3, the states of the pulse signals that the metering sensor L, the metering sensor M and the metering sensor K should output may be different. Figure 1 The measurement sensor L, the measurement sensor M and the measurement sensor K are distributed on a half circle with the column 4 as the center for schematic description.

[0078] S203. If the signal status result does not meet any rule, the processor does not perform the counting of the unit flow; the counting result of the unit flow represents the number of rotations of the column 4 and is used to calculate the metering result.

[0079] The unit flow rate may be, for example, the flow rate of the object to be measured corresponding to one rotation of the column 4. For example, when the metering device is used to calculate the water consumption / gas consumption, one rotation of the column 4 may correspond to a water / gas flow rate of 1 liter (L) or 10L, etc., and the unit flow rate may be 1L or 10L, etc.

[0080] In one example, when the signal status result meets the forward rule, it means that the column 4 rotates forward one circle, and the forward count value of the unit flow can be increased by 1. When the signal status result meets the reverse rule, it means that the column 4 rotates reversely one circle, and the reverse count value of the unit flow can be increased by 1.

[0081] In another example, when the signal status result meets the forward rule, it means that the column 4 rotates one circle in the forward direction, and the reverse count value of the unit flow rate can be increased by 1. When the signal status result meets the reverse rule, it means that the column 4 rotates one circle in the reverse direction, and the forward count value of the unit flow rate can be increased by 1.

[0082] For example, when the signal status result meets the forward rule, the forward count value increases by one; when the signal status result meets the reverse rule, the reverse count value increases by one. The forward count value increases by one to indicate an increase in flow rate by one unit, and the reverse count value increases by one to indicate a decrease in flow rate by one unit. The difference between the forward count value and the reverse count value indicates the number of unit flows actually used.

[0083] When the metering device is used to calculate the water consumption / gas consumption, the metering result can represent the actual water consumption / actual gas consumption. The metering result can be expressed as: metering result = (forward count value - reverse count value) * unit flow.

[0084] For example, when the unit flow rate is 1L, if the forward count value is ten and the reverse count value is one, the measurement result can be 9L.

[0085] If the signal status result does not meet any rule, it means that the signal obtained by sampling the pulse signals actually output by the n metering sensors 1 may be interfered by external signals, and the sampled interference pulse signal is obtained. At this time, the unit flow rate is not counted to avoid the influence of external signal interference on the metering result.

[0086] In summary, the data processing method of the metering equipment provided in the embodiment of the present application defines a forward rule according to the pulse signal state that the metering sensor should output during the forward rotation of the column; and defines a reverse rule according to the pulse signal state that the metering sensor should output during the reverse rotation of the column. The signal state result is obtained by continuously sampling the pulse signals actually output by n metering sensors, and is compared with the forward rule and the reverse rule respectively. If the signal state result does not meet any rule, the number of column rotations is not counted, and thus the unit flow rate is not counted, which reduces the influence of external signal interference on the metering result and improves the metering accuracy.

[0087] In a possible implementation, the rule may include N sub-rules in a sequential order; wherein each sub-rule represents the pulse signal state that the n metering sensors 1 should output when the magnetic component passes through the n metering sensors 1 during the rotation of the column 4.

[0088] Continue as Figure 1 As shown, when the column 4 rotates forward, the first magnetic component 2 and the second magnetic component 3 may successively pass through the metering sensor L, the metering sensor M, and the metering sensor K. When the first magnetic component 2 passes through the metering sensor L, the metering sensor L should output a high-level signal, and the metering sensor M and the metering sensor K should output a low-level signal; when the first magnetic component 2 passes through the metering sensor M, the metering sensor L and the metering sensor M should output a high-level signal, and the metering sensor K should output a low-level signal; when the first magnetic component 2 passes through the metering sensor K, the metering sensor L, the metering sensor M, and the metering sensor K should output a high-level signal. When the second magnetic component 3 passes through the metering sensor L, the metering sensor L should output a low-level signal, and the metering sensor M and the metering sensor K should output a high-level signal; when the second magnetic component 3 passes through the metering sensor M, the metering sensor L and the metering sensor M should output a low-level signal, and the metering sensor K should output a high-level signal; when the second magnetic component 3 passes through the metering sensor K, the metering sensor L, the metering sensor M, and the metering sensor K should output a low-level signal.

[0089] When the column 4 rotates in the opposite direction, the second magnetic component 3 and the first magnetic component 2 may successively pass through the metering sensor K, the metering sensor M, and the metering sensor L. When the second magnetic component 3 passes through the metering sensor K, the metering sensor K should output a low-level signal, and the metering sensor L and the metering sensor M should output a high-level signal; when the second magnetic component 3 passes through the metering sensor M, the metering sensor M and the metering sensor K should output a low-level signal, and the metering sensor L should output a high-level signal; when the second magnetic component 3 passes through the metering sensor L, the metering sensor L, the metering sensor M, and the metering sensor K should output a low-level signal. When the first magnetic component 2 passes through the metering sensor K, the metering sensor K should output a high-level signal, and the metering sensor L and the metering sensor M should output a low-level signal; when the first magnetic component 2 passes through the metering sensor M, the metering sensor M and the metering sensor K should output a high-level signal, and the metering sensor L should output a low-level signal; when the first magnetic component 2 passes through the metering sensor L, the metering sensor L, the metering sensor M, and the metering sensor K should output a high-level signal.

[0090] The sub-rules of the forward rule may include: when the first magnetic component 2 / the second magnetic component 3 passes through the metering sensor L, the metering sensor M, the metering sensor K, the pulse signal state that the metering sensor L, the metering sensor M, the metering sensor K should output.

[0091] The sub-rules of the reverse rule may include: when the second magnetic component 3 / the first magnetic component 2 passes through the metering sensor K, the metering sensor M, and the metering sensor L, the metering sensor L, the metering sensor M, and the metering sensor K should output the pulse signal state.

[0092] In one example, the sub-rule includes the flipping information of the pulse signals output by n metering sensors 1. The flipping information of the pulse signal may include, for example, forward flipping and reverse flipping. The forward flipping of the pulse signal indicates that the pulse signal changes from a low level to a high level, and the reverse flipping of the pulse signal indicates that the pulse signal changes from a high level to a low level. For example, when the column 4 rotates forward, the order in which the pulse signal output by the metering sensor 1 should flip should be: metering sensor L flips forward, metering sensor M flips forward again, metering sensor K flips forward, then metering sensor L flips reversely, metering sensor M flips reversely again, metering sensor K flips reversely, then metering sensor L flips forward, and then metering sensor 1 flips in sequence according to the above rule.

[0093] When the metering sensor L should flip forward, it can be expressed as a; when the metering sensor L should flip reversely, it can be expressed as A; when the metering sensor M should flip forward, it can be expressed as b; when the metering sensor M should flip reversely, it can be expressed as B; when the metering sensor K should flip forward, it can be expressed as q; when the metering sensor L should flip reversely, it can be expressed as Q.

[0094] Each sub-rule may include the flipping information of the pulse signals of n metering sensors 1 whose pulse signals should be flipped one after another. For example, each sub-rule may include the flipping information of the pulse signals of two metering sensors 1 whose pulse signals should be flipped one after another, or each sub-rule may include the flipping information of the pulse signals of three metering sensors 1 whose pulse signals should be flipped one after another. The embodiment of the present application does not limit the number of flipping information of the pulse signals of the metering sensors 1 included in the sub-rules, and can be set according to actual conditions. The embodiment of the present application does not limit this. Taking the example that each sub-rule may include the flipping information of the pulse signals of two metering sensors 1 whose pulse signals should be flipped one after another, the sub-rules of the forward rule may include: ab, bq, qA, AB, BQ, Qa; the sub-rules of the reverse rule may include: QB, BA, Aq, qb, ba, aQ.

[0095] Sampling the pulse signals actually output by the n metering sensors 1 specifically includes: for each metering sensor 1, if it is detected that the pulse signal output by the metering sensor 1 is reversed, recording the reversal information, thereby improving the sampling accuracy of the pulse signal.

[0096] For example, when the pulse signal output by the metering sensor L flips forward, the flip information can be recorded as a; when the pulse signal output by the metering sensor L flips reversely, the flip information can be recorded as A; when the pulse signal output by the metering sensor M flips forward, the flip information can be recorded as b; when the pulse signal output by the metering sensor M flips reversely, the flip information can be recorded as B; when the pulse signal output by the metering sensor K flips forward, the flip information can be recorded as q; when the pulse signal output by the metering sensor L flips reversely, the flip information can be recorded as Q.

[0097] According to the order in which the pulse signal output by the metering sensor 1 is flipped, the flipping information recorded N times in succession of each metering sensor 1 is integrated to obtain the signal state result. For example, when each sub-rule includes the flipping information of the pulse signals of two metering sensors 1 whose pulse signals should be flipped in succession, every two flipping information can be integrated according to the order in which the flipping occurs to obtain the signal state result. Alternatively, when each sub-rule includes the flipping information of the pulse signals of three metering sensors 1 whose pulse signals should be flipped, every three flipping information can be integrated as a group according to the order in which the flipping occurs to obtain the signal state result. For example, when the column 4 rotates in the forward direction, every two flipping information can be integrated according to the order in which the pulse signal output by the metering sensor 1 is flipped, and the signal state results obtained can be: ab, bq, qA, AB, BQ, Qa.

[0098] In another example, the sub-rule may include level status information of pulse signals output by n metering sensors 1. The level status information of the pulse signal may include, for example, a high level and a low level. As mentioned above, when the column 4 rotates forward / reverse, the metering sensor L, metering sensor M, and metering sensor K should output corresponding high level signals / low level signals. The metering sensor 1 should output a high level, which can be represented by 1, and the metering sensor should output a low level, which can be represented by 0.

[0099] Each sub-rule may include level status information of n metering sensors 1 that should output pulse signals. For example, each sub-rule may include level status information of all metering sensors 1 that should output pulse signals, or each sub-rule may include level status information of two metering sensors 1 that should have level changes successively output pulse signals, or each sub-rule may include level status information of three metering sensors 1 that should have level changes successively output pulse signals. Taking the example that each sub-rule may include level status information of all metering sensors 1 that should output pulse signals, and the number of metering sensors 1 is 3, the sub-rules of the forward rule may include: 100, 110, 111, 011, 001, 000. The sub-rules of the reverse rule may include: 011, 001, 000, 100, 110, 111.

[0100] Sampling the pulse signals actually output by the n metering sensors 1 specifically includes: for each metering sensor 1 , if it is detected that the level of the pulse signal output by any metering sensor 1 changes, then recording the level information of the pulse signal currently output by each metering sensor 1 .

[0101] For example, when the pulse signal output by the metering sensor L changes from a low level to a high level, and the pulse signals output by the metering sensors M and K are at a low level, the current level information of the metering sensor L can be recorded as 1, and the level information of the metering sensors M and K can be recorded as 0.

[0102] According to the order of recording, the level information recorded N times continuously by each metering sensor 1 is integrated to obtain the signal state result. For example, when each sub-rule includes the level state information that all metering sensors 1 should output pulse signals, the level information of all metering sensors 1 recorded can be integrated to obtain the signal state result. Alternatively, when each sub-rule includes the level state information that two metering sensors 1 should output pulse signals that should change levels one after another, the level information of the two metering sensors 1 that change levels one after another can be integrated to obtain the signal state result. Alternatively, when each sub-rule includes the level state information that three metering sensors 1 that should change levels one after another should output pulse signals, the level information of the three metering sensors 1 that change levels one after another can be integrated to obtain the signal state result. For example, when the column 4 rotates in the forward direction, the level information of all metering sensors 1 recorded is integrated, and the signal state result obtained can be: 100, 110, 111, 011, 001, 000.

[0103] Furthermore, detecting whether the signal status result complies with the forward rule or the reverse rule specifically includes: comparing the sub-data in the signal status result with the sub-rule in the forward rule or the reverse rule; when the sub-data is consistent with any sub-rule, adding 1 / N to the forward count value or the reverse count value of the unit flow.

[0104] For example, the signal status result includes 6 sub-data, and the forward rule or reverse rule includes 6 sub-rules. The 1st to 6th sub-data are compared with the sub-rules of the forward rule or reverse rule respectively. When the sub-data is consistent with any sub-rule of the forward rule, the forward count value of the unit flow is increased by 1 / 6; when the sub-data is consistent with any sub-rule of the reverse rule, the reverse count value of the unit flow is increased by 1 / 6. For the convenience of counting, the forward count value of the unit flow can also be increased by 1. When the forward count value of the unit flow is accumulated to 6, the forward count value of the unit flow is increased by one; or the reverse count value of the unit flow is increased by 1. When the reverse count value of the unit flow is accumulated to 6, the reverse count value of the unit flow is increased by one.

[0105] By comparing the sub-data with the sub-rules, when the column 4 rotates less than one circle, the rotated part can be counted, and the measurement error is 1 / N circle, which further improves the measurement accuracy.

[0106] The following description is made by taking a scenario in which there are two corresponding measuring sensors 1 , the first magnetic component 2 is a north pole magnetic steel, and the second magnetic component 3 is a south pole magnetic steel as an example.

[0107] Figure 3 This is a schematic diagram of the structure of the second metering device provided in the embodiment of the present application. Figure 3 As shown, the metering device includes two metering sensors 1, corresponding to metering sensor L and metering sensor M; a first magnetic component 2 and a second magnetic component 3 with different polarities fixed to a rotatable column 4. The first magnetic component 2 is a north pole magnet and the second magnetic component 3 is a south pole magnet. The north pole magnet and the south pole magnet are located at both ends of the column 4 to form a symmetrical structure, in which the column 4 is the central axis, driving the north pole magnet and the south pole magnet to do circular motion.

[0108] Optionally, the angle between the metering sensor L and the metering sensor M can be 90 degrees. When the angle between the metering sensor L and the metering sensor M is 90 degrees, during the rotation of the column 4, the interval between the change of the pulse signal output by the metering sensor L and the change of the pulse signal between the metering sensor M is the time of 1 / 4 rotation of the column 4, which is convenient for calculating the metering result. The following embodiments are all illustrated by taking the angle between the metering sensor L and the metering sensor M as 90 degrees as an example.

[0109] The metering sensor L and the metering sensor M are located on the circumference of the column 4 as the center, and the distance between the metering sensor L and the metering sensor M and the column 4 is greater than the distance between the north pole magnetic steel and the south pole magnetic steel and the column 4, that is, the metering sensor L and the metering sensor M are located outside the north pole magnetic steel and the south pole magnetic steel. The metering sensor L and the metering sensor M are located outside the north pole magnetic steel and the south pole magnetic steel. When the angle between the metering sensor L and the metering sensor M is fixed, the distance between the two metering sensors 1 is increased, and the mutual interference between the two metering sensors 1 is reduced.

[0110] The metering sensor L and the metering sensor M are used to output pulse signals according to the sensed magnetic field. For example, the metering sensor L and the metering sensor M output a high level signal when sensing the North Pole magnetic field, and output a low level signal when sensing the South Pole magnetic steel.

[0111] Figure 4 This is a schematic diagram of the structure of a metering sensor provided in an embodiment of the present application. Figure 4As shown, the first metering sensor 1 includes: a bipolar latching magnetoresistive sensor U1, a first capacitor C1, and a first filtering circuit 11; the power supply terminal VCC of the bipolar latching magnetoresistive sensor U1 is connected to the power supply LI-PWR and is connected to the ground through the first capacitor C2; the ground terminal GND of the bipolar latching magnetoresistive sensor U1 is connected to the ground; the output terminal Vout of the bipolar latching magnetoresistive sensor U1 outputs a pulse signal MCU-PULSE-1 to the processor U3 through the first filtering circuit 11.

[0112] The second metering sensor 1 includes: a bipolar latching magnetoresistive sensor U2, a third capacitor C3, and a second filtering circuit 12; the power supply terminal VCC of the bipolar latching magnetoresistive sensor U2 is connected to the power supply LI-PWR and is connected to the ground through the third capacitor C3; the ground terminal GND of the bipolar latching magnetoresistive sensor U2 is connected to the ground; the output terminal Vout of the bipolar latching magnetoresistive sensor U2 outputs a pulse signal MCU-PULSE-2 to the processor U3 through the second filtering circuit 12.

[0113] The first filter circuit 11 and the second filter circuit 12 can both be low-pass filters, for example, and can include any one of an RC filter, an RL filter, and an RLC filter. The first filter circuit 11 and the second filter circuit 12 are used to filter out high-frequency signals from the signal output from the output terminal Vout. The structures of the first filter circuit 11 and the second filter circuit 12 can be the same or different. For example, the first filter circuit 11 can include an RC filter, the second filter circuit 12 can include an RL filter, or the first filter circuit 11 and the second filter circuit 12 can both include an RC filter, which is not limited in the embodiments of the present application.

[0114] Furthermore, the first filter circuit 11 includes: a first resistor R1 and a second capacitor C2; one end of the first resistor R1 is connected to the output end Vout of the bipolar latch magnetoresistive sensor U1; the other end of the first resistor R1 is connected to one end of the second capacitor C2; the other end of the second capacitor C2 is grounded; the other end of the first resistor R1 is used to output a pulse signal. The first filter circuit 11 has a simple structure and is easy to implement.

[0115] The second filter circuit 12 includes: a second resistor R2 and a fourth capacitor C4; one end of the second resistor R2 is connected to the output end Vout of the bipolar latch magnetoresistive sensor U2; the other end of the second resistor R2 is connected to one end of the fourth capacitor C4; the other end of the fourth capacitor C4 is grounded; the other end of the second resistor R2 is used to output a pulse signal. The second filter circuit 12 has a simple structure and is easy to implement.

[0116] The bipolar latching magnetoresistive sensor U1 and the bipolar latching magnetoresistive sensor U2 can output a high-level signal to the processor U3 through the output terminal Vout when sensing the magnetic field of the North Pole; and output a low-level signal to the processor U3 through the output terminal Vout when sensing the magnetic field of the South Pole. Alternatively, the bipolar latching magnetoresistive sensor U1 and the bipolar latching magnetoresistive sensor U2 can output a low-level signal to the processor U3 through the output terminal Vout when sensing the magnetic field of the North Pole; and output a high-level signal to the processor U3 through the output terminal Vout when sensing the magnetic field of the South Pole. The embodiment of the present application is illustrated by taking the bipolar latching magnetoresistive sensor U1 and the bipolar latching magnetoresistive sensor U2 as an example in which the bipolar latching magnetoresistive sensor U1 and the bipolar latching magnetoresistive sensor U2 output a high-level signal to the processor U3 through the output terminal Vout when sensing the magnetic field of the North Pole; and output a low-level signal to the processor U3 through the output terminal Vout when sensing the magnetic field of the South Pole.

[0117] Before processing the data of the metering device, the forward rule and the reverse rule can be defined. For example, the forward rule represents the pulse signal state that the metering sensor 1 should output during the forward rotation of the column 4; the reverse rule represents the pulse signal state that the metering sensor 1 should output during the reverse rotation of the column 4.

[0118] exist Figure 3 In the scenario including two metering sensors, the rule may include 4 sub-rules in a sequential order. Each sub-rule represents the pulse signal state that metering sensor L and metering sensor M should output when the north pole magnetic steel / south pole magnetic steel passes through metering sensor L / metering sensor M during the rotation of column 4.

[0119] In one example, the sub-rules of the forward rule include: ab, bA, AB, Ba; the sub-rules of the reverse rule include: ba, aB, BA, Ab; among them, a represents that the pulse signal output by the first metering sensor 1 undergoes a forward reversal, b represents that the pulse signal output by the second metering sensor 1 undergoes a forward reversal, A represents that the pulse signal output by the first metering sensor 1 undergoes a reverse reversal, and B represents that the pulse signal output by the second metering sensor 1 undergoes a reverse reversal.

[0120] In another example, the sub-rules of the forward rule include: 10, 11, 01, 00; the sub-rules of the reverse rule include: 00, 01, 11, 10; wherein 1 indicates that the pulse signal output by the first metering sensor 1 / the second metering sensor 1 is a high level, and 0 indicates that the pulse signal output by the first metering sensor 1 / the second metering sensor 1 is a low level.

[0121] The following describes a scenario in which the first metering sensor 1 is, for example, a metering sensor L and the second metering sensor 1 is, for example, a metering sensor M, corresponding to the two sub-rules respectively, and describes a method for processing data of a metering device.

[0122] Figure 5 A flow chart of a data processing method for a second metering device provided in an embodiment of the present application. Figure 3 and Figure 4 The metering device shown in the figure includes two metering sensors 1, which correspond to the metering sensor L and the metering sensor M respectively. Figure 5 As shown, the sub-rules corresponding to the forward rule include: ab, bA, AB, Ba; the sub-rules corresponding to the reverse rule include: ba, aB, BA, Ab. The method may include the following steps:

[0123] S501: The processor detects whether the pulse signal output by the metering sensor 1 is reversed.

[0124] For example, the processor can detect whether the pulse signal output by the metering sensor 1 is reversed by edge sampling. For example, when the pulse signal output by the metering sensor 1 is reversed forward or reversed, it is considered that the pulse signal output by the metering sensor 1 is reversed.

[0125] If it is detected that the pulse signal output by any metering sensor 1 is reversed, step S502 is executed.

[0126] S502: The processor records the current flipping information.

[0127] For example, when the pulse signal output by the metering sensor L is reversed in the positive direction, it is recorded as a; when the pulse signal output by the metering sensor M is reversed in the positive direction, it is recorded as b; when the pulse signal output by the metering sensor L is reversed in the negative direction, it is recorded as A; when the pulse signal output by the metering sensor M is reversed in the negative direction, it is recorded as B.

[0128] S503: The processor integrates the flipping information of two adjacent records according to the order in which the flipping occurs, to obtain sub-data.

[0129] Figure 6 A schematic diagram of a pulse signal state output by a metering sensor provided in an embodiment of the present application. Figure 6 As shown, by integrating the flip information of two adjacent records of the metering sensor L and the metering sensor M, the sub-data of the signal state result can be obtained as follows: ab, bA, AB, Ba.

[0130] Figure 7 This is a schematic diagram of the pulse signal state output by the second metering sensor provided in the embodiment of the present application. Figure 7 As shown, by integrating the flip information of two adjacent records of the metering sensor L and the metering sensor M, the sub-data of the signal state result can be obtained as follows: ba, aB, BA, Ab.

[0131] S504: The processor compares the sub-data with the sub-rules in the forward rule or the reverse rule.

[0132] When the sub-data meets any positive sub-rule, execute step S505; when the sub-data meets any negative sub-rule, execute step S507; when the sub-data does not meet any rule, execute step S509.

[0133] S505: When the sub-data meets any positive sub-rule, the processor adds 1 to the positive count value of the unit flow.

[0134] In an example, Figure 6 The signal state result obtained by the pulse signal state shown has the first sub-data ab, which is consistent with the first sub-rule of the forward rule, and the positive count value is increased by 1; the second sub-data is bA, which is consistent with the second sub-rule of the forward rule, and the positive count value is increased by 1; the third sub-data is AB, which is consistent with the third sub-rule of the forward rule, and the positive count value is increased by 1; the fourth sub-data is Ba, which is consistent with the fourth sub-rule of the forward rule, and the positive count value is increased by 1.

[0135] S506: When the forward count value accumulates to 4, the processor increases the forward count value of the unit flow by one.

[0136] When the forward count is accumulated to 4, it means that the forward flow has accumulated for one circle. The forward count value of the unit flow is increased by one. That is, the signal state result meets the forward rule, and the forward count value of the unit flow is increased by one. The forward count value of the unit flow is increased by one to indicate that the flow of the object to be measured increases by one unit flow during the process of the column rotating one circle forward.

[0137] S507: When the sub-data meets any reverse sub-rule, the processor adds 1 to the reverse count value of the unit flow.

[0138] In an example, Figure 7 The first sub-data of the signal state result obtained by the pulse signal state shown is ba, which is consistent with the first sub-rule of the reverse rule, and the reverse count value is increased by 1; the second sub-data is aB, which is consistent with the second sub-rule of the reverse rule, and the reverse count value is increased by 1; the third sub-data is BA, which is consistent with the third sub-rule of the reverse rule, and the reverse count value is increased by 1; the fourth sub-data is Ab, which is consistent with the fourth sub-rule of the reverse rule, and the reverse count value is increased by 1.

[0139] S508: When the reverse count value is accumulated to 4, the processor increases the reverse count value of the unit flow by one.

[0140] When the reverse count is accumulated to 4, it means that the reverse flow has accumulated for one circle. The reverse count value of the unit flow is increased by one. That is, the signal state result meets the reverse rule, and the reverse count value of the unit flow is increased by one. The reverse count value of the unit flow is increased by one to indicate that the flow of the object to be measured is reduced by one unit flow during the process of the column rotating in the reverse direction for one circle.

[0141] S509: If the sub-data does not meet any sub-rule, the processor does not perform the counting of the unit flow.

[0142] S510: The processor calculates a metering result according to the counting result of the unit flow.

[0143] For example, when the unit flow rate corresponding to one rotation of the column 4 is 1L, if the forward count value is ten and the reverse count value is one, the measurement result is 9L.

[0144] In summary, the data processing method of the metering equipment provided in the embodiment of the present application defines forward rules and sub-rules according to the pulse signal states that the two metering sensors should output during the forward rotation of the column; and defines reverse rules and sub-rules according to the pulse signal states that the two metering sensors should output during the reverse rotation of the column. Sub-data of the signal state results are obtained by continuous sampling of the pulse signals actually output by the two metering sensors, and are compared with the sub-rules respectively. When the sub-data meets the sub-rules, the count values ​​are accumulated, thereby improving the metering accuracy to 1 / 4 turn. If the sub-data does not meet any of the sub-rules, the count value accumulation is not performed, and thus the counting of the unit flow is not performed, thereby reducing the impact of external signal interference on the metering results.

[0145] Figure 8 This is a schematic diagram of the pulse signal state output by the third metering sensor provided in the embodiment of the present application. Figure 8 As shown, the flip information output by the metering sensor L and the metering sensor M is integrated, and the sub-data in the signal state result can be: ab, bA, AB, Ba, bB, ba, aB, BA, Ab. Among them, the sub-data ab, bA, AB, Ba all conform to the sub-rules of the forward rule, and the forward count value can be increased by 1 each time the processor detects a sub-data; the sub-data ba, aB, BA, Ab all conform to the sub-rules of the reverse rule, and the reverse count value can be increased by 1 each time the processor detects a sub-data. The sub-data bB appears between the sub-data of the forward rule and the reverse rule, which may be caused by the flow reversal, which is a normal phenomenon. Flow reversal will only produce one burr, and two or more burrs can be defined as unilateral interference signals. When the flow is reversed, the processing method of the metering device proposed in this application only has one burr caused by the reversal that is not counted. When the angle between the two metering sensors 1 is 90 degrees, the counting error of the unit flow can be reduced to 1 / 4 circle, which improves the metering accuracy.

[0146] Fig. 9 This is a schematic diagram of the pulse signal state output by the fourth metering sensor provided in the embodiment of the present application. Fig. 9 As shown, multiple glitch signals appear in the middle of the normal signal. The flip information output by the metering sensor L and the metering sensor M is integrated, and the sub-data in the signal status result obtained can be: ab, bA, AB, Ba, ba, aB, BA, Ab, aA, Aa, bB, Bb.

[0147] When the sub-data meets any sub-rule in the forward rule, the forward count value is increased by 1; when the sub-data meets any sub-rule in the reverse rule, the reverse count value is increased by 1.

[0148] That is, when the sub-data is any of the following: ab, bA, AB, Ba, the forward count value is increased by 1; when the sub-data is any of the following: ba, aB, BA, Ab, the reverse count value is increased by 1; when the sub-data is the rest of the data: aA, Aa, bB, Bb, the count value does not increase. For example, when two consecutive sub-data are aA, Aa, or bB, Bb, the first sub-data can be considered to be caused by commutation, and the second sub-data can be considered to be a burr caused by external interference signals.

[0149] When the sub-data does not meet any sub-rule of the forward rule and any sub-rule of the reverse rule, the counting is not performed, which can reduce the impact of the burrs caused by external signal interference on the measurement result. When the angle between the two metering sensors 1 is 90 degrees, the counting error per unit flow can be reduced to 1 / 4 circle, which improves the measurement accuracy.

[0150] Continue as Figure 5 As shown, when the sub-rules of the forward rule include: 10, 11, 01, 00; and the sub-rules of the reverse rule include: 00, 01, 11, 10, as an example, steps S501-S503 may include the following operations:

[0151] S501: The processor detects whether the level of the pulse signal output by the metering sensor 1 changes.

[0152] For example, the processor can detect whether the level of the pulse signal output by the metering sensor 1 changes by level sampling. For example, when the pulse signal output by the metering sensor 1 changes from a high level to a low level, or from a low level to a high level, it is considered that the level of the pulse signal output by the metering sensor 1 changes.

[0153] If it is detected that the level of the pulse signal output by any metering sensor 1 changes, step S502 is executed.

[0154] S502 : The processor records level information of the pulse signals output by the two measuring sensors 1 .

[0155] For example, when the pulse signal output by the metering sensor L changes from a low level to a high level, the level information output by the metering sensor L is recorded as 1, and the level information output by the metering sensor M is recorded; when the pulse signal output by the metering sensor M changes from a low level to a high level, the level information output by the metering sensor M is recorded as 1, and the level information output by the metering sensor L is recorded; when the pulse signal output by the metering sensor L changes from a high level to a low level, the level information output by the metering sensor L is recorded as 0, and the level information output by the metering sensor M is recorded; when the pulse signal output by the metering sensor M changes from a high level to a low level, the level information output by the metering sensor M is recorded as 0, and the level information output by the metering sensor L is recorded.

[0156] S503: The processor integrates the level information of the two measuring sensors recorded each time according to the order of recording to obtain sub-data.

[0157] Continue as Figure 6 As shown, by integrating the level information recorded four times in succession by the metering sensor L and the metering sensor M, the sub-data of the signal state result can be obtained as follows: 10, 11, 01, 00.

[0158] Continue as Figure 7 As shown, by integrating the level information recorded four times in succession by the metering sensor L and the metering sensor M, the sub-data of the signal state result can be obtained as follows: 01, 11, 10, 00.

[0159] As an example, steps S505-S506 may also include the following operations.

[0160] In an example, Figure 6 The first sub-data of the signal status result obtained by the pulse signal status shown is 10, which is consistent with the first sub-rule of the forward rule, and the forward count value is increased by 1; the second sub-data is 11, which is consistent with the second sub-rule of the forward rule, and the forward count value is increased by 1; the third sub-data is 01, which is consistent with the third sub-rule of the forward rule, and the forward count value is increased by 1; the fourth sub-data is 00, which is consistent with the fourth sub-rule of the forward rule, and the forward count value is increased by 1. When the forward count is accumulated to 4, it means that the forward flow has accumulated a circle. The forward count value of the unit flow is increased by one.

[0161] As an example, steps S507-S508 may also include the following operations.

[0162] In an example, Figure 7The first sub-data of the signal status result obtained by the pulse signal status shown is 01, which is consistent with the first sub-rule of the reverse rule, and the reverse count value is increased by 1; the second sub-data is 11, which is consistent with the second sub-rule of the reverse rule, and the reverse count value is increased by 1; the third sub-data is 10, which is consistent with the third sub-rule of the reverse rule, and the reverse count value is increased by 1; the fourth sub-data is 00, which is consistent with the fourth sub-rule of the reverse rule, and the reverse count value is increased by 1. When the reverse count is accumulated to 4, it means that the reverse flow has accumulated a circle. The reverse count value of the unit flow is increased by one.

[0163] Continue as Figure 8 As shown, the level information output by the metering sensor L and the metering sensor M is integrated, and the order of the sub-data in the signal state result can be: 10, 11, 01, 00, 10, 11, 10, 00, 01, 11, 10, 00. Among them, the change order of sub-data 10, 11, 01, 00 all conforms to the sub-rule of the forward rule, and the forward count value can be increased by 1 each time the processor detects a sub-data; the change order of sub-data 10, 00, 01, 11 all conforms to the sub-rule of the reverse rule, and the reverse count value can be increased by 1 each time the processor detects a sub-data. Among them, there are two identical sub-data 10 before and after 11, indicating that the level of the metering sensor L has not changed in three consecutive sub-data, which may be caused by flow reversal, which is a normal phenomenon. Flow reversal will only produce one burr, and two or more burrs can be defined as unilateral interference signals.

[0164] Continue as Fig. 9 As shown, the level information output by the metering sensor L and the metering sensor M is integrated, and the order of the sub-data in the signal state result can be: 10, 11, 01, 00, 10, 11, 01, 00, 10, 00, 10, 00, 01, 11, 10, 00, 01, 11, 10, 00, 01, 00, 01, 00. There are two identical sub-data 00s before and after sub-data 10, and there are two identical sub-data 10s before and after sub-data 00, indicating that the level of the metering sensor M has not changed in the five consecutive sub-data, and from the fourth sub-data onwards, it can be considered that it is a burr caused by an external interference signal; there are two identical sub-data 00s before and after sub-data 01, and there are two identical sub-data 01s before and after sub-data 00, indicating that the level of the metering sensor L has not changed in the five consecutive sub-data, and from the fourth sub-data onwards, it can be considered that it is a burr caused by an external interference signal.

[0165] When the sub-data is not a glitch and meets the sub-rule order in the forward rule, the forward count value is increased by 1; when the sub-data is not a glitch and meets the sub-rule order in the reverse rule, the reverse count value is increased by 1.

[0166] When the sub-data does not conform to the sub-rule sequence of the forward rule and the sub-rule sequence of the reverse rule, counting is not performed, thereby preventing the glitches caused by external signal interference from affecting the measurement result.

[0167] Furthermore, for the same measuring sensor 1, if the time between the current sampling and the last sampling is less than the preset time, the current sampling is ignored.

[0168] Fig.10 This is a schematic diagram of the pulse signal state output by the fifth metering sensor provided in the embodiment of the present application. Fig.10 As shown, calculated based on a flow rate of 10 cubic meters per hour, when the column 4 rotates one circle corresponding to a unit flow rate of 1L, the time for the column 4 to rotate one circle is 360 milliseconds (ms). The time for the column 4 to rotate one circle can correspond to a sampling period T of each metering sensor 1. The conversion time of the high and low level signals of a metering sensor 1 should be T / 2, that is, 180ms. At this time, the preset duration can be set to 120ms or 150ms, and the conversion between high and low level signals should not occur within a time t less than the preset duration. If the time from the last sampling to the current sampling is less than the preset duration, the current sampling can be considered invalid and ignored. Accordingly, when the column 4 rotates one circle corresponding to a unit flow rate of 10L, the time for the column 4 to rotate one circle is 3.6 seconds (s), and the preset duration can be set to 1.2s or 1.5s. The embodiment of the present application does not limit the value of the preset duration, and it can be set specifically according to actual conditions.

[0169] If the time between the current sampling and the last sampling is less than the preset time, the current sampling is ignored, which can avoid the influence of high-frequency glitches caused by external signal interference and reduce measurement errors.

[0170] Fig.11 A structural schematic diagram of a data processing device for a metering device provided in an embodiment of the present application. The metering device includes n metering sensors 1 and a first magnetic component 2 and a second magnetic component 3 with different polarities fixed to a rotatable column 4, and the n metering sensors 1 are used to output pulse signals according to the induced magnetic field; wherein n is a positive integer greater than or equal to 2.

[0171] like Fig.11 As shown, the data processing device may include, for example: a sampling module 1101 , a detection module 1102 , and an execution module 1103 .

[0172] The sampling module 1101 is used to sample the pulse signals actually output by the n measuring sensors 1;

[0173] The detection module 1102 is used to detect whether the signal state result conforms to the forward rule or the reverse rule according to the signal state result obtained by continuous N samplings; wherein N is a positive integer; the forward rule represents the pulse signal state that the metering sensor 1 should output during the process of the column 4 rotating forwardly for one circle; the reverse rule represents the pulse signal state that the metering sensor 1 should output during the process of the column 4 rotating reversely for one circle;

[0174] The execution module 1103 is used for not executing the counting of the unit flow if the signal status result does not meet any rule; the counting result of the unit flow represents the number of rotations of the column 4 and is used for calculating the metering result.

[0175] In a possible implementation, the execution module 1103 is further used to: when the signal status result meets the forward rule, increase the forward count value of the unit flow by one; when the signal status result meets the reverse rule, increase the reverse count value of the unit flow by one.

[0176] In a possible implementation, the rule includes N sub-rules in a sequential order; wherein each sub-rule represents the pulse signal state that the n metering sensors 1 should output when the magnetic component passes through the n metering sensors 1 during the rotation of the column 4.

[0177] A possible implementation method is detection module 1102, which is specifically used to: compare the sub-data in the signal status result with the sub-rules in the forward rule or reverse rule in sequence; when the sub-data is consistent with any sub-rule, add 1 / N to the forward count value or reverse count value of the unit flow.

[0178] In a possible implementation, the sub-rule includes the flip information of the pulse signal output by n metering sensors 1; the sampling module 1101 is specifically used to: for each metering sensor 1, if it is detected that the pulse signal output by the metering sensor 1 is flipped, then record the flip information; according to the order in which the flip occurs, integrate the flip information of two adjacent records to obtain sub-data.

[0179] In a possible implementation, the number of metering sensors 1 is two; and the value of N is 4.

[0180] In a possible implementation method, the sub-rules of the forward rule include: ab, bA, AB, Ba; the sub-rules of the reverse rule include: ba, aB, BA, Ab; among them, a represents that the pulse signal output by the first metering sensor 1 undergoes a forward reversal, b represents that the pulse signal output by the second metering sensor 1 undergoes a forward reversal, A represents that the pulse signal output by the first metering sensor 1 undergoes a reverse reversal, and B represents that the pulse signal output by the second metering sensor 1 undergoes a reverse reversal.

[0181] In a possible implementation, the sub-rule includes level status information of pulse signals output by n metering sensors 1; the sampling module 1101 is specifically used to: for each metering sensor 1, if it is detected that the level of the pulse signal output by any metering sensor 1 changes, then record the level information of the pulse signal currently output by each metering sensor 1; integrate the level information of the n metering sensors recorded each time in the order of recording to obtain sub-data.

[0182] In a possible implementation, the sub-rules of the forward rule include: 10, 11, 01, 00; the sub-rules of the reverse rule include: 00, 01, 11, 10; wherein 1 indicates that the pulse signal output by the first metering sensor 1 / the second metering sensor 1 is a high level, and 0 indicates that the pulse signal output by the first metering sensor 1 / the second metering sensor 1 is a low level.

[0183] In a possible implementation, the angle between the two metering sensors 1 is 90 degrees.

[0184] In a possible implementation, the first metering sensor 1 includes a bipolar latching magnetoresistive sensor, a first capacitor, and a first filtering circuit 11; the power supply end of the bipolar latching magnetoresistive sensor is connected to a power supply and is connected to the ground through the first capacitor; the ground end of the bipolar latching magnetoresistive sensor is connected to the ground; and the output end of the bipolar latching magnetoresistive sensor outputs a pulse signal through the first filtering circuit.

[0185] In a possible implementation, the first filtering circuit 11 includes: a first resistor and a second capacitor; one end of the first resistor is connected to the output end of the bipolar latch magnetoresistive sensor; the other end of the first resistor is connected to one end of the second capacitor; the other end of the second capacitor is grounded; the other end of the first resistor is used to output a pulse signal.

[0186] In a possible implementation, the sampling module 1101 is further configured to: for the same measuring sensor 1, if the time between the current sampling and the last sampling is less than a preset time, then ignore the current sampling.

[0187] The data processing device of the metering equipment provided in the embodiment of the present application can execute the actions in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0188] The present application also provides a meter, including a metering device and a data processing device for the metering device.

[0189] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0190] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A data processing method for a measuring device, characterized in that: The metering device comprises n metering sensors and a first magnetic component and a second magnetic component fixed to a rotatable column and having different polarities, wherein the n metering sensors are used to output pulse signals according to the induced magnetic field; wherein n is a positive integer greater than or equal to 2; and the method comprises: Sampling the pulse signals actually output by the n measuring sensors; According to the signal state result obtained by continuous N sampling, whether the signal state result conforms to the forward rule or the reverse rule is detected; wherein N is a positive integer; the forward rule represents the pulse signal state that the metering sensor should output during one forward rotation of the column; the reverse rule represents the pulse signal state that the metering sensor should output during one reverse rotation of the column; If the signal status result does not meet any rule, the counting of the unit flow is not performed; the counting result of the unit flow represents the number of rotations of the column and is used to calculate the metering result.

2. The method according to claim 1, characterized in that The method further comprises: When the signal state result meets the forward rule, the forward count value of the unit flow is increased by one; When the signal status result meets the reverse rule, the reverse count value of the unit flow is increased by one.

3. The method according to claim 2, characterized in that The rule includes N sub-rules in a sequential order; wherein each sub-rule represents the pulse signal state that the n measuring sensors should output when the magnetic component passes through the n measuring sensors during the rotation of the column.

4. The method according to claim 3, characterized in that: Detecting whether the signal status result complies with the forward rule or the reverse rule specifically includes: Comparing the sub-data in the signal status result with the sub-rules in the forward rule or the reverse rule; When the sub-data is consistent with any sub-rule, the forward count value or the reverse count value of the unit flow is increased by 1 / N.

5. The method according to claim 4, characterized in that The sub-rule includes the flip information of the pulse signals output by the n measuring sensors; the sampling of the pulse signals actually output by the n measuring sensors specifically includes: For each metering sensor, if it is detected that the pulse signal output by the metering sensor is reversed, the information of this reversal is recorded; According to the order in which the flipping occurs, the flipping information of two adjacent records is integrated to obtain the sub-data.

6. The method according to claim 1, characterized in that The number of the metering sensors is two; the value of N is 4.

7. The method according to claim 6, characterized in that The sub-rules of the forward rule include: ab, bA, AB, Ba; the sub-rules of the reverse rule include: ba, aB, BA, Ab; wherein a represents that the pulse signal output by the first metering sensor undergoes a forward reversal, b represents that the pulse signal output by the second metering sensor undergoes a forward reversal, A represents that the pulse signal output by the first metering sensor undergoes a reverse reversal, and B represents that the pulse signal output by the second metering sensor undergoes a reverse reversal.

8. The method according to claim 4, characterized in that The sub-rule includes level status information of the pulse signals output by the n measuring sensors; the sampling of the pulse signals actually output by the n measuring sensors specifically includes: For each metering sensor, if it is detected that the level of the pulse signal output by any metering sensor changes, the level information of the pulse signal currently output by each metering sensor is recorded; According to the order of recording, the level information of the n measuring sensors recorded each time is integrated to obtain the sub-data.

9. The method according to claim 6, characterized in that The sub-rules of the forward rule include: 10, 11, 01, 00; the sub-rules of the reverse rule include: 00, 01, 11, 10; wherein 1 indicates that the pulse signal output by the first metering sensor / the second metering sensor is a high level, and 0 indicates that the pulse signal output by the first metering sensor / the second metering sensor is a low level.

10. The method according to claim 6, characterized in that The angle between the two metering sensors is 90 degrees.

11. The method according to claim 10, characterized in that The first metering sensor includes a bipolar latching magnetoresistive sensor, a first capacitor, and a first filtering circuit; the power supply end of the bipolar latching magnetoresistive sensor is connected to a power supply and is connected to the ground through the first capacitor; the ground end of the bipolar latching magnetoresistive sensor is connected to the ground; the output end of the bipolar latching magnetoresistive sensor outputs a pulse signal through the first filtering circuit.

12. The method according to claim 11, characterized in that The first filtering circuit includes: a first resistor and a second capacitor; one end of the first resistor is connected to the output end of the bipolar latch magnetoresistive sensor; the other end of the first resistor is connected to one end of the second capacitor; the other end of the second capacitor is grounded; the other end of the first resistor is used to output a pulse signal.

13. The method according to any one of claims 1 to 12, characterized in that: The method further comprises: For the same measuring sensor, if the time between the current sampling and the last sampling is less than the preset time, the current sampling will be ignored.

14. A data processing device for a measuring device, characterized in that: The metering device comprises n metering sensors and a first magnetic component and a second magnetic component fixed to a rotatable column and having different polarities, wherein the n metering sensors are used to output pulse signals according to the induced magnetic field; wherein n is a positive integer greater than or equal to 2; and the data processing device comprises: A sampling module, used for sampling the pulse signals actually output by the n measuring sensors; The detection module is used to detect whether the signal state result conforms to the forward rule or the reverse rule according to the signal state result obtained by continuous N samplings; wherein N is a positive integer; the forward rule represents the pulse signal state that the metering sensor should output during the process of the column rotating forwardly for one circle; the reverse rule represents the pulse signal state that the metering sensor should output during the process of the column rotating reversely for one circle; The execution module is used for not executing the counting of the unit flow if the signal status result does not meet any rule; the counting result of the unit flow represents the number of rotations of the column and is used for calculating the metering result.

15. An instrument, characterized in that: It comprises a metering device and a data processing apparatus as claimed in claim 14.

Citation Information

Patent Citations

  • Water meter pulse signal metering method and system based on interruption and AD sampling

    CN105841770A

  • Forward and reverse rotation metering method for intelligent water meter

    CN112414494A

  • Digital second water meter applied to water meter Internet of things

    CN113375748A

  • Water meter based on latch type magnetoresistive sensor

    CN116558584A

  • Intelligent water meter, metering method of intelligent water meter and related equipment of intelligent water meter

    CN117705202A

Cited By

  • Water volume detection device, water volume detection method and computer readable storage medium

    CN120141597A