Measurement correction system and method of ultrasonic water meter and storage medium
By collecting the ultrasonic propagation time of the ultrasonic water meter and selecting a filtering algorithm based on the water use state, the problem of large measurement errors of the ultrasonic water meter under different water use states is solved, and the accuracy and reliability of water flow measurement are improved.
Patent Information
- Application Number
- CN202411939302.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-03-25
AI Technical Summary
When measuring water flow, ultrasonic water meters are easily affected by interference factors such as bubbles, zero-point drift, spoiler, impurities, etc., resulting in large measurement errors and low accuracy and reliability.
By collecting the ultrasonic propagation time of the ultrasonic water meter in several continuous collection periods, the water use state is determined, and the ultrasonic propagation time is processed using corresponding filtering algorithms according to different water use states, the final time difference is obtained, and the flow data is calculated.
It improves the accuracy and reliability of ultrasonic water meter to measure water flow, reduces the calculation amount, and enhances the measurement accuracy under different water use conditions.
Smart Images

Figure CN119688041A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of water meter measurement, and in particular relates to a measurement and correction system, method and storage medium of an ultrasonic water meter. Background Art
[0002] In the context of increasingly important and stringent water resource management, traditional water meters are unable to meet the needs of modern water supply systems due to their limited measurement accuracy and susceptibility to interference from impurities in the water. As an innovative measurement technology, ultrasonic water meter measurement systems and methods have gradually become the mainstream in the field of water meter measurement due to their advantages such as high precision, non-contact measurement, wide measurement range, and no influence from fluid media. However, when measuring water flow, ultrasonic water meters are easily affected by interference factors such as bubbles, zero drift, turbulence, impurities, etc., and there is a technical problem of large flow measurement errors.
[0003] The existing technology collects ultrasonic propagation time difference data of ultrasonic water meters within a set time and filters the ultrasonic propagation time difference data to improve the accuracy of ultrasonic water meter measurement. However, in the actual water use scenarios of residents, the degree of interference to ultrasonic water meters varies. For example, users rarely use water at night, and the water flow inside the ultrasonic water meter remains basically stable; when the water supply to the community where the residents are located is stopped, the inside of the ultrasonic water meter may not be completely immersed in tap water, resulting in a large number of bubbles, which will affect the measurement of the ultrasonic water meter and cause interference, resulting in low accuracy and reliability of the ultrasonic water meter in measuring water flow.
[0004] The present invention provides a measurement and correction system, method and storage medium for an ultrasonic water meter to solve the above technical problems. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art; to this end, the present invention proposes a measurement and correction system, method and storage medium for an ultrasonic water meter, which are used to solve the technical problem that the prior art is difficult to process the measurement data according to different water usage conditions using a suitable filtering algorithm, thereby resulting in low accuracy and reliability of the ultrasonic water meter in measuring water flow.
[0006] To achieve the above-mentioned object, the first aspect of the present invention provides a measurement and correction system for an ultrasonic water meter, comprising: a data processing module, and a data acquisition module and a flow calculation module connected thereto;
[0007] The data acquisition module is used to collect the ultrasonic propagation time of the ultrasonic water meter within several continuous acquisition cycles;
[0008] The data processing module is used to determine the water use status based on the ultrasonic propagation time; filter the ultrasonic water meter based on the water use status and the ultrasonic propagation time to obtain a final time difference;
[0009] The flow calculation module is used to calculate the flow data of the ultrasonic water meter based on the final time difference.
[0010] Preferably, the collecting of ultrasonic propagation time of the ultrasonic water meter in a plurality of consecutive collection cycles comprises:
[0011] The ultrasonic propagation time of the ultrasonic water meter in n consecutive acquisition cycles is collected in sequence; wherein n is the total number of acquisition cycles, and n is an odd number; the ultrasonic propagation time includes the downstream propagation time and the upstream propagation time;
[0012] Determine whether the ultrasonic propagation time is greater than the corresponding preset time threshold; if yes, mark the corresponding ultrasonic propagation time as invalid data; if no, mark the corresponding ultrasonic propagation time as valid data;
[0013] Determine whether the total number of valid data is less than (n+1) / 2; if yes, re-collect the ultrasonic propagation time within n consecutive acquisition cycles; if no, retain the corresponding ultrasonic propagation time within n consecutive acquisition cycles.
[0014] Preferably, the determining of the water usage status based on the ultrasonic propagation time comprises:
[0015] A1: Extract the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles, and mark the downstream propagation time of the ultrasonic propagation time in each acquisition cycle i as Tia and the upstream propagation time Tib; where i = 1, 2, ..., n;
[0016] A2: Calculate the time difference ΔTi of acquisition cycle i by the formula ΔTi=|Tia-Tib|;
[0017] A3: Set time thresholds f1 and f2, and 0 <f1<f2;
[0018] A4: Determine whether the time difference ΔTi is less than the set time threshold f1; if yes, mark the water use status as water supply stop; if no, jump to A4:
[0019] A5: Determine whether the time difference ΔTi is greater than the set time threshold f2; if yes, mark the water use status as being in use; if no, mark the water use status as not being in use.
[0020] It should be noted that the water supply stop status refers to the state in which the user uses tap water after the tap water supply in the user’s community is stopped, water use refers to the state in which the user uses tap water when the tap water in the user’s community is normally supplied, and water non-use refers to the state in which the user turns off all water-using equipment when the tap water in the user’s community is normally supplied.
[0021] Preferably, the filtering process of the ultrasonic water meter based on the water usage status and the ultrasonic propagation time includes:
[0022] Extract the water use state and the ultrasonic propagation time in several consecutive acquisition cycles; calculate the environmental interference time difference ΔTg when the water use state is not in use;
[0023] If the water use status is that water is being used, a first filtering algorithm is used to filter the ultrasonic propagation time of a number of continuous acquisition cycles to obtain a standard time difference;
[0024] If the water use status is to stop water supply, a second filtering algorithm is used to filter the ultrasonic propagation time of several consecutive acquisition cycles to obtain a standard time difference;
[0025] The final time difference ΔT is calculated by the formula ΔT=|ΔTb-ΔTg|, wherein ΔTb is the standard time difference and || is the absolute value operator.
[0026] Preferably, the calculating of the water use state as the environmental interference time difference when the water is not used includes:
[0027] The time difference corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles is obtained, the time difference average value of the time difference of several consecutive acquisition cycles is calculated, and the time difference average value is marked as the environmental interference time difference ΔTg.
[0028] Preferably, the filtering process of the ultrasonic propagation time of a plurality of consecutive acquisition cycles by using the first filtering algorithm comprises:
[0029] Obtain the time difference ΔTi corresponding to the ultrasonic propagation time of the ultrasonic water meter in several continuous acquisition cycles, arrange the n time difference ΔTi in descending order to obtain a time difference queue, extract the m time difference values in the middle of the time difference queue, and mark the corresponding time differences as ΔTj in sequence; where j = 1, 2, ..., m, and down() is the rounding down function;
[0030] By formula The ultrasonic propagation time of several consecutive acquisition cycles is filtered to obtain a standard time difference ΔTb.
[0031] Preferably, the filtering process of the ultrasonic propagation time of a plurality of consecutive acquisition cycles by using the second filtering algorithm comprises:
[0032] Obtain the time difference ΔTi corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles, and remove the time difference with the largest value and the time difference with the smallest value; fit the time difference of several consecutive acquisition cycles based on linear fitting to obtain the time difference change curve f(t);
[0033] By integrating the time difference change curve f(t), the accumulated time difference is obtained
[0034] By formula The standard time difference ΔTb is calculated, wherein TN is the total duration of several consecutive acquisition cycles, t is time, and 0≤t≤TN.
[0035] Preferably, the step of fitting the time differences of a plurality of consecutive acquisition cycles based on linear fitting includes:
[0036] The time difference of several consecutive acquisition cycles is extracted, and the time is used as the independent variable and the time difference is used as the dependent variable. The corresponding time difference change curve is obtained through linear fitting.
[0037] A second aspect of the present invention provides a method for measuring and correcting an ultrasonic water meter, comprising:
[0038] S1: Collect the ultrasonic propagation time of the ultrasonic water meter in several consecutive collection cycles;
[0039] S2: Determine the water use status based on the ultrasonic propagation time;
[0040] S3: filtering the ultrasonic water meter based on the water use status and ultrasonic propagation time to obtain the final time difference;
[0041] S4: Calculate the flow data of the ultrasonic water meter based on the final time difference.
[0042] A third aspect of the present invention provides a storage medium, which includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the above-mentioned measurement and correction method of an ultrasonic water meter.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] 1. The present invention determines the water use status based on the ultrasonic propagation time, and comprehensively considers that the flow conditions of water in the ultrasonic water meter are different when the user is in different water use status; the ultrasonic propagation time is filtered by a corresponding filtering algorithm according to different water use status to obtain the final time difference, and the flow calculation module calculates the flow data of the ultrasonic water meter according to the final time difference, which is beneficial to improve the accuracy and reliability of the ultrasonic water meter in measuring water flow.
[0045] 2. The present invention arranges the time differences in descending order and extracts half of the time differences in the middle for calculating the standard time difference, thereby reducing the amount of calculation while ensuring data accuracy, which is beneficial to improving the accuracy and efficiency of ultrasonic water meters in measuring water flow.
[0046] 3. The present invention obtains a time difference variation curve by linearly fitting the time difference within several continuous acquisition cycles; integrates the time variation curve to obtain a cumulative time difference; divides the cumulative time difference by the acquisition duration to obtain a standard time difference, thereby reducing the influence of bubbles on measurement accuracy, thereby facilitating improving the accuracy and reliability of ultrasonic water meter measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 It is an overall flow chart of a measurement and correction method of an ultrasonic water meter of the present invention;
[0049] Figure 2 The figure is a schematic diagram of the principle of a measurement and correction system for an ultrasonic water meter of the present invention. DETAILED DESCRIPTION
[0050] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] See also Figure 1-Figure 2 , the first aspect of the present invention provides an ultrasonic water meter measurement and correction system, including: a data processing module, and a data acquisition module and a flow calculation module connected thereto;
[0052] Data acquisition module: used to collect the ultrasonic propagation time of the ultrasonic water meter within several continuous acquisition cycles;
[0053] Data processing module: used to determine the water usage status based on the ultrasonic propagation time; filter the ultrasonic water meter based on the water usage status and the ultrasonic propagation time to obtain the final time difference;
[0054] Flow calculation module: used to calculate the flow data of the ultrasonic water meter based on the final time difference.
[0055] In this embodiment, the ultrasonic propagation time of the ultrasonic water meter in several consecutive collection cycles is collected, including:
[0056] The ultrasonic propagation time of the ultrasonic water meter in n consecutive acquisition cycles is collected in sequence; wherein n is the total number of acquisition cycles, and n is an odd number; the ultrasonic propagation time includes the downstream propagation time and the upstream propagation time;
[0057] Determine whether the ultrasonic propagation time is greater than the corresponding preset time threshold; if yes, mark the corresponding ultrasonic propagation time as invalid data; if no, mark the corresponding ultrasonic propagation time as valid data;
[0058] Determine whether the total number of valid data is less than (n+1) / 2; if yes, re-collect the ultrasonic propagation time within n consecutive acquisition cycles; if no, retain the corresponding ultrasonic propagation time within n consecutive acquisition cycles.
[0059] In another embodiment, collecting the ultrasonic propagation time of the ultrasonic water meter in a plurality of consecutive collection cycles includes:
[0060] The ultrasonic propagation time of the ultrasonic water meter in n consecutive acquisition cycles is collected in sequence; wherein n is the total number of acquisition cycles, and n is an odd number; the ultrasonic propagation time includes the downstream propagation time and the upstream propagation time;
[0061] While collecting the ultrasonic propagation time, read the peak-to-peak value of the first wave voltage of the ultrasonic water meter; wherein the peak-to-peak value refers to the voltage difference obtained by subtracting the minimum value from the maximum value of the first wave voltage within a collection cycle;
[0062] Determine whether the peak-to-peak value is greater than the set peak-to-peak value threshold; if yes, it is considered that wave jumping occurs, the corresponding ultrasonic propagation time is marked as invalid data, and the ultrasonic propagation time within n consecutive acquisition cycles is re-collected; if no, the corresponding ultrasonic propagation time within n consecutive acquisition cycles is retained.
[0063] In this embodiment, determining the water usage state based on the ultrasonic propagation time includes:
[0064] A1: Extract the ultrasonic propagation times of the ultrasonic water meter within several consecutive acquisition cycles, and mark the forward flow propagation time of the ultrasonic propagation time in each acquisition cycle i as Tia and the reverse flow propagation time as Tib; where i = 1, 2, ……, n;
[0065] A2: Calculate the time difference ΔTi of the acquisition cycle i through the formula ΔTi = |Tia - Tib|;
[0066] A3: Set time thresholds f1 and f2, and 0 < f1 < f2; where the specific values of the time thresholds f1 and f2 are determined by experts in the field according to experience;
[0067] A4: Determine whether the time difference ΔTi is less than the set time threshold f1; if so, mark the water usage status as water supply stopped; otherwise, jump to A4:
[0068] A5: Determine whether the time difference ΔTi is greater than the set time threshold f2; if so, mark the water usage status as water is being used; otherwise, mark the water usage status as water is not being used.
[0069] It should be noted that the water supply stopped in the water usage status refers to the state of using tap water after the tap water supply in the user's community has stopped, the water is being used refers to the state of using tap water when the tap water supply in the user's community is normal, and the water is not being used refers to the state of the user closing all water-using devices when the tap water supply in the user's community is normal.
[0070] In this embodiment, filtering the ultrasonic water meter based on the water usage status and the ultrasonic propagation time includes:
[0071] Extract the water usage status and the ultrasonic propagation times within several consecutive acquisition cycles; calculate the environmental interference time difference ΔTg when the water usage status is water is not being used;
[0072] If the water usage status is water is being used, use the first filtering algorithm to filter the ultrasonic propagation times of several consecutive acquisition cycles to obtain the standard time difference;
[0073] If the water usage status is water supply stopped, use the second filtering algorithm to filter the ultrasonic propagation times of several consecutive acquisition cycles to obtain the standard time difference;
[0074] Calculate the final time difference ΔT = |ΔTb - ΔTg| through the formula; where ΔTb is the standard time difference and || is the absolute value operator.
[0075] Exemplarily, set the water usage status as water supply stopped, the standard time difference ΔTb = 0.0228, and the environmental interference time difference ΔTg = 0.00084 ms; calculate the final time difference ΔT = 0.02196 ms through the formula.
[0076] The present invention obtains a standard time difference by calculating the environmental interference time difference when the water use state is not water use, and adopts a corresponding filtering algorithm according to different water use states; the absolute value is taken after subtracting the environmental interference duration from the standard time difference, so that the final time difference calculated effectively eliminates the influence of inherent environmental factors on the ultrasonic water meter, which is beneficial to improving the accuracy and reliability of the ultrasonic water meter in measuring water flow.
[0077] In this embodiment, calculating the environmental interference time difference when the water use state is not water use includes:
[0078] The time difference corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles is obtained, the time difference average value of the time difference of several consecutive acquisition cycles is calculated, and the time difference average value is marked as the environmental interference time difference ΔTg.
[0079] Exemplarily, the time difference corresponding to the ultrasonic propagation time of several consecutive acquisition cycles is set to {0.0006ms, 0.0007ms, 0.0011ms, 0.0009ms, 0.0009ms}, and the average time difference is obtained by calculation, and the average time difference is marked as the environmental interference time difference ΔTg=0.00084ms.
[0080] In this embodiment, a first filtering algorithm is used to filter the ultrasonic propagation time of a plurality of consecutive acquisition cycles, including:
[0081] Obtain the time difference ΔTi corresponding to the ultrasonic propagation time of the ultrasonic water meter in several continuous acquisition cycles, arrange the n time difference ΔTi in descending order to obtain a time difference queue, extract the m time difference values in the middle of the time difference queue, and mark the corresponding time differences as ΔTj in sequence; where j = 1, 2, ..., m, and down() is the rounding down function;
[0082] By formula The ultrasonic propagation time of several consecutive acquisition cycles is filtered to obtain a standard time difference ΔTb.
[0083] For example, the time difference corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles is set to {ΔT1 = 0.02110ms, ΔT2 = 0.02070ms, ΔT3 = 0.02130ms, ΔT4 = 0.02120ms, ΔT5 = 0.02090ms}, and the n time difference values ΔTi are arranged in order from large to small to obtain a time difference queue {ΔT3 = 0.02130ms , ΔT4=0.02120ms, ΔT1=0.02110ms, ΔT5=0.02090ms, ΔT2=0.02070ms}, extract the m=3 time differences in the middle of the time difference queue, which are {ΔT4=0.02120ms, ΔT1=0.02110ms, ΔT5=0.02090ms}, and calculate the standard time difference ΔTb≈0.02107ms through the formula.
[0084] It is worth noting that when the water use status is water in use, the water flow in the ultrasonic water meter will be more disturbed than when water is not in use. The present invention sorts the time differences in order from large to small, and extracts nearly half of the time differences in the middle to obtain the standard time difference by calculating the average value. This reduces the amount of calculation while ensuring data accuracy, which is beneficial to improving the accuracy and efficiency of ultrasonic water meters in measuring water flow.
[0085] In this embodiment, a second filtering algorithm is used to filter the ultrasonic propagation time of a plurality of consecutive acquisition cycles, including:
[0086] Obtain the time difference ΔTi corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles, and remove the time difference with the largest value and the time difference with the smallest value; fit the time difference of several consecutive acquisition cycles based on linear fitting to obtain the time difference change curve f(t);
[0087] By integrating the time difference change curve f(t), the accumulated time difference is obtained
[0088] By formula The standard time difference ΔTb is calculated, wherein TN is the total duration of several consecutive acquisition cycles, t is time, and 0≤t≤TN.
[0089] For example, the time difference corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles is set to {ΔT1=0.02210ms, ΔT2=0.02230ms, ΔT3=0.02250ms, ΔT4=0.02290ms, ΔT5=0.0234ms}; the cumulative time difference is set to The total duration of several continuous acquisition cycles TN=5ms; the standard time difference ΔTb=0.0228ms is calculated by the formula.
[0090] It is worth noting that when the water use state is to stop water supply, the inside of the ultrasonic water meter is not completely immersed in tap water, and a large number of bubbles are generated. The ultrasonic water meter will be affected by the bubbles when measuring water flow, and the change trend of the water flow in the ultrasonic water meter when the water supply is stopped is that the flow is getting smaller and smaller; the present invention obtains a time difference change curve by linearly fitting the time difference in several continuous acquisition cycles; integrates the time change curve to obtain a cumulative time difference; divides the cumulative time difference by the total duration of the acquisition cycle to obtain a standard time difference, thereby reducing the influence of bubbles on water flow measurement, thereby facilitating improving the accuracy and reliability of ultrasonic water meters in measuring water flow.
[0091] In this embodiment, the time difference of several consecutive acquisition cycles is fitted based on linear fitting, including:
[0092] The time difference of several consecutive acquisition cycles is extracted, and the time is used as the independent variable and the time difference is used as the dependent variable. The corresponding time difference change curve is obtained through linear fitting.
[0093] A second aspect of the present invention provides a method for measuring and correcting an ultrasonic water meter, comprising:
[0094] S1: Collect the ultrasonic propagation time of the ultrasonic water meter in several consecutive collection cycles;
[0095] S2: Determine the water use status based on the ultrasonic propagation time;
[0096] S3: filtering the ultrasonic water meter based on the water use status and ultrasonic propagation time to obtain the final time difference;
[0097] S4: Calculate the flow data of the ultrasonic water meter based on the final time difference.
[0098] A third aspect of the present invention provides a storage medium, which includes a stored program, wherein when the program is run, the device where the storage medium is located is controlled to execute the above-mentioned measurement and correction method of an ultrasonic water meter.
[0099] Part of the data in the above formula is calculated by removing the dimension and taking its numerical value. The formula is a formula closest to the actual situation obtained by software simulation of a large amount of collected data; the preset parameters and preset thresholds in the formula are set by technical personnel in this field according to actual conditions or obtained through simulation of a large amount of data.
[0100] Working principle of the present invention:
[0101] The present invention collects the ultrasonic propagation time of an ultrasonic water meter within several continuous collection cycles; determines the water usage status based on the ultrasonic propagation time; performs filtering processing on the ultrasonic water meter based on the water usage status and the ultrasonic propagation time to obtain a final time difference; and calculates the flow data of the ultrasonic water meter based on the final time difference.
[0102] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A measurement and correction system for an ultrasonic water meter, comprising: The data processing module, and the data acquisition module and flow calculation module connected thereto are characterized in that: The data acquisition module is used to collect the ultrasonic propagation time of the ultrasonic water meter within several continuous acquisition cycles; The data processing module is used to determine the water use status based on the ultrasonic propagation time; filter the ultrasonic water meter based on the water use status and the ultrasonic propagation time to obtain a final time difference; The flow calculation module is used to calculate the flow data of the ultrasonic water meter based on the final time difference.
2. The ultrasonic water meter measurement and correction system according to claim 1, characterized in that: The collecting of ultrasonic propagation time of the ultrasonic water meter in a plurality of continuous collection cycles comprises: The ultrasonic propagation time of the ultrasonic water meter in n consecutive acquisition cycles is collected in sequence; wherein n is the total number of acquisition cycles, and n is an odd number; the ultrasonic propagation time includes the downstream propagation time and the upstream propagation time; Determine whether the ultrasonic propagation time is greater than the corresponding preset time threshold; if yes, mark the corresponding ultrasonic propagation time as invalid data; if no, mark the corresponding ultrasonic propagation time as valid data; Determine whether the total number of valid data is less than (n+1) / 2; if yes, re-collect the ultrasonic propagation time within n consecutive acquisition cycles; if no, retain the corresponding ultrasonic propagation time within n consecutive acquisition cycles.
3. The ultrasonic water meter measurement and correction system according to claim 2, characterized in that: The method of determining the water usage status based on the ultrasonic propagation time comprises: A1: Extract the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles, and mark the downstream propagation time of the ultrasonic propagation time in each acquisition cycle i as Tia and the upstream propagation time Tib; where i = 1, 2, ..., n; A2: Calculate the time difference ΔTi of acquisition cycle i by the formula ΔTi=|Tia-Tib|; A3: Set time thresholds f1 and f2, and 0 <f1<f2; A4: Determine whether the time difference ΔTi is less than the set time threshold f1; if yes, mark the water use status as water supply stop; if no, jump to A4: A5: Determine whether the time difference ΔTi is greater than the set time threshold f2; if yes, mark the water use status as being in use; if no, mark the water use status as not being in use.
4. The ultrasonic water meter measurement and correction system according to claim 3, characterized in that: The filtering process of the ultrasonic water meter based on the water usage status and the ultrasonic propagation time includes: Extract the water use state and the ultrasonic propagation time in several consecutive acquisition cycles; calculate the environmental interference time difference ΔTg when the water use state is not in use; If the water use status is that water is being used, a first filtering algorithm is used to filter the ultrasonic propagation time of a number of continuous acquisition cycles to obtain a standard time difference; If the water use status is to stop water supply, a second filtering algorithm is used to filter the ultrasonic propagation time of several consecutive acquisition cycles to obtain a standard time difference; The final time difference ΔT is calculated by the formula ΔT=|ΔTb-ΔTg|, wherein ΔTb is the standard time difference and || is the absolute value operator.
5. The ultrasonic water meter measurement and correction system according to claim 4, characterized in that: The calculation of the water use state is the environmental interference time difference when the water is not used, including: The time difference ΔTi corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles is obtained, the time difference average of the time difference ΔTi in several consecutive acquisition cycles is calculated, and the time difference average is marked as the environmental interference time difference ΔTg.
6. The ultrasonic water meter measurement and correction system according to claim 4, characterized in that: The first filtering algorithm is used to filter the ultrasonic propagation time of a plurality of consecutive acquisition cycles, including: Obtain the time difference ΔTi corresponding to the ultrasonic propagation time of the ultrasonic water meter in several continuous acquisition cycles, arrange the n time difference ΔTi in descending order to obtain a time difference queue, extract the m time difference values in the middle of the time difference queue, and mark the corresponding time differences as ΔTj in sequence; where j = 1, 2, ..., m, and down() is the rounding down function; By formula The ultrasonic propagation time of several consecutive acquisition cycles is filtered to obtain a standard time difference ΔTb.
7. The ultrasonic water meter measurement and correction system according to claim 4, characterized in that: The filtering process of the ultrasonic propagation time of a plurality of consecutive acquisition cycles by using the second filtering algorithm includes: Obtain the time difference ΔTi corresponding to the ultrasonic propagation time of the ultrasonic water meter in several consecutive acquisition cycles, and remove the time difference with the largest value and the time difference with the smallest value; fit the time difference of several consecutive acquisition cycles based on linear fitting to obtain the time difference change curve f(t); By integrating the time difference change curve f(t), the accumulated time difference is obtained By formula The standard time difference ΔTb is calculated, wherein TN is the total duration of several consecutive acquisition cycles, t is time, and 0≤t≤TN.
8. The ultrasonic water meter measurement and correction system according to claim 7, characterized in that: The step of fitting the time differences of a plurality of consecutive acquisition cycles based on linear fitting includes: The time difference of several consecutive acquisition cycles is extracted, and the time is used as the independent variable and the time difference is used as the dependent variable. The corresponding time difference change curve is obtained through linear fitting.
9. A method for measuring and correcting an ultrasonic water meter, based on the operation of a measuring and correcting system for an ultrasonic water meter according to any one of claims 1 to 8, characterized in that: include: S1: Collect the ultrasonic propagation time of the ultrasonic water meter in several consecutive collection cycles; S2: Determine the water use status based on the ultrasonic propagation time; S3: filtering the ultrasonic water meter based on the water use status and ultrasonic propagation time to obtain the final time difference; S4: Calculate the flow data of the ultrasonic water meter based on the final time difference.
10. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the measurement and correction method of an ultrasonic water meter according to claim 9.
Citation Information
Cited By
Interference suppression method for ultrasonic flow measurement, medium and ultrasonic water meter
CN120313693A
Ultrasonic measurement head wave detection level online correction method, equipment, medium and product
CN120352006A