Intelligent water meter magnetic resistance type pulse metering method and device
By detecting and comparing the logic of real-time pulse signals generated by magnetoresistive metering logic, the problem of pulse loss after power-on is solved, the water meter metering logic is optimized, and the measurement accuracy and accuracy are improved.
Patent Information
- Application Number
- CN202411136524.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-15
AI Technical Summary
The existing magnetoresistive metering logic is susceptible to the start conditions after powering up, resulting in the loss of the first pulse number and affecting the accuracy of the water meter metering.
By detecting multiple real-time pulse signals generated on magnetoresistance, real-time signal logic is obtained and compared with preset signal logic, the validity of the pulse signal is determined, the initial value influence is avoided, and the measurement accuracy is ensured.
The water meter metering logic is optimized, which reduces metering errors and ensures high metering accuracy and no loss of pulse units.
Smart Images

Figure CN118960875A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of magnetoresistive pulse metering, and in particular to a magnetoresistive pulse metering method and device for an intelligent water meter. Background Art
[0002] As a measuring instrument, the error in water meter measurement is particularly important. However, the magnetic resistance measurement logic used in the industry today may lose the first pulse number after power-on due to the influence of the starting conditions. Summary of the invention
[0003] In order to solve the above problems, the embodiments of the present application provide a magnetic resistance pulse metering method and device for a smart water meter.
[0004] In a first aspect, the present application provides a magnetic resistance pulse metering method for a smart water meter, comprising the following steps: S1: sequentially detect multiple real-time pulse signals generated on the magnetic resistance; S2: obtaining real-time signal logic according to multiple real-time pulse signals; S3: Compare the real-time signal logic with the preset signal logic. If the real-time signal logic and the preset signal logic are the same, the multiple real-time pulse signals are determined to be valid measurement. If the real-time signal logic and the preset signal logic are different, the multiple real-time pulse signals are determined to be measurement loss.
[0005] Preferably, step S2 specifically includes: S21: receiving a plurality of real-time pulse signals in sequence, and recording the receiving time corresponding to each real-time pulse signal; S22: respectively obtaining multiple real-time pulse type information corresponding to each real-time pulse signal; S23: associating and setting a plurality of real-time pulse type information and a receiving time of each real-time pulse signal; S24: Arrange multiple real-time pulse type information according to the order of receiving time to form real-time signal logic.
[0006] Preferably, the pulse signal includes an A signal and a B signal, and the pulse signal includes a plurality of pulse type information, and the pulse type information includes A0 as the falling edge of the A signal, A1 as the rising edge of the A signal, B0 as the falling edge of the B signal, and B1 as the rising edge of the B signal.
[0007] Preferably, the preset signal logics include four, the order of the first preset signal logic is A1 to B1 to A0 to B0, the order of the second preset signal logic is B1 to A0 to B0 to A1, the order of the third preset signal logic is A0 to B0 to A1 to B1, and the order of the fourth preset signal logic is B0 to A1 to B1 to A0.
[0008] Preferably, step S3 specifically includes: S31: setting a plurality of preset signal logics, wherein the preset pulse type information at corresponding positions of any two of the preset signal logics is different; S32: selecting a preset signal logic, and sequentially acquiring a plurality of preset pulse type information corresponding to the preset signal logic according to the order of the preset signal logic; S33: Compare the multiple real-time pulse type information of the real-time signal logic with the multiple corresponding preset pulse type information in the preset signal logic in sequence according to the order of the real-time signal logic. If all the real-time pulse type information in the real-time signal logic are the same as the corresponding preset pulse type information in the preset signal logic, the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be valid measurement. If one real-time pulse type information in the real-time signal logic is different from one corresponding preset pulse type information in the preset signal logic, return to step S32. If one real-time pulse type information in the real-time signal logic is different from the corresponding preset pulse type information in all the preset signal logics, the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be measurement loss.
[0009] In a second aspect, the present application provides a smart water meter magnetic resistance pulse metering device, comprising: A detection module, used to sequentially detect multiple real-time pulse signals generated on the magnetic resistance; A logic acquisition module, used for acquiring real-time signal logic according to a plurality of real-time pulse signals; The logic judgment module is used to compare the real-time signal logic with the preset signal logic. If the real-time signal logic and the preset signal logic are the same, the multiple real-time pulse signals are judged as valid measurement; if the real-time signal logic and the preset signal logic are different, the multiple real-time pulse signals are judged as measurement loss.
[0010] Preferably, the logic acquisition module includes A signal receiving unit, used to sequentially receive a plurality of real-time pulse signals and record the receiving time corresponding to each real-time pulse signal; A first type acquisition unit is used to respectively acquire a plurality of real-time pulse type information corresponding to each real-time pulse signal; An association setting unit, used for associating and setting a plurality of real-time pulse type information and a receiving time of each real-time pulse signal; The logic arrangement unit is used to arrange multiple real-time pulse type information according to the order of receiving time to form real-time signal logic.
[0011] Preferably, the logic determination module includes A logic setting unit, used to set a plurality of preset signal logics, wherein the preset pulse type information at corresponding positions of any two of the preset signal logics is different; A second type acquisition unit is used to select a preset signal logic, and sequentially acquire a plurality of preset pulse type information corresponding to the preset signal logic according to the order of the preset signal logic; A logic comparison and determination unit, used to compare the multiple real-time pulse type information of the real-time signal logic with the multiple corresponding preset pulse type information in the preset signal logic in sequence according to the order of the real-time signal logic, and if all the real-time pulse type information in the real-time signal logic is the same as the corresponding preset pulse type information in the preset signal logic, then the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be valid measurements; A second type acquisition unit is used to select another preset signal logic if a real-time pulse type information in the real-time signal logic is different from a corresponding preset pulse type information in the preset signal logic, and sequentially acquire a plurality of corresponding preset pulse type information in the preset signal logic according to the order of the preset signal logic; The logic comparison and judgment unit is used to judge multiple real-time pulse signals corresponding to the real-time signal logic as measurement loss if one real-time pulse type information in the real-time signal logic is different from the corresponding preset pulse type information in all preset signal logics.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect or any possible implementation of the first aspect.
[0014] The beneficial effects of the present invention are as follows: if the real-time signal logic is the same as the preset signal logic, the multiple real-time pulse signals are judged as valid measurement; if the real-time signal logic is different from the preset signal logic, the multiple real-time pulse signals are judged as measurement loss. There is no need to consider the impact of the initial value on the measurement, and the pulse unit will not be lost. The measurement logic of the water meter is optimized to reduce the measurement error. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A schematic diagram of a flow chart of a magnetic resistance pulse metering method for a smart water meter provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a magnetic resistance pulse metering device for a smart water meter provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application; Figure 4 A schematic diagram of the principle of magnetic resistance mechanical rotation in a magnetic resistance pulse metering method for a smart water meter provided in an embodiment of the present application; Figure 5 A schematic diagram of the principle of generating signals A and B by magnetic resistance in a magnetic resistance pulse metering method for a smart water meter provided in an embodiment of the present application; Figure 6 A schematic diagram of the principles of four preset signal logics in a magnetic resistance pulse metering method for a smart water meter provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0018] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.
[0019] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.
[0020] See also Figure 1 . Figure 1 : is a flow chart of a magnetic resistance pulse metering method for a smart water meter provided in an embodiment of the present application. In the embodiment of the present application, the method comprises the following steps: S1: sequentially detect multiple real-time pulse signals generated on the magnetic resistance; S2: obtaining real-time signal logic according to multiple real-time pulse signals; S3: Compare the real-time signal logic with the preset signal logic. If the real-time signal logic and the preset signal logic are the same, the multiple real-time pulse signals are determined to be valid measurement. If the real-time signal logic and the preset signal logic are different, the multiple real-time pulse signals are determined to be measurement loss.
[0021] In the embodiment of the present application, a pulse signal includes multiple pulse type information, and the signal logic is the logic that forms multiple pulse type information corresponding to multiple different pulse signals in a certain order. The pulse type information may include the rising edge of the pulse signal and the falling edge of the pulse signal.
[0022] In the embodiment of the present application, firstly, multiple pulse signals generated on the magnetic resistance are detected, and then the real-time signal logic is obtained according to the pulse signal. According to the comparison between the real-time signal logic and the preset signal logic, it is judged whether the multiple pulse signals are valid measurements. The present application solves the problem that the first pulse number is lost after power-on due to the influence of the starting conditions on the existing magnetic resistance measurement logic, and optimizes the measurement logic of the magnetic resistance. It is not necessary to consider the influence of the initial value on the measurement, and the water meter measurement has a high accuracy. By logically recording the type of pulse that arrives for the first time and continuously recording the type of pulse for the next time, it is determined to be a valid measurement only when the arrival order of the four types is consistent with the correct order. This solution does not need to consider the physical position of the current mechanical structure, and can also ensure that the metering pulse is not lost.
[0023] In one possible implementation, step S2 specifically includes: S21: receiving a plurality of real-time pulse signals in sequence, and recording the receiving time corresponding to each real-time pulse signal; S22: respectively obtaining multiple real-time pulse type information corresponding to each real-time pulse signal; S23: associating and setting a plurality of real-time pulse type information and a receiving time of each real-time pulse signal; S24: Arrange multiple real-time pulse type information according to the order of receiving time to form real-time signal logic.
[0024] In one possible implementation, the pulse signal includes an A signal and a B signal, and the pulse signal includes multiple pulse type information, and the pulse type information includes A0 as the falling edge of the A signal, A1 as the rising edge of the A signal, B0 as the falling edge of the B signal, and B1 as the rising edge of the B signal.
[0025] In an embodiment of the present application, the pulse signal in the present application can be divided into A signal and B signal according to A phase and B phase, and the pulse type information is distinguished according to the rising edge and falling edge position of the pulse signal. The pulse type information includes A0 as the falling edge of the A signal, A1 as the rising edge of the A signal, B0 as the falling edge of the B signal, and B1 as the rising edge of the B signal.
[0026] In one embodiment, the preset signal logic includes four, the order of the first preset signal logic is A1 to B1 to A0 to B0, the order of the second preset signal logic is B1 to A0 to B0 to A1, the order of the third preset signal logic is A0 to B0 to A1 to B1, and the order of the fourth preset signal logic is B0 to A1 to B1 to A0.
[0027] In an embodiment of the present application, the signal logic is formed by arranging multiple pulse signals in the order of receiving time. In the signal logic of the present application, a pulse signal includes two pulse type information as a rising edge and a falling edge. When multiple pulse signals are received, only the two pulse type information of the two pulse signals will be received in sequence, and the two pulse type information of a pulse signal will not be received in sequence. The pulse type information corresponding to another pulse signal will be received between the two pulse type information of a pulse signal, that is, only A0 and B0 will be received in sequence, A0 and B1 will be received in sequence, A1 and B1 will be received in sequence, A1 and B0 will be received in sequence, B1 and A0 will be received in sequence, B1 and A1 will be received in sequence, B0 and A0 will be received in sequence, and B0 and A1 will not be received in sequence.
[0028] In the examples of this application, see 4 and Figure 5 As shown, in normal use, mechanical rotation generates signals A and B on the detection magnetic resistance, and signals A and B have a certain sequence in time, so that A and B have a certain logical relationship in the generation of signals. Figure 5According to the logical principle, when the first detected pulse is A1 (A signal 1) and the last detected pulse is B0 (B signal 0), it is recorded as a valid measurement, that is, the logical order of A1→B1→A0→B0. However, in terms of design, the existing software does not know which pulse of A and B will arrive first at the beginning. When the first pulse to arrive is not A1, the measurement of that time is lost.
[0029] In one possible implementation, step S3 specifically includes: S31: setting a plurality of preset signal logics, wherein the preset pulse type information at corresponding positions of any two of the preset signal logics is different; S32: selecting a preset signal logic, and sequentially acquiring a plurality of preset pulse type information corresponding to the preset signal logic according to the order of the preset signal logic; S33: Compare the multiple real-time pulse type information of the real-time signal logic with the multiple corresponding preset pulse type information in the preset signal logic in sequence according to the order of the real-time signal logic. If all the real-time pulse type information in the real-time signal logic are the same as the corresponding preset pulse type information in the preset signal logic, the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be valid measurement. If one real-time pulse type information in the real-time signal logic is different from one corresponding preset pulse type information in the preset signal logic, return to step S32. If one real-time pulse type information in the real-time signal logic is different from the corresponding preset pulse type information in all the preset signal logics, the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be measurement loss.
[0030] In the embodiment of the present application, at the beginning, the initial states of A and B are both 0. When the first pulse arrives, the type of pulse currently arriving is recorded. When the pulse of this type arrives for the second time and the logical sequence is correct, it is recorded as a valid measurement unit. Figure 6 As shown, the correct effective measurement logic has a certain order. When the first pulse arrives, the current type is recorded. According to the corresponding logic in the figure above, the pulse arrival of the recorded type is recorded as a valid measurement unit. In this way, the impact of the initial value on the measurement does not need to be considered, and the pulse unit will not be lost. Figure 6 The four conditions shown are the logic for the forward direction. When the installation direction is opposite, the preset signal logic is Figure 6 The preset signal logic may be: A1→B1→A0→B0, B1→A0→B0→A1, A0→B0→A1→B1, B0→A1→B1→A0.
[0031] In an embodiment of the present application, multiple real-time pulse type information of the real-time signal logic are compared with multiple corresponding preset pulse type information in the preset signal logic in sequence according to the order of the real-time signal logic, that is, the first real-time pulse type information corresponding to the real-time signal logic is compared with the first preset pulse type information corresponding to the above-mentioned preset signal logic, that is, the first real-time pulse type information is compared with A1. If the first real-time pulse type information is the same as A1, then the other subsequent real-time pulse type information of the real-time signal logic is compared with the corresponding preset pulse type information in the preset signal logic in sequence, that is, the second real-time pulse type information is compared with B1, the third real-time pulse type information is compared with A0, and the fourth real-time pulse type information is compared with B0. If all corresponding real-time pulse types in the real-time signal logic are the same as the corresponding pulse type information in the preset signal logic, then the multiple corresponding real-time pulse types of the real-time signal logic are compared. The pulse signal is judged as valid measurement; if the first real-time pulse type information is different from A1, another preset signal logic is selected, and the corresponding multiple preset pulse type information in the preset signal logic is obtained in sequence according to the order of the preset signal logic, and other subsequent real-time pulse type information of the real-time signal logic is compared with the corresponding preset pulse type information in the mark preset signal logic, such as comparing the first real-time pulse type information with B1. If they are still different, change to another preset signal logic until the multiple real-time pulse type information of the real-time signal logic is compared with the multiple corresponding preset pulse type information in all preset signal logics, that is, the first real-time pulse type information is compared with A1, B1, A0, and B0 respectively; if the corresponding real-time pulse type in the real-time signal logic is different from the corresponding preset pulse type information in all the mark preset signal logics, the multiple pulse signals corresponding to the real-time signal logic are judged as measurement loss.
[0032] The following will be combined with the attached Figure 2 , a smart water meter magnetic resistance pulse metering device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 2 The magnetic resistance pulse metering device of a smart water meter is used to implement the present application Figure 1 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.
[0033] See also Figure 2 , Figure 2 Schematic diagram of the structure of a magnetic resistance pulse metering device for a smart water meter provided in an embodiment of the present application. Figure 2 As shown, the device comprises A detection module 201 is used to sequentially detect a plurality of real-time pulse signals generated on the magnetic resistance; A logic acquisition module 202, used to acquire real-time signal logic according to a plurality of real-time pulse signals; The logic judgment module 203 is used to compare the real-time signal logic with the preset signal logic. If the real-time signal logic is the same as the preset signal logic, the multiple real-time pulse signals are judged as valid measurement; if the real-time signal logic is different from the preset signal logic, the multiple real-time pulse signals are judged as measurement loss.
[0034] In one possible implementation, the logic acquisition module 202 includes A signal receiving unit, used to sequentially receive a plurality of real-time pulse signals and record the receiving time corresponding to each real-time pulse signal; A first type acquisition unit is used to respectively acquire a plurality of real-time pulse type information corresponding to each real-time pulse signal; An association setting unit, used for associating and setting a plurality of real-time pulse type information and a receiving time of each real-time pulse signal; The logic arrangement unit is used to arrange multiple real-time pulse type information according to the order of receiving time to form real-time signal logic.
[0035] In one possible implementation, the logic determination module 203 includes A logic setting unit, used to set a plurality of preset signal logics, wherein the preset pulse type information at corresponding positions of any two of the preset signal logics is different; A second type acquisition unit is used to select a preset signal logic, and sequentially acquire a plurality of preset pulse type information corresponding to the preset signal logic according to the order of the preset signal logic; A logic comparison and determination unit, used to compare the multiple real-time pulse type information of the real-time signal logic with the multiple corresponding preset pulse type information in the preset signal logic in sequence according to the order of the real-time signal logic, and if all the real-time pulse type information in the real-time signal logic is the same as the corresponding preset pulse type information in the preset signal logic, then the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be valid measurements; A second type acquisition unit is used to select another preset signal logic if a real-time pulse type information in the real-time signal logic is different from a corresponding preset pulse type information in the preset signal logic, and sequentially acquire a plurality of corresponding preset pulse type information in the preset signal logic according to the order of the preset signal logic; The logic comparison and judgment unit is used to judge multiple real-time pulse signals corresponding to the real-time signal logic as measurement loss if one real-time pulse type information in the real-time signal logic is different from the corresponding preset pulse type information in all preset signal logics.
[0036] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit", "module" and "part" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0037] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
[0038] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0039] The communication bus 302 is used to realize the connection and communication between these components.
[0040] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0041] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0042] Among them, the central processing unit 301 may include one or more processing cores. The central processing unit 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the central processing unit 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The central processing unit 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, and it can be implemented separately through a chip.
[0043] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.
[0044] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the central processor 301 can be used to call a smart water meter magnetic resistance pulse metering application stored in the memory 305, and specifically perform the following operations: S1: sequentially detect multiple real-time pulse signals generated on the magnetic resistance; S2: obtaining real-time signal logic according to multiple real-time pulse signals; S3: Compare the real-time signal logic with the preset signal logic. If the real-time signal logic and the preset signal logic are the same, the multiple real-time pulse signals are determined to be valid measurement. If the real-time signal logic and the preset signal logic are different, the multiple real-time pulse signals are determined to be measurement loss.
[0045] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0046] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0047] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0048] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0049] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0050] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0051] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0052] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0053] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A magnetic resistance pulse metering method for smart water meters, characterized in that: The steps include: S1: sequentially detect multiple real-time pulse signals generated on the magnetic resistance; S2: obtaining real-time signal logic according to multiple real-time pulse signals; S3: Compare the real-time signal logic with the preset signal logic. If the real-time signal logic and the preset signal logic are the same, the multiple real-time pulse signals are determined to be valid measurement. If the real-time signal logic and the preset signal logic are different, the multiple real-time pulse signals are determined to be measurement loss.
2. A magnetic resistance pulse metering method for a smart water meter as claimed in claim 1, characterized in that: Step S2 specifically includes: S21: receiving a plurality of real-time pulse signals in sequence, and recording the receiving time corresponding to each real-time pulse signal; S22: respectively obtaining multiple real-time pulse type information corresponding to each real-time pulse signal; S23: associating and setting a plurality of real-time pulse type information and a receiving time of each real-time pulse signal; S24: Arrange multiple real-time pulse type information according to the order of receiving time to form real-time signal logic.
3. A magnetic resistance pulse metering method for an intelligent water meter as claimed in claim 1 or 2, characterized in that: The pulse signal includes an A signal and a B signal. The pulse signal includes multiple pulse type information. The pulse type information includes A0 as the falling edge of the A signal, A1 as the rising edge of the A signal, B0 as the falling edge of the B signal, and B1 as the rising edge of the B signal.
4. The magnetic resistance pulse metering method for smart water meter according to claim 3, characterized in that: The preset signal logics include four, the order of the first preset signal logic is A1 to B1 to A0 to B0, the order of the second preset signal logic is B1 to A0 to B0 to A1, the order of the third preset signal logic is A0 to B0 to A1 to B1, and the order of the fourth preset signal logic is B0 to A1 to B1 to A0.
5. A magnetic resistance pulse metering method for a smart water meter as claimed in claim 2, characterized in that: Step S3 specifically includes: S31: setting a plurality of preset signal logics, wherein the preset pulse type information at corresponding positions of any two of the preset signal logics is different; S32: selecting a preset signal logic, and sequentially acquiring a plurality of preset pulse type information corresponding to the preset signal logic according to the order of the preset signal logic; S33: Compare the multiple real-time pulse type information of the real-time signal logic with the multiple corresponding preset pulse type information in the preset signal logic in sequence according to the order of the real-time signal logic. If all the real-time pulse type information in the real-time signal logic are the same as the corresponding preset pulse type information in the preset signal logic, the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be valid measurement. If one real-time pulse type information in the real-time signal logic is different from one corresponding preset pulse type information in the preset signal logic, return to step S32. If one real-time pulse type information in the real-time signal logic is different from the corresponding preset pulse type information in all the preset signal logics, the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be measurement loss.
6. A magnetic resistance pulse metering device for an intelligent water meter, characterized in that: include A detection module, used to sequentially detect multiple real-time pulse signals generated on the magnetic resistance; A logic acquisition module, used for acquiring real-time signal logic according to a plurality of real-time pulse signals; The logic judgment module is used to compare the real-time signal logic with the preset signal logic. If the real-time signal logic and the preset signal logic are the same, the multiple real-time pulse signals are judged as valid measurement; if the real-time signal logic and the preset signal logic are different, the multiple real-time pulse signals are judged as measurement loss.
7. The magnetic resistance pulse metering device for an intelligent water meter as claimed in claim 6, characterized in that: The logic acquisition module includes A signal receiving unit, used to sequentially receive a plurality of real-time pulse signals and record the receiving time corresponding to each real-time pulse signal; A first type acquisition unit is used to respectively acquire a plurality of real-time pulse type information corresponding to each real-time pulse signal; An association setting unit, used for associating and setting a plurality of real-time pulse type information and a receiving time of each real-time pulse signal; The logic arrangement unit is used to arrange multiple real-time pulse type information according to the order of receiving time to form real-time signal logic.
8. The intelligent water meter magnetic resistance pulse metering device according to claim 7, characterized in that: The logic determination module includes A logic setting unit, used to set a plurality of preset signal logics, wherein the preset pulse type information at corresponding positions of any two of the preset signal logics is different; A second type acquisition unit is used to select a preset signal logic, and sequentially acquire a plurality of preset pulse type information corresponding to the preset signal logic according to the order of the preset signal logic; A logic comparison and determination unit, used to compare the multiple real-time pulse type information of the real-time signal logic with the multiple corresponding preset pulse type information in the preset signal logic in sequence according to the order of the real-time signal logic, and if all the real-time pulse type information in the real-time signal logic is the same as the corresponding preset pulse type information in the preset signal logic, then the multiple real-time pulse signals corresponding to the real-time signal logic are determined to be valid measurements; A second type acquisition unit is used to select another preset signal logic if a real-time pulse type information in the real-time signal logic is different from a corresponding preset pulse type information in the preset signal logic, and sequentially acquire a plurality of corresponding preset pulse type information in the preset signal logic according to the order of the preset signal logic; The logic comparison and judgment unit is used to judge multiple real-time pulse signals corresponding to the real-time signal logic as measurement loss if one real-time pulse type information in the real-time signal logic is different from the corresponding preset pulse type information in all preset signal logics.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
