Online water quality analysis method and apparatus

By using intermittent measurement methods and solenoid valve control to dynamically adjust the working time of the water quality sensor, the problems of high water consumption and slow response of multi-parameter online water quality analysis equipment are solved, achieving the effects of high-efficiency water saving and rapid response to changes in water quality.

CN116482312BActive Publication Date: 2026-03-31HACH WATER QUALITY ANALYTICAL INSTRUMENTS( SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-19
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing multi-parameter online water quality analysis equipment consumes a large amount of water and cannot respond quickly and accurately to changes in water quality, thus failing to meet the needs of different sites.

Method used

By using an intermittent measurement method, the measurement period and rest period are dynamically adjusted based on the stability of water quality data. Combined with the on/off control of the water flow by a solenoid valve, personalized water quality testing can be achieved.

Benefits of technology

While ensuring the accuracy of measurement data, it reduces water consumption, responds quickly to changes in water quality, and meets the needs of different sites.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116482312B_ABST
    Figure CN116482312B_ABST
Patent Text Reader

Abstract

The application provides an online water quality analysis device, method and related computer readable storage medium, which can intelligently judge water quality changes and make quick and accurate responses under the premise of ensuring the accuracy and stability of measurement data. The solution provided by the application can meet different on-site requirements through personalized settings, reduce water consumption, intelligently judge and quickly respond to sudden changes in water quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of water quality analysis, specifically to the field of online water quality analysis, and more specifically to the field of multi-parameter online water quality analysis for intelligent water saving. Background Technology

[0002] In the context of energy conservation and emission reduction, the demand for low water consumption is increasing. However, because multi-parameter online water quality analysis equipment typically measures multiple parameters simultaneously and continuously, and each parameter has certain requirements for water flow, the water consumption of these devices is generally quite high. Currently, the water consumption of multi-parameter online water quality analysis equipment is generally above 20L / h, and even exceeds 30L / h.

[0003] In addition, online water quality analysis may have various application scenarios and different on-site requirements, and current online water quality analysis may not be able to fully address them and make adjustments.

[0004] Therefore, there is an urgent need for a technical solution that can solve the above-mentioned problems in the existing technology. Summary of the Invention

[0005] In view of the above problems, this invention provides an online water quality analysis device, method, and related computer-readable storage medium, which can intelligently judge water quality changes and make rapid and accurate responses while ensuring the accuracy and stability of measurement data. The solution proposed by this invention can not only meet different on-site needs through personalized settings and reduce water consumption, but also intelligently judge and quickly respond to sudden changes in water quality.

[0006] According to a first aspect of the present invention, an online water quality analysis method is provided, the method comprising:

[0007] Step S1: Receive input regarding the analysis cycle and water consumption;

[0008] Step S2: Based on the input, generate the measurement time period for the water quality sensor;

[0009] Step S3: During the measurement period, receive water quality data measured by the water quality sensor;

[0010] Step S4: Based on the stability of the water quality data during the measurement period, perform one of the following steps:

[0011] Step S41: When the water quality data is stable during the measurement period, maintain the measurement period unchanged; record the water quality data at the end of the measurement period, and at the end of the measurement period, control the water quality sensor to stop working and continue for a rest period; wherein the sum of the measurement period and the rest period is the analysis cycle; or

[0012] Step S42: When the water quality data is unstable during the measurement period, the measurement period is extended by a fixed period, and the process returns to step S3, wherein the sum of the measurement period and the fixed period is less than the analysis cycle.

[0013] In a preferred embodiment of the online water quality analysis method according to the present invention, the sum of the measurement period and the fixed period is less than or equal to a measurement threshold period, and step S42 further includes:

[0014] Step S420: When the water quality data is unstable during the measurement period and the sum of the measurement period and the fixed period is equal to the measurement threshold period, record the water quality data at the end of the measurement threshold period, and at the end of the measurement threshold period, control the water quality sensor to stop working and continue for another rest period, wherein the sum of the measurement threshold period and the other rest period is the analysis cycle.

[0015] In a preferred embodiment of the online water quality analysis method according to the present invention, the method further includes:

[0016] When the rest period or the other rest period ends, return to step S3.

[0017] In a preferred embodiment of the online water quality analysis method according to the present invention, the water quality sensor is a turbidity sensor and a residual chlorine sensor, and the method further includes:

[0018] It receives turbidity data measured by the turbidity sensor and residual chlorine data measured by the residual chlorine sensor.

[0019] In a preferred embodiment of the online water quality analysis method according to the present invention, the method further includes:

[0020] During the measurement period, the control solenoid valve opens to allow water to flow through the water quality sensor; and

[0021] During the rest period or the other rest period, the solenoid valve is controlled to close to prevent water from flowing through the water quality sensor.

[0022] In a preferred embodiment of the online water quality analysis method according to the present invention, the method further includes:

[0023] Receive input about a running time period, and execute the method during the running time period.

[0024] In a preferred embodiment of the online water quality analysis method according to the present invention, the method further includes:

[0025] The stability of the water quality data is determined based on the rate of change of the water quality data curve.

[0026] In a preferred embodiment of the online water quality analysis method according to the present invention, the fixed time period is 1s, 5s, 10s, 15s, 20s or 30s.

[0027] In a preferred embodiment of the online water quality analysis method according to the present invention, the method further includes:

[0028] Receives and analyzes flow data from the flow meter.

[0029] According to a second aspect of the present invention, an online water quality analysis device is provided, the device comprising at least:

[0030] An input unit configured to receive input regarding the analysis cycle and water consumption;

[0031] A water quality sensor configured to measure water quality data;

[0032] A control unit, configured to generate a measurement period for the water quality sensor based on the input, and further configured to perform the following steps:

[0033] Step S3: During the measurement period, receive water quality data measured by the water quality sensor;

[0034] Step S4: Based on the stability of the water quality data during the measurement period, perform one of the following steps:

[0035] Step S41: When the water quality data is stable during the measurement period, maintain the measurement period unchanged; record the water quality data at the end of the measurement period, and at the end of the measurement period, control the water quality sensor to stop working and continue for a rest period; wherein the sum of the measurement period and the rest period is the analysis cycle; or

[0036] Step S42: When the water quality data is unstable during the measurement period, the measurement period is extended by a fixed period, and the process returns to step S3, wherein the sum of the measurement period and the fixed period is less than the analysis cycle.

[0037] In a preferred embodiment of the online water quality analysis device according to the present invention, the sum of the measurement period and the fixed period is less than or equal to a measurement threshold period, and the control unit is further configured to perform the following operations:

[0038] Step S420: When the water quality data is unstable during the measurement period and the sum of the measurement period and the fixed period is equal to the measurement threshold period, record the water quality data at the end of the measurement threshold period, and at the end of the measurement threshold period, control the water quality sensor to stop working and continue for another rest period, wherein the sum of the measurement threshold period and the other rest period is the analysis cycle.

[0039] In a preferred embodiment of the online water quality analysis device according to the present invention, the control unit is further configured to perform the following operations:

[0040] When the rest period or the other rest period ends, return to step S3.

[0041] In a preferred embodiment of the online water quality analysis device according to the present invention, the water quality sensors are a turbidity sensor and a residual chlorine sensor, and the control unit is further configured to perform the following operations:

[0042] It receives turbidity data measured by the turbidity sensor and residual chlorine data measured by the residual chlorine sensor.

[0043] In a preferred embodiment of the online water quality analysis device according to the present invention, the device further includes a solenoid valve, and the control unit is further configured to perform the following operations:

[0044] During the measurement period, the solenoid valve is opened to allow water to flow through the water quality sensor; and

[0045] During rest periods, the solenoid valve is closed to prevent water from flowing through the water quality sensor.

[0046] In a preferred embodiment of the online water quality analysis device according to the present invention, the control unit is further configured to perform the following operations:

[0047] Receive input about a running time period, and execute the method during the running time period.

[0048] In a preferred embodiment of the online water quality analysis device according to the present invention, the control unit is further configured to perform the following operations:

[0049] The stability of the water quality data is determined based on the rate of change of the water quality data curve.

[0050] In a preferred embodiment of the online water quality analysis device according to the present invention, the fixed time period is preferably 1s, 5s, 10s, 15s, 20s or 30s.

[0051] In a preferred embodiment of the online water quality analysis device according to the present invention, the device further includes a flow meter, and the control unit is further configured to perform the following operations:

[0052] Receives and analyzes flow data from the flow meter.

[0053] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which computer instructions are stored, wherein the computer instructions, when executed, perform the online water quality analysis method according to any one of the preceding claims.

[0054] In summary, the intermittent measurement method and device of this invention can intelligently adjust the testing scheme for both conventional and changing water quality, ensuring accuracy of readings under normal water quality conditions while rapidly responding to changes in water quality and providing accurate and stable readings. Furthermore, the online water quality analysis method and device of this invention can be set to continuous measurement mode or water-saving mode as needed at different time periods, further improving water-saving efficiency. Attached Figure Description

[0055] The invention will be more readily understood from the following description in conjunction with the accompanying drawings, in which:

[0056] Figure 1 A block diagram of an online water quality analysis device according to one embodiment of the present invention is shown.

[0057] Figure 2 A flowchart of an online water quality analysis method according to one embodiment of the present invention is shown.

[0058] Figure 3 A comparison chart showing the effects of an online water quality analysis method according to one embodiment of the present invention is presented. Detailed Implementation

[0059] The embodiments of the present invention will now be described in further detail with reference to the accompanying drawings.

[0060] Currently, under the general trend of energy conservation and emission reduction, the demand for low water consumption is increasing. Multi-parameter online water quality analysis equipment, capable of simultaneously and continuously measuring multiple parameters, has various application scenarios, and people hope to minimize water consumption. The inventors of this invention have noted that current multi-parameter online water quality analysis equipment mainly achieves water conservation through the following two schemes: The first scheme involves real-time flow monitoring using a flow meter, controlling the flow rate by adjusting the size of an adjustable throttle valve to achieve water conservation; the second scheme employs intelligent segmented detection and manual segmented detection. Segmented detection involves monitoring water quality for specific time periods based on user needs, stopping water supply when detection is not required. This involves using existing big data algorithms to predict the time periods requiring water quality monitoring and those not requiring monitoring based on residents' actual water usage, or allowing users to manually set the monitoring time periods online. However, the inventors of this invention further noted that: in Scheme 1, after adjusting the throttle valve, the flow rate needs to meet the minimum flow rate required for sensor operation, and Scheme 1 involves continuous measurement, resulting in limited water-saving effects; in Scheme 2, during periods of non-detection, there is no effective detection data for extended periods, which cannot meet the needs of users requiring frequent data output. Furthermore, during periods of non-detection, if there are sudden changes in water quality or temporary water quality maintenance, the device cannot provide any effective detection data, nor will it respond to any changes in water quality.

[0061] To enable real-time response to water quality changes while reducing water consumption, the inventors of this invention discovered that current applications of multi-parameter online water quality analysis equipment primarily include secondary water supply and water outlet networks. While secondary water supply applications do not mandate real-time measurement data, continuous measurement in this scenario can lead to over-providing of data. Furthermore, water quality at the measurement site frequently undergoes sudden changes, requiring existing multi-parameter online water quality analysis equipment to respond quickly and accurately, which current water-saving measurement methods cannot achieve. The inventors further discovered that periodic measurement of water quality data, with intelligent and dynamic adjustment of measurement and rest periods within the measurement cycle, can solve the aforementioned technical problems.

[0062] The present invention will now be further described with reference to the accompanying drawings.

[0063] Figure 1 A block diagram of an online water quality analysis device according to one embodiment of the present invention is shown.

[0064] like Figure 1 As shown, the online water quality analysis device of the present invention includes an input unit 11, a control unit 12, a water quality sensor 13, an execution unit 14, a solenoid valve 15, and a flow meter 16.

[0065] The online water quality analysis method of the present invention is implemented by a control unit 12. The control unit 12 receives user input settings from the input unit 11, sends commands to the execution unit 14 to control the opening and closing of the solenoid valve 15, sends commands to the water quality sensor 13 to receive the water quality data measured by the water quality sensor 13 during the measurement period of the water quality sensor 13, and sends commands to the flow meter 16 to receive flow data.

[0066] The following is combined Figure 2 The flowchart of the online water quality analysis method Figure 1 The various units within will be further introduced. Through methods such as... Figure 1 The control unit 12 shown here executes the online water quality analysis method of the present invention.

[0067] Figure 2 The online water quality analysis method begins with step S1. In step S1, the control unit 12 receives input from the input unit 11 regarding the analysis cycle and water consumption of the water-saving mode.

[0068] The analysis period T includes the measurement period T1 and the rest period T2, i.e., T = T1 + T2. One embodiment of the analysis period T is greater than or equal to 10 minutes. The intermittent operation of the measurement period T1 and the rest period T2 ensures the accuracy of readings under normal water quality conditions while also allowing for rapid response to changes in water quality, providing accurate and stable readings.

[0069] Water consumption is a user's choice of high or low water consumption; the level of water consumption is related to the volume of water consumed (T). 90 Or T 99 The choice is related. Those skilled in the art will know that T 90 and T 99 This refers to the response time required for the reading of the testing instrument to change from 0 to 90% and 99% of the actual measured value, respectively.

[0070] In addition, although in Figure 2 As not shown, the user can also set the operating time of the online water quality analysis device of the present invention in water-saving mode via the input unit 11. For example, the user can set the operating time of water-saving mode to any time period (such as 10:00 to 12:00 in the morning, 13:00 to 15:00 in the afternoon, etc.) according to their needs, and can also set the operating time of water-saving mode to run 24 hours a day.

[0071] In step S2, the control unit 12 generates a measurement period for the water quality sensor 13 to measure water quality data based on the input of the analysis cycle and water consumption of the water-saving mode. At this time, the measurement period of the water quality sensor 13 generated by the control unit 12 is an optimal water-saving measurement scheme automatically generated for normal water quality, thereby determining the values ​​of the initial measurement period T1 and the rest period T2.

[0072] In this invention, the initial measurement period T1 = t1 + t V The initial measurement period T1 must satisfy the following conditions: First, t1 >= T 90 Or T 99 Response time. Specifically, it is in T seconds. 90 Or T 99 The choice of t1 depends on the inputs regarding the analysis period T and water consumption in step S1. Secondly, the opening and closing of the solenoid valve involves switching between water flow and pauses, which can cause fluctuations in some parameter readings. The selection of t1 must take into account the time period including such fluctuations. Thirdly, t1 is affected by the water capacity of the inlet pipe, therefore it needs to be corrected based on the pipe length L, pipe diameter D, and flow rate. V .

[0073] In addition, although not in Figure 2 As shown, it should be understood that after step S2 and before step S3, the control unit 12 issues commands to the execution unit 14 regarding the measurement period T1 and the rest period T2, thereby the execution unit 14 sends signals to the solenoid valve 15 to control the opening and closing durations of the solenoid valve 15. When the solenoid valve 15 is open, water flow is allowed through the water quality sensor 13; when the solenoid valve 15 is closed, water flow is prohibited from passing through the water quality sensor 13. Furthermore, while issuing commands to the execution unit 14, the control unit 12 also issues commands to the water quality sensor 13, causing the water quality sensor 13 to measure water quality data during the measurement period and simultaneously transmit the measured water quality data to the control unit 12.

[0074] In step S3, the control unit 12 receives the measured water quality data from the water quality sensor 13 during the measurement period T1.

[0075] In this invention, the water quality sensor 13 is preferably a turbidity sensor and a residual chlorine sensor, and the corresponding water quality data are turbidity data and residual chlorine data. Turbidity data characterizes the turbidity of water, referring to the degree to which suspended matter in the water obstructs the transmission of light. Residual chlorine data characterizes the water quality parameters of chlorine disinfection; excessively high residual chlorine levels will give the water an unpleasant odor, while excessively low residual chlorine levels will cause the water to lose its ability to maintain sterilization, reducing the hygiene and safety of the water supply.

[0076] However, it should be understood that the water quality data involved in the technical solutions proposed in this invention include, but are not limited to, water quality data characterizing pH, temperature, conductivity, oxidation-reduction potential (ORP), total chlorine, chlorine dioxide, dissolved oxygen, etc.

[0077] In step S4, the control unit 12 determines whether the water quality data is stable during the measurement period T1, and then determines whether the water quality measurement scheme needs to be adjusted based on the determination result.

[0078] During the measurement period T1, the control unit 12 receives water quality data from the water quality sensor 13 in real time, thereby determining at time T1 whether the water quality data is stable during the measurement period T1. Data stability is an indicator of data volatility; the smaller the data volatility, the higher the stability. For example, the control unit 12 plots the water quality data measured during the measurement period T1 as a curve; if the rate of change of the curve in the curve is greater than a threshold, the control unit 12 determines that the water quality data is unstable; if the rate of change of the curve in the curve is less than a threshold, the control unit 12 determines that the water quality data is stable. Of course, this is only an example, and those skilled in the art can use other methods to determine whether the water quality data is stable during the measurement period T1.

[0079] When the control unit 12 determines that the water quality data is stable during the measurement period T1, it executes steps S411, S412 and S413, which are collectively referred to as step S41.

[0080] In step S411, the measurement period T1 is maintained unchanged. In step S412, the water quality data at the end of the measurement period T1 (i.e., time T1) is recorded. In step S413, the water quality sensor is controlled to stop working (at the same time, the control unit 12 also controls the solenoid valve 15 to close) and a rest period T2 is maintained.

[0081] When the control unit 12 determines that the water quality data is unstable during the measurement period T1, it executes steps S421 and S422, which are also collectively referred to as step S42.

[0082] In step S421, the measurement period T1 is extended by a fixed period. Since the total analysis cycle T is fixed, the rest period T2 is correspondingly shortened by a fixed period. The fixed period can be, but is not limited to, 1s, 5s, 10s, 15s, 20s, or 30s. The inventors of this invention have found that, after comprehensively considering factors such as technical effectiveness and software load, a preferred embodiment of the fixed period is 10s.

[0083] However, it should be understood that T1 cannot be extended indefinitely. Therefore, in step S422, the control unit 12 determines whether the extended measurement period is less than or equal to a measurement threshold period. The measurement threshold period T0 is a value obtained by referring to historical test data. The measurement threshold period T0 ensures that the water in the flow tank where the water quality sensor 13 is located is sufficiently refreshed, and also ensures that the water quality sensor 13 can obtain a stable and accurate value.

[0084] Subsequently, when the control unit 12 determines that the extended measurement period is less than or equal to a measurement threshold period T0, it returns to step S3. The control unit 12 continues to receive the measured water quality data from the water quality sensor 13 and executes step S4 in sequence to determine whether the water quality data is stable during the extended measurement period T1. Based on the determination result, it further determines whether the water quality measurement scheme needs to be further adjusted.

[0085] When the control unit 12 determines that the extended measurement period is greater than a measurement threshold period T0, it executes step S412 to record the water quality data at the end of the measurement threshold period T0, and then controls the water quality sensor to stop working and continue for another rest period T2'. Since the sum of the measurement period and the rest period should be equal to the analysis period T, the sum of the measurement threshold period T0 and the other rest period T2' is the analysis period T.

[0086] In addition, although in Figure 2 Although not shown, it should be understood that since the measurement method in water-saving mode is intermittent automatic cyclic measurement, the execution of step S3 can be returned at the end of rest period T2 or another rest period T2'. In another new cycle, the control unit 12 continues to receive the measured water quality data from the water quality sensor 13 during the measurement period T1, and sequentially executes step S4 to determine whether the water quality data is stable during the extended measurement period T1, and further determines whether the water quality measurement scheme needs to be further adjusted based on the determination result.

[0087] In this invention, intermittent measurement is achieved by controlling the opening and closing of the solenoid valve 15 through the control unit 12. This allows for personalized requirements for different application scenarios based on customers' different needs regarding analysis cycles and water consumption. Furthermore, it can identify sudden changes in water quality and respond quickly to display accurate readings.

[0088] A simplified flowchart of a specific embodiment of the online water quality analysis method of the present invention is as follows:

[0089] At time T1, at the end of the measurement period, the control unit 12 evaluates the received residual chlorine and turbidity data to determine whether the water quality is stable.

[0090] If the control unit 12 determines that the residual chlorine data and turbidity data are of acceptable quality and the water quality is stable, the control unit 12 records the data at time T1, closes the solenoid valve 15 and the water quality sensor 13 to enter the rest period T2 (it should be understood that T1+T2=T).

[0091] If the control unit 12 determines that the residual chlorine and turbidity data are substandard and the water quality is unstable, the control unit 12 will automatically extend the measurement period T1. At the end of the new measurement period, at time T1', the received residual chlorine and turbidity data will be re-evaluated. If the control unit 12 determines that the residual chlorine and turbidity data are acceptable and the water quality is stable, the control unit 12 will close the solenoid valve, record the data at time T1', and close the solenoid valve 15 and the water quality sensor 13 to enter another rest period T2' (it should be understood that T1' + T2' = T). If, until time T0 (as mentioned above, the measurement threshold period T0 is a value obtained by referring to historical test data, the measurement threshold period T0 can ensure that the water in the flow tank where the water quality sensor 13 is located is fully renewed, and that the water quality sensor 13 can obtain a stable and accurate value), the control unit 12 determines that the water quality is still unstable, the control unit 12 will record the data at time T0, close the solenoid valve 15 and the water quality sensor 13 to enter another rest period T2 (it should be understood that T0 + T2) = T.

[0092] After the rest period T2, another rest period T2', and yet another rest period T2" ends, the control unit enters the next analysis cycle T.

[0093] If water quality changes continuously over a period of time, the online water quality monitoring method of this invention effectively transforms discontinuous measurement into near-continuous measurement during this period (e.g., in the case of T=T0, discontinuous measurement becomes near-continuous measurement). If water quality is normal, the online water quality monitoring method of this invention becomes discontinuous measurement. This is a correct response to water quality changes or abrupt water quality events. This response not only helps to quickly provide accurate water quality readings but also conserves water as much as possible.

[0094] Therefore, the online water quality testing device of the present invention is intelligent. The measurement period and rest period are automatically generated rather than fixed, and can be automatically adjusted according to the actual water quality.

[0095] The online water quality analysis device of the present invention is used for online drinking water measurement and can be placed in water plants, pumping stations, and residential areas. It can mainly measure water quality data such as residual chlorine, chlorine dioxide, total chlorine, pH, turbidity, temperature, conductivity, ORP, and dissolved oxygen in tap water. All sensors used are in online measurement mode.

[0096] Figure 3 A comparative graph showing the effects of an online water quality analysis method according to one embodiment of the present invention is presented. Table 1 also shows the results for easy reference. Figure 3 The water-saving efficiency under different analysis cycles is shown below.

[0097]

[0098] As from Figure 3 As shown in Table 1, compared with the continuous water consumption of 21 L / h in the non-water-saving mode, for conventional water quality, a 60-minute analysis cycle can save 92% of water, a 20-minute analysis cycle can save 75% of water, and a 10-minute analysis cycle can save 50% of water. For changing water quality, a 60-minute analysis cycle can save approximately 80% of water, and a 20-minute analysis cycle can save approximately 50% of water.

[0099] The online water quality analysis method and equipment of the present invention have the following advantages:

[0100] (1) It has high water-saving efficiency, and the annual water consumption can be reduced from 250 tons measured continuously to 40 tons.

[0101] (2) Customers can personalize the water-saving mode during specific time periods, select the measurement cycle and water consumption, and set continuous measurement or water-saving mode as needed in different time periods.

[0102] (3) Based on the selected measurement cycle and water consumption, the optimal water-saving measurement scheme is intelligently provided.

[0103] (4) The built-in algorithm of the control unit dynamically judges the stability of the numerical value and whether the water quality is stable, and dynamically adjusts the T1 time according to the judgment result. This can respond to changes in water quality in a timely manner, and also ensure the accuracy and stability of the reading.

[0104] Those skilled in the art will recognize that some aspects of the devices and methods mentioned above (e.g., computations performed by a processor) can be embodied as processor control code, for example on non-volatile media (such as disks, CD-ROMs, or DVD-ROMs), programmable memory (such as read-only memory (firmware), or data carriers (such as optical or electrical signal carriers). For many applications, embodiments of the invention will be implemented on DSPs (Digital Signal Processors), ASICs (Application-Specific Integrated Circuits), or FPGAs (Field-Programmable Gate Arrays). Therefore, the code can include conventional program code or microcode, or, for example, code for setting up or controlling an ASIC or FPGA. The code can also include code for dynamically configuring reconfigurable instruments (such as reprogrammable logic gate arrays). Similarly, the code can include code for hardware description languages ​​(such as Verilog). TM Alternatively, it can be VHDL (Very High Speed ​​Integrated Circuit Hardware Description Language) code. As those skilled in the art will understand, the code can be distributed among multiple coupled components that communicate with each other. Where appropriate, implementations can also be implemented using code that runs on a field-programmable analog array or similar device to configure the analog hardware.

[0105] It should be noted that the embodiments mentioned above are illustrative and not limiting of the invention, and many alternative embodiments will be able to be devised by those skilled in the art without departing from the scope of the appended claims. The word "comprising" does not exclude the presence of elements or steps other than those listed in the claims, "a" or "an" does not exclude a plurality, and a single feature or other unit may perform the function of several units recited in the claims. Any reference numerals in the claims should not be construed as limiting their scope.

Claims

1. An online water quality analysis method, characterized by, The method comprises: Step S1: receiving inputs regarding an analysis period and a water consumption; Step S2: generating a measurement period for a water quality sensor according to the inputs; Step S3: receiving water quality data measured by the water quality sensor during the measurement period; Step S4: performing one of the following steps according to a stability of the water quality data during the measurement period: Step S41: maintaining the measurement period unchanged when the water quality data is stable during the measurement period; recording the water quality data at the end of the measurement period, and controlling the water quality sensor to stop working at the end of the measurement period and to continue for a rest period; wherein a sum of the measurement period and the rest period is the analysis period; or Step S42: extending the measurement period by a fixed period when the water quality data is unstable during the measurement period, and returning to perform Step S3, wherein a sum of the measurement period and the fixed period is less than the analysis period; wherein when the sum of the measurement period and the fixed period is less than or equal to a measurement threshold period, the step S42 further comprises: Step S420: recording the water quality data at the end of the measurement threshold period when the water quality data is unstable during the measurement period and the sum of the measurement period and the fixed period is equal to the measurement threshold period, and controlling the water quality sensor to stop working at the end of the measurement threshold period and to continue for another rest period, wherein a sum of the measurement threshold period and the another rest period is the analysis period; The method further comprises: returning to perform Step S3 at the end of the rest period or the another rest period; and The method further comprises: controlling a solenoid valve to open during the measurement period to allow water to flow through the water quality sensor; and controlling the solenoid valve to close during the rest period or the another rest period to prohibit water from flowing through the water quality sensor.

2. The online water quality analysis method according to claim 1, wherein the water quality sensor is a turbidity sensor and a residual chlorine sensor, and the method further comprises: receiving turbidity data measured by the turbidity sensor, and receiving residual chlorine data measured by the residual chlorine sensor.

3. The on-line water quality analysis method according to claim 1 or 2, characterized by, The method further comprises: receiving inputs regarding a running period, and performing the method during the running period.

4. The on-line water quality analysis method according to claim 1 or 2, characterized by, The method further comprises: determining the stability of the water quality data according to a rate of change of a water quality data curve.

5. The online water quality analysis method according to claim 1 or 2, wherein the fixed period is 1s, 5s, 10s, 15s, 20s or 30s.

6. The on-line water quality analysis method according to claim 1 or 2, characterized by, The method further comprises: receiving and counting flow data from a flow meter.

7. An online water quality analysis apparatus that executes an online water quality analysis method, characterized by, The device at least comprises: an input unit configured to receive inputs regarding an analysis period and a water consumption; a water quality sensor configured to measure water quality data; a control unit configured to generate a measurement period of the water quality sensor according to the input, and the control unit is further configured to perform one of the following steps: Step S3: receiving water quality data measured by the water quality sensor during the measurement period; Step S4: according to the stability of the water quality data during the measurement period, performing one of the following steps: Step S41: when the water quality data is stable during the measurement period, maintaining the measurement period unchanged; recording the water quality data at the end of the measurement period, and controlling the water quality sensor to stop working at the end of the measurement period and continue for a rest period; wherein the sum of the measurement period and the rest period is the analysis period; or Step S42: when the water quality data is unstable during the measurement period, extending the measurement period by a fixed period, and returning to perform Step S3, wherein the sum of the measurement period and the fixed period is less than the analysis period; wherein when the sum of the measurement period and the fixed period is less than or equal to a measurement threshold period, the control unit is further configured to perform the following operation: Step S420: when the water quality data is unstable during the measurement period and the sum of the measurement period and the fixed period is equal to the measurement threshold period, recording the water quality data at the end of the measurement threshold period, and controlling the water quality sensor to stop working at the end of the measurement threshold period and continue for another rest period, wherein the sum of the measurement threshold period and the another rest period is the analysis period; wherein the control unit is further configured to perform the following operation: returning to perform Step S3 at the end of the rest period or the another rest period; and the device further comprises a solenoid valve, and the control unit is further configured to perform the following operations: controlling the solenoid valve to open during the measurement period to allow water to flow through the water quality sensor; and controlling the solenoid valve to close during the rest period to prohibit water from flowing through the water quality sensor.

8. The online water quality analysis device according to claim 7, wherein: the water quality sensor is a turbidity sensor and a residual chlorine sensor, and the control unit is further configured to perform the following operations: receiving turbidity data measured by the turbidity sensor, and receiving residual chlorine data measured by the residual chlorine sensor.

9. The online water quality analysis apparatus according to claim 7 or 8, characterized in that, the control unit is further configured to perform the following operation: receiving an input about a running time period, and performing the online water quality analysis method during the running time period.

10. The on-line water quality analysis apparatus according to claim 7 or 8, characterized by the control unit is further configured to perform the following operation: determining the stability of the water quality data according to the rate of change of the water quality data curve.

11. The online water quality analysis device according to claim 7 or 8, wherein: the fixed period is 1s, 5s, 10s, 15s, 20s or 30s.

12. The on-line water quality analysis apparatus according to claim 7 or 8, characterized by the device further comprises a flow meter, and the control unit is further configured to perform the following operation: receiving and counting flow data from the flow meter.

13. A computer readable storage medium having stored thereon computer instructions that, when executed, perform the online water quality analysis method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Water supply pipeline water quality detection method

    CN112213460A

  • Underground water online monitoring and automatic sampling integrated device

    CN112729953A