Drainage control method, electronic device, and computer-readable storage medium

By introducing the trapped air operation into the drainage control system, the problem of low drainage efficiency caused by bubbles in the water pump cavity was solved, and more efficient drainage task execution was achieved.

CN116292257BActive Publication Date: 2025-10-21ECOFLOW INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310499051.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-05
Publication Date
2025-10-21
Estimated Expiration
2043-05-05

AI Technical Summary

Technical Problem

In the existing drainage control system, bubbles may exist in the inner cavity of the water pump, which may cause water to be pumped abnormally and reduce the drainage efficiency.

Method used

Before controlling the water pump to perform the drainage task, the water pump is controlled to perform the trapped air operation through the preset trapped air strategy to discharge the bubbles in the water pump.

Benefits of technology

The drainage efficiency is improved, the pumping difficulty caused by bubbles in the inner cavity of the water pump is avoided, and the normal drainage task is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116292257B_ABST
    Figure CN116292257B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of device control, and provides a drainage control method, an electronic device and a computer readable storage medium. The method comprises the following steps: when a controller monitors that the water level value of a water storage tank is greater than a first preset water level threshold value and a get-out-of-trouble gas operation is not performed, in order to avoid the difficulty of water pumping of a water pump caused by the existence of bubbles in the inner cavity of the water pump, and even the situation that water pumping cannot be performed, the controller controls the water pump to perform a get-out-of-trouble gas operation according to a preset get-out-of-trouble gas strategy before controlling the water pump to perform a drainage task, so that the bubbles in the inner cavity of the water pump are discharged as much as possible, and the drainage efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of equipment control technology, and in particular to a drainage control method, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the increasing popularity of IoT devices and the Industrial Internet of Things (IIoT), existing drainage systems are becoming increasingly intelligent. For example, the drainage control system in a mobile air conditioner can use a controller, such as a microcontroller unit (MCU), to control a water pump to perform drainage tasks. However, when the controller controls the water pump to perform drainage tasks, bubbles may form within the pump cavity, causing the pump to fail to pump water properly under the controller's control, reducing drainage efficiency. Summary of the Invention

[0003] In view of this, the present application provides a drainage control method, an electronic device, and a computer-readable storage medium to solve the problem of low drainage efficiency in a drainage control system.

[0004] A first aspect of an embodiment of the present application provides a drainage control method, which includes: when it is monitored that the water level value of a water tank is greater than a first preset water level threshold and no trapped air operation is performed, controlling the water pump to perform a trapped air operation according to a preset trapped air strategy, wherein the trapped air operation is used to discharge bubbles in the water pump; after completing the trapped air operation, controlling the water pump to perform a drainage task.

[0005] In the drainage control method provided in the embodiment of the present application, when the controller detects that there is accumulated water in the water tank, in order to avoid the situation where the water pump has difficulty or even cannot pump water due to the presence of bubbles in the inner cavity of the water pump, the controller controls the water pump to perform the trapped air operation according to the preset trapped air strategy before controlling the water pump to perform the drainage task, so as to minimize the bubbles in the inner cavity of the water pump and improve the drainage efficiency.

[0006] A second aspect of an embodiment of the present application provides a drainage control device, which includes: a trapped air module, which is used to control the water pump to perform a trapped air operation according to a preset trapped air strategy when the water level value of the water tank is monitored to be greater than a first preset water level threshold and the trapped air operation is not performed. The trapped air operation is used to discharge bubbles in the water pump; and a drainage module, which is used to control the water pump to perform a drainage task after completing the trapped air operation.

[0007] A third aspect of an embodiment of the present application provides an electronic device, which includes a memory, a controller, a water tank and a water pump. The controller is used to execute computer-readable instructions stored in the memory to implement the above-mentioned drainage control method.

[0008] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions implement the above-mentioned drainage control method when executed by a controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0010] Figure 1 This is a simplified example diagram of a portion of the structure of a drainage control system for an electronic device;

[0011] Figure 2 This is an application scenario diagram of the drainage control method provided in an embodiment of the present application;

[0012] Figure 3 This is an application scenario diagram of a drainage control method provided by another embodiment of the present application;

[0013] Figure 4 This is a flow chart of the implementation of the drainage control method provided in the embodiment of the present application;

[0014] Figure 5 is a flow chart of an implementation of a drainage control method provided in another embodiment of the present application;

[0015] Figure 6 This is an example diagram of the implementation process of the trapped gas escape operation provided in the embodiment of the present application;

[0016] Figure 7 This is a flow chart of an implementation of a drainage control method provided in another embodiment of the present application;

[0017] Figure 8 Schematic diagram of the structure of the drainage control device provided in an embodiment of the present application;

[0018] Figure 9 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] It should be noted that the terms "first" and "second" in the description, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0020] It should also be noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged with each other, and some steps can also be deleted.

[0021] The following will describe some embodiments with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.

[0022] See also Figure 1 As shown, it is a simplified example diagram of a partial structure of a drainage control system of an electronic device. The electronic device can be any one of the devices such as a mobile air conditioner, a smart washing machine, and a smart dishwasher.

[0023] like Figure 1 The drainage control system shown includes a water level sensor ( Figure 1 Not shown), water pump 30, water inlet 2, inner cavity 3 of water pump 30 and water storage tank ( Figure 1 (not shown). The water level sensor and the water pump 30 are arranged in the water tank of the electronic device. The water level sensor is used to detect the water level value of the water tank. The water pump 30 is used to discharge the water in the water tank to the outside of the electronic device, or to discharge the water in the water tank to other components in the electronic device to achieve corresponding functions. In other embodiments, the drainage control system may also include a controller ( Figure 1 (not shown in the figure), this application does not limit the structure of the drainage control system.

[0024] For example, a mobile air conditioner generates condensed water during operation, which then flows into a water tank. A water level sensor monitors the water level in the tank. When the sensor detects that the water level has reached a certain threshold, it sends a water level signal to a controller, which then controls water pump 30 to drain the water. While the controller is controlling water pump 30 to drain the water, the condensed water flows through water inlet 2 into inner cavity 3 of water pump 30, thereby draining the water.

[0025] In some application scenarios, the water pump 30 may not be constantly immersed in water. When the amount of water in the water tank is low or there is no water, the water pump 30 will be exposed to the air; when the amount of water in the water tank is high, the water pump 30 will be immersed in water. As the amount of water in the water tank increases from low to high, some air may remain in the inner cavity 3 of the water pump 30, i.e., bubbles in the inner cavity 3. In the above situation, when the controller controls the water pump 30 to perform the drainage task, it is easy to cause the water pump 30 to run idle, making it unable to pump water normally and unable to perform the drainage task, thereby reducing the drainage efficiency.

[0026] Based on the above-mentioned problems, an embodiment of the present application provides a drainage control method. Before controlling the water pump to perform the drainage task, the controller first controls the water pump to perform the trapped air operation according to the preset trapped air strategy to minimize the bubbles in the inner cavity of the water pump, thereby improving the drainage efficiency.

[0027] See also Figure 2 FIG. 1 is an application scenario diagram of the drainage control method provided in an embodiment of the present application, wherein: Figure 2 The drainage control system in the present invention is applied to electronic equipment, and the drainage control system is controlled by the controller 20 in the electronic equipment to execute the drainage control method. Figure 2 As shown, the drainage control system includes a water level sensor 10 , a controller 20 , a water pump 30 and a current sampling module 40 , wherein the water level sensor 10 , the water pump 30 and the current sampling module 40 are respectively connected to the controller 20 for communication.

[0028] When the electronic device executes the drainage control method via the controller 20, the controller 20 sends a trigger signal to the water level sensor 10, activating the water level detection function. The water level sensor 10 detects the water level in the water tank and returns the detection result to the controller 20. The controller 20 reads the signal sent by the water level sensor 10, processes and analyzes it, and determines the actual water level value. When the controller 20 detects that the water level in the water tank is greater than a first preset threshold and determines that the water pump 30 has not performed the degassing operation, it first controls the water pump 30 to perform the degassing operation according to the preset degassing strategy to expel as many bubbles as possible from the water pump. After completing the degassing operation, the controller 20 controls the water pump 30 to perform the drainage task, thereby preventing the water pump 30 from being unable to pump water due to bubbles in its internal cavity, thereby improving drainage efficiency. In some embodiments of the present application, when controlling the water pump 30 to perform the degassing operation, the controller can obtain the operating current of the water pump through the current sampling module 40 and detect the operating current to determine whether the water pump is operating normally. The electronic device includes, but is not limited to, a mobile air conditioner, a smart washing machine, a smart dishwasher, and the like. The controller 20 may be a microcontroller, or a terminal application such as a mobile phone or a computer.

[0029] See also Figure 3 As shown in FIG, it is an application scenario diagram of the drainage control method provided by another embodiment of the present application. Figure 3 As shown, the drainage control system of the electronic equipment, except Figure 2In addition to the water level sensor 10, controller 20, water pump 30, and current sampling module 40, the electronic device may also include an input device 50 and an alarm module 60. The input device 50 and the alarm module 60 are each connected to the controller 20 for communication. The user can interact with the electronic device through the input device 50 to manually control operations such as drainage. The alarm module 60 is used to generate and output alarm signals, including but not limited to audible and visual alarm signals.

[0030] The input device 50 may be a keyboard, a touch screen, etc. The warning module 60 may include an audible / visual alarm, etc.

[0031] In the embodiment of the present application, the drainage control method provided in the embodiment of the present application may be executed by an electronic device or a controller of the electronic device.

[0032] See also Figure 4 As shown in the figure, it is a flow chart of the implementation of the drainage control method provided in the embodiment of the present application. Figure 2 or Figure 3 The controller in the example is used to illustrate the steps, including the following.

[0033] S11: When it is monitored that the water level value of the water storage tank is greater than a first preset water level threshold and the trapped air operation is not performed, the water pump is controlled to perform the trapped air operation according to the preset trapped air strategy.

[0034] In some embodiments of the present application, the trapped air operation is used to remove bubbles from the water pump. A water tank is a device used to discharge and collect wastewater, condensate, or other liquids in electronic equipment. For example, during the operation of a mobile air conditioner, condensate is generated into the water tank.

[0035] The first preset water level threshold is the critical water level value that triggers the controller to control the water pump to work. The first preset water level threshold can be customized, and this application does not limit the value of the first preset water level threshold.

[0036] The preset trapped gas escape strategy is used to characterize the working mode of the water pump when the controller controls the water pump to perform the trapped gas escape operation; alternatively, the preset trapped gas escape strategy can also be understood as the specific steps of the above trapped gas escape operation and the execution order of each step.

[0037] In some embodiments of the present application, a water level sensor is installed in the water tank, and the water level sensor is used to detect the water level in the water tank and send the detection result to the controller.

[0038] After receiving the signal containing the water level information of the water tank, the controller processes and analyzes the signal to determine the current water level value of the water tank.

[0039] The controller is further configured to compare the water level value with a first preset water level threshold value to determine whether the water level value is greater than the first preset water level threshold value, and to determine whether the water pump has executed the trapped air operation. If the controller determines that the water level value is greater than the first preset water level threshold value and the water pump has not executed the trapped air operation, the controller controls the water pump to execute the trapped air operation according to a preset trapped air strategy, thereby discharging bubbles in the water pump before controlling the water pump to execute the drainage task, thereby preventing the bubbles in the water pump from affecting the drainage efficiency.

[0040] In some embodiments of the present application, the controller can determine whether the water pump has performed the trapped air release operation by detecting the value of a preset flag. For example, the controller can determine that the water pump has not performed the trapped air release operation when the value of the preset flag is detected as a first flag; and determine that the water pump has performed the trapped air release operation when the value of the preset flag is detected as a second flag.

[0041] In some embodiments of the present application, the controller can trigger the water level sensor to detect the water level of the water tank at preset time intervals by setting a timer or timing function. In this case, before the controller controls the water pump to perform the drainage task, the water level value in the water tank may have been in a state greater than the first preset water level threshold. At this time, if the controller controls the water pump to perform the trapped air operation when it monitors that the water level value of the water tank is greater than the first preset water level threshold, it may cause the water pump to continue in the working state of performing the trapped air operation and fail to perform the drainage task. Therefore, the controller needs to control the water pump to perform the trapped air operation according to the preset trapped air strategy when it determines that the water level value of the water tank is greater than the first preset water level threshold and the water pump has not performed the trapped air operation.

[0042] In some embodiments of the present application, controlling the water pump to perform the trapped gas operation according to a preset trapped gas strategy includes: controlling the water pump to intermittently run for a preset number of trapped gas times.

[0043] In some embodiments of the present application, the controller can control the intermittent operation of the water pump by controlling the water pump on and off. For example, the controller controls the water pump to run for 10 seconds and then stop for 2 seconds, which is considered as one cycle and recorded as one escape gas operation. The preset escape times refers to the predefined number of times the controller controls the water pump to perform the escape gas operation. The present application does not limit the value of the preset escape times. For example, the preset escape times can be set to 5 times.

[0044] In some embodiments of the present application, the controller controls the water pump to run intermittently for a preset number of times to break up the bubbles in the inner cavity of the water pump, thereby achieving air release from the water pump.

[0045] In some embodiments of the present application, the water pump is controlled to run intermittently for a preset number of escape times, including: controlling the water pump to run for a first preset time; detecting the operating current of the water pump; if the operating current of the water pump is greater than or equal to the preset pumping current, determining that the escape gas operation is completed; if the operating current of the water pump is less than the preset pumping current, controlling the water pump to stop running for a second preset time, and calculating the cumulative number of escape times; if the cumulative number of escape times is less than or equal to the preset number of escape times, returning to execute the step of controlling the water pump to run for the first preset time; if the cumulative number of escape times is greater than the preset number of escape times, determining that the escape gas operation is completed.

[0046] In some embodiments of the present application, the first preset time length and the second preset time length are both custom parameters. The present application does not limit the values ​​of the first preset time length and the second preset time length. For example, the first preset time length can be set to 10 seconds, and the second preset time length can be set to 2 seconds.

[0047] The operating current of the water pump refers to the pumping current of the water pump detected in real time when the controller controls the water pump operation. The preset pumping current refers to the current required for normal operation of the water pump.

[0048] The operating current of the water pump is affected by the water flow, and bubbles can block the pipe, reducing the water flow or even preventing pumping altogether. This reduces the operating current of the water pump, causing it to fail to reach the preset pumping current for normal operation. Therefore, the controller can determine whether to continue controlling the water pump to perform the trapped air operation by determining whether the operating current of the water pump is greater than or equal to the preset pumping current.

[0049] Specifically, the controller first controls the water pump to operate for a first preset duration and then detects the water pump's operating current. If the controller determines that the water pump's operating current is greater than or equal to the preset pumping current, the controller can determine that the water pump is currently operating normally. At this point, the controller controls the water pump to stop the trapped air removal operation, confirming that the water pump has successfully removed trapped air, and completing the trapped air removal operation.

[0050] When the controller determines that the operating current of the water pump is less than the preset pumping current, the controller can control the water pump to stop running for the second preset time and calculate the cumulative number of escapes, for example, the number of escapes is accumulated to 1. In order to avoid the controller controlling the water pump to perform the escape operation for too long and affecting the drainage efficiency, when the controller determines that the cumulative number of escapes is less than or equal to the preset number of escapes, it returns to the step of controlling the water pump to run for the first preset time and circulates the escape operation. When the controller determines that the cumulative number of escapes is greater than the preset number of escapes, the controller determines that the water pump has failed to escape, and controls the water pump to stop the escape operation and complete the escape operation. In other words, regardless of whether the water pump escapes successfully, when the controller determines that the cumulative number of escapes is greater than the preset number of escapes, it will determine that the escape operation is completed.

[0051] In other embodiments of the present application, the controller can also control the water pump to repeatedly run for a first preset time and then stop running for a second preset time, and determine that the water pump's escape operation is completed after executing the preset number of escape times.

[0052] In other embodiments of the present application, if the cumulative number of escape times is greater than the preset number of escape times, an alarm operation is performed.

[0053] In some embodiments of the present application, the warning operation includes at least an audible and visual warning. If the controller determines that the cumulative number of escape attempts of the water pump exceeds a preset number of escape attempts, it determines that the water pump has failed to escape. At this point, the operating current of the water pump may not yet reach the preset pumping current, and the controller will send an alarm signal to the alarm, causing the alarm to emit a warning sound and / or display a warning light to notify the user of the escape failure.

[0054] In other embodiments of the present application, after the user hears the prompt sound of the alarm or sees the warning light light up, the user can manually control the valve of the water pump to degas the water pump and further eliminate the bubbles in the inner cavity of the water pump.

[0055] In other embodiments of the present application, if the electronic device is provided with a display screen, the controller can collect data such as the cumulative number of times the water pump has been trapped, the current operating current, etc. after determining that the water pump has failed to be trapped, and send these data to the display screen. The data can be displayed on the display screen for the user to view and analyze the reasons for the failure of the water pump to be trapped, so as to make corresponding response measures.

[0056] In other embodiments of the present application, if the cumulative number of escape times is greater than the preset number of escape times, the controller collects operating data of the water pump and sends the operating data to the monitoring device.

[0057] In some embodiments of the present application, the operating data includes at least the cumulative number of escapes and the operating current of the water pump. The monitoring device is connected to the controller of the electronic device through a communication interface, and can be used to monitor the operating status and data of the drainage control system in real time. The monitoring device can be a computer device such as a mobile phone, a tablet, or a server. In the process of the controller controlling the water pump to perform the escape operation, if it is determined that the cumulative number of escapes is greater than the preset number of escapes, it is determined that the water pump has failed to escape, and the water pump is controlled to exit the escape operation. Furthermore, in order to facilitate the analysis of the cause of the failure of the water pump to escape, the controller can collect the operating data of the water pump in the process of the controller controlling the water pump to perform the escape operation, and send the operating data of the water pump to the monitoring end, so as to realize remote monitoring of the drainage control system in the electronic device. In one embodiment of the present application, the user can view the operating data of the water pump at the monitoring end, which can help the user quickly find problems and take corresponding measures.

[0058] In some embodiments of the present application, detecting the operating current of the water pump includes: obtaining a sampled current of the water pump; and performing a first-order low-pass filtering process on the sampled current to obtain the operating current of the water pump.

[0059] In some embodiments of the present application, the controller obtains the operating current of the water pump in real time, and the controller controls the water pump to perform the degassing operation, which depends on the accuracy and reliability of the operating current. Therefore, after obtaining the sampling current of the water pump through a current detection device such as a current sensor, the controller can perform a first-order low-pass filtering on the sampling current to remove the high-frequency noise in the sampling current, thereby obtaining an accurate and reliable operating current. The above-mentioned first-order low-pass filtering can be implemented in software or hardware, and can be specifically set according to actual needs. For example, in one example, a first-order low-pass filter circuit can be composed of a capacitor and a resistor to realize the filtering function, and the structure is simple and easy to manufacture.

[0060] In other embodiments of the present application, after obtaining the sampled current, the controller may also remove high-frequency noise in the sampled current through other filtering methods. The embodiments of the present application are not limited to the specific filtering method.

[0061] In some embodiments of the present application, when the water level value of the water tank is monitored to be greater than the first preset water level threshold and the escape gas operation is not performed, the water pump is controlled to perform the escape gas operation according to the preset escape gas strategy, including: when the water level value of the water tank is monitored to be greater than the first preset water level threshold and the preset flag is the first flag, the water pump is controlled to perform the escape gas operation according to the preset escape gas strategy.

[0062] In some embodiments of the present application, the first flag is used to indicate that the trapped gas operation has not been performed. The preset flag is used to characterize whether the controller has controlled the water pump to perform the trapped gas operation. The preset flag usually contains simple values ​​such as 0 or 1, such as Drain_SelfChk_Flg to represent the preset flag. Accordingly, different numerical values ​​can be used to represent different flags. For example, 0 can be used to represent the first flag, and 1 can be used to represent the second flag. When the controller detects Drain_SelfChk_Flg=0, it indicates that the value of the preset flag is 0, indicating that the water pump has not performed the trapped gas operation, where 0 is the first flag; when the controller detects Drain_SelfChk_Flg=1, it indicates that the value of the preset flag is 1, indicating that the controller has controlled the water pump to perform the trapped gas operation. The preset flag is usually initialized to an initial value, and the preset flag can be modified during the process of the controller executing the drainage control method. In one embodiment of the present application, the preset flag can be initialized to the first flag.

[0063] When the controller controls the water pump to perform the trapped gas operation according to the preset trapped gas strategy, it is necessary to determine that the water level value of the water tank is greater than the first preset water level threshold, and to determine that the water pump has not performed the trapped gas operation. When determining whether the water level value of the water tank is greater than the first preset water level threshold, the controller can detect the water level of the water tank by triggering the water level sensor to obtain the water level value of the water tank. When it is determined that the water pump has not performed the trapped gas operation, the controller can convert whether the water pump has performed the trapped gas operation into an instruction that the controller can recognize through a preset flag position, thereby judging whether the water pump has performed the trapped gas operation by identifying the value of the preset flag position. In this embodiment, when the controller determines that the preset flag position is the first flag, it is determined that the trapped gas operation has not been performed.

[0064] S12: After completing the trapped gas operation, control the water pump to perform the drainage task.

[0065] In some embodiments of the present application, completing the trapped gas escape operation includes successfully escaping the trapped gas or failing to escaping the trapped gas. The controller controls the water pump to perform a drainage task, which can be to control the water pump to drain the water (condensed water) in the water tank to an external drain outlet or drainage pipe, or to drain the water in the water tank to other internal devices. For example, when the air conditioner is in cooling mode, the water in the water tank can be drained to the condenser to help the condenser dissipate heat, while also allowing the condensed water to absorb heat and evaporate, and be discharged from the air conditioner in the form of water vapor.

[0066] In some embodiments of the present application, after the controller controls the water pump to run intermittently for a preset number of times, the bubbles in the water pump cavity are dispersed. At this time, the controller controls the water pump to perform the drainage task, which can improve the drainage efficiency to a certain extent.

[0067] In the drainage control method provided in the embodiment of the present application, when the controller monitors that the water level value of the water tank is greater than the first water level threshold, in order to avoid the water pump having difficulty or even being unable to pump water due to the presence of bubbles in the inner cavity of the water pump, the controller controls the water pump to perform a trapped air operation according to a preset trapped air strategy before controlling the water pump to perform the drainage task, so as to reduce the bubbles in the inner cavity of the water pump, thereby improving the drainage efficiency.

[0068] See also Figure 5 As shown in FIG, it is a flow chart of the implementation of the drainage control method provided by another embodiment of the present application. Figure 5 As shown, after completing the trapped gas operation, the process also includes setting the preset mark position to the second mark. The specific steps are as follows.

[0069] S21: When it is monitored that the water level value of the water storage tank is greater than the first preset water level threshold and the escape gas operation is not performed, the water pump is controlled to perform the escape gas operation according to the preset escape gas strategy.

[0070] S22: After completing the trapped gas operation, control the water pump to perform the drainage task.

[0071] The specific implementation of steps S21-S22 can refer to the above embodiment. Figure 4 The description of steps S11-S12 will not be repeated here.

[0072] S23: Set the preset mark position as the second mark.

[0073] In some embodiments of the present application, the second flag is used to indicate that the trapped gas escape operation has been performed.

[0074] In some embodiments of the present application, the preset flag is used to indicate whether the controller has controlled the water pump to perform the trapped air release operation, and the preset flag being the second flag indicates that the trapped air release operation has been performed. Therefore, after the controller controls the water pump to complete the trapped air release operation, it sets the preset flag to the second flag to indicate that the controller has controlled the water pump to perform the trapped air release operation. In this case, even if the controller detects that the water level of the water tank is greater than the first preset threshold, the preset flag is still set to the second flag, thereby preventing the controller from repeatedly performing the trapped air release operation.

[0075] As an example, see Figure 6 As shown in FIG, it is an example diagram of the implementation process of the trapped gas operation provided in the embodiment of the present application. The drainage control method is applied to electronic equipment or a controller in an electronic equipment, taking the controller applied to the electronic equipment as an example. Figure 6 As shown, the water level sensor detects the water level value in the water tank and sends the detection result to the controller. The controller processes and analyzes the signal sent by the water level sensor to obtain the water level value of the water tank.

[0076] The controller then compares the water level with a first preset water level threshold to determine whether the water level is greater than the first preset water level threshold. If the controller detects that the water level is less than or equal to the first preset water level threshold, the controller sets the preset flag to 0; if the controller detects that the water level is greater than the first preset water level threshold, the controller controls the water pump to perform the degassing operation.

[0077] Specifically, when controlling the water pump to perform the trapped gas operation, the controller first controls the water pump to run for 10 seconds.

[0078] Then, the controller detects the operating current of the water pump and determines whether the operating current of the water pump is greater than or equal to the preset pumping current.

[0079] If the controller determines that the operating current of the water pump is greater than or equal to the preset pumping current, it is determined that the water pump has successfully de-aired. At this time, whether there are bubbles in the water pump does not affect the normal operation of the water pump. The controller will set the preset mark position to the second mark to indicate that the de-airing operation has been performed.

[0080] If the controller determines that the running current of the water pump is less than the preset pumping current, the water pump will be controlled to stop running for 2 seconds, and the time from the controller controlling the water pump to run for 10 seconds to the controller controlling the water pump to stop running for 2 seconds will be recorded as one escape gas operation, and the cumulative escape times will be accumulated by 1. Figure 6 N=N+1 means calculating the cumulative number of escapes, where N represents the cumulative number of escapes.

[0081] After calculating the cumulative number of escape attempts, the controller determines whether the cumulative number of escape attempts is greater than five. If the controller determines that the cumulative number of escape attempts is greater than five, it determines that the escape attempt has failed, exits the escape attempt, and sets the preset flag to the second flag to indicate the completion of the escape attempt. If the controller determines that the cumulative number of escape attempts is less than or equal to five, it returns to executing the water pump control for 10 seconds until the escape attempt is finally completed.

[0082] See also Figure 7 As shown in FIG, it is a flow chart of the implementation of the drainage control method provided by another embodiment of the present application. Figure 7 As shown, the drainage control method provided in this embodiment includes the following steps.

[0083] S31: When it is monitored that the water level value of the water storage tank is greater than a first preset water level threshold and the trapped air operation is not performed, the water pump is controlled to perform the trapped air operation according to the preset trapped air strategy.

[0084] S32: After completing the trapped gas operation, control the water pump to perform the drainage task.

[0085] The specific implementation of steps S31-S32 can refer to the above embodiment. Figure 4 The description of steps S11-S12 will not be repeated here.

[0086] S33: When it is monitored that the water level value of the water storage tank is less than or equal to the second preset water level threshold, the drainage task is stopped and the preset mark position is set to the first mark.

[0087] In some embodiments of the present application, the second preset water level threshold is lower than the first preset water level threshold. The second preset water level threshold is a low water level threshold. Since it is not necessary to completely drain the water in the water tank in actual production and life, the low water level threshold can be pre-configured. When the controller detects that the water level in the water tank is less than or equal to the low water level threshold, it can control the water pump to stop the drainage task.

[0088] In some embodiments of the present application, as the drainage task is executed, the water level in the water tank gradually decreases. While controlling the water pump to execute the drainage task, the controller can periodically trigger a water level sensor to detect the current water level in the water tank, thereby collecting the current water level value of the water tank and comparing the current water level value with a second preset water level threshold. When the controller detects that the water level in the water tank is less than or equal to the second preset water level threshold, it controls the water pump to stop executing the drainage task.

[0089] In some embodiments of the present application, the electronic device will generate condensed water into the water tank during operation, and the water level value of the water tank may again be greater than the first preset water level threshold. In order to ensure that the controller controls the water pump to perform the drainage task smoothly, the controller also needs to reset it back to the state where the water pump is not controlled to perform the de-trapped gas operation, that is, the value of the preset flag bit is reset to the first flag to ensure that the controller can normally control the water pump to perform the de-trapped gas operation before controlling the water pump to perform the drainage task. Therefore, after the controller controls the water pump to perform the drainage task, when it monitors that the water level value of the water tank is less than or equal to the second preset water level threshold, and controls the water pump to stop performing the drainage task, it also needs to reset the value of the preset flag bit to the first flag.

[0090] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0091] In one embodiment of the present application, a drainage control device 800 is provided. The functions that can be implemented by the drainage control device 800 correspond one-to-one to the drainage control method in the above embodiment. Figure 8 As shown, the drainage control device 800 includes a trapped air module 801 and a drainage module 802. The functional modules are described in detail as follows:

[0092] The trapped air module 801 is configured to control the water pump to perform a trapped air operation according to a preset trapped air strategy when the water level of the water storage tank is detected to be greater than a first preset water level threshold and the trapped air operation has not been performed. The trapped air operation is used to expel bubbles in the water pump;

[0093] The drainage module 802 is used to control the water pump to perform the drainage task after completing the trapped gas operation.

[0094] The escape air module 801 can be used to control the water pump to run intermittently for a preset number of escape times.

[0095] Among them, controlling the water pump to run intermittently for a preset number of escape times includes: controlling the water pump to run for a first preset time; detecting the operating current of the water pump; if the operating current of the water pump is greater than or equal to the preset pumping current, determining that the escape gas operation is completed; if the operating current of the water pump is less than the preset pumping current, controlling the water pump to stop running for a second preset time, and calculating the cumulative number of escape times; if the cumulative number of escape times is less than or equal to the preset number of escape times, returning to the step of controlling the water pump to run for the first preset time; if the cumulative number of escape times is greater than the preset number of escape times, determining that the escape gas operation is completed.

[0096] The detecting of the running current of the water pump includes: obtaining a sampling current of the water pump; and performing a first-order low-pass filtering process on the sampling current to obtain the running current of the water pump.

[0097] The drainage control device 800 is further configured to execute an alarm operation if the cumulative number of escapes is greater than a preset number of escapes, and the alarm operation includes at least sound and light alarms.

[0098] Among them, the drainage control device 800 is also used to collect the operating data of the water pump and send the operating data to the monitoring equipment if the cumulative number of escapes is greater than the preset number of escapes. The operating data at least includes the cumulative number of escapes and the operating current of the water pump.

[0099] The escape gas module 801 is specifically configured to control the water pump to perform an escape gas operation according to a preset escape gas strategy when the water level of the water storage tank is detected to be greater than a first preset water level threshold and the preset flag is a first flag. The first flag is used to indicate that the escape gas operation is not performed.

[0100] Correspondingly, the drainage control device 800 is further configured to set the preset mark position to a second mark after completing the trapped gas escape operation, and the second mark is configured to indicate that the trapped gas escape operation has been performed.

[0101] The drainage control device 800 is also used to stop the drainage task after controlling the water pump to perform the drainage task, and set the preset mark position to the first mark when the water level value of the water tank is monitored to be less than or equal to the second preset water level threshold, and the second preset water level threshold is less than the first preset water level threshold.

[0102] The specific definition of drainage control device 800 can be found in the definition of the drainage control method above and will not be repeated here. Each module in drainage control device 800 can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a controller within an electronic device in hardware form, or stored in memory within the electronic device in software form, allowing the controller to call and execute the corresponding operations of each module.

[0103] In one embodiment, an electronic device is provided, such as Figure 9As shown, the electronic device includes a controller, a memory, a water tank, and a water pump connected via a system bus. The controller of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a computer-readable storage medium and an internal memory. The computer-readable storage medium stores an operating system and computer-readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The network interface of the electronic device is used to communicate with an external server via a network connection. When the computer-readable instructions are executed by the controller, a drainage control method is implemented. The computer-readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0104] In one embodiment, an electronic device is provided, comprising a memory, a controller, a water tank, a water pump, and computer-readable instructions stored in the memory and executable on the controller. When the controller executes the computer-readable instructions, the following steps are implemented:

[0105] When the water level value of the water storage tank is monitored to be greater than the first preset water level threshold and the escape gas operation is not performed, the water pump is controlled to perform the escape gas operation according to the preset escape gas strategy, and the escape gas operation is used to discharge bubbles in the water pump;

[0106] After completing the trapped gas operation, control the water pump to perform the drainage task.

[0107] In one embodiment, a computer-readable storage medium storing computer-readable instructions is provided. The computer-readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium. The computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by one or more controllers, the following steps are implemented:

[0108] When the water level value of the water storage tank is monitored to be greater than the first preset water level threshold and the escape gas operation is not performed, the water pump is controlled to perform the escape gas operation according to the preset escape gas strategy, and the escape gas operation is used to discharge bubbles in the water pump;

[0109] After completing the trapped gas operation, control the water pump to perform the drainage task.

[0110] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0111] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A drainage control method, characterized in that: The drainage control method comprises: When it is monitored that the water level value of the water storage tank is greater than the first preset water level threshold value, and the preset flag is the first flag, the water pump is controlled to perform the trapped air operation according to the preset trapped air strategy, and the first flag is used to indicate that the trapped air operation is not performed. The trapped air operation is used to discharge bubbles in the water pump. The method of controlling the water pump to perform the trapped air operation according to the preset trapped air strategy includes: controlling the water pump to intermittently run a preset number of trapped times; controlling the water pump to intermittently run a preset number of trapped times, including: controlling the water pump to run for a first preset time; detecting the running current of the water pump; if the running current of the water pump is greater than or equal to the preset pumping current, determining that the trapped air operation is completed; if the running current of the water pump is less than the preset pumping current, controlling the water pump to stop running for a second preset time, and calculating the cumulative number of trapped times; if the cumulative number of trapped times is less than or equal to the preset number of trapped times, returning to the step of controlling the water pump to run for the first preset time; if the cumulative number of trapped times is greater than the preset number of trapped times, determining that the trapped air operation is completed; After the trapped gas operation is completed, the water pump is controlled to perform a drainage task, and the preset mark is positioned as a second mark, where the second mark is used to indicate that the trapped gas operation has been performed.

2. The drainage control method according to claim 1, wherein: The detecting the operating current of the water pump includes: Obtaining a sampled current of the water pump; The sampled current is subjected to a first-order low-pass filtering process to obtain the operating current of the water pump.

3. The drainage control method according to claim 1, wherein: The method further comprises: If the accumulated escape times are greater than the preset escape times, a warning operation is performed, and the warning operation at least includes sound and light warning.

4. The drainage control method according to claim 1, wherein: The method further comprises: If the cumulative number of escapes is greater than the preset number of escapes, the operating data of the water pump is collected and sent to a monitoring device, where the operating data at least includes the cumulative number of escapes and the operating current of the water pump.

5. The drainage control method according to claim 4, characterized in that: After controlling the water pump to perform the drainage task, the method further includes: When it is monitored that the water level value of the water tank is less than or equal to the second preset water level threshold, the drainage task is stopped, the preset mark position is set to the first mark, and the second preset water level threshold is less than the first preset water level threshold.

6. An electronic device, characterized in that: The electronic device includes a memory, a controller, a water tank and a water pump. The controller is used to execute computer-readable instructions stored in the memory to implement the drainage control method according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the controller, the drainage control method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Automatic drainage control system of air compressor

    CN105020125A

  • Exhaust control method of water pump, movable equipment, spraying device and storage medium

    CN112166252A