Fluid sampling method of water source and water source sampling system

By using a dual system of main pipe and backup pipe in the water source sampling system, the historical and target sampling volume is determined, and the problem of misjudgment of fluid volume caused by flow sensor abnormalities is solved, and the accuracy of water source fluid sampling is improved.

CN119147052APending Publication Date: 2024-12-17CHONGQING HUAYUE ECOLOGICAL ENVIRONMENT ENG RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411309910.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

During the water source fluid sampling process, when the flow sensor detects an abnormality, it is impossible to distinguish whether the abnormality is due to sensor damage or the actual flow abnormality, resulting in misjudgment of the fluid volume, affecting the sampling accuracy.

Method used

Using a dual system of main pipe and backup pipe, the flow data is obtained through the first and second flow valves and corresponding sensors, and the historical sampling volume and target sampling volume are determined to ensure that fluid sampling is completed through backup pipes in abnormal situations and ensure collection. The amount of fluid reached matches the preset amount.

Benefits of technology

Improve the accuracy of fluid sampling, reduce misjudgments caused by sensor abnormalities, and ensure that the actual collected fluid volume matches the preset amount.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119147052A_ABST
    Figure CN119147052A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of water quantity detection, and provides a fluid sampling method of a water source and a water source sampling system. The method comprises the following steps: when a first flow valve is opened, acquiring flow data uploaded by a first flow sensor; determining that the flow data uploaded by the first flow sensor is abnormal, controlling the first flow valve to be closed and the second flow valve to be opened, and acquiring the flow data uploaded by the second flow sensor of the standby pipeline under the condition that the second flow valve is opened; determining that the flow data uploaded by the second flow sensor is abnormal in the initial time period when the second flow valve is opened, and determining the historical sampling amount of the water source according to the total flow detected by the first flow sensor in the time period when the first flow valve is opened; according to the preset sampling amount and the historical sampling amount, the target sampling amount of the standby pipeline is determined, and fluid sampling of the water source is stopped under the condition that the total flow detected by the second flow sensor reaches the target sampling amount.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water quantity detection, and in particular to a fluid sampling method and a water source sampling system for a water source. Background Art

[0002] When testing the water quality of a water source, such as a reservoir, it is usually necessary to sample the reservoir to collect a certain amount of fluid in the reservoir for water quality testing. In order to accurately collect a certain amount of fluid, one end of the pipe for collecting the fluid is usually connected to the water source, and the output end is connected to the water collection area, so that a certain amount of fluid in the water source is collected in the water collection area for testing. When sampling the fluid, a flow sensor needs to be set in the pipe for collecting the fluid. The flow rate detected by the flow sensor is used to detect whether the total amount of fluid collected from the water source reaches the preset amount of fluid, and when it is detected that the amount of fluid collected reaches the preset amount of fluid, the sampling is stopped.

[0003] However, when the flow sensor detects a flow abnormality, it is impossible to determine whether the abnormality is caused by damage to the flow sensor, such as distortion or drift, or by an abnormality in the actual flow. This can easily lead to misjudgment of the fluid flow, resulting in a mismatch between the actual collected fluid volume and the preset fluid volume, affecting the accuracy of fluid sampling. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a fluid sampling method for a water source, which can improve the accuracy of fluid sampling.

[0005] The application also provides a fluid sampling device for a water source.

[0006] The application also provides an electronic device.

[0007] The present application also proposes a computer-readable storage medium.

[0008] The application also proposes a water source sampling system.

[0009] The fluid sampling method for a water source according to the embodiment of the first aspect of the present application is applied to a control device in a water source sampling system, wherein the water source sampling system comprises a main pipeline and a spare pipeline connected to the same water outlet of the water source at one end, the other ends of the main pipeline and the spare pipeline are connected to a water collection area, a first flow valve and a first flow sensor are provided on the main pipeline, the first flow sensor is provided between the water collection area and the first flow valve, a second flow valve and a second flow sensor are provided on the spare pipeline, the second flow sensor is provided between the water collection area and the second flow valve, the control device is connected to the first flow valve, the first flow sensor, the second flow valve and the second flow sensor; the main pipeline and the spare pipeline are drainage pipelines with the same product information;

[0010] The method comprises:

[0011] In response to a prompt signal prompting the first flow valve to be opened, acquiring flow data uploaded by the first flow sensor;

[0012] In response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, controlling the first flow valve to close and the second flow valve to open, and acquiring the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open;

[0013] In the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is abnormal, and determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor in the period when the first flow valve is opened;

[0014] Determine a target sampling volume of the standby pipeline according to a preset sampling volume and the historical sampling volume, so as to stop fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume;

[0015] The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

[0016] By responding to the prompt signal prompting the first flow valve to be opened, the flow data uploaded by the first flow sensor is obtained, and in response to the alarm signal prompting the flow data uploaded by the first flow sensor to be abnormal, the first flow valve is controlled to be closed and the second flow valve is opened, and when the second flow valve is opened, the flow data uploaded by the second flow sensor of the standby pipeline is obtained, so as to determine that the flow data uploaded by the second flow sensor is abnormal in the initial period when the second flow valve is opened, after determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor during the period when the first flow valve is opened, the target sampling volume of the standby pipeline is determined according to the preset sampling volume and the historical sampling volume, so as to stop the fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume, so that when the flow data uploaded by the flow sensor of the standby pipeline is abnormal, it can be determined that the abnormality of the flow data is credible, and at this time, the collected fluid volume is determined according to the flow data uploaded by the flow sensor of the main pipeline and the flow sensor of the standby pipeline, so as to match the actual collected fluid volume with the preset fluid volume, thereby improving the accuracy of fluid sampling.

[0017] According to one embodiment of the present application, it also includes:

[0018] It is determined that the duration of the abnormality of the flow data uploaded by the first flow sensor reaches the target duration, and the alarm signal is generated.

[0019] According to an embodiment of the present application, during the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is abnormal, and determining the historical sampling amount of the water source according to the total flow detected by the first flow sensor during the period when the first flow valve is opened, includes:

[0020] In the initial period when the second flow valve is opened, it is determined that the duration of the abnormal flow data uploaded by the second flow sensor reaches the target duration, and the historical sampling volume of the water source is determined based on the total flow detected by the first flow sensor during the period when the first flow valve is opened.

[0021] According to one embodiment of the present application, it also includes:

[0022] In the initial period when the second flow valve is opened, it is determined that the flow data uploaded by the second flow sensor is normal, and based on the flow data uploaded by the first flow sensor at the last moment before the start moment of the abnormal flow data and the duration of the abnormal flow data uploaded by the first flow sensor, a first total flow collected through the main pipeline during the duration is determined;

[0023] The historical sampling volume of the water source is determined according to the first total flow rate and the second total flow rate detected by the first flow sensor during a period when the flow data uploaded by the first flow sensor is normal.

[0024] According to one embodiment of the present application, after determining that the flow data uploaded by the second flow sensor is normal, the method further includes:

[0025] Generate an alarm message indicating that the first flow sensor is abnormal.

[0026] According to one embodiment of the present application, in the initial period when the second flow valve is opened, after determining that the flow data uploaded by the second flow sensor is abnormal, the method further includes:

[0027] According to the preset flow range, the valve opening of the second flow valve is adjusted until the flow data uploaded by the second flow sensor is within the preset flow range.

[0028] According to an embodiment of the present application, the preset flow interval is positively correlated with the target sampling volume.

[0029] A fluid sampling device for a water source according to an embodiment of the second aspect of the present application is applied to a control device in a water source sampling system, the water source sampling system comprising a control device, and a main pipeline and a spare pipeline connected to the same water outlet of a water source at one end, the other ends of the main pipeline and the spare pipeline connected to a water collection area, a first flow valve and a first flow sensor are provided on the main pipeline, the first flow sensor is provided between the water collection area and the first flow valve, a second flow valve and a second flow sensor are provided on the spare pipeline, the second flow sensor is provided between the water collection area and the second flow valve, the control device is connected to the first flow valve, the first flow sensor, the second flow valve and the second flow sensor; the main pipeline and the spare pipeline are drainage pipelines with the same product information;

[0030] The device comprises:

[0031] A first data acquisition module, configured to acquire flow data uploaded by the first flow sensor in response to a prompt signal prompting the first flow valve to be opened;

[0032] a second data acquisition module, configured to control the first flow valve to close and the second flow valve to open in response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, and to acquire the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open;

[0033] a historical sampling detection module, configured to determine that the flow data uploaded by the second flow sensor is abnormal during the initial period when the second flow valve is opened, and determine the historical sampling volume of the water source according to the total flow detected by the first flow sensor during the period when the first flow valve is opened;

[0034] a fluid sampling control module, configured to determine a target sampling volume of the standby pipeline according to a preset sampling volume and the historical sampling volume, so as to stop the fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume;

[0035] The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

[0036] According to an electronic device of an embodiment of the third aspect of the present application, the electronic device includes a processor and a memory storing a computer program, and when the processor executes the computer program, the fluid sampling method of the water source described in any of the above embodiments is implemented.

[0037] According to the computer-readable storage medium of the fourth aspect of the present application, a computer program is stored thereon, and when the computer program is executed by a processor, the fluid sampling method for a water source described in any of the above embodiments is implemented.

[0038] According to the water source sampling system of the fifth aspect of the present application, the system includes a control device, and a main pipeline and a spare pipeline connected to the same water outlet of the water source at one end;

[0039] The other ends of the main pipeline and the backup pipeline are connected to the water collection area. The main pipeline is provided with a first flow valve and a first flow sensor, and the first flow sensor is arranged between the water collection area and the first flow valve. The backup pipeline is provided with a second flow valve and a second flow sensor, and the second flow sensor is arranged between the water collection area and the second flow valve. The control device is connected with the first flow valve, the first flow sensor, the second flow valve and the second flow sensor. The main pipeline and the backup pipeline are drainage pipelines with the same product information.

[0040] The control device is used to implement the fluid sampling method of the water source as described in any of the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 This is a schematic diagram of the structure of a water source sampling system in some embodiments of the present application;

[0043] Figure 2 A first flow chart of a method for sampling a fluid from a water source according to some embodiments of the present application;

[0044] Figure 3 A second flow chart of a method for sampling a fluid from a water source according to some embodiments of the present application;

[0045] Figure 4 A schematic diagram of the structure of a fluid sampling device for a water source provided in some embodiments of the present application;

[0046] Figure 5 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] In one embodiment, a method for sampling fluid in a water source is provided, which can be applied to Figure 1 In the control device of the water source sampling system shown. Wherein, the water source sampling system includes a control device (not shown), and a main pipeline 20 and a spare pipeline 30 connected to the same water outlet of the water source 1 at one end, and the other ends of the main pipeline 20 and the spare pipeline 30 are connected to the water collection area 2, and the main pipeline 20 is provided with a first flow valve 101 and a first flow sensor 102, and the first flow sensor 102 is arranged between the water collection area 2 and the first flow valve 101, and the spare pipeline 30 is provided with a second flow valve 201 and a second flow sensor 202, and the second flow sensor 202 is arranged between the water collection area 2 and the second flow valve 201, and the control device is connected to the first flow valve 101, the first flow sensor 102, the second flow valve 201 and the second flow sensor 202; the main pipeline 20 and the spare pipeline 30 are drainage pipelines with the same product information.

[0049] In some embodiments, the water source 1 may be a water area where fluid sampling is required, such as a reservoir. The water collection area 2 is an area where fluid sampled from the water source 1 is collected. The water collection area 2 may be provided with water quality detection equipment to detect the water quality of the fluid sampled from the water source 1. The main pipeline 20 may include a connecting pipeline provided between the water source 1 and the water collection area 2. One end of the main pipeline 20 may be connected to the water outlet of the water source 1, and the other end of the main pipeline 20 may be connected to the water inlet of the water collection area 2.

[0050] In some embodiments, one end of the first flow valve 101 is connected to the water outlet of the water source 1 through the connecting pipe of the main pipeline 20, and the other end of the first flow valve 101 is connected to the water inlet of the water collection area 2 through the connecting pipe of the main pipeline 20. Exemplarily, the first flow valve 101 may include a flow control valve, which may be an electric valve controlled by a signal, such as a hydraulic solenoid valve or a pneumatic solenoid valve. One end of the flow control valve is connected to the water outlet of the water source 1 through the connecting pipe of the main pipeline 20, and the other end of the flow control valve is connected to the water inlet of the water collection area 2 through the connecting pipe of the main pipeline 20.

[0051] In some embodiments, the first flow sensor 102 may be provided on the connecting pipe between the first flow valve 101 and the water collection area 2 to detect the fluid flow rate of the main pipe 20 flowing into the water collection area 2. The range of the first flow sensor 102 may be determined according to the maximum fluid flow rate that can be transported by the main pipe 20. Exemplarily, a first flow sensor 102 having a range not less than the maximum fluid flow rate that can be transported by the main pipe 20 may be selected to detect the fluid flow rate of the main pipe 20 flowing into the water collection area 2.

[0052] In some embodiments, the backup pipeline 30 may include a connecting pipeline arranged between the water source 1 and the water collection area 2, one end of the backup pipeline 30 may be connected to the water outlet of the water source 1, and the other end of the backup pipeline 30 may be connected to the water inlet of the backup pipeline 30.

[0053] In some embodiments, one end of the second flow valve 201 is connected to the water outlet of the water source 1 through the connecting pipe of the spare pipe 30, and the other end of the second flow valve 201 is connected to the water inlet of the water collection area 2 through the connecting pipe of the spare pipe 30. Exemplarily, the second flow valve 201 may include a flow control valve, which may be an electric valve controlled by a signal, such as a hydraulic solenoid valve or a pneumatic solenoid valve. One end of the flow control valve is connected to the water outlet of the water source 1 through the connecting pipe of the spare pipe 30, and the other end of the flow control valve is connected to the water inlet of the water collection area 2 through the connecting pipe of the spare pipe 30.

[0054] In some embodiments, the second flow sensor 202 may be provided on the connecting pipe between the second flow valve 201 and the water collection area 2 to detect the fluid flow rate of the backup pipe 30 flowing into the water collection area 2. The range of the second flow sensor 202 may be determined according to the maximum fluid flow rate that can be transported by the backup pipe 30. Exemplarily, a second flow sensor 202 having a range not less than the maximum fluid flow rate that can be transported by the backup pipe 30 may be selected to detect the fluid flow rate of the backup pipe 30 flowing into the water collection area 2.

[0055] The main pipeline 20 and the backup pipeline 30 have the same product information, for example, the main pipeline 20 and the backup pipeline 30 are drainage pipelines with completely the same specifications and materials. The first flow valve 101 and the second flow valve 201 can be flow valves with the same product information, and the first sensor 102 and the second sensor 202 can be flow sensors with the same product information.

[0056] In some embodiments, the control device can be a controller with a control function, such as a PI (proportional integral) controller or other terminal devices, and other terminal devices can be any terminal devices such as a mobile terminal, a desktop terminal or a server. The server can be an independent server or a server cluster composed of multiple servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence sampling point devices. The control device is electrically connected to the first flow valve 101, the first flow sensor 102, the second flow valve 201 and the second flow sensor 202, and is used to control the opening and closing of the first flow valve 101 and the second flow valve 201, and receive the flow data uploaded by the first flow sensor 102 and the second flow sensor 202.

[0057] like Figure 2 As shown, a fluid sampling method for a water source provided in this embodiment is applied to a control device in the above-mentioned water source sampling system, and the method includes:

[0058] Step 101, in response to a prompt signal prompting the first flow valve to be opened, acquiring flow data uploaded by the first flow sensor;

[0059] Step 102, in response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, controlling the first flow valve to close and the second flow valve to open, and acquiring the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open;

[0060] Step 103, during the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is abnormal, and determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor during the period when the first flow valve is opened;

[0061] Step 104, determining a target sampling volume of the standby pipeline according to a preset sampling volume and the historical sampling volume, so as to stop fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume;

[0062] The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

[0063] In some embodiments, when it is necessary to sample the fluid of the water source, the first flow valve may be opened, such as the control device may control the first flow valve to be opened. The valve opening of the first flow valve when opened may be a fixed opening. When the first flow valve is opened, the control device may generate a prompt signal to prompt the first flow valve to be opened, and in response to the prompt signal, receive the flow data uploaded by the first flow sensor, so as to detect the flow rate of water flowing into the water collection area through the main pipeline through the first flow sensor.

[0064] If the flow data uploaded by the first flow sensor is normal, such as there is no sudden change in the flow data or the flow data is within the set preset flow range, the total flow currently detected by the first flow sensor can be calculated, and when the total flow currently detected by the first flow sensor reaches the preset sampling volume, that is, the total amount of fluid that needs to be collected from the water source, it means that the total amount of fluid collected in the catchment area at this time has reached the sampling requirement, and the first flow valve can be closed at this time to stop sampling.

[0065] If the flow data uploaded by the first flow sensor is abnormal, such as a sudden change in the uploaded flow data, the flow data suddenly returns to zero, the flow data suddenly reaches the peak value of the range of the first flow sensor, the flow data fluctuates continuously, or the flow data is outside the set preset flow range, an alarm signal is generated to indicate that the flow data uploaded by the first flow sensor is abnormal, and in response to the alarm signal, the first flow valve is controlled to close, and the second flow valve is controlled to open, so as to perform fluid sampling through the backup pipeline.

[0066] When the second flow valve is open, the second flow sensor of the standby pipeline can be used to obtain the flow data uploaded by the second flow sensor, and detect the flow data uploaded by the second flow sensor in the initial period formed from the initial moment of the second flow valve opening to the end moment determined according to the preset detection time. Among them, the preset detection time can be set according to the actual situation, such as 5S-10S. If the flow data uploaded by the second flow sensor is detected to be abnormal during this initial period, such as the same abnormality as the first flow sensor, it means that the flow data abnormality is credible. At this time, the total flow detected by the first flow sensor during the period when the first flow valve is open can be determined as the historical sampling amount of the water source. The historical sampling amount represents the total amount of fluid collected from the water source through the main pipeline.

[0067] After obtaining the historical sampling volume, the target sampling volume of the standby pipeline can be obtained according to the preset sampling volume and the historical sampling volume, that is, the total amount of fluid that needs to be collected from the water source through the standby pipeline. For example, the target sampling volume of the standby pipeline can be obtained by subtracting the historical sampling volume from the preset sampling volume.

[0068] After obtaining the target sampling volume of the standby pipeline, the total flow detected by the second flow sensor can be determined based on the flow data uploaded by the second flow sensor. The total flow can represent the total amount of fluid collected through the standby pipeline, and the total amount of fluid is compared with the target sampling volume. If the total amount of fluid collected through the standby pipeline reaches the target sampling volume, it means that the total amount of fluid collected in the water collection area has reached the sampling requirement, and the second flow valve can be closed to stop sampling the fluid of the water source.

[0069] The fluid sampling method of the water source designed above obtains the flow data uploaded by the first flow sensor in response to the prompt signal prompting the opening of the first flow valve, and controls the first flow valve to close and the second flow valve to open in response to the alarm signal prompting the abnormal flow data uploaded by the first flow sensor, and obtains the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is opened, so as to determine the abnormal flow data uploaded by the second flow sensor in the initial period of opening of the second flow valve, and determine the historical sampling volume of the water source according to the total flow detected by the first flow sensor in the period of opening of the first flow valve, and then determine the target sampling volume of the standby pipeline according to the preset sampling volume and the historical sampling volume, so as to stop the fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume, so that when the flow data uploaded by the flow sensor of the standby pipeline is abnormal, it can be determined that the abnormality of the flow data is credible, and then the collected fluid volume is determined according to the flow data uploaded by the flow sensor of the main pipeline and the flow sensor of the standby pipeline, so as to match the actual collected fluid volume with the preset fluid volume, thereby improving the accuracy of fluid sampling.

[0070] In order to make the abnormality detection of traffic data more accurate, in some embodiments, the following is further included:

[0071] It is determined that the duration of the abnormality of the flow data uploaded by the first flow sensor reaches the target duration, and the alarm signal is generated.

[0072] In some embodiments, if it is detected that the flow data uploaded by the first flow sensor is abnormal, the duration of the abnormal flow data uploaded by the first flow sensor can be detected. If the duration does not reach the target duration, it means that the abnormal flow data is a normal fluctuation, and it can be determined that there is no abnormality in the flow of water flowing through the main pipe; if the duration reaches the target duration, it can be determined that there is an abnormality in the flow of water flowing through the main pipe, and an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal is generated again. In this way, false alarms caused by normal flow fluctuations can be reduced, and the accuracy of abnormal detection of flow data can be improved.

[0073] Similarly, in response to the alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, the first flow valve is controlled to close and the second flow valve is opened, and the flow data uploaded by the second flow sensor can be detected in the initial period when the second flow valve is opened. If it is detected that there is an abnormality in the flow data uploaded by the second flow sensor, the duration of the abnormality in the flow data uploaded by the second flow sensor in the initial period can be detected. If the duration does not reach the target duration, it means that the flow data abnormality is a normal fluctuation. At this time, it can be determined that there is no abnormality in the flow of water flowing through the backup pipeline; if the duration reaches the target duration, it can be determined that there is an abnormality in the flow of water flowing through the backup pipeline. At this time, the historical sampling volume of the water source is determined based on the total flow detected by the first flow sensor during the period when the first flow valve is opened. In this way, the misjudgment of abnormalities caused by normal flow fluctuations can be reduced, and the accuracy of abnormal detection of flow data can be improved.

[0074] To further improve the accuracy of fluid sampling, in some embodiments, Figure 3 As shown, the method also includes:

[0075] Step 201, in the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is normal, and determining a first total flow collected through the main pipeline during the duration according to the flow data uploaded by the first flow sensor at the last moment before the start moment of the abnormal flow data and the duration of the abnormal flow data uploaded by the first flow sensor;

[0076] Step 202: Determine the historical sampling volume of the water source based on the first total flow rate and the second total flow rate detected by the first flow sensor during a period when the flow data uploaded by the first flow sensor is normal.

[0077] In some embodiments, if the flow data uploaded by the second flow sensor is normal during the initial period when the second flow valve is opened, such as during the initial period, the flow data uploaded by the second flow sensor is normal, or the duration of the abnormal flow data uploaded by the second flow sensor does not reach the target duration, it means that the flow data uploaded by the second flow sensor is normal. At this time, it can be determined that the alarm signal indicating the abnormal flow data uploaded by the first flow sensor is caused by abnormal disturbances such as distortion, drift, damage of the first flow sensor data or the instantaneous appearance of a large number of bubbles in the main pipeline, that is, the abnormal flow data uploaded by the first flow sensor during the duration of the abnormal flow data is not credible. In the case that the abnormal flow data uploaded by the first flow sensor during the duration of the abnormal flow data is not credible, the flow data uploaded by the first flow sensor at the previous moment of the start of the abnormal flow data can be obtained. If it is assumed that the duration of the abnormal flow data uploaded by the first flow sensor is T, and the start time of the duration T is t1, the flow data uploaded by the first flow sensor at the previous moment of the start time t1 can be obtained. Since the flow data is the flow data uploaded just before the first flow sensor detects an abnormality, the flow data is credible.

[0078] After obtaining the flow data uploaded by the first flow sensor at the last moment before the start of the abnormal flow data, the water flow collected through the main pipeline during the abnormal flow data uploaded by the first flow sensor can be predicted based on the flow data and the duration of the abnormal flow data uploaded by the first flow sensor as the first total flow. If the flow data can be multiplied by the duration, the water flow collected through the main pipeline during the duration can be obtained, that is, the first total flow.

[0079] After obtaining the first total flow, the historical sampling volume of the water source can be obtained based on the first total flow and the second total flow detected by the first flow sensor during the period when the flow data uploaded by the first flow sensor is normal. If the first total flow and the second total flow are superimposed, the historical sampling volume of the water source can be obtained.

[0080] After obtaining the historical sampling volume, the target sampling volume of the standby pipeline can be determined according to the preset sampling volume and the historical sampling volume, so as to stop fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume.

[0081] In this way, when the flow data uploaded by the second flow sensor is normal, it can be judged that the first flow sensor is damaged. When the first flow sensor is damaged, the total amount of fluid collected through the main pipeline can still be accurately predicted, thereby reducing the possibility of oversampling and improving the accuracy of fluid sampling.

[0082] During the initial period when the second flow valve is opened, if it is determined that the flow data uploaded by the second flow sensor is normal, an alarm message indicating an abnormality of the first flow sensor can be generated to give an alarm prompt, such as displaying the alarm message on the display screen of the control terminal, or sending the alarm message to the user terminal of the maintenance personnel, to remind the maintenance personnel to inspect the first flow sensor.

[0083] In order to improve the sampling efficiency and reduce the possibility of oversampling, in some embodiments, after determining that the flow data uploaded by the second flow sensor is abnormal during the initial period when the second flow valve is opened, the method further includes:

[0084] After the initial period, the valve opening of the second flow valve is adjusted according to a preset flow interval until the flow data uploaded by the second flow sensor is within the preset flow interval.

[0085] In some embodiments, if the flow data uploaded by the second flow sensor is determined to be abnormal during the initial period when the second flow valve is opened, the valve opening of the second flow valve can be adjusted according to the preset flow range until the flow data uploaded by the second flow sensor is in the preset flow range, so that the fluid flow collected by the backup pipeline can be controlled, avoiding excessive or insufficient fluid flow through the backup pipeline, thereby reducing the possibility of oversampling while ensuring sampling efficiency.

[0086] The preset flow interval is positively correlated with the target sampling volume, that is, the preset flow is positively correlated with the total amount of fluid that needs to be collected by the backup pipeline. The larger the target sampling volume, the larger the preset flow interval.

[0087] The fluid sampling device for a water source provided in the present application is described below. The fluid sampling device for a water source described below and the fluid sampling method for a water source described above can be referenced to each other.

[0088] In one embodiment, if Figure 4 As shown, a fluid sampling device for a water source is provided, and the device is applied to Figure 1 The control equipment in the water source sampling system shown includes:

[0089] A first data acquisition module 210, configured to acquire flow data uploaded by the first flow sensor in response to a prompt signal prompting the first flow valve to be opened;

[0090] A second data acquisition module 220 is used to control the first flow valve to close and the second flow valve to open in response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, and to acquire the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open;

[0091] A historical sampling detection module 230 is used to determine that the flow data uploaded by the second flow sensor is abnormal during the initial period when the second flow valve is opened, and determine the historical sampling volume of the water source according to the total flow detected by the first flow sensor during the period when the first flow valve is opened;

[0092] The fluid sampling control module 240 is used to determine the target sampling volume of the standby pipeline according to the preset sampling volume and the historical sampling volume, so as to stop the fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume;

[0093] The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

[0094] By responding to the prompt signal prompting the first flow valve to be opened, the flow data uploaded by the first flow sensor is obtained, and in response to the alarm signal prompting the flow data uploaded by the first flow sensor to be abnormal, the first flow valve is controlled to be closed and the second flow valve is opened, and when the second flow valve is opened, the flow data uploaded by the second flow sensor of the standby pipeline is obtained, so as to determine that the flow data uploaded by the second flow sensor is abnormal in the initial period when the second flow valve is opened, after determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor during the period when the first flow valve is opened, the target sampling volume of the standby pipeline is determined according to the preset sampling volume and the historical sampling volume, so as to stop the fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume, so that when the flow data uploaded by the flow sensor of the standby pipeline is abnormal, it can be determined that the abnormality of the flow data is credible, and at this time, the collected fluid volume is determined according to the flow data uploaded by the flow sensor of the main pipeline and the flow sensor of the standby pipeline, so as to match the actual collected fluid volume with the preset fluid volume, thereby improving the accuracy of fluid sampling.

[0095] In some embodiments, the second data acquisition module 220 is further used to:

[0096] It is determined that the duration of the abnormality of the flow data uploaded by the first flow sensor reaches the target duration, and the alarm signal is generated.

[0097] In one embodiment, the historical sampling detection module 230 is specifically used to:

[0098] In the initial period when the second flow valve is opened, it is determined that the duration of the abnormal flow data uploaded by the second flow sensor reaches the target duration, and the historical sampling volume of the water source is determined based on the total flow detected by the first flow sensor during the period when the first flow valve is opened.

[0099] In one embodiment, the historical sampling detection module 230 is further used to:

[0100] In the initial period when the second flow valve is opened, it is determined that the flow data uploaded by the second flow sensor is normal, and based on the flow data uploaded by the first flow sensor at the last moment before the start moment of the abnormal flow data and the duration of the abnormal flow data uploaded by the first flow sensor, a first total flow collected through the main pipeline during the duration is determined;

[0101] The historical sampling volume of the water source is determined according to the first total flow rate and the second total flow rate detected by the first flow sensor during a period when the flow data uploaded by the first flow sensor is normal.

[0102] In one embodiment, the historical sampling detection module 230 is further used to:

[0103] After determining that the flow data uploaded by the second flow sensor is normal, an alarm message indicating that the first flow sensor is abnormal is generated.

[0104] In one embodiment, the historical sampling detection module 230 is further used to:

[0105] In the initial period of opening of the second flow valve, after determining that the flow data uploaded by the second flow sensor is abnormal, the valve opening of the second flow valve is adjusted according to the preset flow range until the flow data uploaded by the second flow sensor is in the preset flow range.

[0106] In one embodiment, the preset flow rate interval is positively correlated with the target sampling volume.

[0107] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call a computer program in the memory 830 to execute a fluid sampling method of a water source, for example, including:

[0108] In response to a prompt signal prompting the first flow valve to be opened, acquiring flow data uploaded by the first flow sensor;

[0109] In response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, controlling the first flow valve to close and the second flow valve to open, and acquiring the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open;

[0110] In the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is abnormal, and determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor in the period when the first flow valve is opened;

[0111] Determine a target sampling volume of the standby pipeline according to a preset sampling volume and the historical sampling volume, so as to stop fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume;

[0112] The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

[0113] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-On l yMemory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0114] On the other hand, an embodiment of the present application further provides a storage medium, the storage medium includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the fluid sampling method of the water source provided by the above embodiments, for example, including:

[0115] In response to a prompt signal prompting the first flow valve to be opened, acquiring flow data uploaded by the first flow sensor;

[0116] In response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, controlling the first flow valve to close and the second flow valve to open, and acquiring the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open;

[0117] In the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is abnormal, and determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor in the period when the first flow valve is opened;

[0118] Determine a target sampling volume of the standby pipeline according to a preset sampling volume and the historical sampling volume, so as to stop fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume;

[0119] The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

[0120] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for sampling fluid from a water source, characterized in that: A control device applied to a water source sampling system, the water source sampling system comprising a main pipeline and a backup pipeline connected to the same water outlet of a water source at one end, the other ends of the main pipeline and the backup pipeline connected to a water collection area, the main pipeline is provided with a first flow valve and a first flow sensor, the first flow sensor is arranged between the water collection area and the first flow valve, the backup pipeline is provided with a second flow valve and a second flow sensor, the second flow sensor is arranged between the water collection area and the second flow valve, the control device is connected to the first flow valve, the first flow sensor, the second flow valve and the second flow sensor; The main pipeline and the backup pipeline are drainage pipelines with the same product information; The method comprises: In response to a prompt signal prompting the first flow valve to be opened, acquiring flow data uploaded by the first flow sensor; In response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, controlling the first flow valve to close and the second flow valve to open, and acquiring the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open; In the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is abnormal, and determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor in the period when the first flow valve is opened; Determine a target sampling volume of the standby pipeline according to a preset sampling volume and the historical sampling volume, so as to stop fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume; The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

2. The method according to claim 1, characterized in that Also includes: It is determined that the duration of the abnormality of the flow data uploaded by the first flow sensor reaches the target duration, and the alarm signal is generated.

3. The method according to claim 1 or 2, characterized in that: In the initial period when the second flow valve is opened, determining that the flow data uploaded by the second flow sensor is abnormal, and determining the historical sampling volume of the water source according to the total flow detected by the first flow sensor in the period when the first flow valve is opened, including: In the initial period when the second flow valve is opened, it is determined that the duration of the abnormal flow data uploaded by the second flow sensor reaches the target duration, and the historical sampling volume of the water source is determined based on the total flow detected by the first flow sensor during the period when the first flow valve is opened.

4. The method according to claim 1, characterized in that: Also includes: In the initial period when the second flow valve is opened, it is determined that the flow data uploaded by the second flow sensor is normal, and based on the flow data uploaded by the first flow sensor at the last moment before the start moment of the abnormal flow data and the duration of the abnormal flow data uploaded by the first flow sensor, a first total flow collected through the main pipeline during the duration is determined; The historical sampling volume of the water source is determined according to the first total flow rate and the second total flow rate detected by the first flow sensor during a period when the flow data uploaded by the first flow sensor is normal.

5. The method according to claim 4, characterized in that After determining that the flow data uploaded by the second flow sensor is normal, the method further includes: Generate an alarm message indicating that the first flow sensor is abnormal.

6. The method according to any one of claims 1, 2, 4 or 5, characterized in that: In the initial period when the second flow valve is opened, after determining that the flow data uploaded by the second flow sensor is abnormal, the method further includes: According to the preset flow range, the valve opening of the second flow valve is adjusted until the flow data uploaded by the second flow sensor is within the preset flow range.

7. The method according to claim 6, characterized in that The preset flow rate interval is positively correlated with the target sampling volume.

8. A fluid sampling device for a water source, characterized in that: A control device applied to a water source sampling system, the water source sampling system comprising a control device, and a main pipeline and a backup pipeline connected to the same water outlet of a water source at one end, the other ends of the main pipeline and the backup pipeline connected to a water collection area, a first flow valve and a first flow sensor are provided on the main pipeline, the first flow sensor is provided between the water collection area and the first flow valve, a second flow valve and a second flow sensor are provided on the backup pipeline, the second flow sensor is provided between the water collection area and the second flow valve, and the control device is connected to the first flow valve, the first flow sensor, the second flow valve and the second flow sensor; The main pipeline and the backup pipeline are drainage pipelines with the same product information; The device comprises: A first data acquisition module, configured to acquire flow data uploaded by the first flow sensor in response to a prompt signal prompting the first flow valve to be opened; a second data acquisition module, configured to control the first flow valve to close and the second flow valve to open in response to an alarm signal indicating that the flow data uploaded by the first flow sensor is abnormal, and to acquire the flow data uploaded by the second flow sensor of the standby pipeline when the second flow valve is open; a historical sampling detection module, configured to determine that the flow data uploaded by the second flow sensor is abnormal during the initial period when the second flow valve is opened, and determine the historical sampling volume of the water source according to the total flow detected by the first flow sensor during the period when the first flow valve is opened; a fluid sampling control module, configured to determine a target sampling volume of the standby pipeline according to a preset sampling volume and the historical sampling volume, so as to stop the fluid sampling of the water source when the total flow detected by the second flow sensor reaches the target sampling volume; The starting time of the initial period is the time when the second flow valve is opened, and the ending time of the initial period is determined according to a preset detection duration.

9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the fluid sampling method of a water source according to any one of claims 1 to 7 is implemented.

10. A water source sampling system, characterized in that: It includes control equipment, and main pipes and spare pipes with the same outlet connected to the water source at one end; The other ends of the main pipeline and the backup pipeline are connected to the water collection area. The main pipeline is provided with a first flow valve and a first flow sensor, and the first flow sensor is arranged between the water collection area and the first flow valve. The backup pipeline is provided with a second flow valve and a second flow sensor, and the second flow sensor is arranged between the water collection area and the second flow valve. The control device is connected with the first flow valve, the first flow sensor, the second flow valve and the second flow sensor. The main pipeline and the backup pipeline are drainage pipelines with the same product information. The control device is used to implement the fluid sampling method of a water source as described in any one of claims 1 to 7.