Measuring instrument and method for obtaining the state of a measuring instrument

By setting the first and second magnetoresistive elements with different distances in the metering instrument, different magnetoresistive electrical signals are generated to determine the rotation direction, which solves the problem of misjudgment in the prior art and improves the accuracy of the rotation direction.

CN114674381BActive Publication Date: 2025-08-05GOLDEN CARD WATER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011556760.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2025-08-05
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

In the prior art, metering instruments are prone to misjudgment when determining the rotation direction, resulting in low accuracy of the rotation direction.

Method used

Using a metering instrument design including a magnetic element, a first magnetoresistive element and a second magnetoresistive element, a first magnetoresistive electrical signal and a second magnetoresistive electrical signal are respectively generated by setting the distance between the first magnetoresistive element and the second magnetoresistive element and the rotation direction is determined by the processing chip based on these signals.

Benefits of technology

By setting the two magnetoresistive elements at different positions, the probability of misjudgment is reduced and the accuracy of determining the rotation direction is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114674381B_ABST
    Figure CN114674381B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a metering instrument and a method for obtaining the state of the metering instrument. The metering instrument includes a magnetic element, a first magnetoresistive element, and a second magnetoresistive element. The distance between the first magnetoresistive element and the rotation center of the magnetic element is different from the distance between the second magnetoresistive element and the rotation center of the magnetic element. When the metering instrument is working, the first magnetoresistive element and the second magnetoresistive element are used to detect the magnetic field generated by the magnetic element to generate a first magnetoresistive electrical signal and a second magnetoresistive electrical signal respectively; the rotation direction of the metering instrument is determined according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal. Since the distances between the first magnetoresistive element and the second magnetoresistive element and the rotation center of the magnetic element are different, the rotation direction of the metering instrument can be jointly determined by the first magnetoresistive electrical signal and the second magnetoresistive electrical signal generated by two magnetoresistive elements at different positions, reducing the probability of misjudgment, thereby improving the accuracy of the determined rotation direction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of metering instruments, and particularly to a metering instrument and a method for obtaining the state of a metering instrument. Background Art

[0002] With the continuous development and progress of technology, a communication is established between a metering instrument and a remote monitoring terminal device through the Narrow Band Internet of Things (NB-IoT), enabling users to timely understand the working conditions of the metering instrument. For example, during the use of a water meter, if the water flow flows forward and backward multiple times inside the water meter, it will cause positive and negative cumulative error metering of the water meter, resulting in the problem of the water meter self-rotating. Therefore, during the use of the water meter, it is necessary to accurately measure the rotation direction of the water meter and promptly repair the faulty water meter to avoid the problem of the water meter self-rotating.

[0003] Taking the water meter as an example, in the prior art, a magnetic mechanical water meter is usually used, that is, the water meter measures the water flow rate and its rotation direction. Its principle is to measure the water flow rate through the change of the electrical signals generated by two magnetoresistors, and determine the rotation direction of the water meter through the electrical signal generated by the third magnetoresistor. However, when using the existing method to determine the rotation direction of the water meter, misjudgment will occur, resulting in a low accuracy of the determined rotation direction. Summary of the Invention

[0004] The embodiments of the present application provide a metering instrument and a method for obtaining the state of a metering instrument, which reduce the probability of misjudgment when determining the rotation direction of the metering instrument, thereby improving the accuracy of the determined rotation direction.

[0005] In a first aspect, the embodiments of the present application provide a metering instrument, including: a magnetic element, a first magnetoresistive element and a second magnetoresistive element arranged above the magnetic element, and a processing chip connected to the first magnetoresistive element and the second magnetoresistive element; the distance between the first magnetoresistive element and the rotation center of the magnetic element is different from the distance between the second magnetoresistive element and the rotation center of the magnetic element;

[0006] wherein, the first magnetoresistive element is used to detect the magnetic field generated by the magnetic element and generate a first magnetoresistive electrical signal;

[0007] the second magnetoresistive element is used to detect the magnetic field generated by the magnetic element and generate a second magnetoresistive electrical signal;

[0008] the processing chip is used to determine the rotation direction of the metering instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal; the rotation direction includes forward rotation or reverse rotation.

[0009] In a second aspect, an embodiment of the present application provides a method for obtaining the state of a metering instrument, which applies the metering instrument described in the above claims. The method includes:

[0010] During a detection period, respectively obtain a first magnetoresistive electrical signal generated by a first magnetoresistive element in the metering instrument and a second magnetoresistive electrical signal generated by a second magnetoresistive element in the metering instrument;

[0011] Determine the rotation direction of the metering instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal; the rotation direction includes forward rotation or reverse rotation.

[0012] In a possible implementation, the determining the rotation direction of the metering instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal includes:

[0013] Respectively determine a first trigger time point corresponding to a first rising edge of the first magnetoresistive electrical signal, a second trigger time point corresponding to a first falling edge of the first magnetoresistive electrical signal, a third trigger time point corresponding to a second rising edge of the second magnetoresistive electrical signal, and a fourth trigger time point corresponding to a second falling edge of the second magnetoresistive electrical signal.

[0014] Determine the rotation direction of the metering instrument according to the first trigger time point, the second trigger time point, the third trigger time point, and the fourth trigger time point.

[0015] In a possible implementation, the determining the rotation direction of the metering instrument according to the first trigger time point, the second trigger time point, the third trigger time point, and the fourth trigger time point includes:

[0016] Calculate a first time interval between the first trigger time point and the third trigger time point, and calculate a second time interval between the second trigger time point and the fourth trigger time point; wherein, the second time interval is different from the first time interval.

[0017] Determine the rotation direction of the metering instrument according to the first time interval and the second time interval.

[0018] In a possible implementation, the determining the rotation direction of the metering instrument according to the first time interval and the second time interval includes:

[0019] Calculate a ratio between the second time interval and the first time interval.

[0020] Determine the rotation direction of the metering instrument according to the ratio.

[0021] In a possible implementation, determining the rotation direction of the metering instrument according to the ratio includes:

[0022] If the ratio is less than 1, determine that the rotation direction of the metering instrument is forward rotation; if the ratio is greater than 1, determine that the rotation direction of the metering instrument is reverse rotation.

[0023] In a possible implementation, the method further includes:

[0024] If the rotation direction of the metering instrument is reverse rotation and the water flow rate in the reverse rotation direction is greater than a preset threshold, output a first prompt message; wherein, the first prompt message is used to indicate that there is an abnormality in the metering instrument.

[0025] In a possible implementation, outputting the first prompt message includes:

[0026] Send the first prompt message to the terminal.

[0027] In a third aspect, an embodiment of the present application further provides an acquisition device for the state of a metering instrument. The acquisition device for the state of the metering instrument may include a memory and a processor; wherein,

[0028] The memory is used to store a computer program.

[0029] The processor is configured to read the computer program stored in the memory and execute the method for acquiring the state of the metering instrument according to any possible implementation in the first aspect above according to the computer program in the memory.

[0030] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When the processor executes the computer-executable instructions, the method for acquiring the state of the metering instrument according to any possible implementation in the first aspect above is implemented.

[0031] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the method for acquiring the state of the metering instrument according to any possible implementation in the first aspect above is implemented.

[0032] As can be seen, the embodiments of the present application provide a metering instrument and a method for obtaining the state of the metering instrument. The metering instrument includes a magnetic element, a first magnetoresistive element, and a second magnetoresistive element. The distance between the first magnetoresistive element and the rotation center of the magnetic element is different from the distance between the second magnetoresistive element and the rotation center of the magnetic element. When the metering instrument is working, the first magnetoresistive element and the second magnetoresistive element are used to detect the magnetic field generated by the magnetic element to generate a first magnetoresistive electrical signal and a second magnetoresistive electrical signal respectively; the rotation direction of the metering instrument is determined according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal. Since the distances between the first magnetoresistive element and the second magnetoresistive element and the rotation center of the magnetic element are different, the rotation direction of the metering instrument can be jointly determined by the first magnetoresistive electrical signal and the second magnetoresistive electrical signal generated by two magnetoresistive elements at different positions, reducing the probability of misjudgment, thereby improving the accuracy of the determined rotation direction. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure and, together with the specification, are used to explain the principles of the present disclosure.

[0034] Figure 1 FIG. is a schematic cross-sectional structure diagram of a water meter provided by an embodiment of the present application;

[0035] Figure 2 FIG. is a schematic diagram of the placement position of a magnetoresistive element provided by an embodiment of the present application;

[0036] Figure 3 FIG. is a schematic diagram of a magnetoresistive electrical signal during forward rotation provided by an embodiment of the present application;

[0037] Figure 4 FIG. is a schematic diagram of a magnetoresistive electrical signal during reverse rotation provided by an embodiment of the present application;

[0038] Figure 5 FIG. is a schematic diagram of the placement position of another magnetoresistive element provided by an embodiment of the present application;

[0039] Figure 6 FIG. is a schematic diagram of another magnetoresistive electrical signal during forward rotation provided by an embodiment of the present application;

[0040] Figure 7 FIG. is a schematic diagram of another magnetoresistive electrical signal during reverse rotation provided by an embodiment of the present application;

[0041] Figure 8 FIG. is a schematic diagram of the placement position of another magnetoresistive element provided by an embodiment of the present application;

[0042] Figure 9 FIG. is a schematic diagram of another magnetoresistive electrical signal during forward rotation provided by an embodiment of the present application;

[0043] Figure 10 Another schematic diagram of magnetoresistive electrical signals for reverse rotation provided by an embodiment of the present application;

[0044] Figure 11 Another schematic cross-sectional structure diagram of a water meter provided by an embodiment of the present application;

[0045] Figure 12 Schematic flow diagram of a method for obtaining the state of a metering instrument provided by an embodiment of the present application;

[0046] Figure 13 Schematic structure diagram of a device for obtaining the state of a metering instrument provided by an embodiment of the present application.

[0047] Through the above-mentioned drawings, specific embodiments of the present disclosure have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present disclosure in any way, but to illustrate the concept of the present disclosure to those skilled in the art by referring to specific embodiments. Detailed implementation manners

[0048] Here, exemplary embodiments will be described in detail, and examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0049] In the embodiments of the present invention, "at least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. Here, A and B can be singular or plural. In the textual description of the present invention, the character " / " generally represents an "or" relationship between the associated objects before and after.

[0050] The technical solutions provided in the embodiments of this application can be applied to scenarios of flow metering. With the rapid development of technology, intelligent metering instruments based on NB-IoT have been widely used. The intelligent metering instrument based on NB-IoT realizes a water meter with separable electromechanics by adding different sampling modules to a mechanical metering instrument. Among them, the sampling modules are mostly magnetic sampling and non-magnetic sampling. Moreover, magnetic sampling is widely used due to its simple principle and good stability. Currently, magnetic sampling mechanical metering instruments usually use magnetic sampling metering instruments containing three magnetoresistors for metering. For example, a magnetic mechanical water meter measures the water flow through the pulse changes generated by two magnetoresistors and determines the rotation direction of the water meter through the pulse generated by the third magnetoresistor, so as to realize the measurement of the water flow and the rotation direction of the water meter. However, this water meter only uses the pulse signal generated by one magnetoresistor to measure the rotation direction of the water meter, which may lead to misjudgment and result in a low accuracy of the determined rotation direction.

[0051] In order to improve the accuracy of the determined rotation direction, it can be considered to use two magnetoresistive elements to jointly determine the rotation direction of the metering instrument. However, if the distances between the two magnetoresistive elements and the rotation center of the magnetic element are the same, since the magnetoresistive electrical signals generated by the two magnetoresistive elements are the same, in this case, it is meaningless to jointly determine the rotation direction of the metering instrument based on the magnetoresistive electrical signals generated by the two magnetoresistive elements. In order to jointly determine the rotation direction of the metering instrument based on the magnetoresistive electrical signals generated by the two magnetoresistive elements, it is necessary to make the magnetoresistive electrical signals generated by the two magnetoresistive elements different, so that the rotation direction of the metering instrument can be jointly determined based on the two different magnetoresistive electrical signals.

[0052] Based on the above concept, the embodiments of this application provide a metering instrument, which includes a magnetic element, a first magnetoresistive element and a second magnetoresistive element arranged above the magnetic element, and a processing chip connected to the first magnetoresistive element and the second magnetoresistive element; the distance between the first magnetoresistive element and the rotation center of the magnetic element is different from the distance between the second magnetoresistive element and the rotation center of the magnetic element.

[0053] Among them, the first magnetoresistive element is used to detect the magnetic field generated by the magnetic element and generate a first magnetoresistive electrical signal. The second magnetoresistive element is used to detect the magnetic field generated by the magnetic element and generate a second magnetoresistive electrical signal. The processing chip is used to determine the rotation direction of the metering instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal; the rotation direction includes forward rotation or reverse rotation.

[0054] It can be seen that for the metering instrument provided by the embodiments of the present application, since the distances between the first magnetoresistive element and the second magnetoresistive element and the rotation center of the magnetic element are different, the rotation direction of the metering instrument can be jointly determined by the first magnetoresistive electrical signal and the second magnetoresistive electrical signal generated by the two magnetoresistive elements at different positions, reducing the probability of misjudgment, and thus improving the accuracy of the determined rotation direction.

[0055] Next, the metering instrument provided by the present application will be described in detail through specific embodiments. It can be understood that these specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0056] The metering instrument provided by the embodiments of the present application can be an instrument for measuring flow such as a water meter or a gas meter. Next, the solution provided by the present application will be described taking a water meter as an example. It can be understood that the embodiments of the present application are only described taking a water meter as an example, but it does not mean that the embodiments of the present application are only limited to this.

[0057] Figure 1 is a schematic cross-sectional structure diagram of a water meter provided by an embodiment of the present application. For example, please refer to Figure 1 As shown, the water meter may include: a magnetic element 1, a first magnetoresistive element 2 and a second magnetoresistive element 3 disposed above the magnetic element, and a processing chip (not shown) for the first magnetoresistive element and the second magnetoresistive element; the distance between the first magnetoresistive element and the rotation center of the magnetic element is different from the distance between the second magnetoresistive element and the rotation center of the magnetic element.

[0058] Among them, the first magnetoresistive element 2 is used to detect the magnetic field generated by the magnetic element 1 and generate a first magnetoresistive electrical signal.

[0059] The second magnetoresistive element 3 is used to detect the magnetic field generated by the magnetic element 1 and generate a second magnetoresistive electrical signal.

[0060] The processing chip is used to determine the rotation direction of the water meter according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal, and output a corresponding prompt message according to the rotation direction of the water meter; the rotation direction includes forward rotation or reverse rotation.

[0061] It can be understood that the magnetic element 1 in the water meter can be a magnetic steel or other magnetic elements, and the embodiments of the present application do not make specific limitations thereto.

[0062] It can be seen that precisely because when setting the first magnetoresistive element and the second magnetoresistive element, the distances between the first magnetoresistive element and the rotation center of the magnetic element and between the second magnetoresistive element and the rotation center of the magnetic element are different, the rotation direction of the water meter can be jointly determined by the first magnetoresistive electrical signal and the second magnetoresistive electrical signal generated by the two magnetoresistive elements at different positions, reducing the probability of misjudgment and thus improving the accuracy of the determined rotation direction.

[0063] Exemplarily, in the water meter provided in the embodiment of the present application, there can be various setting manners for the first magnetoresistive element and the second magnetoresistive element. It should be noted that in the embodiment of the present application, only these various setting manners are taken as examples for illustration, but it does not mean that the embodiment of the present application is only limited to this.

[0064] In one possible implementation manner, refer to Figure 2 shown in Figure 2 which is a schematic diagram of a setting position provided in the embodiment of the present application. Figure 2 The solid-line circle shown in it is the outer contour of the meter glass, and the dashed-line circle is the rotation trajectory of the magnetic element generated when the magnetic element rotates with the center of the magnetic element as the center. The first magnetoresistive element can be set in the inner area of the rotation trajectory of the magnetic element, and the second magnetoresistive element can be set in the edge area of the rotation trajectory of the magnetic element, and the distance between the first magnetoresistive element and the center of the magnetic element is less than the distance between the second magnetoresistive element and the center of the magnetic element.

[0065] Based on Figure 2 the shown setting manner, correspondingly, the first magnetoresistive electrical signal generated by the first magnetoresistive element and the second magnetoresistive electrical signal generated by the second magnetoresistive element can be referred to Figure 3 shown in Figure 4 and Figure 3 which is a schematic diagram of magnetoresistive electrical signals for forward rotation provided in the embodiment of the present application. Figure 4 which is a schematic diagram of magnetoresistive electrical signals for reverse rotation provided in the embodiment of the present application. Figure 3 and Figure 4 The solid lines in both represent the first magnetoresistive electrical signal generated by the first magnetoresistive element, and the dashed lines both represent the second magnetoresistive electrical signal generated by the second magnetoresistive element, and the first magnetoresistive electrical signal generated by the first magnetoresistive element and the second magnetoresistive electrical signal generated by the second magnetoresistive element are different.

[0066] In another possible implementation manner, refer to Figure 5 shown in Figure 5 which is a schematic diagram of a setting position provided in the embodiment of the present application. Figure 5The circle shown by the solid line is the outer contour of the watch glass, and the circle shown by the dashed line is the magnetic element rotation trajectory generated when the magnetic element rotates around the center of the magnetic element. The first magnetoresistive element can be arranged in the inner area of the magnetic element rotation trajectory, and the second magnetoresistive element can be arranged in the edge area of the magnetic element rotation trajectory, and the distance between the first magnetoresistive element and the center of the magnetic element is less than the distance between the second magnetoresistive element and the center of the magnetic element.

[0067] Based on Figure 5 the setting method shown, correspondingly, the first magnetoresistive electrical signal generated by the first magnetoresistive element and the second magnetoresistive electrical signal generated by the second magnetoresistive element can be seen in Figure 6 shown and Figure 7 shown, Figure 6 which is a schematic diagram of magnetoresistive electrical signals for forward rotation provided by an embodiment of the present application, Figure 7 which is a schematic diagram of magnetoresistive electrical signals for reverse rotation provided by an embodiment of the present application, Figure 6 and Figure 7 the solid lines in both represent the first magnetoresistive electrical signal generated by the first magnetoresistive element, and the dashed lines both represent the second magnetoresistive electrical signal generated by the second magnetoresistive element, and the first magnetoresistive electrical signal generated by the first magnetoresistive element is different from the second magnetoresistive electrical signal generated by the second magnetoresistive element.

[0068] In another possible implementation, it can be seen in Figure 8 shown, Figure 8 which is a schematic diagram of the setting position provided by an embodiment of the present application, Figure 8 the circle shown by the solid line is the outer contour of the watch glass, and the circle shown by the dashed line is the magnetic element rotation trajectory generated when the magnetic element rotates around the center of the magnetic element. The first magnetoresistive element can be arranged in the inner area of the magnetic element rotation trajectory, and the second magnetoresistive element can be arranged in the edge area of the magnetic element rotation trajectory, and the distance between the first magnetoresistive element and the center of the magnetic element is less than the distance between the second magnetoresistive element and the center of the magnetic element.

[0069] Based on Figure 8 the setting method shown, correspondingly, the first magnetoresistive electrical signal generated by the first magnetoresistive element and the second magnetoresistive electrical signal generated by the second magnetoresistive element can be seen in Figure 9 shown and Figure 10 shown, Figure 9 which is a schematic diagram of magnetoresistive electrical signals for forward rotation provided by an embodiment of the present application, Figure 10 which is a schematic diagram of magnetoresistive electrical signals for reverse rotation provided by an embodiment of the present application, Figure 9 and Figure 10The solid lines all represent the first magnetoresistive electrical signals generated by the first magnetoresistive element, and the dashed lines all represent the second magnetoresistive electrical signals generated by the second magnetoresistive element. Moreover, the first magnetoresistive electrical signals generated by the first magnetoresistive element are different from the second magnetoresistive electrical signals generated by the second magnetoresistive element.

[0070] Based on the above Figure 1 For the water meter shown above, in addition to including a magnetic element, a first magnetoresistive element and a second magnetoresistive element disposed above the magnetic element, and a processing chip connected to the first magnetoresistive element and the second magnetoresistive element, it may further include an impeller and a housing. The housing is provided with a liquid inlet and a liquid outlet, and both the liquid inlet and the liquid outlet are connected to the cavity inside the housing; wherein, the impeller is connected to the magnetic element, and both the impeller and the magnetic element are located in the cavity; the impeller drives the magnetic element to rotate, forming a magnetic field.

[0071] Exemplarily, a cover is provided on the top of the housing, and the first magnetoresistive element and the second magnetoresistive element are located above the cover.

[0072] Exemplarily, reference can be made to Figure 11 shown in Figure 11 which is a schematic cross-sectional structure diagram of another water meter provided by an embodiment of the present application. As Figure 11 shown, the water meter provided by the present application may further include a meter housing 1, a steel cover 2, a retaining ring 3, a meter glass 4, a sealing washer 5, an indicating mechanism 6, an impeller 7, a liquid inlet 8, and a liquid outlet 9. Among them, the dial of the water meter is generally circular, that is, the meter glass 6 is a circular glass. And the meter housing 1, the steel cover 2, the meter glass 4, and the sealing washer 5 are used to form a sealed body, so that the measured water flow inside the meter housing cannot leak outside the meter housing, avoiding the decrease in the measurement accuracy of the water meter caused by water leakage. The function of the retaining ring 3 is to fix the meter glass 4. The impeller 7 is used to drive it to rotate when water flows in, and then drive the magnetic element to rotate. The liquid inlet 8 is for liquid to enter, and the liquid outlet 9 is for the entered liquid to flow out, and the liquid inlet 8 and the liquid outlet 9 are connected to the cavity inside the housing.

[0073] Based on the above Figure 1 and Figure 11The water meter shown, during its actual application process, when water flows into the water meter through the liquid inlet, the water flow generates a driving force on the blade, producing a torque that drives the impeller to rotate. The rotational speed of the impeller is proportional to the water flow speed. The rotation of the impeller drives the magnetic component to rotate, forming a magnetic field. In addition, the rotation of the magnetic component is a circular motion centered on the center of the magnetic component. The first magnetoresistive element and the second magnetoresistive element respectively cut the magnetic induction lines of the magnetic field generated during the rotation of the magnetic component, generating a first magnetoresistive electrical signal and a second magnetoresistive electrical signal respectively, and transmitting the generated magnetoresistive electrical signals to the processing chip. The processing chip analyzes the first magnetoresistive electrical signal and the second magnetoresistive electrical signal to determine the current rotation direction of the water meter, and outputs corresponding prompt information according to the rotation direction. Among them, the rotation direction includes forward rotation and reverse rotation. Among them, the center of the magnetic component is the extension line where the magnetic component is when it does not rotate, and the radius of its circular motion is related to the internal setting of the water meter. The embodiments of the present application do not impose any restrictions on this.

[0074] In addition, the magnetic component can also drive the gear in the indicating mechanism to rotate to cumulatively measure the water flow. The user can view the change in water volume through the indicating mechanism. In addition, when the processing chip analyzes and processes the first magnetoresistive electrical signal and the second magnetoresistive electrical signal, it can also obtain the magnitude of the water flow passing through the water meter.

[0075] It can be seen that the measuring instrument provided by the embodiments of the present application includes a magnetic component, a first magnetoresistive element, and a second magnetoresistive element. The distance between the first magnetoresistive element and the rotation center of the magnetic component is different from the distance between the second magnetoresistive element and the rotation center of the magnetic component. During the working process of the measuring instrument, the first magnetoresistive electrical signal and the second magnetoresistive electrical signal are respectively generated by detecting the magnetic field generated by the magnetic component through the first magnetoresistive element and the second magnetoresistive element; the rotation direction of the measuring instrument is determined according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal. Since the distances between the first magnetoresistive element and the second magnetoresistive element and the rotation center of the magnetic component are different, the rotation direction of the measuring instrument can be jointly determined by the first magnetoresistive electrical signal and the second magnetoresistive electrical signal generated by two magnetoresistive elements in different positions, reducing the probability of misjudgment, and thus improving the accuracy of the determined rotation direction.

[0076] To facilitate understanding of how to determine the rotation direction of the measuring instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal in the embodiments of the present application, below, through the following embodiments, it will be detailed how to determine the rotation direction of the measuring instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal in the embodiments of the present application.

[0077] Figure 12The flowchart shows a method for obtaining the status of a metering instrument provided by an embodiment of the present application. The method for obtaining the status of the metering instrument can be executed by software and / or a hardware device. For example, the hardware device can be the metering instrument described in the above embodiment. For example, please refer to Figure 12 As shown, the method for obtaining the status of the metering instrument may include:

[0078] S1201. During the detection period, respectively obtain the first magnetoresistive electrical signal generated by the first magnetoresistive element in the metering instrument and the second magnetoresistive electrical signal generated by the second magnetoresistive element in the metering instrument.

[0079] Specifically, when obtaining the magnetoresistive electrical signal generated by the magnetoresistive element, the magnetic element rotates to form a magnetic field. The first magnetoresistive element generates a magnetoresistive change and generates a first magnetoresistive electrical signal according to the change of the magnetic field generated by the magnetic element. The second magnetoresistive element generates a magnetoresistive change and generates a second magnetoresistive electrical signal according to the change of the magnetic field generated by the magnetic element. Among them, the rotation of the magnetic element is caused by the flow of fluid in the metering instrument. For example, when water flows through a water meter, the water flow causes the impeller in the water meter to rotate, and the impeller drives the magnetic element to rotate.

[0080] It should be noted that the first magnetoresistive electrical signal and the second magnetoresistive electrical signal are periodic electrical signals, and the first magnetoresistive electrical signal and the second magnetoresistive electrical signal obtained during the detection period are the first magnetoresistive electrical signal and the second magnetoresistive electrical signal in the same period.

[0081] After respectively obtaining the first magnetoresistive electrical signal generated by the first magnetoresistive element and the second magnetoresistive electrical signal generated by the second magnetoresistive element, the following S1202 can be executed:

[0082] S1202. Determine the rotation direction of the metering instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal.

[0083] Among them, the rotation direction of the metering instrument includes forward rotation or reverse rotation.

[0084] Specifically, when determining the rotation direction of the metering instrument according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal, respectively determine the first trigger time point corresponding to the first rising edge of the first magnetoresistive electrical signal, the second trigger time point corresponding to the first falling edge of the first magnetoresistive electrical signal, the third trigger time point corresponding to the second rising edge of the second magnetoresistive electrical signal, and the fourth trigger time point corresponding to the second falling edge of the second magnetoresistive electrical signal; determine the rotation direction of the metering instrument according to the first trigger time point, the second trigger time point, the third trigger time point, and the fourth trigger time point.

[0085] In this embodiment, due to the different installation positions of the first magnetoresistive element and the second magnetoresistive element in the metering instrument, the trigger time points of the rising edge and the falling edge of the magnetoresistive electrical signals generated by them are different. When determining the rotation direction of the metering instrument through the trigger time points corresponding to the rising edge and the falling edge of the first magnetoresistive electrical signal and the second magnetoresistive electrical signal, the detection accuracy of the rotation direction of the metering instrument can be improved.

[0086] Further, when determining the rotation direction of the metering instrument according to the first trigger time point, the second trigger time point, the third trigger time point, and the fourth trigger time point, calculate the first time interval between the first trigger time point and the third trigger time point, and calculate the second time interval between the second trigger time point and the fourth trigger time point; wherein, the second time interval is different from the first time interval; determine the rotation direction of the metering instrument according to the first time interval and the second time interval.

[0087] Further, when determining the rotation direction of the metering instrument according to the first time interval and the second time interval, calculate the ratio between the second time interval and the first time interval; if the ratio is greater than 1, determine that the rotation direction of the metering instrument is forward rotation; if the ratio is less than 1, determine that the rotation direction of the metering instrument is reverse rotation.

[0088] Exemplarily, when determining the rotation direction of the metering instrument according to the first time interval and the second time interval, the magnitudes of the first time interval and the second time interval can also be compared. If the first time interval is greater than the second time interval, determine that the rotation direction of the metering instrument is forward rotation; if the first time interval is less than the second time interval, determine that the rotation direction of the metering instrument is reverse rotation. In addition, the flow rate in this time period can be determined by the number of magnetoresistive electrical signals obtained in this time period. The magnitude of the flow rate corresponding to each magnetoresistive electrical signal is determined according to the model of the metering instrument, and the embodiments of the present application do not make specific limitations on this.

[0089] Exemplarily, taking a water meter as an example, a specific description is given to the method for obtaining the state of the metering instrument provided by the embodiments of the present application. It can be combined with the above Figure 3 As shown, when the water meter rotates forward, within the same period, the time interval between the falling edge of the first magnetoresistive electrical signal and the falling edge of the second magnetoresistive electrical signal, that is, the second time interval , the time interval between the rising edge of the first magnetoresistive electrical signal and the rising edge of the second magnetoresistive electrical signal, that is, the first time interval is , through calculation, the ratio of the second time interval to the first time interval can be obtained as , this ratio is less than 1.

[0090] Combined with the above Figure 4As shown, when the water meter rotates in the reverse direction, within the same period, the time interval between the falling edge of the first magnetoresistive electrical signal and the falling edge of the second magnetoresistive electrical signal, that is, the second time interval is , and the time interval between the rising edge of the first magnetoresistive electrical signal and the rising edge of the second magnetoresistive electrical signal, that is, the first time interval is . Through calculation, it can be known that the ratio of the second time interval to the first time interval is greater than 1. And Figure 3 the second time interval of the forward rotation shown in Figure 4 is equal to the first time interval of the reverse rotation shown in , that is Figure 3 the first time interval of the forward rotation shown in Figure 4 is equal to the second time interval of the reverse rotation shown in , that is to say, the ratio of the time intervals of the forward rotation and the ratio of the time intervals of the reverse rotation are reciprocal relationships, that is .

[0091] Combined with the above Figure 6 shown, when the water meter rotates forward, within the same period, the ratio of the second time interval to the first time interval is less than 1. Combined with the above Figure 7 shown, when the water meter rotates in the reverse direction, the ratio of the second time interval to the first time interval is greater than 1. And the second time interval during forward rotation is equal to the first time interval during reverse rotation, that is , the first time interval during forward rotation is equal to the second time interval during reverse rotation, that is , that is, it also satisfies that the ratio of the time intervals of the forward rotation and the ratio of the time intervals of the reverse rotation are reciprocal relationships, that is .

[0092] Combined with the above Figure 9 shown, when the water meter rotates forward, within the same period, the ratio of the second time interval to the first time interval is less than 1. Combined with the above Figure 10 shown, when the water meter rotates in the reverse direction, the ratio of the second time interval to the first time interval is greater than 1. And it also satisfies that the second time interval during forward rotation is equal to the first time interval during reverse rotation, that is , the first time interval during forward rotation is equal to the second time interval during reverse rotation, that is , and the ratio of the time intervals of the forward rotation and the ratio of the time intervals of the reverse rotation are reciprocal relationships, that is .

[0093] Exemplarily, after determining the rotation direction of the metering instrument, corresponding prompt information can be output according to the rotation direction of the metering instrument. In one possible scenario, if the rotation direction of the metering instrument is reverse rotation and the flow rate in the reverse rotation direction is greater than a preset threshold, the first prompt information is output; wherein, the first prompt information is used to indicate that there is an abnormality in the metering instrument.

[0094] Taking the water meter as an example, when outputting the first prompt information, the first prompt information can be output through the display screen of the water meter, or the first prompt information can be sent to the terminal and output through the terminal. For example, when the rotation direction of the water meter is reverse rotation and the water flow rate in the reverse rotation direction is greater than the preset threshold, the processing chip in the water meter sends the first prompt information to the terminal in the form of a text message or a WeChat message through the NB-IoT network. The first prompt information can include that the water meter of this user has reverse rotation to prompt the user that there is an abnormality in his water meter. It can be understood that the first prompt information can also include the water flow rate information of the reverse rotation.

[0095] In this possible scenario, when the rotation direction of the water meter is reverse rotation, in addition to outputting the first prompt information when the water flow rate is greater than the preset threshold, the first prompt information can also be output when the time for the water meter to maintain the reverse rotation direction is greater than the time threshold, which can be specifically set according to actual needs.

[0096] In another possible scenario, if the rotation direction of the water meter is forward rotation, the second prompt information can be output. The second prompt information is used to prompt the current water flow rate. The output method of the second prompt information is similar to the output method of the above first prompt information. For the relevant description of the output method of the above first prompt information, please refer to it. Here, for how to output the second prompt information, the embodiments of the present application will not be elaborated any further.

[0097] It can be seen that when the magnetic element of the metering instrument rotates, the first magnetoresistive electrical signal generated by the first magnetoresistive element in the metering instrument and the second magnetoresistive electrical signal generated by the second magnetoresistive element are respectively obtained; the rotation direction of the metering instrument is determined according to the first magnetoresistive electrical signal and the second magnetoresistive electrical signal; the rotation direction includes forward rotation or reverse rotation; since the distances between the first magnetoresistive element and the second magnetoresistive element and the rotation center of the magnetic element are different, the rotation direction of the metering instrument can be jointly determined by the first magnetoresistive electrical signal and the second magnetoresistive electrical signal generated by two magnetoresistive elements at different positions, reducing the probability of misjudgment, thereby improving the accuracy of the determined rotation direction.

[0098] Figure 13 This is a schematic structural diagram of another device 130 for obtaining the state of the metering instrument provided by the embodiments of the present application. Exemplarily, please refer to Figure 13As shown, the acquisition device 130 for the state of the metering instrument may include a processor 1301 and a memory 1302; wherein,

[0099] The memory 1302 is used to store computer programs.

[0100] The processor 1301 is used to read the computer program stored in the memory 1302 and execute the technical solution of the method for acquiring the state of the metering instrument in any of the above embodiments according to the computer program in the memory 1302.

[0101] Optionally, the memory 1302 can be either independent or integrated with the processor 1301. When the memory 1302 is a device independent of the processor 1301, the acquisition device 130 for the state of the metering instrument may further include: a bus for connecting the memory 1302 and the processor 1301.

[0102] Optionally, this embodiment further includes: a communication interface, which can be connected to the processor 1301 through a bus. The processor 1301 can control the communication interface to implement the receiving and sending functions of the acquisition device 130 for the state of the metering instrument.

[0103] The acquisition device 130 for the state of the metering instrument shown in the embodiments of the present invention can execute the technical solution of the method for acquiring the state of the metering instrument in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the method for acquiring the state of the metering instrument. For details, refer to the implementation principle and beneficial effects of the method for acquiring the state of the metering instrument, which will not be elaborated here.

[0104] The embodiments of the present invention further provide a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the technical solution of the method for acquiring the state of the metering instrument in any of the above embodiments is implemented. Its implementation principle and beneficial effects are similar to those of the method for acquiring the state of the metering instrument. For details, refer to the implementation principle and beneficial effects of the method for acquiring the state of the metering instrument, which will not be elaborated here.

[0105] The embodiments of the present application further provide a computer program product, including a computer program. When the computer program is executed by the processor, the technical solution of the method for acquiring the state of the metering instrument in any of the above embodiments is implemented. Its implementation principle and beneficial effects are similar to those of the method for acquiring the state of the metering instrument. For details, refer to the implementation principle and beneficial effects of the method for acquiring the state of the metering instrument, which will not be elaborated here.

[0106] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

[0107] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, the functional units in various embodiments of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0108] The above integrated modules implemented in the form of software functional modules can be stored in a computer-readable storage medium. The above software functional modules stored in a storage medium include several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods in various embodiments of the present invention.

[0109] It should be understood that the above processor can be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated as: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0110] The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory, and can also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disc, etc.

[0111] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience in representation, the buses in the drawings of the present invention are not limited to only one bus or one type of bus.

[0112] The above computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk. The storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0113] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A measuring instrument, characterized in that: include: a magnetic element, a first magnetoresistive element and a second magnetoresistive element disposed above the magnetic element, and a processing chip connected to the first magnetoresistive element and the second magnetoresistive element; a distance between a rotation center of the first magnetoresistive element and the magnetic element is different from a distance between a rotation center of the second magnetoresistive element and the magnetic element; The first magnetoresistive element is configured to detect the magnetic field generated by the magnetic element and generate a first magnetoresistive electrical signal; The second magnetoresistive element is configured to detect the magnetic field generated by the magnetic element and generate a second magnetoresistive electrical signal; The processing chip is used to determine the rotation direction of the meter according to the first magnetoresistance electrical signal and the second magnetoresistance electrical signal; the rotation direction includes forward rotation or reverse rotation; The processing chip is further configured to respectively determine a first trigger time point corresponding to a first rising edge of the first magnetoresistance electrical signal, a second trigger time point corresponding to a first falling edge of the first magnetoresistance electrical signal, a third trigger time point corresponding to a second rising edge of the second magnetoresistance electrical signal, and a fourth trigger time point corresponding to a second falling edge of the second magnetoresistance electrical signal; Calculating a first time interval between the first trigger time point and a third trigger time point, and calculating a second time interval between the second trigger time point and a fourth trigger time point; wherein the second time interval is different from the first time interval; A rotation direction of the meter is determined based on the first time interval and the second time interval.

2. A method for obtaining the status of a measuring instrument, characterized in that: Using the meter described in claim 1, the method includes: During a detection period, respectively acquiring a first magnetoresistive electrical signal generated by a first magnetoresistive element in the meter and a second magnetoresistive electrical signal generated by a second magnetoresistive element in the meter; Determining a rotation direction of the meter according to the first magnetoresistance electrical signal and the second magnetoresistance electrical signal; the rotation direction includes forward rotation or reverse rotation; Determining the rotation direction of the meter according to the first magnetoresistance electrical signal and the second magnetoresistance electrical signal includes: respectively determining a first trigger time point corresponding to a first rising edge of the first magnetoresistance electrical signal, a second trigger time point corresponding to a first falling edge of the first magnetoresistance electrical signal, a third trigger time point corresponding to a second rising edge of the second magnetoresistance electrical signal, and a fourth trigger time point corresponding to a second falling edge of the second magnetoresistance electrical signal; Calculating a first time interval between the first trigger time point and a third trigger time point, and calculating a second time interval between the second trigger time point and a fourth trigger time point; wherein the second time interval is different from the first time interval; A rotation direction of the meter is determined based on the first time interval and the second time interval.

3. The method according to claim 2, characterized in that Determining the rotation direction of the meter according to the first time interval and the second time interval includes: calculating a ratio between the second time interval and the first time interval; A rotation direction of the meter is determined based on the ratio.

4. The method according to claim 3, characterized in that Determining the rotation direction of the meter according to the ratio includes: If the ratio is less than 1, it is determined that the rotation direction of the meter is forward rotation; if the ratio is greater than 1, it is determined that the rotation direction of the meter is reverse rotation.

5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: If the rotation direction of the meter is reverse rotation and the water flow in the reverse rotation direction is greater than a preset threshold, a first prompt message is output; wherein the first prompt message is used to indicate that an abnormality exists in the meter.

6. The method according to claim 5, characterized in that The outputting of the first prompt information includes: Send the first prompt information to the terminal.

7. A device for obtaining the status of a measuring instrument, characterized in that: comprising a processor and a memory; wherein, The memory is used to store computer programs; The processor is configured to read the computer program stored in the memory and execute the method for obtaining the status of a meter according to any one of claims 2 to 6 according to the computer program in the memory.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the method for obtaining the status of the measuring instrument according to any one of claims 2 to 6 is implemented.

9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for obtaining the status of a measuring instrument as described in any one of claims 2 to 6 is implemented.

Citation Information

Patent Citations

  • Magnetism pulse count sensor

    CN205506154U

  • Flowmeter

    JP1993036318U