Flow updating method, device and equipment of meter and medium

By employing dual control of the pre-discard stage and the pre-start stage, the problem of inaccurate measurement in electronic meters under electromagnetic interference is solved, achieving higher measurement accuracy and anti-interference capability.

CN122306182APending Publication Date: 2026-06-30GOLDCARD HIGH TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GOLDCARD HIGH TECH
Filing Date
2024-12-31
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

When electronic meters are subjected to electromagnetic interference, instantaneous flow fluctuations can lead to inaccurate measurements, and existing filtering methods cannot effectively avoid the effects of electromagnetic interference.

Method used

By employing dual control in the pre-drop and pre-start phases, the pre-drop traffic parameters and pre-start traffic parameters are determined, and the total accumulated traffic is updated to avoid inaccurate metering caused by improper threshold settings.

Benefits of technology

It improves the meter's anti-interference capability, ensures measurement accuracy, and avoids the impact of electromagnetic interference on measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122306182A_ABST
    Figure CN122306182A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a flow updating method, device, equipment and medium of a meter. The method comprises: obtaining an instantaneous flow of the meter, determining an operating state based on the instantaneous flow; when the operating state is a filtering state, entering a pre-discarding stage, determining a pre-discarding flow parameter, the pre-discarding flow parameter comprising: a first number of pre-discarding flows obtained in the pre-discarding stage and a pre-discarding cumulative flow; when the first number reaches a preset number, entering a pre-starting stage, determining a corresponding pre-starting flow parameter, the pre-starting flow parameter comprising: a second number of pre-starting flows obtained in the pre-starting stage and a pre-starting cumulative flow; determining the operating state of the meter based on the second number and the pre-starting cumulative flow, and when the operating state is a starting state, performing a first updating process on a total cumulative flow of the meter based on the pre-discarding cumulative flow and the pre-starting cumulative flow. The method improves the anti-interference capability of the meter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of instrumentation, and more particularly to a method, apparatus, device, and medium for updating the flow rate of a meter. Background Technology

[0002] With the continuous development and progress of electronic technology, communication technology, and sensor technology, the performance and functionality of electronic meters have been expanded with technological support, leading to their widespread application in various fields. The sensors in electronic meters are highly sensitive electronic components; therefore, electromagnetic interference can cause fluctuations in instantaneous flow rate, affecting the accuracy of instantaneous flow rate data acquisition. This can result in measurement problems such as over- or under-measuring, or no measurement at all, causing economic losses to both the meter reader and the user.

[0003] Currently, electronic meters mainly filter instantaneous flow rates by using thresholds or by filtering based on the direction of the instantaneous flow rate.

[0004] However, when filtering instantaneous flow rates using thresholding or filtering based on the direction of the instantaneous flow, the threshold value is difficult to determine. Setting the threshold too high or too low will affect the measurement accuracy of the electronic meter. Summary of the Invention

[0005] This application provides a method, apparatus, device, and medium for updating the flow rate of a meter, in order to improve the anti-interference capability of the meter.

[0006] In a first aspect, embodiments of this application provide a method for updating the flow rate of a meter, the method comprising:

[0007] The instantaneous flow rate of the meter is obtained, and the operating status of the meter is determined based on the instantaneous flow rate.

[0008] When the running state is the filtering state, the pre-discarding stage is entered, and the corresponding pre-discarding traffic parameters are determined. The pre-discarding traffic parameters include: the first number of times the pre-discarding traffic is obtained in the pre-discarding stage and the pre-discarding cumulative traffic.

[0009] If the first number of times reaches a preset number, the process enters the pre-start phase and determines the corresponding pre-start traffic parameters. The pre-start traffic parameters include: the second number of times the pre-start traffic is obtained during the pre-start phase and the pre-start cumulative traffic.

[0010] Based on the second number of times and the pre-start accumulated traffic, the operating status of the meter is determined, and if the operating status is the start status, the total accumulated traffic of the meter is updated first based on the pre-discard accumulated traffic and the pre-start accumulated traffic.

[0011] In one possible implementation, determining the corresponding pre-discard traffic parameters includes:

[0012] Determine whether the pre-discarded traffic obtained at the current time step meets the first preset condition, wherein the first preset condition is used to indicate that the traffic value and / or fluctuation value of the pre-discarded traffic is abnormal;

[0013] If so, the first number of times and the pre-discarded cumulative traffic are cleared, and the cleared pre-discarded traffic parameter is used as the pre-discarded traffic parameter;

[0014] If not, then based on the pre-discard traffic obtained at the current time step, perform a second update process on the second number of times and the pre-discard accumulated traffic, and use the pre-discard traffic parameter of the second update process as the pre-discard traffic parameter.

[0015] In one possible implementation, based on the pre-discard traffic obtained at the current time step, a second update process is performed on the second count and the pre-discard accumulated traffic, including:

[0016] Increase the first count by one unit;

[0017] Determine the traffic value of the pre-discarded traffic acquired at the current time step;

[0018] The traffic value of the pre-discarded traffic obtained at the current time step is added to the pre-discarded cumulative traffic.

[0019] In one possible implementation, the pre-start phase includes at least one pre-start traffic, wherein determining the corresponding pre-start traffic parameters includes:

[0020] Based on the at least one pre-startup traffic, determine the corresponding quantity, and use the quantity as the second number;

[0021] Determine the sum of traffic values ​​corresponding to the at least one pre-start traffic, and use the sum of traffic values ​​as the pre-start cumulative traffic.

[0022] In one possible implementation, determining the operating status of the meter based on the second number of times and the pre-startup cumulative traffic includes:

[0023] If the pre-startup traffic is greater than zero, determine whether the second count meets the preset count.

[0024] If so, determine whether the pre-start accumulated traffic meets the preset threshold. If the pre-start accumulated traffic meets the preset threshold, determine that the meter's operating state is the start state.

[0025] If not, then the meter's operating status is determined to be in the pre-start state.

[0026] In one possible implementation, based on the pre-discarded accumulated traffic and the pre-started accumulated traffic, a first update process is performed on the total accumulated traffic of the meter, including:

[0027] When the pre-discarding phase is determined, the total accumulated historical flow corresponding to the meter is determined.

[0028] The sum of the pre-discarded cumulative traffic, the pre-started cumulative traffic, and the total historical cumulative traffic is taken as the total cumulative traffic of the meter.

[0029] In one possible implementation, determining the operating status of the meter based on the instantaneous flow rate includes:

[0030] The flow rate value of the instantaneous flow is determined. If the flow rate value is positive and the flow rate value of the previous instantaneous flow is negative, the operating state of the meter is determined to be the filtering state.

[0031] Determine the gain value corresponding to the instantaneous flow rate. When the gain value is greater than the abnormal threshold, determine that the operating state of the meter is the filtering state.

[0032] Secondly, embodiments of this application provide a flow rate update device for a meter, comprising:

[0033] The acquisition module is used to acquire the instantaneous flow rate of the meter and determine the operating status of the meter based on the instantaneous flow rate.

[0034] The processing module is used to enter the pre-discarding stage when the running state is the filtering state, and determine the corresponding pre-discarding traffic parameters. The pre-discarding traffic parameters include: the first number of times the pre-discarding traffic is obtained in the pre-discarding stage and the pre-discarding cumulative traffic.

[0035] The processing module is further configured to enter a pre-start phase when the first number of times reaches a preset number of times, and determine the corresponding pre-start traffic parameters, wherein the pre-start traffic parameters include: the second number of times the pre-start traffic is obtained during the pre-start phase and the pre-start cumulative traffic.

[0036] The update module is used to determine the operating status of the meter based on the second number of times and the pre-start accumulated traffic, and when the operating status is the start status, to perform a first update process on the total accumulated traffic of the meter based on the pre-discarded accumulated traffic and the pre-start accumulated traffic.

[0037] In one possible implementation, the processing module is further configured to determine whether the pre-discard traffic acquired at the current time step meets the first preset condition, wherein the first preset condition is used to indicate that the traffic value and / or fluctuation value of the pre-discard traffic is abnormal; if yes, the first count and the pre-discard accumulated traffic are cleared, and the pre-discard traffic parameter after clearing is used as the pre-discard traffic parameter; if no, the second count and the pre-discard accumulated traffic are updated according to the pre-discard traffic acquired at the current time step, and the pre-discard traffic parameter after the second update is used as the pre-discard traffic parameter.

[0038] In one possible implementation, the processing module is further configured to increment the first count by one unit; and determine the flow value of the pre-discarded flow acquired at the current time step;

[0039] The traffic value of the pre-discarded traffic obtained at the current time step is added to the pre-discarded cumulative traffic.

[0040] In one possible implementation, the pre-start phase includes at least one pre-start traffic. The processing module is further configured to determine a corresponding quantity based on the at least one pre-start traffic, and use the quantity as the second count; determine the sum of traffic values ​​corresponding to the at least one pre-start traffic, and use the sum of traffic values ​​as the pre-start cumulative traffic.

[0041] In one possible implementation, the processing module is further configured to determine whether the second number of times meets a preset number of times when the pre-start traffic is greater than zero; if yes, then determine whether the pre-start accumulated traffic meets a preset threshold, and if the pre-start accumulated traffic meets the preset threshold, determine that the meter's operating state is a startup state; if no, then determine that the meter's operating state is a pre-start state.

[0042] In one possible implementation, the update module is further configured to determine the total historical traffic accumulation corresponding to the meter when entering the pre-discard phase; and to use the sum of the pre-discard accumulated traffic, the pre-start accumulated traffic, and the total historical traffic accumulation as the total traffic accumulation of the meter.

[0043] In one possible implementation, the acquisition module is further configured to determine the flow value of the instantaneous flow, and if the flow value is positive and the flow value of the previous instantaneous flow is negative, determine that the operating state of the meter is a filtering state; determine the gain value corresponding to the instantaneous flow, and if the gain value is greater than an abnormal threshold, determine that the operating state of the meter is a filtering state.

[0044] Thirdly, embodiments of this application provide a flow rate update device for a meter, including: a memory and a processor;

[0045] The memory stores computer-executed instructions;

[0046] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0047] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0048] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0049] The meter flow update method, apparatus, device, and medium provided in this application embodiment determine the first number of times in the pre-discarding stage and the pre-discarding accumulated flow. When the first number reaches a preset number, it enters the pre-starting stage. Normal startup is only possible when both the second number and the pre-starting accumulated flow meet the startup conditions. This avoids inaccurate metering caused by excessively large or small threshold settings. By updating the accumulated flow value through the pre-discarding accumulated flow and the pre-starting accumulated flow, it ensures that the accumulated amount that meets the conditions is not lost, effectively avoids the impact of electromagnetic interference on metering, and improves the meter's anti-interference capability. Attached Figure Description

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

[0051] Figure 1 A flowchart illustrating a meter flow update method provided in this application embodiment. Figure 1 ;

[0052] Figure 2 A flowchart illustrating a meter flow update method provided in this application embodiment. Figure 2 ;

[0053] Figure 3 A schematic diagram of the structure of a flow rate update device for a meter provided in an embodiment of this application;

[0054] Figure 4 This is a schematic diagram of the structure of a flow update device for a meter provided in an embodiment of this application.

[0055] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0057] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, products, or apparatus.

[0058] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0059] With the continuous development and progress of electronic technology, communication technology, and sensor technology, the performance and functionality of electronic meters have been expanded with technological support, leading to their widespread application in various fields. The sensors in electronic meters are highly sensitive electronic components; therefore, electromagnetic interference can cause fluctuations in instantaneous flow rate, affecting the accuracy of instantaneous flow rate data acquisition. This can result in measurement problems such as over- or under-measuring, or no measurement at all, causing economic losses to both the meter reader and the user.

[0060] Currently, electronic meters mainly filter instantaneous flow rates by using thresholds or by filtering based on the direction of the instantaneous flow rate; they can also filter flow rates using median algorithms or start-up filters.

[0061] However, filtering instantaneous flow rates using thresholding or based on flow direction presents several challenges. Thresholding has limitations: if the threshold is set too high, normal small flows will be filtered out; if the threshold is set too low, large fluctuations in flow rate will be difficult to filter out. Filtering based on flow direction is problematic: too few thresholds for flow rates in the same direction can lead to miscounting due to interference; too many thresholds can result in lost counts due to interference. Median algorithms and initial filtering methods cannot effectively handle highly fluctuating data, leading to metering errors due to instantaneous flow rate fluctuations. Therefore, existing filtering methods cannot effectively prevent the impact of electromagnetic interference on metering.

[0062] The meter flow update method provided in this application solves the problem of inaccurate metering caused by excessively large or small thresholds in the prior art through dual control of the pre-discard phase and the pre-start phase. By updating the total accumulated flow of the meter based on the pre-discard accumulated flow and the pre-start accumulated flow, the method solves the problem of metering loss caused by instantaneous flow fluctuations in the prior art, thereby improving the accuracy of the meter.

[0063] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0064] Figure 1 A flowchart illustrating a meter flow update method provided in this application embodiment. Figure 1 ,like Figure 1 As shown, the method includes:

[0065] S101. Obtain the instantaneous flow rate of the meter and determine the operating status of the meter based on the instantaneous flow rate;

[0066] The operating status includes startup status and filtering status.

[0067] Meters can be, for example, gas meters or water meters. When the instantaneous flow rate of a meter changes, it may be due to normal use or electromagnetic interference. Therefore, it is necessary to analyze whether the instantaneous flow rate is caused by normal use or electromagnetic interference. For instantaneous flow rates caused by electromagnetic interference, filtering is required to avoid inaccurate measurement, resulting in over- or under-measurement or no measurement, which could cause economic losses to both parties involved in the measurement.

[0068] For example, when the user is not using the gas meter, the instantaneous flow rate is 0, and there is no need to determine the operating status of the gas meter at this time. When the user is using the gas meter or when the gas meter is subjected to strong electromagnetic interference, the instantaneous flow rate will fluctuate. In this case, it is necessary to determine the operating status of the meter based on the instantaneous flow rate.

[0069] For example: Interference can be detected using an electromagnetic interference circuit to determine the meter's operating state as filtered; if interference is detected, the meter's operating state is determined to be filtered. Alternatively, the direction of instantaneous flow can be used to determine the meter's operating state: if the direction of instantaneous flow shows irregular jumps, the meter's operating state is determined to be filtered.

[0070] In one possible implementation, the specific process of determining the operating status of the meter based on instantaneous flow rate is described in detail, including:

[0071] 1) Determine the instantaneous flow rate value. If the flow rate value is positive and the previous instantaneous flow rate value is negative, determine that the meter's operating state is the filtering state.

[0072] The preceding instantaneous flow rate is used to indicate the instantaneous flow rate corresponding to the preceding time step of the instantaneous flow rate.

[0073] When the instantaneous flow rate at the current time step is positive, and the previous instantaneous flow rate was negative, it indicates a sudden change in the instantaneous flow rate, meaning the instantaneous flow rate is unstable. If measurement is performed directly without filtering, the meter's reading will be inaccurate. Therefore, even when the instantaneous flow rate at the current time step is positive, it is still necessary to assess the meter's operating status.

[0074] After obtaining the instantaneous flow rate, if the instantaneous flow rate is positive, it is also necessary to determine the operating status of the meter at this time. If it is in the startup phase, normal metering is performed; if it is in the filtering phase, the flow rate is filtered; if it is not in the filtering phase or the startup phase, it is necessary to determine the flow rate value of the previous instantaneous flow rate. If the flow rate value of the instantaneous flow rate in the previous time step is negative, the meter is determined to be in the filtering phase.

[0075] 2) Determine the gain value corresponding to the instantaneous flow rate. When the gain value is greater than the abnormal threshold, determine that the meter is in the filtering state.

[0076] Among them, the gain value is used to indicate the ratio of the meter's measured value to the actual flow rate; the threshold is used to indicate the range of gain values ​​for the meter's operation; and a gain value greater than the abnormal threshold is used to indicate abnormal operation of the meter.

[0077] When strong electromagnetic interference is present, it affects the detection signal of the metering module, causing the gain value to increase. This increased gain leads to a larger flow rate being measured, resulting in inaccurate meter readings.

[0078] Determine the gain value corresponding to the instantaneous flow rate. When the gain value corresponding to the instantaneous flow rate is greater than the abnormal threshold, determine that the meter's operating state is the filtering state.

[0079] This method improves the meter's anti-interference capability and accuracy by analyzing instantaneous flow rate without increasing hardware costs.

[0080] S102. When the running state is filtering state, enter the pre-discarding stage and determine the corresponding pre-discarding flow parameters. The pre-discarding flow parameters include: the first number of times the pre-discarding flow is obtained in the pre-discarding stage and the pre-discarding cumulative flow.

[0081] The first number indicates the amount of traffic to be discarded; the pre-discarded cumulative traffic indicates the total value of the traffic to be discarded.

[0082] When the operation is in filtering mode, the instantaneous flow rate displayed by the meter is 0. It then enters the pre-discarding phase, analyzes and processes the pre-discarding flow rate obtained in this phase, and determines the initial flow rate and the cumulative pre-discarding flow rate based on the analysis results.

[0083] Analysis and processing could be as follows: Analyze whether the pre-dropped traffic is stable. For unstable pre-dropped traffic, drop it. For stable pre-dropped traffic, retain it and determine the number of stable pre-dropped traffic and the total traffic value. Use the number of stable pre-dropped traffic as the first count. Use the total traffic value of stable pre-dropped traffic as the pre-dropped cumulative traffic.

[0084] For example, the analysis and processing could also involve analyzing whether the pre-discarded traffic is stable whenever a pre-discarded traffic is acquired. If it is stable, the first count is increased by one unit, and the pre-discarded cumulative traffic is updated based on the traffic value of the pre-discarded traffic.

[0085] S103. If the first number of times reaches the preset number of times, enter the pre-start phase and determine the corresponding pre-start traffic parameters. The pre-start traffic parameters include: the second number of times the pre-start traffic is obtained in the pre-start phase and the pre-start cumulative traffic.

[0086] The second number indicates the amount of pre-start traffic; the pre-start cumulative traffic indicates the total value of the pre-start traffic.

[0087] When the first count reaches the preset number, the second stage of the filtering phase begins: the pre-start stage. Based on the pre-start traffic obtained during the pre-start stage, the second count of the pre-start traffic and the cumulative pre-start traffic are determined.

[0088] It should be noted that during the pre-startup phase, if the acquired pre-startup traffic value is not greater than zero, it indicates that the instantaneous traffic at this time is not generated by normal use, but is caused by traffic fluctuations due to electromagnetic interference, indicating a startup failure. Therefore, the pre-discard traffic and pre-startup traffic determined in both the pre-discard and pre-startup phases are discarded to ensure that the accumulated amount that does not meet the conditions is not miscounted.

[0089] S104. Based on the second data and the pre-start accumulated flow, determine the operating status of the meter, and if the operating status is the start state, perform the first update process on the total accumulated flow of the meter based on the pre-discarded accumulated flow and the pre-start accumulated flow.

[0090] If the initial count and pre-start accumulated traffic meet preset requirements, such as both the initial count and the pre-start count meeting preset thresholds, then the meter's operating status is determined to be in the startup state; and the pre-discarded accumulated traffic and pre-start accumulated traffic are added to the meter's total accumulated traffic. This ensures that the accumulated traffic meeting the conditions is not lost.

[0091] This application provides a method for updating the flow rate of a meter. By determining the first number of times in the pre-discarding phase and the pre-discarding accumulated flow rate, the meter enters the pre-starting phase when the first number reaches a preset number. Normal startup is only possible when both the second number and the pre-starting accumulated flow rate meet the startup conditions. This avoids inaccurate metering caused by excessively large or small threshold settings. By updating the accumulated flow rate using the pre-discarding accumulated flow rate and the pre-starting accumulated flow rate, the method ensures that the accumulated amount that meets the conditions is not lost, effectively avoids the impact of electromagnetic interference on metering, and improves the meter's anti-interference capability.

[0092] Figure 2 A flowchart illustrating a meter flow update method provided in this application embodiment. Figure 2 In this embodiment Figure 1 Based on the embodiments, a method for updating the flow rate of a meter is described in detail, such as... Figure 2 As shown, the method includes:

[0093] S201. Obtain the instantaneous flow rate of the meter and determine the operating status of the meter based on the instantaneous flow rate;

[0094] Step S201 is similar to step S202, and will not be described again here.

[0095] S202. When the running state is filtering state, enter the pre-discarding stage;

[0096] S203. Determine whether the pre-discarded traffic meets the first preset condition. If yes, proceed to step S204; otherwise, proceed to step S205.

[0097] The first preset condition is used to indicate abnormal traffic values ​​and / or abnormal fluctuation values ​​of the traffic to be discarded.

[0098] During the pre-discarding phase, if the pre-discarded traffic meets the first preset condition—namely, abnormal pre-discarded traffic value and / or abnormal fluctuation value—it indicates that the instantaneous traffic is still unstable. Therefore, the previously determined pre-discarding parameters, including the initial count and the pre-discarded cumulative traffic, are reset to zero. After subsequent acquisitions of pre-discarded traffic, the count is restarted. It is then determined whether the pre-discarded traffic has abnormal traffic value and / or abnormal fluctuation value. If the pre-discarded traffic does not meet the first preset condition, the initial count is increased by one unit, and the traffic value of the pre-discarded traffic acquired at the current time step is added to the pre-discarded cumulative traffic. By resetting the initial count and pre-discarded cumulative traffic during unstable traffic periods, measurement is avoided when the traffic is unstable, thus improving measurement accuracy.

[0099] S204. Clear the first count and the pre-discarded cumulative traffic;

[0100] S205. Based on the pre-discard traffic obtained at the current time step, perform a second update process on the second count and the pre-discard cumulative traffic.

[0101] S206. Based on at least one pre-startup flow, determine the corresponding quantity and use the quantity as the second number;

[0102] S207. Determine the sum of traffic values ​​corresponding to at least one pre-start traffic, and use the sum of traffic values ​​as the pre-start cumulative traffic;

[0103] S208. If the pre-start flow value is greater than zero, determine whether the second count meets the preset number of times. If yes, proceed to step S209; otherwise, proceed to step S210.

[0104] If the pre-start traffic is greater than zero, and the second count does not meet the preset number of times, the meter's operating status is determined to be in the pre-start state, i.e., in the pre-start stage. If the second count meets the preset number of times, the meter continues to determine whether the pre-start accumulated traffic meets the preset threshold. If the pre-start accumulated traffic also meets the preset threshold, the meter's operating status is determined to be in the start state, and it starts normally. If the pre-start accumulated traffic does not meet the preset threshold, the meter is still in the pre-start stage, and it needs to continue to acquire pre-start traffic.

[0105] S209. Determine whether the pre-startup cumulative traffic meets the preset threshold.

[0106] S210. Determine the meter's operating status as pre-start status;

[0107] S211. Determine the total historical flow accumulation corresponding to the meter when entering the pre-discarding stage;

[0108] When entering the pre-discarding stage, it indicates that the instantaneous flow may be unstable. Therefore, the instantaneous flow displayed externally is 0, and the calculation of instantaneous flow into the total flow accumulation is paused. The historical total flow accumulation corresponding to when the meter enters the pre-discarding stage is determined.

[0109] S212. The sum of the pre-discarded cumulative traffic, the pre-started cumulative traffic, and the total historical cumulative traffic is taken as the total cumulative traffic of the meter.

[0110] By adding pre-discarded accumulated traffic and pre-started accumulated traffic to the total historical traffic accumulation, it is ensured that the accumulated traffic that meets the conditions will not be lost.

[0111] This application provides a method for updating the flow rate of a meter. By determining the first number of times in the pre-discarding phase and the pre-discarding cumulative flow rate, the pre-discarding flow rate parameter is cleared based on the unstable pre-discarding instantaneous flow rate. When the flow rate is unstable, the count is restarted until the first count reaches a preset number, at which point the pre-starting phase begins. Normal startup can only proceed when both the second count and the pre-starting cumulative flow rate meet the startup conditions. The flow rate accumulation value is updated using the pre-discarding and pre-starting cumulative flow rates. Accumulated amounts that do not meet the conditions are discarded, ensuring that accumulated amounts that meet the conditions are not lost and that accumulated amounts that do not meet the conditions are not miscounted. This effectively avoids the impact of electromagnetic interference on metering and improves the meter's anti-interference capability.

[0112] Figure 3 A schematic diagram of the structure of a flow rate update device for a meter provided in this application embodiment is shown below. Figure 3 As shown, the flow rate update device 30 for a meter provided in this embodiment includes:

[0113] The acquisition module 301 is used to acquire the instantaneous flow rate of the meter and determine the operating status of the meter based on the instantaneous flow rate.

[0114] The processing module 302 is used to enter the pre-discarding stage when the running state is the filtering state, and determine the corresponding pre-discarding traffic parameters. The pre-discarding traffic parameters include: the first number of times the pre-discarding traffic is obtained in the pre-discarding stage and the pre-discarding cumulative traffic.

[0115] The processing module 302 is also used to enter the pre-start phase when the first number of times reaches the preset number of times, and to determine the corresponding pre-start traffic parameters. The pre-start traffic parameters include: the second number of times the pre-start traffic is obtained in the pre-start phase and the pre-start cumulative traffic.

[0116] The update module 303 is used to determine the operating status of the meter based on the second data and the pre-start accumulated traffic, and when the operating status is the start state, to perform the first update process on the total accumulated traffic of the meter based on the pre-discarded accumulated traffic and the pre-start accumulated traffic.

[0117] In one possible implementation, the processing module 302 is further configured to determine whether the pre-discard traffic obtained at the current time step meets the first preset condition, the first preset condition being used to indicate that the traffic value of the pre-discard traffic is abnormal and / or the fluctuation value is abnormal; if yes, then the first count and the pre-discard accumulated traffic are cleared, and the pre-discard traffic parameter after the clearing process is used as the pre-discard traffic parameter; if no, then according to the pre-discard traffic obtained at the current time step, the second count and the pre-discard accumulated traffic are updated, and the pre-discard traffic parameter after the second update process is used as the pre-discard traffic parameter.

[0118] In one possible implementation, the processing module 302 is further configured to increment the first count by one unit; determine the flow value of the pre-discarded flow acquired at the current time step;

[0119] Add the traffic value of the pre-discarded traffic obtained at the current time step to the pre-discarded cumulative traffic.

[0120] In one possible implementation, the pre-start phase includes at least one pre-start traffic, determining the corresponding pre-start traffic parameters, and the processing module 302 is further configured to determine the corresponding quantity based on at least one pre-start traffic, and use the quantity as a second number; determine the sum of traffic values ​​corresponding to at least one pre-start traffic, and use the sum of traffic values ​​as the pre-start cumulative traffic.

[0121] In one possible implementation, the processing module 302 is further configured to determine whether the second count meets the preset number of times if the pre-start traffic is greater than zero; if yes, it determines whether the pre-start cumulative traffic meets the preset threshold, and if the pre-start cumulative traffic meets the preset threshold, it determines that the meter's operating state is the start state; if no, it determines that the meter's operating state is the pre-start state.

[0122] In one possible implementation, the update module 303 is further configured to determine the total historical traffic accumulation corresponding to the meter when entering the pre-discard phase; and to use the sum of the pre-discard accumulated traffic, the pre-start accumulated traffic, and the total historical traffic accumulation as the total traffic accumulation of the meter.

[0123] In one possible implementation, the acquisition module 301 is further configured to determine the instantaneous flow rate value; if the flow rate value is positive and the previous instantaneous flow rate value is negative, the meter's operating state is determined to be in a filtering state; and to determine the gain value corresponding to the instantaneous flow rate; if the gain value is greater than an abnormal threshold, the meter's operating state is determined to be in a filtering state. (The relevant content of the module claim is copied from the invention description and replaced with labels.)

[0124] This embodiment provides a flow rate update device for a meter, which can execute the method provided in the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0125] Figure 4 This is a schematic diagram of the structure of a flow rate update device for a meter provided in an embodiment of this application. Figure 4 As shown, the electronic device 40 provided in this embodiment includes at least one processor 401 and a memory 402. Optionally, the device 40 further includes a communication component 403. The processor 401, memory 402, and communication component 403 are connected via a bus 404.

[0126] In a specific implementation, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to perform the above-described method.

[0127] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0128] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0129] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0130] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0131] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0132] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

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

[0134] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0135] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0136] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0137] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0138] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. Historical storage media include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0139] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The historical program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above-described method embodiments; and the historical storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0140] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A method for updating the flow rate of a meter, characterized in that, The method includes: The instantaneous flow rate of the meter is obtained, and the operating status of the meter is determined based on the instantaneous flow rate. When the running state is the filtering state, the pre-discarding stage is entered, and the corresponding pre-discarding traffic parameters are determined. The pre-discarding traffic parameters include: the first number of times the pre-discarding traffic is obtained in the pre-discarding stage and the pre-discarding cumulative traffic. If the first number of times reaches a preset number, the process enters the pre-start phase and determines the corresponding pre-start traffic parameters. The pre-start traffic parameters include: the second number of times the pre-start traffic is obtained during the pre-start phase and the pre-start cumulative traffic. Based on the second number of times and the pre-start accumulated traffic, the operating status of the meter is determined, and if the operating status is the start status, the total accumulated traffic of the meter is updated first based on the pre-discard accumulated traffic and the pre-start accumulated traffic.

2. The method according to claim 1, characterized in that, The determination of the corresponding pre-discard traffic parameters includes: Determine whether the pre-discarded traffic obtained at the current time step meets the first preset condition, wherein the first preset condition is used to indicate that the traffic value and / or fluctuation value of the pre-discarded traffic is abnormal; If so, the first number of times and the pre-discarded cumulative traffic are cleared, and the cleared pre-discarded traffic parameter is used as the pre-discarded traffic parameter; If not, then based on the pre-discard traffic obtained at the current time step, perform a second update process on the second number of times and the pre-discard accumulated traffic, and use the pre-discard traffic parameter of the second update process as the pre-discard traffic parameter.

3. The method according to claim 2, characterized in that, The second update process, which updates the second number of times and the pre-discarded cumulative traffic based on the pre-discarded traffic obtained at the current time step, includes: Increase the first count by one unit; Determine the traffic value of the pre-discarded traffic acquired at the current time step; The traffic value of the pre-discarded traffic obtained at the current time step is added to the pre-discarded cumulative traffic.

4. The method according to claim 1, characterized in that, The pre-start phase includes at least one pre-start traffic flow, and determining the corresponding pre-start traffic flow parameters includes: Based on the at least one pre-startup traffic, determine the corresponding quantity, and use the quantity as the second number; Determine the sum of traffic values ​​corresponding to the at least one pre-start traffic, and use the sum of traffic values ​​as the pre-start cumulative traffic.

5. The method according to claim 1, characterized in that, Determining the operating status of the meter based on the second number of times and the pre-startup accumulated traffic includes: If the pre-startup traffic is greater than zero, determine whether the second count meets the preset count. If so, determine whether the pre-start accumulated traffic meets the preset threshold. If the pre-start accumulated traffic meets the preset threshold, determine that the meter's operating state is the start state. If not, then the meter's operating status is determined to be in the pre-start state.

6. The method according to claim 1, characterized in that, The first update process for the total accumulated traffic of the meter based on the pre-discarded accumulated traffic and the pre-started accumulated traffic includes: When the pre-discarding phase is determined, the total accumulated historical flow corresponding to the meter is determined. The sum of the pre-discarded cumulative traffic, the pre-started cumulative traffic, and the total historical cumulative traffic is taken as the total cumulative traffic of the meter.

7. The method according to claim 1, characterized in that, Determining the operating status of the meter based on the instantaneous flow rate includes: The flow rate value of the instantaneous flow is determined. If the flow rate value is positive and the flow rate value of the previous instantaneous flow is negative, the operating state of the meter is determined to be the filtering state. Determine the gain value corresponding to the instantaneous flow rate. When the gain value is greater than the abnormal threshold, determine that the operating state of the meter is the filtering state.

8. A flow rate updating device for a meter, characterized in that, include: The acquisition module is used to acquire the instantaneous flow rate of the meter and determine the operating status of the meter based on the instantaneous flow rate. The processing module is used to enter the pre-discarding stage when the running state is the filtering state, and determine the corresponding pre-discarding traffic parameters. The pre-discarding traffic parameters include: the first number of times the pre-discarding traffic is obtained in the pre-discarding stage and the pre-discarding cumulative traffic. The processing module is further configured to enter a pre-start phase when the first number of times reaches a preset number of times, and determine the corresponding pre-start traffic parameters, wherein the pre-start traffic parameters include: the second number of times the pre-start traffic is obtained during the pre-start phase and the pre-start cumulative traffic. The update module is used to determine the operating status of the meter based on the second number of times and the pre-start accumulated traffic, and when the operating status is the start status, to perform a first update process on the total accumulated traffic of the meter based on the pre-discarded accumulated traffic and the pre-start accumulated traffic.

9. A flow rate update device for a meter, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.