A water pump control method and device, an electronic device, and a water pump
By generating unconventional operating condition signals to shield the pressure switch and using a flow switch to control the water pump, the problem of frequent start-stop of the water pump under low water flow conditions is solved, reducing the risk of equipment damage and improving water use stability and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WILO CHINA
- Filing Date
- 2024-12-09
- Publication Date
- 2026-06-09
AI Technical Summary
Frequent start-stop cycles of the water pump under low water flow conditions increase the risk of equipment damage, and the instantaneous fluctuations in pipeline pressure also cause frequent start-stop cycles, affecting the user's water usage experience.
By acquiring the pump's pressure operating frequency, an unconventional operating condition signal is generated, bypassing the pressure switch control and instead using a flow switch to control the pump's operation. This avoids frequent start-stop cycles and ensures stable operation under low water flow conditions.
Reduce the risk of pump damage due to frequent start-stop, improve water supply stability, meet users' needs for low water flow conditions, and avoid pipeline leaks.
Smart Images

Figure CN122170015A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mechanical control technology, and more specifically, to a water pump control method, device, electronic equipment, and water pump. Background Technology
[0002] With the continuous development of science and technology, the use of water pumps in pipelines has become one of the common methods for controlling the flow of water in pipelines.
[0003] In related technologies, water pumps can typically be controlled by either a flow switch based on the relationship between the water flow rate in the pipeline and a preset flow rate, or a pressure switch based on the relationship between the pressure in the pipeline and a preset pressure value. For example, when a flow switch is used, the water flow rate increases as the valve opens. Once the preset flow rate is reached, the flow switch activates the pump's relay, powering it on. Conversely, when a pressure switch is used, the pressure gradually decreases as the pipeline connects to the atmosphere. Once the pressure reaches a preset value, the pressure switch activates the relay, powering the pump. Conversely, if the pressure exceeds the preset value, the pressure switch deactivates the relay, shutting down the pump.
[0004] However, if a user uses a low-flow-rate system, the water flow rate entering the pipeline increases after the pressure switch controls the pump to run. Under the influence of the low-flow-rate system, the pipeline cannot output the input water flow in time, causing the pressure in the pipeline to rise instantly. This causes the pressure switch to control the pump to stop again in a short period of time. When the pressure in the pipeline decreases as the low-flow-rate system runs, the pressure switch controls the pump to run again. This cycle repeats, causing the pump to start and stop frequently, which greatly increases the risk of the pump being damaged. Summary of the Invention
[0005] To address the aforementioned technical problems, embodiments of this application provide a water pump control method, apparatus, electronic device, and water pump.
[0006] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0007] According to one aspect of the embodiments of this application, a water pump control method is provided, comprising: when the pressure switch of the water pump controls the water pump to operate, acquiring the pressure operating frequency of the water pump; wherein the pressure operating frequency represents the number of times the pressure switch controls the water pump to operate per unit time; generating an abnormal operating condition signal based on the relationship between the pressure operating frequency and a preset abnormal frequency; and shielding the control of the pressure switch on the water pump in response to the abnormal operating condition signal, so that the water pump operates under the control of the flow switch of the water pump.
[0008] According to one aspect of the embodiments of this application, a water pump control device is provided, comprising: a data acquisition module configured to acquire the pressure operating frequency of the water pump when the pressure switch of the water pump controls the water pump to operate; wherein the pressure operating frequency represents the number of times the pressure switch controls the water pump to operate per unit time; a signal generation module configured to generate an abnormal operating condition signal based on the relationship between the pressure operating frequency and a preset abnormal frequency; and an operation control module configured to shield the control of the pressure switch on the water pump in response to the abnormal operating condition signal, so that the water pump operates under the control of the flow switch of the water pump.
[0009] In some embodiments of this application, based on the foregoing scheme, the signal generation module is further configured to: when the pressure operation frequency reaches the preset abnormal frequency, increment the number of abnormal operating conditions of the water pump by one and set the pressure operation frequency to zero; when the number of abnormal operating conditions reaches the preset number of operation, generate the abnormal operating condition signal.
[0010] In some embodiments of this application, based on the foregoing scheme, the signal generation module is further configured to: obtain the current running time of the water pump; determine the target load level of the water pump among multiple load levels based on the running time; and use the abnormal frequency corresponding to the target load level as the preset abnormal frequency.
[0011] In some embodiments of this application, based on the foregoing scheme, the signal generation module is further configured to: determine a corresponding target operating time period in multiple operating time periods according to the operating time; obtain the unit water delivery volume of the water pump in the target operating time period; determine the unit water delivery volume interval in the unit water delivery volume interval corresponding to each of the multiple load levels, and take the load level corresponding to the determined unit water delivery volume interval as the target load level.
[0012] In some embodiments of this application, based on the foregoing scheme, the signal generation module is further configured to: obtain multiple historical unit water transfer volumes recorded in historical water transfer data; calculate the average unit water transfer volume between the multiple historical unit water transfer volumes and the current unit water transfer volume; and use the average unit water transfer volume as the unit water transfer volume.
[0013] In some embodiments of this application, based on the foregoing scheme, the operation control module is further configured to: when the flow switch controls the water pump to run, restore the pressure switch's control over the water pump, and set the pressure operation frequency to zero.
[0014] In some embodiments of this application, based on the foregoing scheme, the data acquisition module is further configured to: determine whether the current unit water delivery volume of the water pump has reached the preset unit water delivery volume; if the determination is no, then increment the number of times the pressure switch controls the water pump to run by one.
[0015] According to one aspect of the embodiments of this application, a water pump is provided, comprising: a pressure switch electrically connected to the water pump, used to control the operation of the water pump according to the pressure in the pipeline where the water pump is located; a flow switch electrically connected to the water pump, used to control the operation of the water pump according to the water flow rate in the pipeline where the water pump is located; and a controller electrically connected to the pressure switch, the flow switch and the water pump respectively, wherein the controller executes the water pump control method described in the above embodiments by reading pre-stored computer-readable instructions.
[0016] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the water pump control method as described in the above embodiments.
[0017] In the technical solution of this application embodiment, when the pressure switch of the water pump controls the operation of the water pump, the pressure operation frequency of the water pump is obtained, and then an abnormal operating condition signal is generated according to the relationship between the pressure operation frequency and the preset abnormal frequency. In response to the abnormal operating condition signal, the pressure switch control of the water pump is shielded, so that the water pump operates under the control of the water pump flow switch. Based on the switching characteristics corresponding to the water pump flow switch, it is not easy to trigger the water pump flow switch to control the water pump operation when the water pump is in a low water flow condition or when there is a leak in the water pump pipeline. Thus, while meeting the user's water demand in a low water flow condition, the number of times the water pump is cycled to start and stop is reduced, thereby reducing the risk of water pump damage and avoiding continuous pipeline leakage caused by the water pump under the control of the pressure switch. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0019] Figure 1 This is a schematic diagram of the structure of a water pump involved in this application;
[0020] Figure 2 This is a flowchart illustrating a water pump control method in an exemplary embodiment of this application;
[0021] Figure 3 yes Figure 2 The flowchart of step S220 in the illustrated embodiment is shown in an example embodiment;
[0022] Figure 4 yes Figure 2 The flowchart in an example embodiment preceding step S220 in the illustrated embodiment;
[0023] Figure 5 yes Figure 4 The flowchart of step S420 in the illustrated embodiment is shown in an example embodiment;
[0024] Figure 6 yes Figure 5 The flowchart of step S520 in the illustrated embodiment is shown in an example embodiment;
[0025] Figure 7 Based on Figure 2 A flowchart illustrating a water pump control method is shown in another exemplary embodiment of this application presented in the illustrated embodiment;
[0026] Figure 8 This is a flowchart illustrating a water pump control method in another exemplary embodiment of this application;
[0027] Figure 9 This is a block diagram illustrating a water pump control device in an exemplary embodiment of this application;
[0028] Figure 10 This is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of this application. Detailed Implementation
[0029] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0030] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0031] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0032] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0033] It should be noted that "multiple" in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0034] Figure 1 This is a schematic diagram of an exemplary water pump. Figure 1 As shown, the water pump 101 may include a pressure switch 102, a flow switch 103, and a controller 104. Each part will be described in detail below.
[0035] Pressure switch 102, electrically connected to water pump 101, is used to control the operation of water pump 101 based on the pressure within pipe 105 where water pump 101 is located. In some embodiments of this application, pressure switch 102 may be electrically connected to a relay of water pump 101, so that pressure switch 102 can control the start / stop state of relay based on the pressure within pipe 105 where water pump 101 is located, thereby achieving the purpose of controlling the operation of water pump 101.
[0036] A flow switch 103, electrically connected to a water pump 101, is used to control the operation of the water pump 101 based on the water flow rate within the pipe 105 where the water pump 101 is located. In some embodiments of this application, the flow switch 103 can be electrically connected to a relay of the water pump 101, so that the flow switch 103 can control the start / stop state of the relay based on the water flow rate of the water pump 101, thereby achieving the purpose of controlling the operation of the water pump 101.
[0037] The controller 104 is electrically connected to the pressure switch 102, the flow switch 103, and the water pump 101, respectively. In some embodiments of this application, the controller 104 can adjust the triggering conditions of the pressure switch 102 and the flow switch 103 for controlling the start and stop states of the relays based on its electrical connection with the pressure switch 102 and the flow switch 103, respectively, and the controller 104 can obtain the operating status of the water pump 101 based on its electrical connection with the water pump 101.
[0038] In related technologies, when the pipeline containing the water pump is connected to the outside atmosphere, the pressure inside the pipeline gradually decreases. When the pressure inside the pipeline reaches a preset pressure value, the pressure switch controls the relay to close and start the water pump, thus powering it on. Conversely, when the pressure inside the pipeline exceeds the preset pressure value, the pressure switch controls the relay to open and stop the water pump, thus de-energizing it and shutting it down.
[0039] However, if a user uses a low-flow-rate system, the water flow rate entering the pipeline increases after the pressure switch controls the pump to run. Under the influence of the low-flow-rate system, the pipeline cannot output the input water flow in time, causing the pressure in the pipeline to rise instantly. This causes the pressure switch to control the pump to stop again in a short period of time. When the pressure in the pipeline decreases as the low-flow-rate system runs, the pressure switch controls the pump to run again. This cycle repeats, causing the pump to start and stop frequently, which greatly increases the risk of the pump being damaged.
[0040] To avoid this problem, the technical solution proposed in this application can reduce the risk of water pump damage while meeting the user's needs for low water flow conditions.
[0041] It should be understood that, above Figure 1This is merely a schematic diagram of an exemplary water pump and does not imply any limitation on its structure. In practical applications, the water pump may include... Figure 1 The different components of the structure shown, such as those including... Figure 1 The structure shown may have more or fewer components, without limitation.
[0042] Figure 2 This is a flowchart illustrating a water pump control method in an exemplary embodiment of this application. It should be noted that this method is applicable to... Figure 1 The water pump shown, and the method can be used by Figure 1 The controller installed in the water pump shown executes the control method by reading these computer-readable instructions, for example, by pre-storing computer-readable instructions in the controller or by storing computer-readable instructions in the memory installed in the water pump.
[0043] The method provided in this embodiment will be described in detail below, using the controller as an exemplary execution subject. Figure 2 As shown, in an exemplary embodiment, the method includes at least steps S210 to S230, which are described in detail below:
[0044] In step S210, when the pressure switch of the water pump controls the operation of the water pump, the pressure operation frequency of the water pump is obtained.
[0045] The pressure operation frequency represents the number of times the pressure switch controls the water pump to run within a unit of time. That is, within the current unit of time, every time the water pump is controlled by the pressure switch to run, the number represented by the pressure operation frequency is incremented by one until the end of the current unit of time.
[0046] In step S220, an unconventional operating condition signal is generated based on the relationship between the pressure operating frequency and the preset abnormal frequency.
[0047] In the embodiments of this application, after obtaining the pressure operating frequency of the water pump, an unconventional operating condition signal can be generated based on the relationship between the pressure operating frequency and a preset abnormal frequency. The preset abnormal frequency represents the number of times the water pump operates per unit time. The unconventional operating condition signal represents the water pump cyclically starting and stopping per unit time; that is, the unconventional operating condition signal can indicate that the water pump may cyclically start and stop under the influence of low water flow conditions, or under the influence of pipeline leakage.
[0048] The method for generating unconventional operating condition signals based on the relationship between pressure operating frequency and preset abnormal frequency can be flexibly configured as needed. In one example, an unconventional operating condition signal can be generated after determining that the pressure operating frequency has reached the preset abnormal frequency, to indicate that the water pump is in a low-flow condition.
[0049] Considering that users' demand for low water flow conditions varies at different times, for example, when cooking, users need the pump to operate at a low flow rate to reduce water output while washing vegetables, thus conserving water. When users are in a cold environment, they need the pump to operate at a low flow rate to maintain water flow in the pipes to prevent freezing. In other words, the demand for low water flow conditions is significantly higher during these specific times compared to other times. Based on this, in another example, the pump's current operating time can be obtained. When the pressure operating frequency reaches the sum of the preset abnormal frequency and the adjustment frequency corresponding to the operating time, an abnormal operating condition signal is generated. This allows the adjustment frequency to be determined based on the operating time when the user demands low water flow conditions, increasing the pressure operating frequency required to generate the abnormal operating condition signal and thus improving the accuracy of determining if the pump is operating at a low flow rate.
[0050] In another example, based on the above situation, after obtaining the current running time of the water pump, an unconventional operating condition signal can be generated when the pressure operating frequency reaches the difference between the preset abnormal frequency and the adjustment frequency corresponding to the running time. This reduces the pressure operating frequency required to generate the unconventional operating condition signal when the user is in a time when the demand for low water flow conditions is high. This is done while ensuring that the accuracy of determining that the water pump is in low water flow conditions does not easily decrease.
[0051] In another example, based on the above situation, after obtaining the current running time of the water pump, an unconventional operating condition signal can be generated when the pressure operating frequency reaches the sum of the preset abnormal frequency and the adjustment frequency corresponding to the running time. This increases the pressure operating frequency required to generate the unconventional operating condition signal when the user has a need for low water flow conditions, thereby improving the accuracy of determining that the water pump is in a low water flow condition.
[0052] In step S230, the control of the water pump by the pressure switch is shielded in response to the non-standard operating condition signal, so that the water pump operates under the control of the water pump flow switch.
[0053] In the embodiments of this application, after generating an unconventional operating condition signal based on the relationship between the pressure operating frequency and the preset abnormal frequency, the pressure switch's control over the water pump can be shielded in response to the unconventional operating condition signal, so that the water pump operates under the control of the water pump's flow switch. Based on the switching characteristics corresponding to the water pump's flow switch, it is not easy to trigger the water pump's flow switch to control the water pump's operation when the water pump is in a low water flow condition. This satisfies the user's water demand under low water flow conditions while avoiding frequent water pump operation and reducing the risk of water pump damage. Furthermore, when the pipeline where the water pump is located leaks, based on the switching characteristics corresponding to the water pump's flow switch, the water pump is prevented from running continuously, thereby preventing continuous pipeline leakage.
[0054] Secondly, under the control of the flow switch, if the user requires a larger water flow, the flow switch can be triggered to control the operation of the water pump by increasing the opening of the pipeline valve to increase the water flow in the pipeline, thereby increasing the amount of water output from the pipeline and ensuring the user's water needs.
[0055] In addition, in some embodiments of this application, after the pressure switch controls the water pump in response to the non-standard operating condition signal and the water pump is running under the control of the flow switch, it is possible to detect whether the flow switch controls the water pump to be powered on and running. When it is determined that the flow switch controls the water pump to run, the pressure switch can be restored to control the water pump and the pressure operation frequency can be set to zero.
[0056] In the above process, based on the switching characteristics of the flow switch, it is known that the flow switch will only control the water pump's relay to close and start after the water flow in the pipeline reaches the preset flow rate, thus energizing and running the water pump. In other words, when the flow switch is controlling the water pump, if the user no longer requires a low flow rate, the pressure switch's control over the water pump is restored simultaneously with the flow switch's operation to ensure the water pump can provide a larger flow rate in a timely manner, thereby improving the user experience. Furthermore, to prevent the pressure switch from controlling the water pump again based on the pressure operating frequency later, the pressure operating frequency is simultaneously reset to zero, allowing for a subsequent reassessment of whether the user requires a low flow rate.
[0057] See Figure 3 , Figure 3 Is Figure 2 The flowchart of step S220 in the illustrated embodiment is shown in an exemplary embodiment. Figure 3 As shown, the process of generating unconventional operating condition signals based on the relationship between pressure operating frequency and preset abnormal frequency may include steps S310 to S320, which are described in detail below:
[0058] In step S310, when the pressure operation frequency reaches the preset abnormal frequency, the number of abnormal operating conditions of the water pump is incremented by one, and the pressure operation frequency is set to zero.
[0059] It should be noted that the water flow rate required by a user during water use is constantly changing. For example, in the cooking process described above, the water flow rate required when washing ingredients will vary depending on the degree of dirtiness and the amount of ingredients. Therefore, in the embodiments of this application, after obtaining the pressure operating frequency of the water pump, if the pressure operating frequency reaches a preset abnormal frequency, it indicates that the user may be experiencing a low water flow condition. The abnormal operating frequency of the water pump can then be incremented by one, and the pressure operating frequency can be reset to zero to recount the number of times the pressure switch controls the water pump to operate per unit time.
[0060] In step S320, when the number of unconventional operating conditions reaches the preset number of runs, an unconventional operating condition signal is generated.
[0061] In the embodiments of this application, when the number of unconventional operating conditions reaches the preset number of runs, it indicates that the user is continuously using the low water flow condition, and an unconventional signal can be generated to further improve the accuracy of determining that the water pump is in the low water flow condition. This avoids the user from blocking the pressure switch to control the water pump after using the low water flow condition for a short time, which would cause the water flow output by the pipeline to fail to meet the user's water demand in a timely manner.
[0062] See Figure 4 , Figure 4 This is a flowchart illustrating a water pump control method according to another exemplary embodiment. (e.g.) Figure 4 As shown, in Figure 2 Before step S220 in the illustrated embodiment, the method may further include steps S410 to S430, which are described in detail below:
[0063] In step S410, the current running time of the water pump is obtained.
[0064] In the embodiments of this application, before generating the unconventional operating condition signal based on the relationship between the pressure operating frequency and the preset abnormal frequency, the current operating time of the water pump can be obtained first, wherein the operating time represents the current year, month, day and specific time.
[0065] In step S420, the target load level of the water pump is determined from multiple load levels based on the running time.
[0066] In the embodiments of this application, after obtaining the current operating time of the water pump, the target load level of the water pump can be determined from multiple load levels based on the operating time. The load level of the water pump is positively correlated with the operating frequency of the water pump; that is, the higher the operating frequency of the water pump, the higher its load level. The number and classification method of the water pump load levels can be set as needed and are not limited here.
[0067] The method of determining the target load level of a water pump from multiple load levels based on running time can be flexibly set as needed. In one example, the cumulative running frequency of the water pump on a given day can be obtained through running time, and then the associated load level can be retrieved from a preset memory based on the cumulative running frequency on that day. In other words, multiple load levels can be stored in the preset memory in advance, and different running frequencies and different load levels can be stored together to achieve the purpose of determining the load level of the water pump based on running time.
[0068] In another example, considering that users have higher water demand during certain specific times, the water pump will operate more frequently during those times, such as when users are cooking, washing up, or when the temperature is lower in their location. Based on this, the associated load level can be directly retrieved from a preset memory using the year, month, day, and specific time in the running time. In other words, after pre-storing multiple load levels in the preset memory, different years, months, days, and load levels can be linked and stored together. This reduces the time spent determining the water pump's load level while still achieving the goal of determining the water pump's load level based on the running time.
[0069] In step S430, the abnormal frequency corresponding to the target load level is used as the preset abnormal frequency.
[0070] In the embodiments of this application, after determining the target load level of the water pump from multiple load levels based on the running time, the abnormal frequency corresponding to the target load level can be used as the preset abnormal frequency to adjust the triggering time of the non-standard operating condition signal generated subsequently based on the relationship between the pressure operating frequency and the preset abnormal frequency, thereby improving the accuracy of the abnormal operating condition signal in characterizing the water pump as being in a low water flow condition.
[0071] In one example, the frequency of anomalies corresponding to the load level can be positively correlated with the load level. That is, the higher the load level, the higher the operating frequency of the pump corresponding to the anomaly. Based on this, by using the frequency of anomalies corresponding to the target load level as the preset frequency of anomalies, the time for the pressure operating frequency to reach the preset frequency of anomalies can be increased. This delays the triggering time of the unconventional operating condition signal, thereby improving the accuracy of the unconventional operating condition signal in characterizing the pump as being in a low-flow condition by further obtaining the pressure operating frequency.
[0072] In another example, considering that users' demand for low-flow conditions increases during peak water usage periods, meaning that the higher the pump load level, the higher the probability of low-flow conditions occurring, the frequency of anomalies corresponding to the load level can be negatively correlated with the load level. That is, the higher the load level, the lower the pump operating frequency corresponding to the anomaly frequency. Therefore, by using the anomaly frequency corresponding to the target load level as the preset anomaly frequency, the time it takes for the pressure operating frequency to reach the preset anomaly frequency can be shortened. This allows for earlier triggering of abnormal operating condition signals when the pump load level is high, i.e., when low-flow conditions are more likely to occur. This reduces the pressure operating frequency required to generate abnormal operating condition signals while ensuring that the accuracy of the abnormal operating condition signal in indicating that the pump is in a low-flow condition does not decrease. Furthermore, it facilitates timely shielding of the pressure switch from pump control in response to abnormal operating condition signals, thereby reducing the number of times the pump cycles start and stop under the control of the pressure switch, and thus reducing the risk of pump malfunctions.
[0073] See Figure 5 , Figure 5 Is Figure 4 The flowchart of step S420 in the illustrated embodiment is shown in an exemplary embodiment. Figure 5 As shown, the process of determining the target load level of a water pump from multiple load levels based on operating time may include steps S510 to S530, which are described in detail below:
[0074] In step S510, the corresponding target running time period is determined from multiple running time periods based on the running time.
[0075] In the embodiments of this application, in order to determine the target load level of the water pump from multiple load levels based on the operating time, the corresponding target operating time period can be determined first from multiple operating time periods. The method of dividing the operating time period can be flexibly set as needed and is not limited here.
[0076] For example, when the operating time is divided into 2-hour periods, that is, the day can be divided into 12 operating time periods. If the current operating time of the water pump is 12:30, then the target operating time period determined from the multiple operating time periods is the 6th operating time period, that is, 12:00-14:00.
[0077] In step S520, the unit water delivery volume of the water pump during the target operating time period is obtained.
[0078] In the embodiments of this application, after determining the corresponding target operating time period among multiple operating time periods based on the operating time, the unit water delivery volume of the water pump in the target operating time period can be obtained, wherein the unit water delivery volume is the ratio between the total water delivery volume of the water pump in the target operating time period and the operating time.
[0079] Referring to the example above, since the current running time of the water pump is 12:30, it indicates that the running time of the water pump in the target running time period is 30 minutes. If the total water delivery volume of the water pump in the target running time period is 90L, then the unit water delivery volume of the water pump in the target running time period is 3L / min.
[0080] In step S530, the unit water delivery volume range in which the unit water delivery volume is located within the unit water delivery volume range corresponding to each of the multiple load levels is determined, and the load level corresponding to the determined unit water delivery volume range is taken as the target load level.
[0081] It should be noted that the higher the water flow rate delivered by the pump per minute, the higher the pump load. Therefore, in the embodiments of this application, the pump load levels can be divided based on unit water delivery volume. That is, a corresponding unit water delivery volume range can be set for each load level. After obtaining the pump's unit water delivery volume, the unit water delivery volume range within each of the multiple load levels can be determined. The load level corresponding to the determined unit water delivery volume range is then used as the target load level to achieve the purpose of determining the pump's target load level.
[0082] Continuing with the example above, when the pump's load levels include a first load level, a second load level, and a third load level, and the unit water delivery ranges corresponding to the first load level, the second load level, and the third load level are respectively >5L / min, 5L / min-2L / min, and <2L / min, and the pump's unit water delivery during the target operating time period is 3L / min, it can be determined that the unit water delivery of 3L / min falls within the 5L / min-2L / min range corresponding to each of the multiple load levels. Therefore, the second load level corresponding to 5L / min-2L / min can be taken as the target load level.
[0083] See Figure 6 , Figure 6 Is Figure 5 The flowchart of step S520 in an exemplary embodiment shown in the illustration is as follows. Figure 6 As shown, the process of obtaining the unit water delivery volume of the water pump during the target operating time period may include steps S610 to S630, which are described in detail below:
[0084] In step S610, multiple historical unit water transfer volumes are obtained from the historical water transfer data.
[0085] In the embodiments of this application, in order to obtain the unit water delivery volume of the water pump in the target time period, multiple historical unit water delivery volumes can be obtained from the historical water delivery volume data.
[0086] Specifically, whenever the water pump switches from the current time period to the next, the unit water delivery volume corresponding to the current time period is recorded to obtain historical water delivery data. Historical water delivery data represents the unit water delivery volume of the water pump in previous time periods.
[0087] The method for obtaining multiple historical unit water transfer volumes from historical water transfer data can be flexibly configured as needed. In one example, unit water transfer volumes recorded within a preset time period can be selected from the historical water transfer data to ensure that the historical unit water transfer volumes obtained from the historical water transfer data meet the user's water demand at the current time. The preset time period can be adjusted according to actual conditions and is not limited here.
[0088] For example, if the preset time is set to within 12 hours, then the unit water transfer volume that is recorded in the historical water transfer data and whose time difference with the current running time does not exceed 12 hours will be selected as the historical unit water transfer volume.
[0089] In another example, a preset number of unit water volumes can be selected from historical water transfer data according to the recorded time as historical unit water volumes. This ensures that the historical unit water volumes obtained from the historical water transfer data meet the user's water demand at the current time, while also limiting the number of historical unit water volumes through the preset quantity to avoid data redundancy. The preset quantity can also be adjusted according to actual conditions and is not limited here.
[0090] In addition, considering that users' water usage habits can influence the unit water delivery volume of the water pump at different times of the day, forming a certain pattern, in another example, the unit water delivery volume corresponding to the same operating time period as the target operating time period can be selected from the historical water delivery volume data as the historical unit water delivery volume, so as to further ensure that the historical unit water delivery volume obtained from the historical water delivery data meets the user's water demand at the current time.
[0091] For example, if the target operating time period is 12:00-14:00, then the unit water transfer volume with the operating time period of 12:00-14:00 is selected from the historical water transfer volume data as the historical unit water transfer volume.
[0092] In step S620, the average unit water transfer volume between multiple historical unit water transfer volumes and the current unit water transfer volume is calculated.
[0093] In the embodiments of this application, after obtaining multiple historical unit water volumes from historical water volume data, the average unit water volume between the multiple historical unit water volumes and the current unit water volume can be calculated, so that when the water pump enters the target operating period for a short time, the short-term fluctuation of the current unit water volume of the water pump can be reduced on the unit water volume of the water pump in the target operating period.
[0094] Among them, the current unit water delivery volume of the water pump represents the ratio between the current total water delivery volume and the running time of the water pump during the target operating period.
[0095] In step S630, the average unit water delivery volume is taken as the unit water delivery volume.
[0096] In the embodiments of this application, after calculating the average unit water delivery between multiple historical unit water delivery volumes and the current unit water delivery volume, the average unit water delivery volume can be used as the unit water delivery volume. This ensures that after the water pump enters the target operating period, it can avoid a large deviation between the unit water delivery volume of the water pump in the target operating period and the water demand of the user in the target operating period. This improves the accuracy of the non-conventional operating condition signal determined by the unit water delivery volume in characterizing the water pump in a low water flow condition.
[0097] See Figure 7 , Figure 7 Is Figure 2 The flowchart illustrates a water pump control method based on another exemplary embodiment. Figure 7 As shown, the method may further include steps S710 to S720, which are described in detail below:
[0098] In step S710, it is determined whether the current unit water delivery rate of the water pump has reached the preset unit water delivery rate.
[0099] In the embodiments of this application, in order to further improve the accuracy of determining that the water pump is in a low water flow condition, after the water pump pressure switch controls the water pump to run, it can be determined whether the current unit water delivery of the water pump has reached the preset unit water delivery, wherein the preset unit water delivery represents the value when the current unit water delivery of the water pump pipeline is normal.
[0100] In step S720, if the determination is negative, the number of times the pressure switch controls the water pump to run is incremented by one.
[0101] In the embodiments of this application, during the process of determining whether the current unit water delivery of the water pump has reached the preset unit water delivery, if the determination is no, it indicates that the current unit water delivery of the water pump pipeline is lower than the normal unit water delivery, that is, the water pump is in a low water flow condition. In this case, the number of times the pressure switch controls the water pump to run can be incremented by one. In other words, if the current unit water delivery of the water pump has reached the preset unit water delivery, that is, the current unit water delivery of the water pump pipeline has reached the normal unit water delivery, the number of times the pressure switch controls the water pump to run will not be incremented by one. This ensures that the number of times the pressure switch controls the water pump to run, as represented by the pressure operating frequency of the water pump, is accumulated when the water pump is in a low water flow condition. This improves the accuracy of determining that the water pump is in a low water flow condition when generating abnormal operating condition signals based on the pressure operating frequency in the future.
[0102] The following provides a detailed description of a specific application scenario of this application:
[0103] Please see Figure 8 As shown. Figure 8 This is a flowchart illustrating a water pump control method according to an embodiment of this application, as shown below. Figure 8 As shown, the water pump control method includes at least steps S801 to S870, which are described in detail below:
[0104] Step S801: When the pressure switch controls the water pump to run, determine whether the current unit water delivery volume of the water pump has reached the preset unit water delivery volume.
[0105] In step S801, if the determination is yes, it indicates that the current unit water delivery volume of the water pump pipeline has reached the normal unit water delivery volume, that is, the water pump is in normal operating condition; if the determination is no, it indicates that the current unit water delivery volume of the water pump pipeline is lower than the normal unit water delivery volume, that is, the water pump may be in low water flow condition or there is leakage in the pipeline where the water pump is located. Then step S802 can be executed to increment the number of times the pressure switch controls the water pump to run by one.
[0106] Step S803: Obtain the pressure operating frequency of the water pump.
[0107] Among them, the pressure operation frequency represents the number of times the pressure switch controls the water pump to run per unit time.
[0108] Step S804: Determine whether the pressure operation frequency has reached the preset abnormal frequency.
[0109] In step S804, if the determination is yes, it indicates that the water pump cycles start and stop a large number of times per unit time, meaning the water pump may be continuously operating under low water flow conditions or the pipeline where the water pump is located may be continuously leaking. In this case, step S805 can be executed to generate an abnormal operating condition signal. Conversely, if the determination is no, it indicates that the number of times the water pump cycles start and stop per unit time is within the water pump's acceptable range.
[0110] Step S806: In response to the non-standard operating condition signal, the pressure switch controls the water pump so that the water pump operates under the control of the water pump flow switch.
[0111] In the above process, based on the switching characteristics of the water pump's flow switch, it is not easy to trigger the water pump's flow switch to control the water pump's operation when the water pump is in a low water flow condition or when there is a leak in the water pump's pipeline. This reduces the number of times the water pump is cycled to start and stop, thereby reducing the risk of water pump damage, and also avoids the water pump causing continuous pipeline leakage under the control of the pressure switch.
[0112] Step S807: When the flow switch controls the water pump to run, restore the pressure switch to control the water pump and set the pressure operating frequency to zero.
[0113] In the above process, when the flow switch controls the water pump to run, if the user no longer needs the low water flow condition, the pressure switch controls the water pump at the same time as the flow switch controls the water pump to ensure that the water pump can provide a larger water flow in a timely manner, thereby improving the user experience. In addition, in order to avoid blocking the pressure switch's control over the water pump again based on the pressure operation frequency in the future, the pressure operation frequency is simultaneously set to zero so that it can be re-determined whether the user needs the low flow condition in the future.
[0114] The following describes an apparatus embodiment of this application, which can be used to execute the XX method in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the XX method described above.
[0115] Figure 9 A block diagram of a water pump control device 900 according to an embodiment of this application is shown.
[0116] Reference Figure 9 As shown, according to one aspect of an embodiment of this application, a water pump control device 900 is provided, including: a data acquisition module 910, configured to acquire the pressure operating frequency of the water pump when the pressure switch of the water pump controls the water pump to operate; wherein, the pressure operating frequency represents the number of times the pressure switch controls the water pump to operate per unit time; a signal generation module 920, configured to generate an abnormal operating condition signal based on the relationship between the pressure operating frequency and a preset abnormal frequency; and an operation control module 930, configured to shield the control of the pressure switch on the water pump in response to the abnormal operating condition signal, so that the water pump operates under the control of the water pump's flow switch.
[0117] In some embodiments of this application, based on the aforementioned scheme, the signal generation module 920 is further configured to: when the pressure operation frequency reaches a preset abnormal frequency, increment the number of abnormal operating conditions of the water pump by one and set the pressure operation frequency to zero; when the number of abnormal operating conditions reaches a preset number of operation times, generate an abnormal operating condition signal.
[0118] In some embodiments of this application, based on the aforementioned scheme, the signal generation module 920 is further configured to: acquire the current running time of the water pump; determine the target load level of the water pump among multiple load levels based on the running time; and use the abnormal frequency corresponding to the target load level as the preset abnormal frequency.
[0119] In some embodiments of this application, based on the aforementioned scheme, the signal generation module 920 is further configured to: determine the corresponding target operating time period in multiple operating time periods according to the operating time; obtain the unit water delivery volume of the water pump in the target operating time period; determine the unit water delivery volume interval in the unit water delivery volume interval corresponding to each of multiple load levels, and take the load level corresponding to the determined unit water delivery volume interval as the target load level.
[0120] In some embodiments of this application, based on the aforementioned scheme, the signal generation module 920 is further configured to: obtain multiple historical unit water volumes recorded from historical water volume data; calculate the average unit water volume between the multiple historical unit water volumes and the current unit water volume; and use the average unit water volume as the unit water volume.
[0121] In some embodiments of this application, based on the aforementioned scheme, the operation control module 930 is further configured to: when the flow switch controls the water pump to run, restore the pressure switch to control the water pump, and set the pressure operation frequency to zero.
[0122] In some embodiments of this application, based on the aforementioned scheme, the data acquisition module 910 is further configured to: determine whether the current unit water delivery volume of the water pump has reached the preset unit water delivery volume; if the determination is no, then increment the number of times the pressure switch controls the water pump to run by one.
[0123] It should be noted that the water pump control device 900 provided in the above embodiments and the water pump control method provided in the above embodiments belong to the same concept. The specific way in which each module and unit performs operations has been described in detail in the method embodiments, and will not be repeated here.
[0124] Embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions that, when executed by the processor, implement the water pump control method as described above.
[0125] Figure 10A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0126] It should be noted that, Figure 10 The computer system 1000 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0127] like Figure 10 As shown, the computer system 1000 includes a Central Processing Unit (CPU) 1001, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in Read-Only Memory (ROM) 1002 or programs loaded from storage portion 1008 into Random Access Memory (RAM) 1003. The RAM 1003 also stores various programs and data required for system operation. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An Input / Output (I / O) interface 1005 is also connected to the bus 1004.
[0128] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. Removable media 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1010 as needed so that computer programs read from them can be installed into storage section 1008 as needed.
[0129] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs various functions defined in the system of this application.
[0130] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0132] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0133] In another aspect, this application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0134] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0135] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0136] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0137] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A water pump control method, characterized in that, The method includes: When the pressure switch of the water pump controls the operation of the water pump, the pressure operation frequency of the water pump is obtained; wherein, the pressure operation frequency represents the number of times the pressure switch controls the operation of the water pump per unit time; An unconventional operating condition signal is generated based on the relationship between the pressure operating frequency and the preset abnormal frequency; In response to the unconventional operating condition signal, the pressure switch is disabled from controlling the water pump, so that the water pump operates under the control of the water pump's flow switch.
2. The method according to claim 1, characterized in that, The step of generating an abnormal operating condition signal based on the relationship between the pressure operating frequency and the preset abnormal frequency includes: When the pressure operation frequency reaches the preset abnormal frequency, the number of abnormal operating conditions of the water pump is incremented by one, and the pressure operation frequency is set to zero. When the number of times the unconventional operating conditions are reached reaches the preset number of runs, the unconventional operating condition signal is generated.
3. The method according to claim 1, characterized in that, Before generating the abnormal operating condition signal based on the relationship between the pressure operating frequency and the preset abnormal frequency, the method further includes: Obtain the current running time of the water pump; The target load level of the water pump is determined among multiple load levels based on the operating time. The abnormal frequency corresponding to the target load level is taken as the preset abnormal frequency.
4. The method according to claim 3, characterized in that, Determining the target load level of the water pump among multiple load levels based on the operating time includes: Based on the running time, determine the corresponding target running time period from among multiple running time periods; Obtain the unit water delivery volume of the water pump during the target operating time period; The unit water delivery volume is determined to be located within the unit water delivery volume interval corresponding to each of the multiple load levels, and the load level corresponding to the determined unit water delivery volume interval is taken as the target load level.
5. The method according to claim 4, characterized in that, The step of obtaining the current unit water delivery volume of the water pump during the target operating time period includes: Obtain multiple historical units of water transfer from historical water transfer data; Calculate the average unit water transfer volume between the multiple historical unit water transfer volumes and the current unit water transfer volume; The average unit water delivery volume is taken as the unit water delivery volume.
6. The method according to claim 1, characterized in that, After disabling the pressure switch's control of the water pump in response to the unconventional operating condition signal, the method further includes: When the flow switch controls the water pump to run, the pressure switch resumes control of the water pump and the pressure operating frequency is set to zero.
7. The method according to claim 1, characterized in that, After the pressure switch of the water pump controls the operation of the water pump, the method further includes: Determine whether the current unit water delivery rate of the water pump has reached the preset unit water delivery rate; If the determination is negative, then the number of times the pressure switch controls the water pump to run is incremented by one.
8. A water pump control device, characterized in that, The device includes: The data acquisition module is configured to acquire the pressure operation frequency of the water pump when the pressure switch of the water pump controls the water pump to run; wherein, the pressure operation frequency represents the number of times the pressure switch controls the water pump to run per unit time. The signal generation module is configured to generate an unconventional operating condition signal based on the relationship between the pressure operating frequency and the preset abnormal frequency. The operation control module is configured to shield the pressure switch from controlling the water pump in response to the unconventional operating condition signal, so that the water pump operates under the control of the water pump's flow switch.
9. A water pump, characterized in that, include: A pressure switch, electrically connected to the water pump, is used to control the operation of the water pump according to the pressure in the pipeline where the water pump is located; A flow switch, electrically connected to the water pump, is used to control the operation of the water pump according to the water flow rate in the pipeline where the water pump is located; The controller is electrically connected to the pressure switch, the flow switch and the water pump respectively, and the controller executes the water pump control method of any one of claims 1-7 by reading pre-stored computer-readable instructions.
10. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the water pump control method as described in any one of claims 1 to 7.