Ultrasonic water meter detection method and device, electronic equipment and storage medium
By simulating signal detection and parameter adjustment in complex environments, the problem of measurement errors of ultrasonic water meters in complex environments is solved, stability and accuracy are improved, and the correct use of ultrasonic water meters is ensured.
Patent Information
- Application Number
- CN202411002998.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-06
AI Technical Summary
Existing ultrasonic water meters are difficult to detect correctly in complex environments (such as air in the water, unstable pipe flow, or irregular flow of water), resulting in measurement errors and measurement accuracy being reduced, and meter failure may occur.
By sending multiple signals simulating complex environments to ultrasonic water meters, comparing the differences before and after signal processing, adjusting signal parameters, and judging the use range of ultrasonic water meters, ensuring correct measurement in complex environments and avoiding meter failure.
It improves the stability and measurement accuracy of ultrasonic water meters in complex environments, ensures the correct selection of the use range of ultrasonic water meters, and avoids meter failure.
Smart Images

Figure CN118603263A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ultrasonic water meters, and in particular to an ultrasonic water meter detection method, device, electronic equipment and storage medium. Background Art
[0002] Ultrasonic water meters are a new type of water meter that uses the ultrasonic time difference principle to measure flow. Ultrasonic water meters measure the flow rate of water based on the time difference between the upstream and downstream signals emitted by transducers that are usually used in pairs, and then perform data correction based on the measurement results to achieve accurate flow measurement. Existing ultrasonic water meters are prone to being unable to detect correctly under the influence of unfavorable factors such as air in the water, unstable pipe flow, or irregular water flow in the pipe, which causes errors and reduces the measurement accuracy of ultrasonic water meters. Existing ultrasonic water meters only consider the measurement accuracy of ultrasonic water meters during detection, and do not consider whether ultrasonic water meters can measure correctly in complex environments, which may lead to meter failure during use, resulting in a decrease in the measurement accuracy of ultrasonic water meters. Summary of the invention
[0003] To solve the problems existing in the prior art, one or more embodiments of this specification describe an ultrasonic water meter detection method, device, electronic device and storage medium.
[0004] According to a first aspect, an ultrasonic water meter detection method is provided, the method comprising: S101, sending a first signal to an ultrasonic water meter, and acquiring a second signal obtained after the first signal is processed by the ultrasonic water meter; S102, comparing the second signal with the first signal to determine whether the ultrasonic water meter can be used normally in the current environment, if it can be used normally, assigning a first label to the first signal; if it cannot be used normally, assigning a second label to the first signal, changing the parameters of the first signal, and executing S101, the parameter types of the first signal and the second signal both include amplitude and frequency; S103, obtaining a use range of the ultrasonic water meter according to the plurality of first signals with different labels.
[0005] Preferably, the parameter types of the first signal and the second signal also include a delay time, and the delay time is equal to the timing of a TDC control unit in the ultrasonic water meter.
[0006] Preferably, the changing of the parameters of the first signal includes: Calculating the absolute value of the difference between each type of parameter of the first signal and the second signal, and making a ratio between the absolute value of the difference of the corresponding parameter and the parameter value to obtain an adjustment ratio; The parameters in the first signal are adjusted according to the adjustment ratio to obtain a changed first signal.
[0007] Preferably, obtaining the use scope of the ultrasonic water meter according to the plurality of first signals with different labels includes: Acquire a third signal and a fourth signal, wherein the third signal and the fourth signal are obtained from a plurality of the first signals with different labels according to a selection rule; The average values of the parameters of each type of the third signal and the fourth signal are calculated to obtain a first result.
[0008] Preferably, the selection rule includes: the third signal and the fourth signal are attached with different labels, and the absolute value of the difference between the parameter values of the third signal and the fourth signal is the smallest.
[0009] Preferably, obtaining the use scope of the ultrasonic water meter according to the plurality of first signals with different labels also includes: Set the difference threshold; If the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is less than the difference threshold, the first result is the usage range of the ultrasonic water meter; if the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is greater than the difference threshold, precise measures are executed.
[0010] Preferably, the precise measures include: Sending a first result to the ultrasonic water meter, acquiring a fifth signal obtained after the first result is processed by the ultrasonic water meter, and assigning the first label or the second label to the first result; A signal having a different label type from the fifth signal is selected between the third signal and the fourth signal, and an average value of each type of parameter is calculated with the first result to obtain a second result.
[0011] According to a second aspect, an ultrasonic water meter detection device is provided, the device comprising: A preprocessing module, used for sending a first signal to the ultrasonic water meter, and obtaining a second signal obtained after the first signal is processed by the ultrasonic water meter; a verification module, used for comparing the second signal with the first signal, determining whether the ultrasonic water meter can be used normally in the current environment, and if so, recording the first signal and assigning a first label; if not, recording the first signal and assigning a second label, changing the parameters of the first signal, and sending the changed first signal to the ultrasonic water meter, wherein the parameter types of the first signal and the second signal both include amplitude and frequency; The calculation module is used to obtain the use range of the ultrasonic water meter according to a plurality of the first signals with different tags.
[0012] According to a third aspect, there is provided an electronic device, comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the method provided in the first aspect or any possible implementation manner of the first aspect.
[0013] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer-readable storage medium stores instructions, which, when the instructions are executed on a computer or a processor, cause the computer or the processor to execute the method provided in the first aspect or any possible implementation of the first aspect.
[0014] The beneficial effects of the present invention are: 1. The method and device provided in the embodiments of this specification test the ultrasonic water meter through multiple first signals simulating complex use environments, thereby obtaining the use range of the ultrasonic water meter and selecting a suitable ultrasonic water meter for installation, thereby ensuring that the ultrasonic water meter will not malfunction during use, thereby improving the stability of the ultrasonic water meter during use and improving the accuracy of ultrasonic water meter measurement; 2. The method and device provided in the embodiments of this specification adjust the first signal according to the difference ratio, which can more quickly find the intersection point between correct and incorrect processing of the ultrasonic water meter in a complex environment, thereby quickly determining the use range of the ultrasonic water meter. 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 It is a flow chart of an ultrasonic water meter detection method in the specific implementation of this specification; Figure 2 It is a structural schematic diagram of an ultrasonic water meter detection device in the specific implementation of this specification; Figure 3 It is a structural schematic diagram of an electronic device in the specific implementation of this specification; 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 an ultrasonic water meter detection method provided in an embodiment of the present application. In an embodiment of the present application, the method includes: S101. Send a first signal to an ultrasonic water meter, and obtain a second signal after the first signal is processed by the ultrasonic water meter.
[0021] The execution entity of this application can be a cloud server.
[0022] In the embodiment of the present specification, the cloud server first sends a first signal to the ultrasonic water meter. After the ultrasonic water meter receives the first signal, it is processed in the TDC control unit of the ultrasonic water meter to obtain a second signal. The first signal is a real ultrasonic signal simulating a complex environment, so as to determine whether the processing of the ultrasonic water meter in the complex environment is correct. Before the ultrasonic water meter is installed, the ultrasonic water meter is tested to obtain the use range of the ultrasonic water meter, and a suitable ultrasonic water meter is selected for installation, so as to ensure that the ultrasonic water meter will not fail during use, thereby improving the stability of the ultrasonic water meter during use and improving the accuracy of the ultrasonic water meter measurement.
[0023] It should be noted that the main function of the ultrasonic water meter TDC (time-to-digital converter) control unit in the ultrasonic water meter is to achieve high-precision time measurement. By measuring the time difference between the ultrasonic wave propagating downstream and upstream in the medium, the flow velocity and flow rate of the fluid can be indirectly calculated. The working principle of the TDC control unit is based on the ultrasonic time difference method. In the ultrasonic water meter, a pair of ultrasonic transducers are usually used to send and receive ultrasonic waves alternately (or simultaneously) in opposite directions. The TDC control unit is responsible for measuring the time difference between the ultrasonic wave propagating downstream and upstream in the medium, and calculating the flow velocity and flow rate of the fluid. The specific steps are as follows: 1. Ultrasonic emission: The TDC control unit controls the ultrasonic transducer to emit ultrasonic pulses. 2. Ultrasonic reception: After the ultrasonic wave propagates in the medium, it is received by another ultrasonic transducer. The received ultrasonic signal is converted into an electrical signal and transmitted to the TDC control unit. 3. Time measurement: The TDC control unit measures the time difference between the ultrasonic wave propagating downstream and upstream in the medium. This time difference is related to the flow velocity and flow rate of the fluid. 4. Data processing: The TDC control unit processes the measured time difference data, calculates the flow velocity and flow rate of the fluid, and outputs the results to the display module or communication module.
[0024] S102. Compare the second signal with the first signal to determine whether the ultrasonic water meter can be used normally in the current environment. If so, assign the first label to the first signal. If not, assign the second label to the first signal, change the parameters of the first signal, and execute S101. The parameter types of the first signal and the second signal both include amplitude and frequency.
[0025] In the embodiments of the present specification, the first signal and the second signal can be represented by various types of parameters, and the parameter types of the first signal and the second signal include amplitude and frequency. The cloud server will compare the differences between the obtained second signal and various types of parameters of the first signal. If the parameters of the second signal and the first signal are consistent, it means that the ultrasonic water meter can process the complex environment corresponding to the first signal correctly, and then record the first signal, and assign the first label to the first signal; if the parameters of the second signal and the first signal are inconsistent, it means that the ultrasonic water meter can process the complex environment corresponding to the first signal incorrectly, and then record the first signal, assign the second label to the first signal, change the parameters of the first signal, and resend the changed first signal to the ultrasonic water meter, and process it in the TDC control unit of the ultrasonic water meter to obtain a new second signal, and execute S102 with the new second signal.
[0026] It should be noted that the first label and the second label are used to indicate whether the ultrasonic water meter can perform correct processing under the working environment represented by the first signal. Specifically, the first label indicates that the ultrasonic water meter can perform correct processing under the working environment represented by the current signal, and the second label indicates that the ultrasonic water meter cannot perform correct processing under the working environment represented by the current signal.
[0027] In one possible implementation, in order to better simulate the working condition of the ultrasonic water meter in a complex environment, the parameter types of the first signal and the second signal also include a delay time, and the delay time is equal to the timing of the TDC control unit in the ultrasonic water meter.
[0028] As an example, a delay time is set in the first signal, which indicates the time from receiving the signal to sending the signal, which is equivalent to the time for the ultrasonic transducer to send and receive ultrasonic waves in normal testing. The TDC control unit of the ultrasonic water meter processes the first signal to obtain the second signal. The delay time in the second signal can be obtained from the TDC control unit of the ultrasonic water meter. The two times are compared to determine whether the ultrasonic water meter performs correctly in a complex environment.
[0029] In one possible implementation, the parameters of the first signal are specifically changed as follows: the absolute value of the difference between each type of parameter of the first signal and the second signal is calculated, and the absolute value of the difference of the corresponding parameter is compared with the parameter value to obtain an adjustment ratio. If the parameter value of the first signal is greater than the parameter value of the second signal, the parameter of the first signal is increased according to the adjustment ratio according to the calculated adjustment ratio; if the parameter value of the first signal is less than the parameter value of the second signal, the parameter of the first signal is reduced according to the adjustment ratio according to the calculated adjustment ratio. By adjusting the first signal according to the difference ratio, the intersection of correct and incorrect processing of the ultrasonic water meter in a complex environment can be found more quickly, thereby quickly determining the scope of use of the ultrasonic water meter.
[0030] S103: Obtain a usage range of the ultrasonic water meter according to the plurality of first signals with different labels.
[0031] In the embodiment of this specification, it can be known from S102 that S102 will obtain multiple first signals with first tags or second tags attached, select two first signals with different tags, and the difference between the parameter values of the two selected first signals is the smallest in absolute value, and the two selected first signals are recorded as the third signal and the fourth signal. The parameter combination consisting of the average values of various types of parameters of the third signal and the fourth signal is taken to obtain the first result. The first result indicates that the real ultrasonic signal in a complex environment is the limit of the ultrasonic meter that can be correctly processed in a complex environment, that is, the use range of the ultrasonic water meter, so that the ultrasonic water meter of the corresponding specification can be selected according to the measured use range of the ultrasonic water meter before installation to avoid the failure of the meter during use, thereby improving the stability of the ultrasonic water meter during use and improving the accuracy of the ultrasonic water meter measurement.
[0032] In one feasible implementation, in order to make the obtained use range of the ultrasonic water meter more accurate, a difference threshold is set. If the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is less than the difference threshold, the first result is set as the use range of the ultrasonic water meter; if the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is greater than the difference threshold, precise measures are executed.
[0033] In one possible implementation, the precise measures are specifically as follows: obtaining the first result, the cloud server sends the first result to the ultrasonic water meter, and after the ultrasonic water meter receives the first result, it will be processed in the TDC control unit of the ultrasonic water meter to obtain the fifth signal. The cloud server will compare the difference between the first result and the parameters of each type of the fifth signal. If the first result and the parameters of each type of the fifth signal are consistent, it means that the ultrasonic water meter can process correctly in the complex environment corresponding to the first result, and the first label is assigned to the first result; if the first result and the parameters of each type of the fifth signal are inconsistent, it means that the ultrasonic water meter can process incorrectly in the complex environment corresponding to the first result, and the second label is assigned to the first result. Select a signal with a different label type from the first result between the third signal and the fourth signal, and calculate the average value of each type of parameter with the first result to obtain the second result. The second result indicates that the real ultrasonic signal in the complex environment is the limit that the ultrasonic meter can correctly process in the complex environment, that is, the use range of the ultrasonic water meter after further refinement. The use range of the ultrasonic water meter is further refined so that those skilled in the art can select a suitable ultrasonic water meter when installing the ultrasonic water meter, thereby ensuring the stability of the use process of the ultrasonic water meter.
[0034] The following will be combined with the attached Figure 2 , the ultrasonic water meter detection device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 2The ultrasonic water meter detection device shown 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.
[0035] See also Figure 2 , Figure 2 Schematic diagram of the structure of the ultrasonic water meter detection device provided in the embodiment of the present application. Figure 2 As shown, the device comprises: A preprocessing module 201 is used to send a first signal to an ultrasonic water meter and obtain a second signal obtained after the first signal is processed by the ultrasonic water meter; The verification module 202 is used to compare the second signal with the first signal to determine whether the ultrasonic water meter can be used normally in the current environment. If it can be used normally, the first label is assigned to the first signal; if it cannot be used normally, the second label is assigned to the first signal, and the parameters of the first signal are changed to execute S101. The parameter types of the first signal and the second signal both include amplitude and frequency. The calculation module 203 is used to obtain the use range of the ultrasonic water meter according to the first signals with different tags.
[0036] In one possible implementation, the parameter types of the first signal and the second signal further include a delay time, and the delay time is equal to the timing of a TDC control unit in the ultrasonic water meter.
[0037] In one possible implementation, changing the parameter of the first signal includes: Calculating the absolute value of the difference between each type of parameter of the first signal and the second signal, and making a ratio between the absolute value of the difference of the corresponding parameter and the parameter value to obtain an adjustment ratio; The parameters in the first signal are adjusted according to the adjustment ratio to obtain a changed first signal.
[0038] In one possible implementation, obtaining the use scope of the ultrasonic water meter according to the plurality of first signals with different labels includes: Acquire a third signal and a fourth signal, wherein the third signal and the fourth signal are obtained from a plurality of the first signals with different labels according to a selection rule; The average values of the parameters of each type of the third signal and the fourth signal are calculated to obtain a first result.
[0039] In one possible implementation, the selection rule includes: the third signal and the fourth signal are attached with different labels, and the absolute value of the difference between the parameter values of the third signal and the fourth signal is the smallest.
[0040] In one possible implementation, obtaining the use scope of the ultrasonic water meter according to the plurality of first signals with different labels also includes: Set the difference threshold; If the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is less than the difference threshold, the first result is the usage range of the ultrasonic water meter; if the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is greater than the difference threshold, precise measures are executed.
[0041] In one possible implementation, the precise measures include: Sending a first result to the ultrasonic water meter, acquiring a fifth signal obtained after the first result is processed by the ultrasonic water meter, and assigning the first label or the second label to the first result; A signal having a different label type from the fifth signal is selected between the third signal and the fourth signal, and an average value of each type of parameter is calculated with the first result to obtain a second result.
[0042] 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" and "module" 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.
[0043] Each processing unit and / or module of the embodiments of the present application may be realized by an analog circuit that implements the functions described in the embodiments of the present application, or may be realized by software that executes the functions described in the embodiments of the present application.
[0044] 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 .
[0045] The communication bus 302 is used to realize the connection and communication between these components.
[0046] 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.
[0047] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0048] 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; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, but implemented separately through a chip.
[0049] 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.
[0050] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain data input by the user; and the central processor 301 can be used to call the application stored in the memory 305 and specifically perform the following operations: S101, sending a first signal to an ultrasonic water meter, and acquiring a second signal obtained after the first signal is processed by the ultrasonic water meter; S102, comparing the second signal with the first signal, determining whether the ultrasonic water meter can be used normally in the current environment, if it can be used normally, recording the first signal and assigning a first label; if it cannot be used normally, recording the first signal and assigning a second label, changing the parameters of the first signal, and executing S101, the parameter types of the first signal and the second signal both include amplitude and frequency; S103, obtaining a use range of the ultrasonic water meter according to the plurality of first signals with different labels.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] 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 is essentially 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.
[0058] 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.
[0059] 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. An ultrasonic water meter detection method, characterized in that: The method comprises: S101, sending a first signal to an ultrasonic water meter, and acquiring a second signal obtained after the first signal is processed by the ultrasonic water meter; S102, comparing the second signal with the first signal to determine whether the ultrasonic water meter can be used normally in the current environment, if it can be used normally, assigning a first label to the first signal; if it cannot be used normally, assigning a second label to the first signal, changing the parameters of the first signal, and executing S101, the parameter types of the first signal and the second signal both include amplitude and frequency; S103, obtaining a use range of the ultrasonic water meter according to the plurality of first signals with different labels.
2. The ultrasonic water meter detection method according to claim 1, characterized in that: The parameter types of the first signal and the second signal also include a delay time, and the delay time is equal to the timing of the TDC control unit in the ultrasonic water meter.
3. The ultrasonic water meter detection method according to claim 2, characterized in that: The changing the parameter of the first signal comprises: Calculating the absolute value of the difference between each type of parameter of the first signal and the second signal, and making a ratio between the absolute value of the difference of the corresponding parameter and the parameter value to obtain an adjustment ratio; The parameters in the first signal are adjusted according to the adjustment ratio to obtain a changed first signal.
4. The ultrasonic water meter detection method according to claim 2, characterized in that: The use scope of the ultrasonic water meter obtained according to the first signals with different labels includes: Acquire a third signal and a fourth signal, wherein the third signal and the fourth signal are obtained from a plurality of the first signals with different labels according to a selection rule; The average values of the parameters of each type of the third signal and the fourth signal are calculated to obtain a first result.
5. The ultrasonic water meter detection method according to claim 4, characterized in that: The selection rule includes: the third signal and the fourth signal are attached with different labels, and the absolute value of the difference between the parameter values of the third signal and the fourth signal is the smallest.
6. The ultrasonic water meter detection method according to claim 4, characterized in that: The obtaining of the use scope of the ultrasonic water meter according to the plurality of first signals with different labels also includes: Set the difference threshold; If the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is less than the difference threshold, the first result is the usage range of the ultrasonic water meter; if the absolute value of the difference between the same type of parameter values of the third signal and the fourth signal is greater than the difference threshold, precise measures are executed.
7. An ultrasonic water meter detection method according to claim 6, characterized in that: The precise measures include: Sending a first result to the ultrasonic water meter, acquiring a fifth signal obtained after the first result is processed by the ultrasonic water meter, and assigning the first label or the second label to the first result; A signal having a different label type from the fifth signal is selected between the third signal and the fourth signal, and an average value of each type of parameter is calculated with the first result to obtain a second result.
8. An ultrasonic water meter detection device, characterized in that: The device comprises: A preprocessing module, used for sending a first signal to the ultrasonic water meter, and obtaining a second signal obtained after the first signal is processed by the ultrasonic water meter; The verification module compares the second signal with the first signal to determine whether the ultrasonic water meter can be used normally in the current environment. If the ultrasonic water meter can be used normally, the first label is assigned to the first signal; if the ultrasonic water meter cannot be used normally, the second label is assigned to the first signal, and the parameters of the first signal are changed to execute S101. The parameter types of the first signal and the second signal both include amplitude and frequency. The calculation module is used to obtain the use range of the ultrasonic water meter according to a plurality of the first signals with different tags.
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 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1 to 7.
