Flow detection method and detection device of flow meter
By calculating the flow data difference and performing calibration, the problem of inaccurate cumulative flow statistics caused by flowmeter replacement or sudden reading in the prior art is solved, and the accuracy of cumulative flow calculation is improved.
Patent Information
- Application Number
- CN202311445727.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-05-02
AI Technical Summary
When calculating the daily cumulative amount of liquids in the prior art, due to the replacement of the flowmeter, sudden change in the flow reading or zeroing of the reading, the cumulative flow statistics are inaccurate and the error is large.
By acquiring the first flow data and the second flow data in any time period, the traffic data difference value is calculated, and whether it is abnormal data is determined based on the difference value and the preset traffic threshold value. If it is abnormal data, the difference value is recorded and the accumulated traffic is calibrated using the third flow data and the fourth flow data.
It improves the accuracy of calculating cumulative flow, reduces errors, and ensures accurate statistics of daily cumulative consumption.
Smart Images

Figure CN119915358A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flow monitoring, and in particular to a flow detection method and a detection device for a flow meter. Background Art
[0002] A flow meter is an instrument used to measure the flow of fluid in a pipe or open channel. During the construction of the smart water platform, water plants usually install one or more flow meters in the liquid pipeline to detect the flow of the liquid in the pipeline. The flow of the liquid includes the instantaneous flow and cumulative flow of the liquid. The smart water platform will collect and record the instantaneous flow readings and cumulative flow readings of these flow meters.
[0003] When it is necessary to count the daily cumulative usage of liquid, the smart water platform will obtain all the cumulative flow readings of the flow meter, and calculate the difference between the first and last readings of the daily cumulative flow readings. This difference is the daily cumulative usage value. However, in the actual calculation process, there are situations such as flow meter replacement, sudden changes in flow readings, and flow readings returning to zero, which lead to inaccurate cumulative flow statistics. Taking the replacement of the flow meter as an example, since the replaced flow meter has an initial cumulative flow reading, if the difference between the initial cumulative flow reading and the current cumulative flow reading of the flow meter before the replacement is too large, it will cause a large error in calculating the daily cumulative usage, resulting in inaccurate daily cumulative statistics. Summary of the invention
[0004] In order to solve the deficiencies of the prior art, an object of the present invention is to provide a flow detection method and a detection device for a flow meter, which have high accuracy when calculating the accumulated usage.
[0005] To achieve the above object, the present invention adopts the following technical solution:
[0006] A flow detection method for a flow meter, comprising:
[0007] Obtaining first flow data at any time in any time period and second flow data at a time after any time, and obtaining a flow data difference according to the first flow data and the second flow data;
[0008] Determine whether the flow data difference is abnormal data based on the flow data difference and the preset flow threshold;
[0009] If the flow data difference is abnormal data, record the flow data difference, obtain the third flow data at the first moment and the fourth flow data at the last moment in any time period, and obtain the cumulative flow in any time period according to the flow data difference, the third flow data and the fourth flow data;
[0010] If the flow data difference is not abnormal data, obtain the third flow data at the first moment and the fourth flow data at the last moment in any time period, and obtain the cumulative flow in any time period based on the third flow data and the fourth flow data.
[0011] Further, obtaining a flow data difference according to the first flow data and the second flow data includes:
[0012] The first flow data, the second flow data and the flow data difference satisfy the following relationship:
[0013] f(t+1)-f(t)=diff(t)
[0014] Wherein f(t+1) is the second flow data, f(t) is the first flow data, and diff(t) is the flow data difference.
[0015] Further, obtaining the first flow data at any time in any time period and the second flow data at a time after any time includes:
[0016] Get traffic data at all times in any time period;
[0017] Delete the flow data whose value is equal to 0;
[0018] Sort the remaining traffic data in chronological order and establish a traffic database;
[0019] Obtain the first flow data at any time in the flow database and the second flow data at a time after any time.
[0020] Further, judging whether the flow data difference is abnormal data according to the flow data difference and a preset flow threshold value includes:
[0021] Determine whether the flow data difference is greater than or equal to 0;
[0022] If the flow data difference is greater than or equal to 0, determine whether the flow data difference is abnormal data based on the flow data difference and a preset first flow threshold;
[0023] If the flow data difference is less than 0, it is determined whether the flow data difference is abnormal data based on the flow data difference and a preset second flow threshold.
[0024] Further, judging whether the flow data difference is abnormal data according to the flow data difference and a preset first flow threshold value includes:
[0025] Obtain the first instantaneous flow data at all times within any time period;
[0026] Acquire a preset first flow threshold value according to the first instantaneous flow data;
[0027] Determine whether the flow data difference is greater than or equal to a preset first flow threshold;
[0028] If the flow data difference is greater than or equal to a preset first flow threshold, the flow data difference is abnormal data.
[0029] Further, obtaining a preset first flow threshold according to the first instantaneous flow data includes:
[0030] The first instantaneous flow data and the preset first flow threshold satisfy the following relationship:
[0031] A=∫s(x)dx
[0032] Wherein A is the preset first flow threshold, and s(x) is the first instantaneous flow data at the xth moment.
[0033] Further, judging whether the flow data difference is abnormal data according to the flow data difference and a preset second flow threshold value includes:
[0034] Obtain the second instantaneous flow data at a moment after any moment;
[0035] defining the second instantaneous flow data as a preset second flow threshold;
[0036] If the preset second flow threshold is greater than or equal to 0, the flow data difference is abnormal data.
[0037] Further, obtaining the accumulated flow in any time period according to the flow data difference, the third flow data and the fourth flow data includes:
[0038] The flow data difference, the third flow data, the fourth flow data and the accumulated flow satisfy the following relationship:
[0039] Q=f(last)-f(first)-∑diff(n)
[0040] Where Q is the accumulated flow, f(last) is the fourth flow data, f(first) is the third flow data, and diff(n) is the difference in flow data.
[0041] Further, obtaining the accumulated flow in any time period according to the third flow data and the fourth flow data includes:
[0042] The third flow data, the fourth flow data and the accumulated flow satisfy the following relationship:
[0043] Q=f(last)-f(first)
[0044] Where Q is the accumulated flow, f(last) is the fourth flow data, and f(first) is the third flow data.
[0045] A flow detection device for a flow meter, used for measuring the accumulated flow of the flow meter, the flow detection device comprising:
[0046] Detection module, which is used to obtain traffic data at all times in any time period;
[0047] A processing module, the processing module is communicatively connected to the detection module, the processing module is used to obtain the flow data transmitted by the detection module, the processing module is also used to obtain the first flow data at any moment in the flow data and the second flow data at a moment after any moment, the processing module is also used to obtain the third flow data at the first moment and the fourth flow data at the last moment in the flow data; the processing module is also used to obtain the flow data difference according to the first flow data and the second flow data, and the processing module is also used to determine whether the flow data difference is abnormal data according to the difference and a preset flow threshold;
[0048] In the case where the processing module determines that the flow data difference is abnormal data, the processing module records the flow data difference and obtains the cumulative flow according to the flow data difference, the third flow data and the fourth flow data; in the case where the processing module determines that the flow data difference is not abnormal data, the processing module obtains the cumulative flow according to the third flow data and the fourth flow data. In summary, the detection module can detect the flow data at all times in any time period and encapsulate the flow data as a flow signal and transmit it to the processing module. The processing module obtains the first flow data, the second flow data, the third flow data and the fourth flow data in the flow data, and obtains the flow data difference according to the first flow data and the second flow data. The processing module determines whether the flow data difference is abnormal data according to the preset flow threshold and the flow data difference, and in the case where the processing module determines that the flow data difference is abnormal data, the processing module obtains the cumulative flow according to the third flow data, the fourth flow data and the flow data difference transmitted to the detection module. Through the above settings, the processing module can use the flow data difference to calibrate the cumulative flow when the flow data difference is large, thereby improving the accuracy of calculating the cumulative flow. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A connection block diagram of a flow detection device and a flow meter in an embodiment of the present application;
[0050] Figure 2 This is a flow chart for calculating the cumulative flow in an implementation manner of the present application;
[0051] Figure 3 A flowchart of obtaining first flow data and second flow data in an implementation manner of the present application;
[0052] Figure 4This is a flow chart for determining whether the flow data difference is abnormal data in an implementation manner of the present application;
[0053] Figure 5 This is a flow chart of determining whether a flow data difference is abnormal data according to a preset first flow threshold value in an implementation manner of the present application;
[0054] Figure 6 This is a flow chart of determining whether a flow data difference is abnormal data according to a preset second flow threshold in an implementation manner of the present application. DETAILED DESCRIPTION
[0055] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the specific implementation modes of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the implementation modes of the present invention.
[0056] like Figure 1 As shown, the present application provides a flow detection device 100, which is used to detect the cumulative flow of a flow meter 200, wherein the cumulative flow can be the cumulative flow within any day, and the cumulative flow can also be the cumulative flow within any week. The flow detection device 100 includes a detection module 11 and a processing module 12. The detection module 11 is used to obtain the flow data at all times in any time period, that is, the cumulative flow readings at all times on the flow meter 200 in any time period. The detection module 11 is also used to encapsulate the flow data at all times into a flow signal and transmit it to the processing module. For example, when the detection interval of the detection module 11 is 1 hour, the detection module 11 obtains the cumulative flow readings on the flow meter 200 at all times in any day, that is, a total of 24 flow data, and the detection module 11 encapsulates the 24 flow data into a flow signal and transmits it to the processing module 12. The processing module 12 is used to receive the flow data transmitted by the detection module 11. The processing module 12 is also used to obtain the first flow data at any time in the flow data and the second flow data at a time after any time. The processing module 12 obtains the flow data difference according to the first flow data and the second flow data. For example, the processing module 12 obtains the accumulated flow reading of the flow meter 200 at 3 o'clock in the flow data and defines it as the first flow data, and the accumulated flow reading of the flow meter 200 at 4 o'clock is the second flow data.
[0057] Further, the processing module 12 is also used to obtain the third flow data at the first moment in the flow data, that is, the cumulative flow reading of the flow meter 200 at the first moment in the arbitrary time period, and the processing module 12 is also used to obtain the fourth flow data at the last moment in the flow data, that is, the cumulative flow reading of the flow meter 200 at the last moment in the time period. For example, when the detection interval of the detection module 11 is 1 hour, the third flow data is the cumulative flow reading of the flow meter 200 at 0 o'clock on any day, and the fourth flow data is the cumulative flow reading of the flow meter 200 at 23 o'clock on the day. The processing module 12 stores a preset flow threshold value, and the processing module 12 can determine whether the flow data difference is abnormal data according to the flow data difference and the preset flow threshold value. When the processing module 12 determines that the flow data difference is abnormal data, the processing module 12 can record the flow data difference, and then the processing module 12 obtains the cumulative flow in the time period according to the flow data difference, the third flow data and the fourth flow data. When the processing module 12 determines that the flow data difference is not abnormal data, the processing module 12 obtains the cumulative flow in the time period according to the third flow data and the fourth flow data. The detection module 11 includes a module device and a communication module. The module device can obtain the flow reading of the flow meter 200 and encapsulate the flow reading into a flow signal through the communication module to transmit to the processing module 12. The processing module 12 is a CPU (Central Processing Unit) or an MCU (Microcontroller Unit).
[0058] For example, when the flow meter 200 is replaced, since the replaced flow meter 200 has an initial cumulative flow reading, if the flow data difference between the initial cumulative flow reading and the cumulative flow reading of the flow meter 200 before the replacement is too large, it will cause a large error when the processing module 12 calculates the cumulative flow. Through the above configuration, the processing module 12 can record the flow data difference when the flow data difference is large, and the processing module 12 corrects the cumulative flow according to the flow data difference, thereby reducing the error when calculating the cumulative flow and improving the accuracy when calculating the cumulative flow.
[0059] It is understandable that when the flow reading of the flow meter 200 changes suddenly or returns to zero, the processing module 12 can determine that the flow data difference is large, and then use the flow data difference to correct the accumulated flow, thereby improving the accuracy of calculating the flow data under different abnormal conditions.
[0060] like Figure 2 As shown, the present application also provides a flow detection method of the flow meter 200, based on the flow detection device 100 detecting the accumulated flow of the flow meter 200, the flow detection method includes the following steps:
[0061] S1, start;
[0062] S2, obtaining first flow data at any time in any time period and second flow data at a time after any time, and obtaining a flow data difference according to the first flow data and the second flow data;
[0063] S3, judging whether the flow data difference is abnormal data according to the flow data difference and the preset flow threshold value, if the flow data difference is abnormal data, executing step S4, if the flow data difference is not abnormal data, executing step S5;
[0064] S4, record the flow data difference, obtain the third flow data at the first moment and the fourth flow data at the last moment in any time period, and obtain the cumulative flow in any time period according to the flow data difference, the third flow data and the fourth flow data;
[0065] S5. Obtain the third flow data at the first moment and the fourth flow data at the last moment in any time period, and obtain the cumulative flow in any time period according to the third flow data and the fourth flow data;
[0066] S6. End.
[0067] Specifically, the detection module 11 obtains the flow data at all times within any time period, the detection module 11 encapsulates the flow data into a flow signal and transmits it to the processing module, the processing module 12 obtains the first flow data of the flow meter 200 at any moment in the flow data transmitted by the detection module 11, and the processing module 12 also obtains the second flow data of the flow meter 200 at the next moment after that moment, and then the processing module 12 calculates the flow data difference based on the first flow data and the second flow data.
[0068] Furthermore, the processing module 12 also obtains the third flow data at the first moment in the time period in the flow data, and the processing module 12 also obtains the fourth flow data at the last moment in the time period in the flow data. A preset flow threshold is stored in the processing module 12, and the processing module 12 determines whether the flow data difference is abnormal data based on the flow data difference and the preset flow threshold. If the processing module 12 determines that the flow data difference is abnormal data, the processing module 12 records the flow data difference, and the processing module 12 calculates the cumulative flow based on the flow data difference, the third flow data and the fourth flow data. If the processing module 12 determines that the flow data difference is not abnormal data, the processing module 12 calculates the cumulative flow based on the third flow data and the fourth flow data. Through the above settings, in the case of abnormal flow data difference, the processing module 12 can correct the cumulative flow according to the abnormal flow data difference, thereby reducing the error in calculating the cumulative flow and improving the accuracy in calculating the cumulative flow.
[0069] It should be noted that after the processing module 12 determines that the flow data difference is abnormal data, the processing module 12 can also generate an abnormal record and store it in the processing module 12, so that the user can determine that an abnormal situation has occurred by viewing the abnormal record in the processing module 12, and the user can also obtain the number of abnormal situations by viewing the abnormal record in the processing module 12, so as to facilitate the user's management and maintenance of the flow meter 200. The abnormal situation includes meter replacement operation and flow meter damage.
[0070] As an implementation method, a flow data difference is obtained according to the first flow data and the second flow data. The first flow data, the second flow data and the flow data difference satisfy the following relationship:
[0071] f(t+1)-f(t)=diff(t)
[0072] Wherein f(t+1) is the second flow data, f(t) is the first flow data, and diff(t) is the flow data difference. After the processing module 12 obtains the first flow data and the second flow data, the processing module calculates the flow data difference according to the above relationship.
[0073] like Figure 3 As shown, as an implementation method, obtaining the first flow data at any time in any time period and the second flow data at a time after any time includes:
[0074] S21, obtaining traffic data at all times in any time period;
[0075] S22, deleting the flow data whose value is equal to 0;
[0076] S23, sorting the remaining traffic data in chronological order and establishing a traffic database;
[0077] S24, obtaining first flow data at any time and second flow data at a time after any time in the flow database.
[0078] Specifically, the detection module 11 obtains the traffic data at all times within any time period, the detection module 11 encapsulates the traffic data at all times into traffic signals and transmits them to the processing module 12, the processing module 12 deletes the traffic data at all times whose values are equal to 0, the processing module 12 sorts the remaining traffic data after the deletion in chronological order and establishes a traffic database, the processing module 12 obtains the first traffic data at any time in the database and the second traffic data at a time after any time.
[0079] It should be noted that when the detection module 11 fails, or the communication connection between the detection module 11 and the processing module 12 fails, the value of the flow data transmitted by the detection module 11 to the processing module 12 is equal to 0. If the detection module 11 calculates the flow data difference based on the flow data with a value equal to 0, a large error will occur in the flow data difference, which will in turn cause a large error in calculating the cumulative flow. Through the above settings, the processing module 12 can delete the flow data with abnormal values, thereby improving the accuracy of calculating the cumulative flow.
[0080] like Figure 4 As shown, as an implementation method, judging whether the flow data difference is abnormal data according to the flow data difference and a preset flow threshold value includes:
[0081] S31, determine whether the flow data difference is greater than or equal to 0, if the flow data difference is greater than or equal to 0, execute step S32; if the flow data difference is less than 0, execute step S33;
[0082] S32, judging whether the flow data difference is abnormal data according to the flow data difference and a preset first flow threshold;
[0083] S33. Determine whether the flow data difference is abnormal data according to the flow data difference and a preset second flow threshold.
[0084] Specifically, the preset flow thresholds stored in the processing module 12 include a preset first flow threshold and a preset second flow threshold. After the processing module 12 obtains the flow data difference, the processing module 12 determines whether the flow data is greater than or equal to 0. If the processing module 12 determines that the flow data difference is greater than or equal to 0, the processing module 12 determines whether the flow data difference is abnormal data based on the flow data difference and the preset first flow threshold, and then the processing module 12 calculates the cumulative flow based on the flow data difference when the flow data difference is abnormal data; if the processing module 12 determines that the flow data difference is less than 0, the processing module 12 determines whether the flow data difference is abnormal data based on the flow data difference and the preset second flow threshold, and then the processing module 12 calculates the cumulative flow based on the flow data difference when the flow data difference is abnormal data. Through the above settings, the processing module 12 can determine whether the flow data difference is abnormal data based on the flow data difference and the preset flow threshold, and can correct the cumulative flow when the processing module 12 determines that the flow data difference is abnormal data, thereby improving the accuracy of calculating the cumulative flow.
[0085] like Figure 5 As shown, further, judging whether the flow data difference is abnormal data according to the flow data difference and a preset first flow threshold value includes:
[0086] S321, obtaining the first instantaneous flow data at all times in any time period;
[0087] S322, obtaining a preset first flow threshold according to the first instantaneous flow data;
[0088] S323, determine whether the flow data difference is greater than or equal to a preset first flow threshold, if so, execute step S324, if not, execute step S325;
[0089] S324, recording the flow data difference as abnormal data;
[0090] S325: Do not record the flow data difference.
[0091] Specifically, the detection module 11 obtains the first instantaneous flow data at all times within any time period, and the detection module 11 encapsulates the first instantaneous flow data into a flow signal and transmits it to the processing module 12, and then the processing module 12 obtains a preset first flow threshold according to the first instantaneous flow data at all times, and the first flow threshold and the first instantaneous flow satisfy the following relationship:
[0092] A=∫s(x)dx
[0093] Wherein A is the preset first flow threshold, and s(x) is the first instantaneous flow data at the xth moment. After the processing module 12 receives the flow data difference transmitted by the detection module 11, if the processing module 12 determines that the flow data difference is greater than or equal to 0, the processing module 12 determines whether the flow data difference is greater than or equal to the preset first flow threshold. If the processing module 12 determines that the flow data difference is greater than or equal to the preset first flow threshold, the processing module 12 determines that the flow data difference is abnormal data and records the flow data difference, and then the processing module 12 calculates the cumulative flow according to the flow data difference, the third flow data and the fourth flow data. If the processing module 12 determines that the flow data difference is less than the preset first flow threshold, the processing module 12 does not record the flow data difference, and then the processing module 12 calculates the cumulative flow according to the third flow data and the fourth flow data. Through the above settings, in the case of abnormal flow data difference, the processing module 12 can correct the cumulative flow according to the abnormal flow data difference, thereby reducing the error in calculating the cumulative flow and improving the accuracy in calculating the cumulative flow.
[0094] like Figure 6 As shown, as an implementation method, the processing module 12 determines whether the flow data difference is abnormal data according to the flow data difference and the preset second flow threshold value, including:
[0095] S331, obtaining the second instantaneous flow data at a moment after any moment;
[0096] S332, defining the second instantaneous flow data as a preset second flow threshold;
[0097] S333, determine whether the preset second flow threshold is greater than or equal to 0, if so, execute step S334, if not, execute step S335;
[0098] S334, recording the flow data difference as abnormal data;
[0099] S335. Do not record the flow data difference.
[0100] Specifically, after the processing module 12 obtains the first flow data at any moment and the second flow data at a moment after any moment, the processing module 12 also obtains the second instantaneous flow data at a moment after any moment, and then the processing module 12 defines the second instantaneous flow data as a preset second flow threshold value. After the processing module 12 obtains the flow data difference, if the processing module 12 determines that the flow data difference is less than 0, the processing module 12 determines whether the preset second flow threshold value is greater than 0. If the processing module 12 determines that the flow data difference is less than 0, and the processing module 12 determines that the preset second flow threshold value is greater than or equal to 0, the processing module 12 determines that the flow data difference is abnormal data, and then the processing module 12 calculates the cumulative flow according to the flow data difference, the third flow data, and the fourth flow data. If the processing module 12 determines that the flow data difference is less than 0, and the processing module 12 determines that the preset second flow threshold value is less than 0, the processing module 12 determines that the flow data difference is not abnormal data, and then the processing module 12 calculates the cumulative flow according to the third flow data and the fourth flow data. Through the above settings, when the flow data difference is abnormal, the processing module 12 can correct the accumulated flow according to the abnormal flow data difference, thereby reducing the error in calculating the accumulated flow and improving the accuracy of calculating the accumulated flow.
[0101] As an implementation manner, obtaining the accumulated flow at any time point according to the flow data difference, the third flow data and the fourth flow data includes:
[0102] The flow data difference, the third flow data, the fourth flow data and the accumulated flow satisfy the following relationship:
[0103] Q=f(last)-f(first)-∑diff(n)
[0104] Wherein Q is the accumulated flow, f(last) is the fourth flow data, f(first) is the third flow data, and diff(n) is the flow data difference. It can be understood that when the processing module 12 determines that the flow data difference is abnormal data, the processing module 12 can obtain the accumulated flow through the above calculation according to the flow data difference, the third flow data and the fourth flow data, thereby improving the accuracy of calculating the accumulated flow.
[0105] Further, obtaining the accumulated flow in any time period according to the third flow data and the fourth flow data includes:
[0106] The third flow data, the fourth flow data and the accumulated flow satisfy the following relationship:
[0107] Q=f(last)-f(first)
[0108] Where Q is the accumulated flow, f(last) is the fourth flow data, and f(first) is the third flow data. It can be understood that when the processing module 12 determines that the flow data difference is not abnormal data, the processing module 12 can obtain the accumulated flow through the above calculation based on the third flow data and the fourth flow data, thereby improving the accuracy of calculating the accumulated flow.
[0109] In summary, the detection module 11 can detect the flow data at all times in any time period. The detection module 11 encapsulates the flow data into a flow signal and transmits it to the processing module 12. The processing module 12 establishes a flow database based on the flow data, and then the processing module 12 obtains the first flow data and the second flow data in the flow database to obtain the flow data difference. The processing module 12 determines whether the flow data difference is abnormal data based on the preset flow threshold and the flow data difference. When the processing module 12 determines that the flow data difference is abnormal data, the processing module 12 obtains the cumulative flow based on the third flow data, the fourth flow data and the flow data difference in the flow database. Through the above settings, the processing module 12 can use the flow data difference to calibrate the cumulative flow when the flow data difference is large, thereby improving the accuracy of calculating the cumulative flow.
[0110] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A flow detection method for a flow meter, characterized in that: include: Acquire first flow data at any time in any time period and second flow data at a time after the any time, and acquire flow data difference according to the first flow data and the second flow data; Determining whether the flow data difference is abnormal data according to the flow data difference and a preset flow threshold; If the flow data difference is abnormal data, record the flow data difference, obtain the third flow data at the first moment and the fourth flow data at the last moment in the arbitrary time period, and obtain the cumulative flow in the arbitrary time period according to the flow data difference, the third flow data and the fourth flow data; If the flow data difference is not abnormal data, obtain the third flow data at the first moment and the fourth flow data at the last moment within the arbitrary time period, and obtain the cumulative flow within the arbitrary time period based on the third flow data and the fourth flow data.
2. The flow rate detection method of a flow meter according to claim 1, characterized in that: Acquiring a flow data difference according to the first flow data and the second flow data includes: The first flow data, the second flow data and the flow data difference satisfy the following relationship: f(t+1)-f(t)=diff(t) Wherein f(t+1) is the second flow data, f(t) is the first flow data, and diff(t) is the flow data difference.
3. The flow rate detection method of a flow meter according to claim 1, characterized in that: Acquiring first flow data at any time in any time period and second flow data at a time after the any time comprises: Obtaining traffic data at all times within the arbitrary time period; Deleting the flow data whose value is equal to 0; Sorting the remaining traffic data in chronological order and establishing a traffic database; The first flow data at any moment in the flow database and the second flow data at a moment after the any moment are obtained.
4. The flow rate detection method of a flow meter according to claim 1, characterized in that: Judging whether the flow data difference is abnormal data according to the flow data difference and a preset flow threshold value includes: Determine whether the flow data difference is greater than or equal to 0; If the flow data difference is greater than or equal to 0, judging whether the flow data difference is the abnormal data according to the flow data difference and a preset first flow threshold; If the flow data difference is less than 0, it is determined whether the flow data difference is the abnormal data according to the flow data difference and a preset second flow threshold.
5. The flow rate detection method of a flow meter according to claim 4, characterized in that: Judging whether the flow data difference is the abnormal data according to the flow data difference and a preset first flow threshold value includes: Obtaining the first instantaneous flow data at all times within the arbitrary time period; Acquire the preset first flow threshold according to the first instantaneous flow data; Determine whether the flow data difference is greater than or equal to the preset first flow threshold; If the flow data difference is greater than or equal to the preset first flow threshold, the flow data difference is the abnormal data.
6. The flow rate detection method of a flow meter according to claim 5, characterized in that: Acquiring the preset first flow threshold according to the first instantaneous flow data includes: The first instantaneous flow data and the preset first flow threshold satisfy the following relationship: A=∫s(x)dx Wherein A is the preset first flow threshold, and s(x) is the first instantaneous flow data at the xth moment.
7. The flow rate detection method of a flow meter according to claim 4, characterized in that: Judging whether the flow data difference is the abnormal data according to the flow data difference and a preset second flow threshold value includes: Acquire the second instantaneous flow data at a moment after any one of the moments; defining the second instantaneous flow data as a preset second flow threshold; If the preset second flow threshold is greater than or equal to 0, the flow data difference is the abnormal data.
8. The flow rate detection method of a flow meter according to claim 1, characterized in that: Acquiring the accumulated flow in the arbitrary time period according to the flow data difference, the third flow data and the fourth flow data comprises: The flow data difference, the third flow data, the fourth flow data and the accumulated flow satisfy the following relationship: Q=f(last)-f(first)-∑diff(n) Wherein, Q is the accumulated flow, f(last) is the fourth flow data, f(first) is the third flow data, and diff(n) is the flow data difference.
9. The flow rate detection method of a flow meter according to claim 1, characterized in that: Acquiring the accumulated flow in the arbitrary time period according to the third flow data and the fourth flow data includes: The third flow data, the fourth flow data and the accumulated flow satisfy the following relationship: Q=f(last)-f(first) Wherein, Q is the accumulated flow, f(last) is the fourth flow data, and f(first) is the third flow data.
10. A flow detection device for a flow meter, used to measure the accumulated flow of the flow meter, characterized in that: include: A detection module, the detection module is used to obtain traffic data at all times in any time period; A processing module, the processing module is communicatively connected to the detection module, the processing module is used to obtain the flow data transmitted by the detection module, the processing module is also used to obtain the first flow data at any moment in the flow data and the second flow data at a moment after the any moment, the processing module is also used to obtain the third flow data at the first moment and the fourth flow data at the last moment in the flow data; the processing module is also used to obtain a flow data difference according to the first flow data and the second flow data, and the processing module is also used to determine whether the flow data difference is abnormal data according to the difference and a preset flow threshold; When the processing module determines that the flow data difference is the abnormal data, the processing module records the flow data difference and obtains the accumulated flow according to the flow data difference, the third flow data and the fourth flow data; When the processing module determines that the flow data difference is not the abnormal data, the processing module obtains the accumulated flow according to the third flow data and the fourth flow data.