Water pump regulation and control method and system for secondary water supply

The method and system for secondary water supply systems address pump control inaccuracies by using historical and actual data to adjust flow rates, ensuring consistent water supply and preventing equipment failure.

CN119151080AInactive Publication Date: 2024-12-17NANYUAN SMART WATER CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411631023.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2024-12-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing secondary water supply systems face issues with inaccurate pump control due to frequent adjustments leading to discrepancies between predicted and actual water consumption, resulting in insufficient water supply and equipment failure.

Method used

A method and system that calculates initial flow rate settings based on historical consumption data, adjusts using actual consumption data, and determines final settings to minimize discrepancies, ensuring consistent water supply.

Benefits of technology

The system ensures accurate water supply by adjusting pump settings to match actual demand, preventing equipment failure and maintaining normal operation even with inaccurate forecasts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119151080A_ABST
    Figure CN119151080A_ABST
Patent Text Reader

Abstract

The embodiment of the invention mainly relates to the technical field of secondary water supply, in particular to a water pump regulation and control method and system for secondary water supply. A water pump regulation and control method for secondary water supply comprises the steps that S1, historical water consumption data of the first N days are obtained, N sets of historical daily water consumption data are obtained through calculation according to the historical water consumption data of the first N days, and a set of daily water supply prediction data of the current day is obtained through calculation according to the N sets of historical daily water consumption data; s2, setting a plurality of water pumps, and determining initial flow gear setting values of the plurality of water pumps in each time period of the day based on the daily water supply amount prediction data; s3, acquiring actual water consumption data and actual water supply data of the day before the current time period, and determining a water quantity difference value according to the actual water consumption data and the actual water supply data. According to the water pump regulation and control method and system for secondary water supply, even if the accuracy of daily water supply amount prediction data is not very high, secondary water supply equipment can supply water normally for a long time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification mainly relate to the technical field of secondary water supply, and specifically to a water pump control method and system for secondary water supply. Background Art

[0002] The municipal water plant delivers tap water to shopping malls, residential areas and other places through the water supply network. This is the first water supply. However, the water supply network does not have enough pressure to supply tap water directly to each user in the high-rise building. At this time, secondary water supply is required. The secondary water supply equipment includes a first water tank located on the bottom floor of the building (used to receive tap water from the water supply network), a water supply pump connected to the first water tank through a water pipe, a main household water supply pipe connected to the water supply pump, a second water tank connected to the other end of the main household water supply pipe (the second water tank is set on the top floor of the building), and a secondary household water supply pipe connected to the main household water supply pipe (distributed on each floor). The secondary household water supply pipe is provided with a water consumption detection component, and a controller electrically connected to the water consumption detection component and the water supply pump. The secondary water supply equipment can obtain real-time water consumption through the water consumption detection component.

[0003] In the prior art, the secondary water supply equipment adjusts the flow level of the water pump in the current time period according to the real-time water consumption in the previous time period to adapt to different water consumption requirements. However, if each time period is set to be relatively short (for example, 10 seconds), it is necessary to frequently control the water pump to adjust its flow level; if each time period is set to be relatively long (for example, 10 minutes), there will be a problem that the water supply in the current time period (determined according to the water consumption in the previous time period) is quite different from the water consumption in the current time period, which makes the accuracy of the water pump regulation low, and in the long run, it may cause the secondary water supply equipment to fail to supply water normally. For example, the water supply in the first time period is 2 volumes V, but the actual water consumption is 3 volumes V, and the insufficient 1 volume V is provided by the second water tank; the water supply in the second time period is 3 volumes V (determined by the actual water consumption in the first time period), but the actual water consumption is 5 volumes V, and the insufficient 2 volumes V are provided by the second water tank; ... When the water in the second water tank is insufficient, if the actual water consumption is still greater than the actual water supply, then the secondary water supply equipment will not be able to supply water normally.

[0004] In addition, the secondary water supply equipment in the prior art will also obtain the daily water supply forecast data of the day through the historical water consumption data, and then adjust the water pump to supply water according to the daily water supply forecast data of the day. However, if the daily water supply forecast data of the day itself is not very accurate, it may cause the secondary water supply equipment to fail to supply water normally after a long time. For example, the predicted water supply in the first time period is 3 volumes V, but the actual water consumption is 4 volumes V, and the insufficient 1 volume V is provided by the second water tank; the predicted water supply in the second time period is 4 volumes V, but the actual water consumption is 5 volumes V, and the insufficient 1 volume V is provided by the second water tank; ... When the water in the second water tank is insufficient, if the actual water consumption is still greater than the actual water supply (i.e. the predicted water supply), then the secondary water supply equipment will not be able to supply water normally.

[0005] In short, the existing secondary water supply pump control method, when the pump control frequency is not very frequent, if the pump control accuracy is low (that is, the actual water supply and actual water consumption are significantly different), then in the long run it may cause the secondary water supply equipment to not be used normally. Summary of the invention

[0006] The embodiments of this specification aim at solving the problems existing in the prior art and propose a water pump control method and system for secondary water supply.

[0007] In a first aspect, an embodiment of the present specification provides a water pump control method for secondary water supply, comprising: S1. Obtain the historical water consumption data of the previous N days, and calculate N groups of historical daily water consumption data based on the historical water consumption data of the previous N days, and calculate a group of daily water supply forecast data for the current day based on the N groups of historical daily water consumption data; S2. Set up multiple water pumps, and determine the initial flow rate gear setting value of multiple water pumps for each time period of the day based on the daily water supply forecast data; S3. Get the actual water consumption data and actual water supply data of the day before the current time period, determine the water volume difference based on the actual water consumption data and the actual water supply data, and determine the final flow rate gear setting value of the pump in the current time period of the day based on the water volume difference and the initial flow rate gear setting value of the pump in the current time period of the day; S4. Setting the flow level of the water pump for the current time period of the day according to the final flow level setting value of the water pump for the current time period of the day.

[0008] Preferably, in S1, a set of daily water supply forecast data is calculated based on N sets of historical daily water consumption data and specifically includes: S11. Obtaining N historical daily water consumption data values ​​corresponding to a certain time period from N groups of historical daily water consumption data, wherein one group of historical daily water consumption data has one historical daily water consumption data value corresponding to a certain time period; S12. Determine the weight value of each historical daily water consumption data value, including: S121. Sort N historical daily water consumption data values ​​by generation time from earliest to latest; S122. Determine the base value: When N is an odd number, The historical daily water consumption data value is used as the basic value. When N is an even number, the The historical daily water consumption data value is used as the basic value; S123. When the historical daily water consumption data value is used as the basic value, As the weight value of the historical daily water consumption data value; when the historical daily water consumption data value is the M1th value after the basic value, As the weight value of the historical daily water consumption data value, N1 is the number of historical daily water consumption data values ​​behind the basic value, and M1 is 1, ..., N1; when the historical daily water consumption data value is the M2th value before the basic value, As the weight value of the historical daily water consumption data value, the value of M2 is 1, ..., N1 or 1, ..., N1-1; S13. Multiply each historical daily water consumption data value by its corresponding weight value to obtain N historical daily water consumption data secondary values, and sum the N historical daily water consumption data secondary values ​​to obtain daily water supply forecast data and a daily water supply forecast data value corresponding to a certain time period.

[0009] Preferably, determining the water volume difference according to the actual water volume data and the actual water supply volume data in S3 specifically includes: S31. summing all actual water consumption data values ​​in the actual water consumption data to obtain the previous water consumption total value, summing all actual water supply data values ​​in the actual water supply data to obtain the previous water supply total value, and subtracting the previous water supply total value from the previous water consumption total value to obtain the water volume difference; In S3, the final flow level setting value of the water pump in the current time period of the day is determined according to the water volume difference and the initial flow level setting value of the water pump in the current time period of the day, specifically including: S32. Determine whether the water volume difference is a positive value or a negative value and calculate the number of gear values ​​corresponding to the water volume difference. When the water volume difference is a positive value, add the number of gear values ​​on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is greater than the maximum flow gear setting value, use the maximum flow gear setting value as the final flow gear setting value; when the water volume difference is a negative value, reduce the number of gear values ​​on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is less than the minimum flow gear setting value, use the minimum flow gear setting value as the final flow gear setting value.

[0010] Preferably, S4 specifically includes: S41. Subtract the final flow rate gear setting value of the pump in the previous time period from the final flow rate gear setting value of the pump in the current time period of the day to obtain the gear adjustment value of the pump in the current time period of the day; S42. Determine whether the gear adjustment value of the water pump is 0. When the gear adjustment value is 0, do not adjust the flow gear of the water pump in the current time period of the day; when the gear adjustment value is not 0, determine the minimum number of water pumps that need to be adjusted, determine the water pump number or water pump number group that can be adjusted based on the minimum number of water pumps that need to be adjusted, select any water pump number from the water pump number or select any water pump number group from the water pump number group, and adjust the flow gear of the water pump in the current time period of the day based on the water pump number or the water pump number group.

[0011] Preferably, S3 further includes before S31: S301. Subtract the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the previous time period of the day. When the absolute value of the difference between the two is greater than the first preset threshold, subtract the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the current time period of the day. When the absolute value of the difference between the two is greater than the second preset threshold, update the daily water supply forecast data value of the current time period of the day to obtain a new daily water supply forecast data value for the current time period of the day. During the update process, the absolute value of the difference obtained by subtracting the actual water consumption data value of the previous time period of the day from the new daily water supply forecast data value for the current time period of the day is equal to the second preset threshold; S302. Obtain a new initial flow level setting value based on the new daily water supply forecast data value for the current time period of the day.

[0012] In a second aspect, an embodiment of the present specification provides a water pump control system for secondary water supply, comprising: The daily water supply forecast data acquisition module is used to obtain the historical water consumption data of the previous N days, and calculate N groups of historical daily water consumption data based on the historical water consumption data of the previous N days, and calculate a group of daily water supply forecast data for the current day based on the N groups of historical daily water consumption data; An initial flow rate gear setting value determination module is used to set multiple water pumps and determine the initial flow rate gear setting values ​​of multiple water pumps in each time period of the day based on the daily water supply forecast data; The final flow level setting value determination module is used to obtain the actual water consumption data and the actual water supply data of the day before the current time period, determine the water volume difference according to the actual water consumption data and the actual water supply data, and determine the final flow level setting value of the water pump in the current time period of the day according to the water volume difference and the initial flow level setting value of the water pump in the current time period of the day; The water pump flow level setting module is used to set the flow level of the water pump in the current time period of the day according to the final flow level setting value of the water pump in the current time period of the day.

[0013] Preferably, the daily water supply forecast data acquisition module includes: A historical daily water consumption data value acquisition unit, used to acquire N historical daily water consumption data values ​​corresponding to a certain time period from N groups of historical daily water consumption data, wherein one group of historical daily water consumption data has one historical daily water consumption data value corresponding to a certain time period; The weight value determination unit is used to determine the weight value of each historical daily water consumption data value; the weight value determination unit specifically includes: A data value sorting subunit is used to sort N historical daily water consumption data values ​​from earliest to latest according to the generation time; The basic value determination subunit is used to determine the basic value: when N is an odd number, The historical daily water consumption data value is used as the basic value. When N is an even number, the The historical daily water consumption data value is used as the basic value; The weight value determination subunit is used to determine the weight value when the historical daily water consumption data value is the basic value. As the weight value of the historical daily water consumption data value; when the historical daily water consumption data value is the M1th value after the basic value, As the weight value of the historical daily water consumption data value, N1 is the number of historical daily water consumption data values ​​behind the basic value, and M1 is 1, ..., N1; when the historical daily water consumption data value is the M2th value before the basic value, As the weight value of the historical daily water consumption data value, the value of M2 is 1, ..., N1 or 1, ..., N1-1; The daily water supply prediction data value calculation unit is used to multiply each historical daily water consumption data value with its corresponding weight value to obtain N historical daily water consumption data secondary values, and sum the N historical daily water consumption data secondary values ​​to obtain a daily water supply prediction data value corresponding to a certain time period.

[0014] Preferably, the final flow rate gear setting value determination module includes: A water volume difference calculation unit is used to sum all actual water volume data values ​​in the actual water volume data to obtain a previous water volume total value, sum all actual water supply data values ​​in the actual water supply data to obtain a previous water supply total value, and subtract the previous water supply total value from the previous water volume total value to obtain a water volume difference; The final flow gear setting value determination unit is used to determine whether the water volume difference is a positive value or a negative value and calculate the gear value corresponding to the water volume difference. When the water volume difference is a positive value, the gear value is increased on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is greater than the maximum flow gear setting value, the maximum flow gear setting value is used as the final flow gear setting value; when the water volume difference is a negative value, the gear value is reduced on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is less than the minimum flow gear setting value, the minimum flow gear setting value is used as the final flow gear setting value.

[0015] Preferably, the water pump flow gear setting module includes: A gear adjustment value determination unit, used to subtract the final flow gear setting value of the water pump in the previous time period of the day from the final flow gear setting value of the water pump in the current time period of the day to obtain the gear adjustment value of the water pump in the current time period of the day; The flow gear adjustment unit is used to determine whether the gear adjustment value of the water pump is 0. When the gear adjustment value is 0, the flow gear of the water pump in the current time period of the day is not adjusted; when the gear adjustment value is not 0, the minimum number of water pumps required to be adjusted is determined, and the water pump serial number or water pump serial number group that can be adjusted is determined according to the minimum number of water pumps required to be adjusted. A water pump serial number is selected from the water pump serial numbers or a water pump serial number group is selected from the water pump serial number group, and the flow gear of the water pump in the current time period of the day is adjusted according to the water pump serial number or the water pump serial number group.

[0016] Preferably, the final flow level setting value determination module further includes: a new daily water supply forecast data value determination unit, used for subtracting the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the previous time period of the day, and when the absolute value of the difference between the two is greater than a first preset threshold, subtracting the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the current time period of the day, and when the absolute value of the difference between the two is greater than a second preset threshold, updating the daily water supply forecast data value of the current time period of the day to obtain a new daily water supply forecast data value of the current time period of the day, and during the updating process, making the absolute value of the difference obtained by subtracting the actual water consumption data value of the previous time period of the day from the new daily water supply forecast data value of the current time period of the day equal to the second preset threshold; The initial flow level setting value updating unit is used to obtain a new initial flow level setting value based on the new daily water supply forecast data value of the current time period of the day.

[0017] Beneficial effect: The water pump control method and system for secondary water supply of the embodiment of the present specification first determines the initial flow gear setting value of the water pump in the current time period based on the daily water supply prediction data, and then determines the water volume difference in combination with the actual water consumption data and the actual water supply data of the day before the current time period, and determines the gear number value according to the water volume difference, and then determines the final flow gear setting value of the water pump in the current time period of the day according to the gear number value, and finally sets the flow gear of the water pump in the current time period of the day according to the final flow gear setting value, and the water volume difference between the actual water supply and the actual water consumption before the current time period can be eliminated by adjusting the flow gear setting value of the current time period (that is, changing the initial flow gear setting value to the final flow gear setting value), then the water volume difference in the current time period is mainly determined by the water volume difference between the water supply based on the initial flow gear setting value of the water pump and the actual water consumption in the current time period, and the water volume difference generated in the current time period will not be very large under normal circumstances, and can be completely assisted by the second water tank. Therefore, even if the accuracy of the daily water supply prediction data is not very high, the secondary water supply equipment can still supply water normally for a long time. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a water pump control method for secondary water supply provided in an embodiment of this specification. DETAILED DESCRIPTION

[0019] Embodiments of the present specification will be described in more detail below with reference to the accompanying drawings.

[0020] Embodiment 1: A method for regulating a water pump for secondary water supply, such as Figure 1 As shown, including: S1. Obtain the historical water consumption data of the previous N days, and calculate N groups of historical daily water consumption data based on the historical water consumption data of the previous N days, and calculate a group of daily water supply forecast data for the current day based on the N groups of historical daily water consumption data.

[0021] In this embodiment, 10 minutes can be used as a time period. For example, the 1st to 10th minutes of the 1st hour of a certain day is used as a time period (i.e., the 1st time period), the 11th to 20th minutes of the 1st hour of a certain day is used as a time period (i.e., the 2nd time period), the 21st to 30th minutes of the 1st hour of a certain day is used as a time period (i.e., the 3rd time period), ..., the 51st to 60th minutes of the 24th hour of a certain day is used as a time period (i.e., the 144th time period).

[0022] Assume that a building has 20 floors, and each floor's secondary household water supply pipe is equipped with a water consumption detection component. Each water consumption detection component detects a water consumption data value every 1 second. Then, every 10 minutes, the controller will obtain 12,000 water consumption data values ​​(of which each water consumption detection component detects 600 water consumption data values). The controller can calculate based on these 12,000 water consumption data values ​​(specifically, the 600th water consumption data value of each water consumption detection component is subtracted from the first water consumption data value to obtain the total water consumption value of each floor, and then the 20 total water consumption values ​​are summed to obtain the total water consumption value of the entire building) to obtain a daily water consumption data value. The daily water consumption data value represents the total water consumption of the building in these 10 minutes. The controller can obtain 144 daily water consumption data values ​​in a day, and these 144 daily water consumption data values ​​are a set of daily water consumption data.

[0023] This embodiment uses the water consumption data obtained before the day as the historical water consumption data, and uses the daily water consumption data calculated before the day as the historical daily water consumption data. One day's historical water consumption data can calculate a set (i.e., 144) of historical daily water consumption data. That is to say, this embodiment can obtain 12000*144 historical water consumption data values ​​on the first day before the day, and can calculate 144 historical daily water consumption data values ​​through these historical water consumption data values ​​(these 144 historical daily water consumption data values ​​are a set of historical daily water consumption data). On the second day before the day, 12000*144 historical water consumption data values ​​can also be obtained, and can calculate 144 historical daily water consumption data values ​​through these historical water consumption data values ​​(these 144 historical daily water consumption data values ​​are a set of historical daily water consumption data).

[0024] In this embodiment, N can be set to 100, that is, historical water consumption data of the previous 100 days is obtained, and 100 sets of historical daily water consumption data can be calculated based on the historical water consumption data of the previous 100 days. One set of historical daily water consumption data is calculated based on one day's historical water consumption data.

[0025] This embodiment can also calculate a set of daily water supply forecast data for the day based on 100 sets of historical daily water consumption data. Assume that there is only one set of historical daily water consumption data: a1, a2, a3, a4, a5, a6 (a1-a6 are the 6 water consumption data values ​​of the first hour), a7, a8, a9, a10, a11, a12 (a7-a12 are the 6 water consumption data values ​​of the second hour), ..., a139, a140, a141, a142, a143, a144 (a139-a144 are the 6 water consumption data values ​​of the 24th hour). Then the daily water supply forecast data for that day is the same as the group of historical daily water consumption data, which is also: a1, a2, a3, a4, a5, a6 (a1-a6 are the 6 water supply forecast data values ​​for the 1st hour), a7, a8, a9, a10, a11, a12 (a7-a12 are the 6 water supply forecast data values ​​for the 2nd hour), ..., a139, a140, a141, a142, a143, a144 (a139-a144 are the 6 water supply forecast data values ​​for the 24th hour).

[0026] When there are 100 groups of historical daily water consumption data, the daily water supply forecast data for the day can be the average value of these 100 groups of historical daily water consumption data. For example, the first historical daily water consumption data value in the first group of historical daily water consumption data is A1, the first historical daily water consumption data value in the second group of historical daily water consumption data is A2, ..., the first historical daily water consumption data value in the 100th group of historical daily water consumption data is A100. Then the first daily water supply forecast data value of the daily water supply forecast data for the day is the average value of these data values ​​A1, A2, ..., A100.

[0027] In summary, this step can roughly predict the water consumption in each time period of the day through the historical water consumption data, and can roughly determine the water supply required in each time period of the day based on the predicted water consumption in each time period of the day, thereby obtaining a set of daily water supply forecast data for the day. This step can be completed a few seconds before the first time period of the day.

[0028] like Figure 1 As shown, the water pump control method of this embodiment also includes: S2. Set up multiple water pumps, and determine the initial flow level setting values ​​of the multiple water pumps in each time period of the day based on the daily water supply forecast data.

[0029] This embodiment assumes that the model of each water pump is the same. Take a water pump as an example, assuming that when the water pump is in the first gear, the water supply of the water pump in a time period is 1 volume V (i.e. 1V); then when the water pump is in the second gear, the water supply of the water pump in a time period needs to be 2 volumes V (i.e. 2V); when the water pump is in the third gear, the water supply of the water pump in a time period needs to be 3 volumes V (i.e. 3V); .... That is, for every additional gear of the water pump, the water supply of the water pump in a time period just increases by 1 volume V. The water supply principle of other water pumps is the same. Assuming that there are 2 water pumps in total, if water pump No. 1 is set to the first gear and water pump No. 2 is set to the third gear in a certain time period, then the total water supply of the water pump in this time period is 4 volumes V (i.e. 4V).

[0030] In this embodiment, the value obtained by dividing the daily water supply forecast data value by the single volume V is used as the initial flow rate gear setting value of multiple water pumps. In this embodiment, it is assumed that a total of 3 water pumps are set, and each water pump is set with 5 gears, so the flow rate gear setting value of the water pump ranges from 0 to 15.

[0031] Assuming that the first daily water supply forecast data value in the daily water supply forecast data of the day is 0, it means that the initial flow gear setting value of the water pump in the first time period is 0. When the initial flow gear setting value of the water pump is 0, the gears of water pumps 1, 2, and 3 are all set to gear 0 (that is, all three water pumps are paused).

[0032] Assuming that the second daily water supply forecast data value in the daily water supply forecast data of the day is 1V, it means that the initial flow rate gear setting value of the water pump in the second time period is 1. When the initial flow rate gear setting value of the water pump is 1, the gear of one of the No. 1 water pump, No. 2 water pump, and No. 3 water pump needs to be set to the first gear, and the gears of the other two water pumps need to be set to the 0th gear.

[0033] Assuming that the third daily water supply forecast data value in the daily water supply forecast data of the day is 3V, it means that the initial flow rate gear setting value of the water pump in the third time period is 3. When the initial flow rate gear setting value of the water pump is 3, the gears of water pumps No. 1, No. 2, and No. 3 are required to be set at gear 1; or, one of the water pumps is set at gear 1, another water pump is set at gear 2, and the remaining water pump is set at gear 0; or, one of the water pumps is set at gear 3, and the other two water pumps are set at gear 0.

[0034] When the daily water supply forecast data value cannot divide the single volume V, the flow rate gear setting value of the water pump can be rounded off and adjusted automatically. For example, when the daily water supply forecast data value divided by the single volume V is 2.3, the flow rate gear setting value of the water pump is automatically adjusted to 2; when the daily water supply forecast data value divided by the single volume V is 2.6, the flow rate gear setting value of the water pump is automatically adjusted to 3.

[0035] In summary, this step can obtain the flow level setting value of the water pump for each time period of the day by dividing the daily water supply forecast data value for each time period of the day by the single volume V. This step can be completed a few seconds before the first time period of the day.

[0036] If the daily water supply forecast data is very accurate, then the flow level setting value of the water pump in each time period of the day is also very accurate, so that the water pump regulation is accurate (that is, the water supply of the water pump in each time period is the same as the actual water consumption of the entire building). However, in reality, the daily water supply forecast data may not be so accurate, and there may be a situation where the water supply of the water pump in each time period is different from the actual water consumption. For this reason, this embodiment also sets step S3.

[0037] like Figure 1 As shown, the water pump control method of this embodiment also includes: S3. Obtain the actual water consumption data and actual water supply data of the day before the current time period, determine the water volume difference based on the actual water consumption data and the actual water supply data, and determine the final flow level setting value of the water pump in the current time period of the day based on the water volume difference and the initial flow level setting value of the water pump in the current time period of the day.

[0038] In the actual water consumption data of this embodiment, an actual water consumption data value refers to the total water consumption of a certain building in a certain period of time, which can be specifically calculated by the data detected by the water consumption detection component. In the actual water supply data of this embodiment, an actual water supply data value refers to the total water supply of a water pump in a certain period of time of a certain building, which can be specifically determined by the final flow gear setting value of the water pump in the time period. For example, when the final flow gear setting value of the water pump is 10, the corresponding actual water supply data value is 10V.

[0039] In this embodiment, determining the water volume difference according to the actual water volume data and the actual water supply volume data in S3 specifically includes: S31. Sum all actual water consumption data values ​​in the actual water consumption data to obtain the previous water consumption total value, sum all actual water supply data values ​​in the actual water supply data to obtain the previous water supply total value, and subtract the previous water supply total value from the previous water consumption total value to obtain the water volume difference.

[0040] In this embodiment, determining the final flow level setting value of the water pump in the current time period of the day in S3 according to the water volume difference and the initial flow level setting value of the water pump in the current time period of the day specifically includes: S32. Determine whether the water volume difference is a positive value or a negative value and calculate the number of gear values ​​corresponding to the water volume difference. When the water volume difference is a positive value, add the number of gear values ​​on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is greater than the maximum flow gear setting value, use the maximum flow gear setting value as the final flow gear setting value; when the water volume difference is a negative value, reduce the number of gear values ​​on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is less than the minimum flow gear setting value, use the minimum flow gear setting value as the final flow gear setting value.

[0041] In this embodiment, the maximum flow rate gear setting value is 15, and the minimum flow rate gear setting value is 0.

[0042] In the first time period of the day, the initial flow gear setting value of the water pump in the first time period of the day is directly used as the final flow gear setting value of the water pump in the first time period of the day. For example, if the initial flow gear setting value of the water pump in the first time period of the day is 1, then the final flow gear setting value of the water pump in the first time period of the day is 1.

[0043] In the second time period of the day, first obtain the actual water consumption data (assuming 1.2V) and actual water supply data (assuming 1V) before the second time period. Then, the total value of the previous water consumption is 1.2V, the total value of the previous water supply is 1V, and the water volume difference is 0.2V. According to the rounding method, when the water volume difference is 0.2V, its gear value is 0. Assuming that the initial flow gear setting value of the water pump in the second time period of the day is 2, since the water volume difference is a positive value, the gear value (ie 0) is added to the initial flow gear setting value (ie 2) of the water pump in the current time period of the day to obtain the final flow gear setting value of 2.

[0044] In the third time period of the day, first obtain the actual water consumption data (assuming 1.2V, 2.2V) and the actual water supply data (assuming 1V, 2V) before the third time period. Then, the total water consumption before is 3.4V, the total water supply before is 3V, and the water volume difference is 0.4V. According to the rounding method, when the water volume difference is 0.4V, its gear value is 0. Assuming that the initial flow gear setting value of the water pump in the third time period of the day is 3, since the water volume difference is a positive value, the gear value (ie 0) is added to the initial flow gear setting value (ie 3) of the water pump in the current time period of the day to obtain the final flow gear setting value of 3.

[0045] In the 4th time period of the day, first obtain the actual water consumption data (assuming 1.2V, 2.2V, 4.2V) and the actual water supply data (assuming 1V, 2V, 3V) before the 4th time period. Then, the total water consumption before is 7.6V, the total water supply before is 6V, and the water volume difference is 1.6V. According to the rounding method, when the water volume difference is 1.6V, its gear value is 2. Assuming that the initial flow gear setting value of the water pump in the 4th time period of the day is 4, since the water volume difference is a positive value, the gear value (i.e. 2) is added to the initial flow gear setting value (i.e. 4) of the water pump in the current time period of the day to obtain the final flow gear setting value of 6.

[0046] In the 5th time period of the day, first obtain the actual water consumption data (assuming 1.2V, 2.2V, 4.2V, 3.9V) and the actual water supply data (assuming 1V, 2V, 3V, 6V) before the 5th time period. Then, the total value of the previous water consumption is 11.5V, the total value of the previous water supply is 12V, and the water volume difference is -0.5V. According to the rounding method, when the water volume difference is -0.5V, its gear value is 1. Assuming that the initial flow gear setting value of the water pump in the 5th time period of the day is 5, since the water volume difference is a negative value, the gear value (i.e. 1) is reduced on the basis of the initial flow gear setting value (i.e. 5) of the water pump in the current time period of the day to obtain the final flow gear setting value of 4.

[0047] In the 6th time period of the day, first obtain the actual water consumption data (assuming 1.2V, 2.2V, 4.2V, 3.9V, 5.3V) and the actual water supply data (assuming 1V, 2V, 3V, 6V, 4V) before the 6th time period. Then, the total value of the previous water consumption is 16.8V, the total value of the previous water supply is 16V, and the water volume difference is 0.8V. According to the rounding method, when the water volume difference is 0.8V, its gear value is 1. Assuming that the initial flow gear setting value of the water pump in the 6th time period of the day is 6, since the water volume difference is a positive value, the gear value (i.e. 1) is added to the initial flow gear setting value (i.e. 6) of the water pump in the current time period of the day to obtain the final flow gear setting value of 7.

[0048] In the 7th time period of the day, first obtain the actual water consumption data (assuming 1.2V, 2.2V, 4.2V, 3.9V, 5.3V, 6.3V) and the actual water supply data (assuming 1V, 2V, 3V, 6V, 4V, 7V) before the 7th time period. Then, the total value of the previous water consumption is 23.1V, the total value of the previous water supply is 23V, and the water volume difference is 0.1V. According to the rounding method, when the water volume difference is 0.1V, its gear value is 0. Assuming that the initial flow gear setting value of the water pump in the 7th time period of the day is 7, since the water volume difference is a positive value, the gear value (ie, 0) is added to the initial flow gear setting value (ie, 7) of the water pump in the current time period of the day to obtain the final flow gear setting value of 7.

[0049] In this embodiment, the difference between the actual water supply and the actual water consumption before the current time period can be eliminated by adjusting the flow gear setting value of the current time period (that is, changing the initial flow gear setting value to the final flow gear setting value). Then, the total water volume difference at the current moment is mainly determined by the water volume difference generated in the current time period (that is, assuming that the water supply provided by the water pump in the current time period at the initial flow gear setting value is different from the actual water consumption in the current time period). The water volume difference generated in the current time period will not be very large under normal circumstances, and can be completely handled by the second water tank (when the water supply is greater than the water consumption, the excess water supply is stored in the second water tank; when the water supply is less than the water consumption, the insufficient water is provided by the second water tank), which will not cause the secondary water supply equipment to fail to supply water normally.

[0050] Assume that the initial state of the second water tank is to store half of the water. When the water pump is insufficient, the second water tank can supplement the water supply to the user; when the water pump is excessive, the second water tank can store the excessive water supply. The final flow gear setting value is the sum / difference of the initial flow gear setting value and the gear number value. The gear number value is used to replenish the insufficient water in the second water tank or remove the excess water in the second water tank (the water in the second water tank was insufficient or excessive before the current time period) so that the second water tank can be restored to the initial state (the process of restoring the initial state of the second water tank is carried out in the current time period). In other words, if the initial flow gear setting value and the actual water consumption in the current time period are not considered, then after the end of the current time period, the second water tank will just be restored to the initial state. If the initial flow gear setting value (i.e., the basic water supply of the water pump) and the actual water consumption in the current time period are considered, then the water volume difference equivalent to the basic water supply of the water pump in the current time period and the actual water consumption in the current time period is assisted by the second water tank that restores the initial state. Since the water volume difference in the current time period will not be very large, the second water tank that has restored its initial state can handle it automatically. No matter how much time has passed, the secondary water supply equipment will not be unable to supply water normally.

[0051] In summary, this step will automatically adjust the initial flow level setting value (i.e. increase or decrease the level value) based on the initial flow level setting value of the pump in the current time period, combined with the water volume difference between the total water supply and the total water consumption in the previous time period (the level value can be obtained through the water volume difference) to obtain the final flow level setting value of the pump. This step can be completed in the first few seconds of each time period of the day.

[0052] like Figure 1 As shown, the water pump control method of this embodiment also includes: S4. Setting the flow level of the water pump for the current time period of the day according to the final flow level setting value of the water pump for the current time period of the day.

[0053] This step is also completed in the first few seconds of each time period of the day. After the current time period step S3 is completed, step S4 will be executed immediately. When the final flow gear setting value of the water pump is determined, the flow gear of the water pump for the current time period of the day needs to be set according to the final flow gear setting value of the water pump.

[0054] In this embodiment, S4 specifically includes: S41. Subtract the final flow rate gear setting value of the water pump in the previous time period from the final flow rate gear setting value of the water pump in the current time period of the day to obtain the gear adjustment value of the water pump in the current time period of the day.

[0055] S42. Determine whether the gear adjustment value of the water pump is 0. When the gear adjustment value is 0, do not adjust the flow gear of the water pump in the current time period of the day; when the gear adjustment value is not 0, determine the minimum number of water pumps that need to be adjusted, determine the water pump number or water pump number group that can be adjusted based on the minimum number of water pumps that need to be adjusted, select any water pump number from the water pump number or select any water pump number group from the water pump number group, and adjust the flow gear of the water pump in the current time period of the day based on the water pump number or the water pump number group.

[0056] Assuming that the final flow gear setting value of the water pump in the current time period of the day is 5, and the final flow gear setting value of the water pump in the previous time period of the day is 3, then the gear adjustment value is 2. Assuming that before the gear adjustment, the original flow gear of water pump No. 1 is set to the 1st gear; the original flow gear of water pump No. 2 is set to the 1st gear; the original flow gear of water pump No. 3 is set to the 1st gear. At this time, only the flow gear of one water pump needs to be adjusted to achieve the required gear setting, so it can be determined that the minimum number of water pumps required to be adjusted is 1. Based on the minimum number of water pumps 1, it can be determined that the pump numbers that can be adjusted are: 1, 2, or 3. Then select a water pump number (for example, 1) from the water pump numbers (i.e., 1 or 2 or 3), and finally adjust the flow gear of water pump No. 1 (adjust the flow gear of water pump No. 1 from the 1st gear to the 3rd gear).

[0057] Assume that the final flow gear setting value of the pump in the current time period of the day is 15, and the final flow gear setting value of the pump in the previous time period of the day is 10, then the gear adjustment value is 5. Assume that before the gear adjustment, the original flow gear of pump No. 1 is set to the 5th gear; the original flow gear of pump No. 2 is set to the 2nd gear; and the original flow gear of pump No. 3 is set to the 3rd gear. At this time, at least the flow gears of 2 pumps need to be adjusted to achieve the required gear setting, so it can be determined that the minimum number of pumps required to be adjusted is 2. Based on the minimum number of pumps 2, it can be determined that the pump sequence groups that can be adjusted are: No. 2 and No. 3. Then select one pump sequence group (only the combination of No. 2 and No. 3) from the pump sequence group (i.e. No. 2 and No. 3), and finally adjust the flow gears of pump No. 1 and pump No. 2 (adjust the flow gear of pump No. 2 from the 2nd gear to the 5th gear and adjust the flow gear of pump No. 3 from the 3rd gear to the 5th gear).

[0058] Assuming that the final flow gear setting value of the pump in the current time period of the day is 9, and the final flow gear setting value of the pump in the previous time period of the day is 12, then the gear adjustment value is -3. Assuming that before the gear adjustment, the original flow gear of pump No. 1 is set to the 2nd gear; the original flow gear of pump No. 2 is set to the 5th gear; the original flow gear of pump No. 3 is set to the 5th gear. At this time, at least one pump's flow gear needs to be adjusted to achieve the required gear setting, so it can be determined that the minimum number of pumps required to be adjusted is 1. Based on the minimum number of pumps 1, it can be determined that the pump number that can be adjusted is: No. 2 or No. 3. Then select a pump number (for example, No. 2) from the pump numbers (i.e. No. 2 or No. 3), and finally adjust the flow gear of pump No. 2 (adjust the flow gear of pump No. 2 from the 5th gear to the 2nd gear).

[0059] After determining the final flow level setting value for the current time period, this step can set the flow level of the water pump for the current time period in the most convenient and quick way (i.e., the number of water pumps required to be adjusted is the least). Once the flow level of the water pump for the current time period is set, the water pump can supply water normally during this time period.

[0060] Furthermore, in step S1 of this embodiment, a set of daily water supply forecast data is calculated based on N sets of historical daily water consumption data, specifically including: S11. Obtain N historical daily water consumption data values ​​corresponding to a certain time period from N groups of historical daily water consumption data, wherein one group of historical daily water consumption data has one historical daily water consumption data value corresponding to a certain time period.

[0061] Assuming that 1 day has 144 time periods, then 1 set of historical daily water consumption data has 144 historical daily water consumption data values. This embodiment assumes that N is 100, and takes the 8th time period as an example. This step obtains the historical daily water consumption data values ​​B1-8 corresponding to the 8th time period from the 1st set of historical daily water consumption data, obtains the historical daily water consumption data values ​​B2-8 corresponding to the 8th time period from the 2nd set of historical daily water consumption data, obtains the historical daily water consumption data values ​​B3-8 corresponding to the 8th time period from the 3rd set of historical daily water consumption data, ... obtains the historical daily water consumption data values ​​B100-8 corresponding to the 8th time period from the 100th set of historical daily water consumption data. At this time, the 8th daily water supply forecast data value corresponding to the 8th time period in the daily water supply forecast data is calculated by the historical daily water consumption data values ​​B1-8, the historical daily water consumption data values ​​B2-8, the historical daily water consumption data values ​​B3-8, ..., the historical daily water consumption data values ​​B100-8.

[0062] In order to improve the prediction accuracy of the daily water supply prediction data value, this step does not directly average these historical daily water consumption data values, but calculates these historical daily water consumption data values ​​through subsequent steps S12 and S13 to obtain the corresponding daily water supply prediction data value.

[0063] S12. Determine the weight value of each historical daily water consumption data value. Generally, the closer the historical daily water consumption data is to the current day, the more similar it is to the actual water consumption data of the current day. Therefore, in this embodiment, a larger weight is set for the historical daily water consumption data closer to the current day. S12 specifically includes: S121. Sort the N historical daily water consumption data values ​​by generation time from earliest to latest.

[0064] The historical daily water consumption data values ​​B1-8 were generated in the previous 100 days and ranked first; the historical daily water consumption data values ​​B2-8 were generated in the previous 99 days and ranked second; the historical daily water consumption data values ​​B3-8 were generated in the previous 98 days and ranked third; ...; the historical daily water consumption data values ​​B100-8 were generated in the previous day and ranked 100th.

[0065] S122. Determine the base value: When N is an odd number, The historical daily water consumption data value is used as the basic value. When N is an even number, the The historical daily water consumption data value is used as the basic value.

[0066] When N is 100, the 50th historical daily water consumption data value (i.e., historical daily water consumption data value B50-8) is used as the basic value. If N is 99, the 50th historical daily water consumption data value (i.e., historical daily water consumption data value B50-8) is also used as the basic value.

[0067] S123. When the historical daily water consumption data value is used as the basic value, As the weight value of the historical daily water consumption data value; when the historical daily water consumption data value is the M1th value after the basic value, As the weight value of the historical daily water consumption data value, N1 is the number of historical daily water consumption data values ​​behind the basic value, and M1 is 1, ..., N1; when the historical daily water consumption data value is the M2th value before the basic value, As the weight value of the historical daily water consumption data value, M2 takes the value of 1, ..., N1 or 1, ..., N1-1.

[0068] When N is 100, N1 is 50, the value of M1 is 1,...,50; the value of M2 is 1,...,49.

[0069] Specifically, the historical daily water consumption data value B1-8 is the 49th value before the base value (ie, the historical daily water consumption data value B50-8). At this time, the value of (1-49 / 50) / 100 (ie, 0.0002) is used as the weight value q1-8 of the historical daily water consumption data value B1-8.

[0070] The historical daily water consumption data value B46-8 is the fourth value before the base value (ie, the historical daily water consumption data value B50-8). At this time, the value of (1-4 / 50) / 100 (ie, 0.0092) is used as the weight value q46-8 of the historical daily water consumption data value B46-8.

[0071] The historical daily water consumption data value B50-8 is taken as the basic value, and 0.01 is taken as the weight value q50-8 of the historical daily water consumption data value B50-8.

[0072] The historical daily water consumption data value B52-8 is the second value after the basic value (ie, the historical daily water consumption data value B50-8). At this time, the value of (1+2 / 50) / 100 (ie, 0.0104) is used as the weight value q52-8 of the historical daily water consumption data value B52-8.

[0073] The historical daily water consumption data value B100-8 is the 50th value after the basic value (ie, the historical daily water consumption data value B50-8). At this time, the value of (1+50 / 50) / 100 (ie, 0.02) is used as the weight value q100-8 of the historical daily water consumption data value B100-8.

[0074] S13. Multiply each historical daily water consumption data value by its corresponding weight value to obtain N historical daily water consumption data secondary values, and sum the N historical daily water consumption data secondary values ​​to obtain daily water supply forecast data and a daily water supply forecast data value corresponding to a certain time period.

[0075] In this step, the first historical daily water consumption data value B1-8 is multiplied by its weight value q1-8 to obtain the first historical daily water consumption data secondary value b1-8, the second historical daily water consumption data value B2-8 is multiplied by its weight value q2-8 to obtain the second historical daily water consumption data secondary value b2-8, the third historical daily water consumption data value B3-8 is multiplied by its weight value q3-8 to obtain the third historical daily water consumption data secondary value b3-8, ..., the first 00 historical daily water consumption data values ​​B100-8 are multiplied by their weight value q100-8 to obtain the 100th historical daily water consumption data secondary value b100-8, and then the historical daily water consumption data secondary value b1-8, the historical daily water consumption data secondary value b2-8, the historical daily water consumption data secondary value b3-8... and the historical daily water consumption data secondary value b100-8 are summed to obtain the daily water supply forecast data and a daily water supply forecast data value corresponding to the 8th time period.

[0076] Each daily water supply prediction data value in the daily water supply prediction data needs to be obtained by executing steps S11 to S13 once. Compared with directly averaging the historical daily water consumption data values ​​to obtain the daily water supply prediction data value, this embodiment calculates the daily water supply prediction data value by setting a corresponding weight for each historical daily water consumption data value, and its prediction accuracy will be higher. When the prediction accuracy of the daily water supply prediction data is higher, the water pump control will be more accurate, simpler and more efficient.

[0077] Furthermore, in this embodiment, step S3 before step S31 further includes: S301. Subtract the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the previous time period of the day. When the absolute value of the difference between the two is greater than the first preset threshold, subtract the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the current time period of the day. When the absolute value of the difference between the two is greater than the second preset threshold, update the daily water supply forecast data value of the current time period of the day to obtain a new daily water supply forecast data value of the current time period of the day. During the update process, the absolute value of the difference obtained by subtracting the actual water consumption data value of the previous time period of the day from the new daily water supply forecast data value of the current time period of the day is equal to the second preset threshold. S302. Obtain a new initial flow level setting value based on the new daily water supply forecast data value for the current time period of the day.

[0078] This embodiment assumes that the actual water consumption data value of the previous time period of the day is 9.2V, the daily water supply forecast data value of the previous time period of the day is 3.3V, and the absolute value of the difference between the two is 5.9V (assuming that the first preset threshold is 3V), then the absolute value of the difference is greater than the first preset threshold. When the absolute value of the difference is greater than the first preset threshold, it means that the daily water supply forecast data value of the previous time period is not very accurate (when the daily water supply forecast data value is not very accurate, the initial flow gear setting value of the water pump is not very accurate, which leads to a large difference in the water supply provided by the water pump based on the initial flow gear setting value in the previous time period and the actual water consumption in the previous time period). Since the actual water consumption data value of the previous time period is 9.2V, then under normal circumstances, the actual water consumption data value of the current time period of the day should also be similar to 9.2V, and it is further inferred that the daily water supply forecast data value of the current time period of the day should also be similar to 9.2V.

[0079] For this reason, in this step, when the absolute value of the difference is greater than the first preset threshold, the actual water consumption data value of the previous time period of the day is subtracted from the daily water supply forecast data value of the current time period of the day. In this embodiment, it is assumed that the daily water supply forecast data value of the current time period of the day is 5.2V (the corresponding initial flow gear setting value of the water pump in the current time period of the day is 5), and the second preset threshold value can be the same as the first preset threshold value, which is also 3V. Then, the actual water consumption data value of the previous time period of the day (i.e. 9.2V) is subtracted from the daily water supply forecast data value of the current time period of the day (i.e. 5.2V), and the absolute value of the difference between the two is 4V. When the absolute value of the difference between the two (i.e. 4V) is greater than the second preset threshold value (i.e. 3V), it means that the daily water supply forecast data value of the current time period (i.e. the initial flow gear setting value of the water pump in the current time period of the day) is not very accurate, and the daily water supply forecast data value of the current time period needs to be updated.

[0080] During the update process, the actual water consumption data value of the previous time period (i.e., 9.2V) and the new daily water supply forecast data value of the current time period of the day are subtracted to obtain an absolute value equal to the second preset threshold value (i.e., 3V), and the new daily water supply forecast data value of the current time period of the day is 6.2V. Finally, based on the new daily water supply forecast data value of the current time period of the day (i.e., 6.2V), a new initial flow rate gear setting value of 6 is obtained.

[0081] The final flow level setting value is combined with the level value based on the new initial flow level setting value. Steps S31 and S32 are mainly to obtain a water volume difference based on the actual total water supply and the actual total water consumption before the current time period, and to calculate the number of gear values ​​based on the water volume difference. The number of gear values ​​is used to make the water pump supply more or less water on the basis of the basic water supply (the basic water supply is determined by the initial flow gear setting value, and the initial flow gear setting value is determined by the daily water supply prediction data value), so that the water volume of the second water tank is restored to the initial state, and finally the secondary water supply equipment can supply water normally for a long time; and step S30 is mainly to determine whether the accuracy of the daily water supply prediction data value of the current time period is low based on the actual water consumption of the previous time period and the basic water supply of the water pump of the previous time period, and the actual water consumption of the previous time period and the basic water supply of the water pump of the current time period. If the accuracy of the daily water supply prediction data value is low, the daily water supply prediction data value is automatically adjusted to improve the accuracy of the new daily water supply prediction data value, so that the water volume difference between the water supply provided by the water pump in the current time period based on the new initial flow gear setting value and the actual water consumption in the current time period becomes smaller.

[0082] Embodiment 2: A water pump control system for secondary water supply, used to implement the method of embodiment 1, the system comprising: The daily water supply forecast data acquisition module is used to obtain the historical water consumption data of the previous N days, and calculate N groups of historical daily water consumption data based on the historical water consumption data of the previous N days, and calculate a group of daily water supply forecast data for the current day based on the N groups of historical daily water consumption data; An initial flow rate gear setting value determination module is used to set multiple water pumps and determine the initial flow rate gear setting values ​​of multiple water pumps in each time period of the day based on the daily water supply forecast data; The final flow level setting value determination module is used to obtain the actual water consumption data and the actual water supply data of the day before the current time period, determine the water volume difference according to the actual water consumption data and the actual water supply data, and determine the final flow level setting value of the water pump in the current time period of the day according to the water volume difference and the initial flow level setting value of the water pump in the current time period of the day; The water pump flow level setting module is used to set the flow level of the water pump in the current time period of the day according to the final flow level setting value of the water pump in the current time period of the day.

[0083] Furthermore, the daily water supply forecast data acquisition module includes: A historical daily water consumption data value acquisition unit, used to acquire N historical daily water consumption data values ​​corresponding to a certain time period from N groups of historical daily water consumption data, wherein one group of historical daily water consumption data has one historical daily water consumption data value corresponding to a certain time period; The weight value determination unit is used to determine the weight value of each historical daily water consumption data value; the weight value determination unit specifically includes: A data value sorting subunit is used to sort N historical daily water consumption data values ​​from earliest to latest according to the generation time; The basic value determination subunit is used to determine the basic value: when N is an odd number, The historical daily water consumption data value is used as the basic value. When N is an even number, the The historical daily water consumption data value is used as the basic value; The weight value determination subunit is used to determine the weight value when the historical daily water consumption data value is the basic value. As the weight value of the historical daily water consumption data value; when the historical daily water consumption data value is the M1th value after the basic value, As the weight value of the historical daily water consumption data value, N1 is the number of historical daily water consumption data values ​​behind the basic value, and M1 is 1, ..., N1; when the historical daily water consumption data value is the M2th value before the basic value, As the weight value of the historical daily water consumption data value, the value of M2 is 1, ..., N1 or 1, ..., N1-1; The daily water supply prediction data value calculation unit is used to multiply each historical daily water consumption data value with its corresponding weight value to obtain N historical daily water consumption data secondary values, and sum the N historical daily water consumption data secondary values ​​to obtain a daily water supply prediction data value corresponding to a certain time period.

[0084] Furthermore, the final flow level setting value determination module includes: A water volume difference calculation unit is used to sum all actual water volume data values ​​in the actual water volume data to obtain a previous water volume total value, sum all actual water supply data values ​​in the actual water supply data to obtain a previous water supply total value, and subtract the previous water supply total value from the previous water volume total value to obtain a water volume difference; The final flow gear setting value determination unit is used to determine whether the water volume difference is a positive value or a negative value and calculate the gear value corresponding to the water volume difference. When the water volume difference is a positive value, the gear value is increased on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is greater than the maximum flow gear setting value, the maximum flow gear setting value is used as the final flow gear setting value; when the water volume difference is a negative value, the gear value is reduced on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is less than the minimum flow gear setting value, the minimum flow gear setting value is used as the final flow gear setting value.

[0085] Furthermore, the water pump flow gear setting module includes: A gear adjustment value determination unit, used to subtract the final flow gear setting value of the water pump in the previous time period of the day from the final flow gear setting value of the water pump in the current time period of the day to obtain the gear adjustment value of the water pump in the current time period of the day; The flow gear adjustment unit is used to determine whether the gear adjustment value of the water pump is 0. When the gear adjustment value is 0, the flow gear of the water pump in the current time period of the day is not adjusted; when the gear adjustment value is not 0, the minimum number of water pumps required to be adjusted is determined, and the water pump serial number or water pump serial number group that can be adjusted is determined according to the minimum number of water pumps required to be adjusted. A water pump serial number is selected from the water pump serial numbers or a water pump serial number group is selected from the water pump serial number group, and the flow gear of the water pump in the current time period of the day is adjusted according to the water pump serial number or the water pump serial number group.

[0086] Furthermore, the final flow level setting value determination module also includes: a new daily water supply forecast data value determination unit, used for subtracting the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the previous time period of the day, and when the absolute value of the difference between the two is greater than a first preset threshold, subtracting the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the current time period of the day, and when the absolute value of the difference between the two is greater than a second preset threshold, updating the daily water supply forecast data value of the current time period of the day to obtain a new daily water supply forecast data value of the current time period of the day, and during the updating process, making the absolute value of the difference obtained by subtracting the actual water consumption data value of the previous time period of the day from the new daily water supply forecast data value of the current time period of the day equal to the second preset threshold; The initial flow level setting value updating unit is used to obtain a new initial flow level setting value based on the new daily water supply forecast data value of the current time period of the day.

[0087] Although some embodiments of the present specification are shown in the drawings, it should be understood that the present specification can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. Instead, these embodiments are provided for a more thorough and complete understanding of the present specification. It should be understood that the drawings and embodiments of the present specification are only for exemplary purposes and are not intended to limit the scope of protection of the present specification.

Claims

1. A method for controlling a water pump for secondary water supply, It is characterized in that include: S1. Obtain the historical water consumption data of the previous N days, and calculate N groups of historical daily water consumption data based on the historical water consumption data of the previous N days, and calculate a group of daily water supply forecast data for the current day based on the N groups of historical daily water consumption data; S2. Set up multiple water pumps, and determine the initial flow rate gear setting value of multiple water pumps for each time period of the day based on the daily water supply forecast data; S3. Obtain the actual water consumption data and actual water supply data of the day before the current time period, determine the water volume difference according to the actual water consumption data and the actual water supply data, and determine the final flow rate gear setting value of the water pump in the current time period of the day according to the water volume difference and the initial flow rate gear setting value of the water pump in the current time period of the day; S4. Setting the flow level of the water pump for the current time period of the day according to the final flow level setting value of the water pump for the current time period of the day.

2. The water pump control method according to claim 1, It is characterized in that The calculation of a set of daily water supply forecast data according to the N sets of historical daily water consumption data in S1 specifically includes: S11. Obtaining N historical daily water consumption data values ​​corresponding to a certain time period from N groups of the historical daily water consumption data, wherein one group of the historical daily water consumption data has one historical daily water consumption data value corresponding to a certain time period; S12. Determine the weight value of each of the historical daily water consumption data values, specifically including: S121. Sort N historical daily water consumption data values ​​by generation time from earliest to latest; S122. Determine the base value: When N is an odd number, The historical daily water consumption data value is used as the basic value. When N is an even number, the The historical daily water consumption data value is used as the basic value; S123. When the historical daily water consumption data value is the basic value, As the weight value of the historical daily water consumption data value; when the historical daily water consumption data value is the M1th value after the basic value, As the weight value of the historical daily water consumption data value, N1 is the number of historical daily water consumption data values ​​behind the basic value, M1 is 1, ..., N1; when the historical daily water consumption data value is the M2th value before the basic value, As the weight value of the historical daily water consumption data value, M2 is 1, ..., N1 or 1, ..., N1-1; S13. Multiply each of the historical daily water consumption data values ​​by its corresponding weight value to obtain N historical daily water consumption data secondary values, and sum the N historical daily water consumption data secondary values ​​to obtain daily water supply forecast data and a daily water supply forecast data value corresponding to a certain time period.

3. The water pump control method according to claim 2, It is characterized in that Determining the water volume difference according to the actual water volume data and the actual water supply volume data in S3 specifically includes: S31. summing all actual water consumption data values ​​in the actual water consumption data to obtain a previous water consumption total value, summing all actual water supply data values ​​in the actual water supply data to obtain a previous water supply total value, and subtracting the previous water supply total value from the previous water consumption total value to obtain the water volume difference; Determining the final flow level setting value of the water pump in the current time period of the day according to the water volume difference and the initial flow level setting value of the water pump in the current time period of the day in S3 specifically includes: S32. Determine whether the water volume difference is a positive value or a negative value and calculate the number of gear values ​​corresponding to the water volume difference. When the water volume difference is a positive value, the number of gear values ​​is increased on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is greater than the maximum flow gear setting value, the maximum flow gear setting value is used as the final flow gear setting value; when the water volume difference is a negative value, the number of gear values ​​is reduced on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is less than the minimum flow gear setting value, the minimum flow gear setting value is used as the final flow gear setting value.

4. The water pump control method according to claim 3, It is characterized in that The S4 specifically includes: S41. Subtract the final flow rate gear setting value of the water pump in the previous time period from the final flow rate gear setting value of the water pump in the current time period of the day to obtain the gear adjustment value of the water pump in the current time period of the day; S42. Determine whether the gear adjustment value of the water pump is 0. When the gear adjustment value is 0, do not adjust the flow gear of the water pump in the current time period of the day; when the gear adjustment value is not 0, determine the minimum number of water pumps that need to be adjusted, determine the water pump number or water pump number group that can be adjusted according to the minimum number of water pumps that need to be adjusted, select any water pump number from the water pump number or select any water pump number group from the water pump number group, and adjust the flow gear of the water pump in the current time period of the day according to the water pump number or water pump number group.

5. The water pump control method according to claim 3, It is characterized in that The S3 also includes before the S31: S301. Subtract the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the previous time period of the day. When the absolute value of the difference between the two is greater than the first preset threshold, subtract the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the current time period of the day. When the absolute value of the difference between the two is greater than the second preset threshold, update the daily water supply forecast data value of the current time period of the day to obtain a new daily water supply forecast data value for the current time period of the day. During the update process, the absolute value of the difference obtained by subtracting the actual water consumption data value of the previous time period of the day from the new daily water supply forecast data value for the current time period of the day is equal to the second preset threshold; S302. Obtain a new initial flow level setting value based on the new daily water supply forecast data value for the current time period of the day.

6. A water pump control system for secondary water supply, It is characterized in that include: The daily water supply forecast data acquisition module is used to obtain the historical water consumption data of the previous N days, and calculate N groups of historical daily water consumption data based on the historical water consumption data of the previous N days, and calculate a group of daily water supply forecast data for the current day based on the N groups of historical daily water consumption data; An initial flow rate gear setting value determination module is used to set a plurality of water pumps and determine the initial flow rate gear setting values ​​of the plurality of water pumps in each time period of the day based on the daily water supply forecast data; A final flow level setting value determination module is used to obtain actual water consumption data and actual water supply data of the day before the current time period, determine a water volume difference according to the actual water consumption data and the actual water supply data, and determine a final flow level setting value of the water pump in the current time period of the day according to the water volume difference and the initial flow level setting value of the water pump in the current time period of the day; The water pump flow level setting module is used to set the flow level of the water pump in the current time period of the day according to the final flow level setting value of the water pump in the current time period of the day.

7. The water pump control system according to claim 6, It is characterized in that The daily water supply forecast data acquisition module includes: A historical daily water consumption data value acquisition unit, used to acquire N historical daily water consumption data values ​​corresponding to a certain time period from N groups of the historical daily water consumption data, wherein one group of the historical daily water consumption data has one historical daily water consumption data value corresponding to a certain time period; A weight value determination unit is used to determine the weight value of each of the historical daily water consumption data values; the weight value determination unit specifically includes: A data value sorting subunit is used to sort N historical daily water consumption data values ​​from earliest to latest according to the generation time; The basic value determination subunit is used to determine the basic value: when N is an odd number, The historical daily water consumption data value is used as the basic value. When N is an even number, the The historical daily water consumption data value is used as the basic value; The weight value determination subunit is used to determine the weight value when the historical daily water consumption data value is the basic value. As the weight value of the historical daily water consumption data value; when the historical daily water consumption data value is the M1th value after the basic value, As the weight value of the historical daily water consumption data value, N1 is the number of historical daily water consumption data values ​​behind the basic value, M1 is 1, ..., N1; when the historical daily water consumption data value is the M2th value before the basic value, As the weight value of the historical daily water consumption data value, M2 is 1, ..., N1 or 1, ..., N1-1; The daily water supply prediction data value calculation unit is used to multiply each of the historical daily water consumption data values ​​with its corresponding weight value to obtain N historical daily water consumption data secondary values, and sum the N historical daily water consumption data secondary values ​​to obtain a daily water supply prediction data value corresponding to a certain time period.

8. The water pump control system according to claim 7, It is characterized in that The final flow rate gear setting value determination module includes: a water volume difference calculation unit, configured to sum all actual water volume data values ​​in the actual water volume data to obtain a previous water volume total value, sum all actual water supply data values ​​in the actual water supply data to obtain a previous water supply total value, and subtract the previous water supply total value from the previous water volume total value to obtain the water volume difference; The final flow gear setting value determination unit is used to determine whether the water volume difference is a positive value or a negative value and calculate the gear value corresponding to the water volume difference. When the water volume difference is a positive value, the gear value is increased on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is greater than the maximum flow gear setting value, the maximum flow gear setting value is used as the final flow gear setting value; when the water volume difference is a negative value, the gear value is reduced on the basis of the initial flow gear setting value of the water pump in the current time period of the day to obtain the final flow gear setting value, and when the final flow gear setting value is less than the minimum flow gear setting value, the minimum flow gear setting value is used as the final flow gear setting value.

9. The water pump control system according to claim 8, It is characterized in that The water pump flow gear setting module includes: A gear adjustment value determination unit, used to subtract the final flow gear setting value of the water pump in the previous time period of the day from the final flow gear setting value of the water pump in the current time period of the day to obtain the gear adjustment value of the water pump in the current time period of the day; The flow gear adjustment unit is used to determine whether the gear adjustment value of the water pump is 0. When the gear adjustment value is 0, the flow gear of the water pump in the current time period of the day is not adjusted; when the gear adjustment value is not 0, the minimum number of water pumps that need to be adjusted is determined, and the water pump serial number or water pump serial number group that can be adjusted is determined according to the minimum number of water pumps that need to be adjusted, and a water pump serial number is selected from the water pump serial numbers or a water pump serial number group is selected from the water pump serial number group, and the flow gear of the water pump in the current time period of the day is adjusted according to the water pump serial number or the water pump serial number group.

10. The water pump control system according to claim 8, It is characterized in that The final flow rate gear setting value determination module also includes: a new daily water supply forecast data value determination unit, used for subtracting the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the previous time period of the day, and when the absolute value of the difference between the two is greater than a first preset threshold, subtracting the actual water consumption data value of the previous time period of the day from the daily water supply forecast data value of the current time period of the day, and when the absolute value of the difference between the two is greater than a second preset threshold, updating the daily water supply forecast data value of the current time period of the day to obtain a new daily water supply forecast data value of the current time period of the day, and during the updating process, making the absolute value of the difference obtained by subtracting the actual water consumption data value of the previous time period of the day from the new daily water supply forecast data value of the current time period of the day equal to the second preset threshold; The initial flow level setting value updating unit is used to obtain a new initial flow level setting value based on the new daily water supply forecast data value of the current time period of the day.

Citation Information

Patent Citations

  • Method for calculating theoretical inflow of secondary water supply tank

    CN112580969A

  • Method for quantitatively supplying water to secondary water supply tank based on actual water retention

    CN113628062A

  • Water supply pump set optimization scheduling method considering water consumption prediction

    CN113642803A

  • Secondary water supply optimization method and device for reducing pressure of municipal pipe network

    CN114575413A

  • Method for predicting water consumption of secondary water supply in combination with water age calculation

    CN115983473A