A method, device and computer-readable medium for controlling water accumulation and drainage

By refining battery status judgment and power supply control, the safety and power consumption issues of the drainage device during a city power outage are solved, and the safety protection of the equipment and the extension of the standby time are achieved.

CN120389503BActive Publication Date: 2025-09-19XIAMEN HEDEMAN ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510887001.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-19
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

The existing drainage device cannot work when the mains power is off, and the backup battery power supply solution is easy to damage the inverter or sewage pump. In addition, the inverter consumes a lot of power when it is unloaded, which reduces the standby time of the power supply control device.

Method used

By pre-defining multi-level threshold ranges for battery voltage, combined with water level data and AC input status, the battery status judgment is refined. The battery inverter power supply is only turned on when drainage is required, and the power consumption of the inverter is turned off when it is unloaded. This avoids rapid switching of battery status, protects equipment, and extends standby time.

Benefits of technology

It improves the safety of the equipment and reduces the power consumption during power outages, prolongs the standby time, protects the inverter and battery, and ensures the reliability of the drainage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120389503B_ABST
    Figure CN120389503B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and computer-readable medium for controlling water accumulation and drainage, wherein the method is applied to a drainage control device, including predefining a multi-level threshold interval for battery voltage; obtaining data on the presence or absence of AC input and water level data, and periodically obtaining battery voltage data; based on the multi-level threshold interval for battery voltage into which the battery voltage data of the current cycle falls and the stored battery status of the previous cycle, when the battery status of the previous cycle meets the target battery status, confirming the battery status of the current cycle and storing the battery status of the current cycle; when drainage is required, switching between battery inverter power supply and AC power supply is performed according to the AC input situation and the battery status of the current cycle. The method for controlling water accumulation and drainage disclosed by the present invention improves the safety of batteries, loads and control devices, as well as the standby time of the control device, and avoids equipment abnormalities caused by repeated switching between battery states.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of drainage control, and in particular to a method and device for controlling accumulated water drainage, and a computer-readable medium. Background Art

[0002] Newer residential homes with basements often have one or more built-in sump pits to collect water that accumulates around the foundation. A sump pump is often installed in the sump pit to remove the accumulated water. This sump pump is typically powered by the home's electrical system via utility power. When powered by utility power, the drainage system can remove the water promptly, preventing the accumulation of water and the resulting overflow.

[0003] However, electric-controlled drainage systems powered by mains electricity cannot operate during a mains power outage. This prevents the drainage of accumulated water, causing it to rise further and potentially overflow. Therefore, existing drainage devices incorporate a backup battery that can be used to power the sewage pump during a power outage. However, existing solutions that utilize a backup battery to power sewage pumps typically switch to inverter operation after a mains power outage, keeping the inverter (which converts the DC battery into AC power for the load) powered on to facilitate subsequent drainage control. This control method fails to tailor battery power to the actual battery state, potentially damaging the device and the load (the sewage pump). For example, forcing the battery-powered inverter to operate when the battery is overvoltage can damage the inverter. Powering the load (the sewage pump) when the battery is undervoltage can damage the load and reduce its service life. Furthermore, the inverter consumes significant power when unloaded, significantly draining the battery and reducing the standby time of the power supply control device. Summary of the Invention

[0004] To solve the above technical problems, the present invention provides a method, device, and computer-readable medium for controlling accumulated water drainage. The method is applied to a drainage control device, which switches between mains power supply and battery inverter power supply to drive the drainage device to start drainage. The method comprises the following steps:

[0005] Predefine multiple threshold intervals for battery voltage, where each threshold interval corresponds to a different battery state;

[0006] Obtain the presence of mains input data and water level data, and periodically obtain battery voltage data;

[0007] Battery status judgment:

[0008] Get the battery voltage data of the current cycle;

[0009] Recall the predefined battery voltage multi-level threshold interval and the stored battery status of the previous cycle;

[0010] According to the threshold range that the battery voltage value of the current cycle falls into, the battery status of the current cycle is confirmed.

[0011] Alternatively, based on the threshold interval within which the battery voltage value of the current cycle falls, and when the battery state of the previous cycle meets the target battery state, the battery state of the current cycle is confirmed and the battery state of the current cycle is stored;

[0012] Drainage power supply output control:

[0013] When it is determined based on the water level data that drainage is required and there is mains power input, the mains power supply is turned on to drive the drainage device, and the battery status of the current cycle is used to determine whether to charge the battery;

[0014] When it is determined according to the water level data that drainage is required and there is no mains input, if the battery status of the current cycle meets the preset output battery status, the battery inverter power supply is turned on to drive the drainage device, otherwise, the battery inverter power supply is turned off.

[0015] Preferably, the multi-level threshold intervals include at least a severe undervoltage interval, an undervoltage interval, a low voltage interval, a recovery voltage interval, a normal voltage interval, and an overvoltage interval, and the corresponding battery states are a severe undervoltage state, an undervoltage state, a low voltage state, a recovery voltage state, a normal voltage state, and an overvoltage state, respectively. The confirmation condition set for each battery state is as follows:

[0016] Severe undervoltage state: the battery voltage value of the current cycle is less than the first set voltage value;

[0017] Undervoltage state: The first set voltage value < the battery voltage value of the current cycle < the second set voltage value, and the battery state in the previous cycle was not in a serious undervoltage state;

[0018] Low voltage state: The second set voltage value < the battery voltage value of the current cycle < the third set voltage value, and the battery state in the previous cycle was not undervoltage state or severe undervoltage state;

[0019] Recovering voltage status: the battery voltage value of the current cycle is greater than the fourth set voltage value, and the battery status of the previous cycle is one of low voltage state, undervoltage state or severe undervoltage state;

[0020] Normal voltage state: the third set voltage value < the battery voltage value of the current cycle < the fifth set voltage value, and the battery state in the previous cycle was one of the overvoltage state and the recovery voltage state;

[0021] Overvoltage state: the battery voltage value of the current cycle is greater than the fifth set voltage value;

[0022] If the battery voltage value of the current cycle is equal to the critical value or does not meet the above battery status condition set, the current battery status is the battery status of the previous cycle;

[0023] Among them, the first set voltage value<the second set voltage value<the third set voltage value<the fourth set voltage value<the fifth set voltage value.

[0024] Preferably, in the drainage power supply output control, the preset outputtable battery states are low voltage state and normal voltage state.

[0025] Preferably, the drainage power supply output control further includes:

[0026] When the battery is in a severely undervoltage state, the system will enter the battery sleep mode. When in sleep mode, the system will wake up and detect the battery voltage and AC input according to the set wake-up cycle.

[0027] Preferably, in the drainage power supply output control, the method for determining whether drainage is required based on water level data is as follows:

[0028] Water level detection:

[0029] Two water level sensors are set in the area where drainage is required, with a height difference between the water level sensors; the water level sensor at the higher position is the high water level sensor, and the other one is the low water level sensor;

[0030] When the low water level sensor does not detect water and the high water level sensor does not detect water, the current water level is determined to be a low water level;

[0031] When the low water level sensor detects water and the high water level sensor does not detect water, the current water level is determined to be a medium water level;

[0032] When the low water level sensor detects water and the high water level sensor detects water, the current water level is determined to be a high water level;

[0033] When the water level detection result is high, it is determined that drainage is necessary and a drainage output request is triggered;

[0034] When the water level detection result is a low water level, it is determined that drainage is not necessary, and a stop drainage output request is triggered.

[0035] Preferably, the water level detection further includes:

[0036] When the low water level sensor does not detect water and the high water level sensor detects water, it is judged as a sensor error.

[0037] Preferably, the drainage control device is further provided with a normally open mode and a normally closed mode;

[0038] In the normally open mode, the drainage power supply output control stage will always send the drainage output demand;

[0039] In the normally closed mode, the drainage power supply output control stage will always close the drainage output demand.

[0040] The present invention further provides a water accumulation drainage control device, which adopts any of the above-mentioned water accumulation drainage control methods, including:

[0041] a storage unit, configured to store predefined battery voltage multi-level threshold intervals and battery states, wherein each threshold interval corresponds to a different battery state;

[0042] Mains power detection module, used to obtain data on whether there is mains power input;

[0043] Water level detection module, used to obtain water level data;

[0044] Battery voltage detection module, used to periodically obtain battery voltage data;

[0045] Battery status judgment module, used for:

[0046] Get the battery voltage data of the current cycle;

[0047] Recalling the predefined battery voltage multi-level threshold interval and the battery status of the previous cycle stored in the storage unit;

[0048] According to the threshold range that the battery voltage value of the current cycle falls into, the battery status of the current cycle is confirmed.

[0049] Alternatively, based on the threshold interval within which the battery voltage value of the current cycle falls, and when the battery state of the previous cycle meets the target battery state, the battery state of the current cycle is confirmed; the confirmed battery state of the current cycle is stored in a storage unit; and the control execution module is used to:

[0050] When it is determined that drainage is required based on the water level data obtained by the water level detection module and the mains power detection module indicates that mains power is input, the mains power supply is turned on to drive the drainage device, and the battery status of the current cycle obtained by the battery status judgment module is used to determine whether the battery should be charged;

[0051] When it is determined that drainage is required based on the water level data obtained by the water level detection module and the AC power detection module indicates that there is no AC power input, if the battery status of the current cycle obtained by the battery status judgment module meets the preset output battery status, the battery inverter power supply is turned on to drive the drainage device; otherwise, the battery inverter power supply is turned off.

[0052] The present invention also provides a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, any of the above-described methods for controlling accumulated water and drainage is implemented.

[0053] The water drainage control method provided by the present invention significantly improves the safety of the device during use by combining multi-level battery voltage detection with a specific output control method. It also avoids the phenomenon of repeated and rapid switching between multiple battery states during battery status detection, which can cause device abnormalities. Furthermore, the water drainage control method provided by the present invention activates the inverter function only when battery power is supplied and drainage is required, significantly reducing the device's standby power consumption. Under the condition of a power outage with the same battery capacity, the device using the present invention can significantly extend its standby time.

[0054] The accumulated water drainage control device using the accumulated water drainage control method provided by the present invention has good safety, low power consumption during power failure, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A flow chart of a method for controlling accumulated water and draining water provided in an embodiment of the present invention;

[0056] Figure 2 Select the schematic diagram for the mode;

[0057] Figure 3 This is a flow chart for determining the battery status;

[0058] Figure 4 This is a schematic diagram of water level detection;

[0059] Figure 5 Output control flow chart;

[0060] Figure 6 This is the low power mode flow chart. DETAILED DESCRIPTION

[0061] In order to make the technical means, creative features, objectives and effects achieved by the present invention easier to understand, the present invention is further described below in conjunction with specific examples. However, the following examples are only preferred embodiments of the present invention, not all of them. Based on the examples in the implementation manner, other embodiments obtained by those skilled in the art without making any creative work are within the scope of protection of the present invention. The experimental methods in the following examples are conventional methods unless otherwise specified. The materials, reagents, etc. used in the following examples are all commercially available unless otherwise specified.

[0062] In the description of the present invention, it should be noted that the terms "upper," "lower," "inner," "outer," "front end," "rear end," "both ends," "one end," "the other end," and the like, indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0063] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "provided with," "connected," etc., should be understood in a broad sense. For example, "connected" may refer to a fixed connection, a detachable connection, or an integral connection; it may refer to a mechanical connection or an electrical connection; it may refer to a direct connection or an indirect connection through an intermediate medium; it may refer to internal communication between two components. Those skilled in the art will be able to understand the specific meanings of the above terms in the present invention in specific circumstances.

[0064] In addition, the accompanying drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0065] like Figure 1 As shown, an embodiment of the present invention provides a method, device, and computer-readable medium for controlling accumulated water drainage. The method is applied to a drainage control device, which switches between mains power supply and battery inverter power supply to drive the drainage device to start drainage. The method steps include:

[0066] Predefine multiple threshold intervals for battery voltage, where each threshold interval corresponds to a different battery state;

[0067] Obtain the presence of mains input data and water level data, and periodically obtain battery voltage data;

[0068] Battery status judgment:

[0069] Get the battery voltage data of the current cycle;

[0070] Recall the predefined battery voltage multi-level threshold interval and the stored battery status of the previous cycle;

[0071] According to the threshold range that the battery voltage value of the current cycle falls into, the battery status of the current cycle is confirmed.

[0072] Alternatively, based on the threshold interval within which the battery voltage value of the current cycle falls, and when the battery state of the previous cycle meets the target battery state, the battery state of the current cycle is confirmed and the battery state of the current cycle is stored;

[0073] Drainage power supply output control:

[0074] When it is determined based on the water level data that drainage is required and there is mains power input, the mains power supply is turned on to drive the drainage device, and the battery status of the current cycle is used to determine whether to charge the battery;

[0075] When it is determined according to the water level data that drainage is required and there is no mains input, if the battery status of the current cycle meets the preset output battery status, the battery inverter power supply is turned on to drive the drainage device, otherwise, the battery inverter power supply is turned off.

[0076] In specific implementation, the drainage control device is provided with a normally open mode, a normally closed mode and an automatic mode.

[0077] When the drainage control device is turned on, it will first read the operating status stored in the FLASH when it was last turned off, and use it as the initial operating status when it is turned on this time. Figure 2 The user can switch between the three modes of automatic, normally open, and normally closed by pressing the button. Under normal circumstances (normal battery voltage and normal equipment), when the user uses the automatic mode: the drainage control device will control the power supply drainage device (water pump) according to the water level data, the presence of mains input and the battery voltage data;

[0078] In the normally open mode: switch the inverter or mains power supply according to the mains power status to ensure the normal power supply of the drainage device;

[0079] In the normally closed mode: all power supply to the drainage device will be cut off, which is used for users to shut down the device when conducting inspections to ensure safety during inspections.

[0080] In automatic mode:

[0081] predefined multiple battery voltage threshold intervals, where each threshold interval corresponds to a different battery state, wherein the multiple threshold intervals include at least a severe undervoltage interval, an undervoltage interval, a low voltage interval, a recovery voltage interval, a normal voltage interval, and an overvoltage interval, and the corresponding battery states are severe undervoltage, undervoltage, low voltage, recovery voltage, normal voltage, and overvoltage, respectively;

[0082] Obtain the presence of mains input data and water level data, and periodically obtain battery voltage data. The battery voltage detection period (1S ≤ detection period ≤ 3S) can be set according to actual conditions, including but not limited to setting it to 1S. If the detected battery voltage value within the detection period is greater than a certain battery voltage threshold range, the current battery status is determined to be the battery status represented by the threshold range. For example, if the detected battery voltage value is greater than 15V for 1 consecutive second, the current battery status is determined to be overvoltage. By setting the detection period, the judgment is prevented from being affected by battery voltage fluctuations or sampling distortion, thereby improving the accuracy of battery voltage detection;

[0083] Current battery status judgment (such as Figure 3 shown):

[0084] Get the battery voltage data of the current cycle;

[0085] Recall the predefined battery voltage multi-level threshold interval and the stored battery status of the previous cycle;

[0086] According to the threshold range that the battery voltage value of the current cycle falls into, the battery status of the current cycle is confirmed.

[0087] Alternatively, based on the threshold interval within which the battery voltage value of the current cycle falls, and when the battery status of the previous cycle meets the target battery status, the battery status of the current cycle is confirmed and stored. Specifically, the confirmation of each battery status needs to meet the following set of conditions to be valid:

[0088] Severe undervoltage state: the battery voltage value of the current cycle is less than the first set voltage value;

[0089] Undervoltage state: The first set voltage value < the battery voltage value of the current cycle < the second set voltage value, and the battery state in the previous cycle was not in a serious undervoltage state;

[0090] Low voltage state: The second set voltage value < the battery voltage value of the current cycle < the third set voltage value, and the battery state in the previous cycle was not undervoltage state or severe undervoltage state;

[0091] Recovering voltage status: the battery voltage value of the current cycle is greater than the fourth set voltage value, and the battery status of the previous cycle is one of low voltage state, undervoltage state or severe undervoltage state;

[0092] Normal voltage state: the third set voltage value < the battery voltage value of the current cycle < the fifth set voltage value, and the battery state in the previous cycle was one of the overvoltage state and the recovery voltage state;

[0093] Overvoltage state: the battery voltage value of the current cycle is greater than the fifth set voltage value;

[0094] Among them, the first set voltage value < the second set voltage value < the third set voltage value < the fourth set voltage value < the fifth set voltage value. The specific values ​​of the first set voltage value, the second set voltage value, the third set voltage value, the fourth set voltage value, and the fifth set voltage value can be set according to the actual battery used. For example, the first set voltage value is 10V; the second set voltage value is 10.4V; the third set voltage value is 11.4V; the fourth set voltage value is 12.4V; and the fifth set voltage value is 15V, but it is not limited to this.

[0095] The above-mentioned battery must meet the above-mentioned conditions to enter a certain state. When the battery sampling voltage in a certain sampling cycle is equal to a certain critical value or does not meet any of the above-mentioned battery state condition sets, the current battery state will inherit the battery state of the previous cycle, thereby avoiding the situation where the battery state is unclear.

[0096] The conditional setting of the battery status of the previous cycle provided in this embodiment is intended to prevent the battery status from repeatedly switching between two or more states. The condition set aggregates multiple judgment conditions together, and the lack of a condition can cause anomalies in some cases. For example, since the battery voltage fluctuates when the battery is loaded and unloaded (the battery voltage may drop by about 1-2V), if the battery status of the current cycle is low voltage when the control device is unloaded (i.e., the water pump is not supplying power to the load), the battery voltage drops after the device is loaded. The battery voltage meets the voltage setting conditions for the undervoltage state and also meets the condition set for the undervoltage battery state, and the battery status switches to the battery undervoltage state. At this time, the control device will shut down the power output, and the battery voltage will rebound. The rebounded voltage meets the battery voltage judgment conditions for the low voltage state, but the battery status of the previous cycle does not meet the conditions, which can prevent the battery status from switching to the low voltage state again. Therefore, although the voltage after rebound does not meet the judgment conditions for the undervoltage state, it cannot switch to other states. The battery status at this time will remain in the undervoltage state, which can prevent the battery status from switching repeatedly and rapidly, thereby avoiding abnormal on and off phenomena of the load (water pump).

[0097] Drainage power supply output control (such as Figure 5 shown):

[0098] When drainage is required based on the water level data, output control is performed based on the battery voltage status confirmed above. The control conditions are as follows:

[0099] When the battery is severely undervoltage, the system checks whether there is AC power. If there is AC power, the inverter output is turned off, the AC output is turned on, the battery AC charging input is turned on, and the buzzer is turned off. If there is no AC power, the inverter output, the AC output, the battery AC charging input, and the buzzer are turned off, and a battery sleep request is generated. In this step, when the battery is severely undervoltage, the battery health is already very poor. At this time, the alarm is turned off and the device enters low power mode (equivalent to the shutdown state) to reduce the battery power output, reduce battery power consumption, and ensure battery health as much as possible.

[0100] When the battery is in an undervoltage state, it determines whether there is mains power. If there is mains power, the inverter output is turned off, the mains output is turned on, the battery mains charging input is turned on, and the buzzer is turned off. If there is no mains power, the inverter output, the mains output, the battery mains charging input are turned off, and the buzzer is turned on.

[0101] When the battery is in a low voltage state: determine whether there is AC power. If there is AC power, turn off the inverter output, turn on the AC output, turn on the battery AC charging input, and turn off the buzzer; if there is no AC power, turn on the inverter output, turn off the AC output, turn off the battery AC charging input, and turn on the buzzer. Since the low voltage state has not reached the undervoltage state, it can output normally with load, and the low voltage output will not have much impact on the health of the battery.

[0102] When the battery is in the recovery voltage state, no control is performed. The recovery voltage state is a transition state in which the battery transitions from low voltage, undervoltage, or severe undervoltage to normal voltage. No output control is performed in this stage.

[0103] When the battery is in a normal voltage state, it determines whether there is mains power. If there is mains power, the inverter output is turned off, the mains output is turned on, the battery mains charging input is turned on, and the buzzer is turned off. If there is no mains power, the inverter output is turned on, the mains output is turned off, the battery mains charging input is turned off, and the buzzer is turned off.

[0104] In an overvoltage state, the inverter output, mains output, battery mains charging input, and buzzer are turned on. Enabling the inverter when the battery is overvoltage may damage the inverter. Furthermore, in the event of battery overvoltage, undervoltage, or severe undervoltage, the device will ignore output requests. Even if the mains power is off, the device will not supply power to the load. This prioritizes device and battery safety over operational priorities, ensuring device and battery safety and reducing or preventing safety incidents.

[0105] The above-mentioned inverter output refers to inverting the DC voltage of the battery into AC power that can power the drainage device (water pump). This is an existing technology in the art and will not be described in detail here.

[0106] In the above output control, the primary purpose of multi-level voltage status detection is to ensure equipment safety, as follows:

[0107] a. Forcibly turning on the inverter when the battery is over-voltage may cause irreversible damage to the inverter.

[0108] b. When the battery is undervoltage, if it still outputs normally, a high-power load such as a water pump will damage the battery.

[0109] c. When the battery is severely undervoltage, the battery condition is very poor. The MCU is controlled to enter low power mode and turn off the output to minimize the battery output to prevent complete damage to the battery.

[0110] In addition, in the control method provided in this embodiment, the battery inverter is turned on only when drainage is required. If drainage is not required at present, the inverter is disconnected. Especially in the case of a city power outage, this control method can avoid the no-load consumption of the inverter, thereby greatly extending the standby time of the control device.

[0111] The water accumulation drainage control method provided by the embodiment of the present invention, through the above-mentioned multi-level voltage detection, refines the granularity of output control, improves the protection of equipment, inverters, batteries, etc., and enhances safety performance. By combining multi-level voltage detection with the battery status of the previous cycle to determine the battery status of the current cycle, it can avoid the problem of repeated and rapid switching between multiple states when the battery voltage fluctuates, which may cause some abnormal behavior of the equipment.

[0112] In addition, most related products on the market switch to inverter operation after a power outage. In the embodiments of the present invention, the inverter function is activated only when the battery is powered and drainage is required, which can significantly reduce the standby power consumption of the device. Under the condition of the same battery capacity and the mains power outage, the control method of the embodiment of the present invention can significantly extend the standby time of the control device.

[0113] The operating logic of the above low power mode is as follows:

[0114] like Figure 6As shown, when the battery is severely undervoltage (battery voltage <10V) and there is no mains input, the device enters low-power mode, shutting down all outputs to reduce energy loss. The device wakes up every set wake-up period (set according to actual conditions) to check the battery voltage and mains input. Low-power mode is exited only when mains input is present or the battery voltage exceeds 12.4V (i.e., the battery voltage meets the voltage recovery criteria). The wake-up period can be set to 8 seconds, and this wake-up is achieved through the MCU's watchdog module (this is prior art and will not be further described here). During normal operation, the MCU in the control module maintains a maximum watchdog timer of 64ms. If the MCU does not clear the watchdog timer within 64ms, it will reset and restart to prevent unexpected freezes. Before entering low-power mode, the watchdog timer is set to 8 seconds. If the watchdog timer is not cleared within 8 seconds during low-power mode, the MCU will wake up and resume normal operation. After waking up, the MCU will check the mains input and battery voltage. If the device still does not meet operating conditions, it will enter low-power mode again. In this step, when the battery is severely undervoltage, the battery health status is already very poor. At this time, turning off the alarm and entering low-power mode is to reduce the battery power output, reduce battery power consumption, and ensure battery health as much as possible. In this step, the wake-up period is set to 6S-9S. On the one hand, it avoids the problem of the MCU being frequently woken up due to the wake-up time being set too short, because each wake-up will increase power consumption in a short period of time, which will increase battery power consumption. On the other hand, it avoids setting the wake-up time too long. When the external conditions meet the operating conditions, the delay in the MCU being awakened and working normally will be very long, affecting the user experience.

[0115] When implementing it specifically, Figure 4 In the drainage power supply output control, the method for judging whether drainage is required based on water level data is as follows:

[0116] Water level detection:

[0117] Two water level sensors are set in the area where drainage is required, with a height difference between the water level sensors; the water level sensor at the higher position is the high water level sensor, and the other one is the low water level sensor. The height position of the high water level sensor is the "liquid level height at which drainage is desired to be started" set by the user, and the height position of the low water level sensor is the "liquid level height at which the pump is desired to be stopped" set by the user.

[0118] When the low water level sensor does not detect water and the high water level sensor does not detect water, the current water level is determined to be a low water level;

[0119] When the low water level sensor detects water and the high water level sensor does not detect water, the current water level is determined to be a medium water level;

[0120] When the low water level sensor detects water and the high water level sensor detects water, the current water level is determined to be a high water level;

[0121] When the water level detection result is high, drainage is determined to be necessary, triggering a drain output request. During the drainage process (i.e., when the water level drops to the mid-level), drainage is still determined to be necessary until the water level detection result is low, at which point drainage is determined to be unnecessary and the drain output request is stopped. Furthermore, if the water level is detected at mid-level during power-up, the MCU defaults to a rising process and does not initiate drainage control.

[0122] Under normal circumstances, the low water level sensor should detect water first, followed by the high water level sensor. Under certain test conditions, the high water level sensor may detect water first, which means that the water level is installed in the wrong position, triggering a buzzer and / or flashing light warning to alert the user.

[0123] In the above water level detection method, the water level is confirmed by two sensors, which improves the detection accuracy and reduces the occurrence of false detection.

[0124] The present invention further provides a water accumulation drainage control device, which adopts any of the above-mentioned water accumulation drainage control methods, including:

[0125] a storage unit, configured to store predefined battery voltage multi-level threshold intervals and battery states, wherein each threshold interval corresponds to a different battery state;

[0126] Mains power detection module, used to obtain data on whether there is mains power input;

[0127] Water level detection module, used to obtain water level data;

[0128] Battery voltage detection module, used to periodically obtain battery voltage data;

[0129] Battery status judgment module, used for:

[0130] Get the battery voltage data of the current cycle;

[0131] Recalling the predefined battery voltage multi-level threshold interval and the battery status of the previous cycle stored in the storage unit;

[0132] According to the threshold range that the battery voltage value of the current cycle falls into, the battery status of the current cycle is confirmed.

[0133] Alternatively, according to the threshold interval into which the battery voltage value of the current cycle falls, and when the battery state of the previous cycle meets the target battery state, the battery state of the current cycle is confirmed; and the confirmed battery state of the current cycle is stored in a storage unit;

[0134] Control execution module, used to:

[0135] When it is determined that drainage is required based on the water level data obtained by the water level detection module and the mains power detection module indicates that mains power is input, the mains power supply is turned on to drive the drainage device, and the battery status of the current cycle obtained by the battery status judgment module is used to determine whether the battery should be charged;

[0136] When it is determined that drainage is required based on the water level data obtained by the water level detection module and the AC power detection module indicates that there is no AC power input, if the battery status of the current cycle obtained by the battery status judgment module meets the preset output battery status, the battery inverter power supply is turned on to drive the drainage device; otherwise, the battery inverter power supply is turned off.

[0137] The present invention also provides a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, any of the above-described methods for controlling accumulated water and drainage is implemented.

[0138] This embodiment provides a computer-readable storage medium storing a program product capable of implementing the methods described above. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product comprising program code that, when executed on a terminal device, causes the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.

[0139] A program product for implementing the above-described method according to an embodiment of the present invention is described. The program product may be a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer or a control device. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component.

[0140] The program product may utilize any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0141] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, device, or apparatus.

[0142] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0143] Program code for performing the operations of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0144] It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0145] Furthermore, although the steps of the method of the present disclosure are described in a particular order in the accompanying drawings, this does not require or imply that the steps must be performed in this particular order, or that all steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0146] Through the description of the above embodiments, it will be readily understood by those skilled in the art that the example embodiments described herein can be implemented via software or via a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure 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, or mobile hard drive) or on a network and includes several instructions for enabling a computing device (such as a personal computer, server, mobile terminal, or network device) to execute the methods according to the embodiments of the present disclosure.

[0147] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.

Claims

1. A method for controlling the drainage of accumulated water, characterized in that: Applied to a drainage control device, the drainage control device switches between mains power supply or battery inverter power supply to drive the drainage device to start drainage, and the method steps include: Predefine multiple threshold intervals for battery voltage, where each threshold interval corresponds to a different battery state; Obtain the presence of mains input data and water level data, and periodically obtain battery voltage data; Battery status judgment: Get the battery voltage data of the current cycle; Calling a predefined battery voltage multi-level threshold interval and the stored battery status of the previous cycle to confirm the battery status of the current cycle; Drainage power supply output control: When it is determined based on the water level data that drainage is required and there is mains power input, the mains power supply is turned on to drive the drainage device, and the battery status of the current cycle is used to determine whether to charge the battery; When it is determined based on the water level data that drainage is required and there is no mains input, if the battery status of the current cycle meets the preset output battery status, the battery inverter power supply is turned on to drive the drainage device; otherwise, the battery inverter power supply is turned off; The multi-level threshold intervals include at least a severe undervoltage interval, an undervoltage interval, a low voltage interval, a recovery voltage interval, a normal voltage interval, and an overvoltage interval, and the corresponding battery states are a severe undervoltage state, an undervoltage state, a low voltage state, a recovery voltage state, a normal voltage state, and an overvoltage state, respectively. The confirmation condition set for each battery state is as follows: Severe undervoltage state: the battery voltage value of the current cycle is less than the first set voltage value; Undervoltage state: The first set voltage value < the battery voltage value of the current cycle < the second set voltage value, and the battery state in the previous cycle was not in a serious undervoltage state; Low voltage state: The second set voltage value < the battery voltage value of the current cycle < the third set voltage value, and the battery state in the previous cycle was not undervoltage state or severe undervoltage state; Recovering voltage status: the battery voltage value of the current cycle is greater than the fourth set voltage value, and the battery status of the previous cycle is one of low voltage state, undervoltage state or severe undervoltage state; Normal voltage state: the third set voltage value < the battery voltage value of the current cycle < the fifth set voltage value, and the battery state in the previous cycle was one of the overvoltage state and the recovery voltage state; Overvoltage state: the battery voltage value of the current cycle is greater than the fifth set voltage value; If the battery voltage value of the current cycle is equal to the critical value or does not meet the above battery status condition set, the current battery status is the battery status of the previous cycle; Among them, the first set voltage value<the second set voltage value<the third set voltage value<the fourth set voltage value<the fifth set voltage value.

2. The method for controlling the drainage of accumulated water according to claim 1, wherein: In the drainage power supply output control, the preset outputtable battery states are low voltage state and normal voltage state.

3. The method for controlling the drainage of accumulated water according to claim 1, wherein: The drainage power supply output control further includes: When the battery is in a severely undervoltage state, the system will enter the battery sleep mode. When in sleep mode, the system will wake up and detect the battery voltage and AC input according to the set wake-up cycle.

4. The method for controlling the drainage of accumulated water according to any one of claims 1 to 3, characterized in that: In the drainage power supply output control, the method for determining whether drainage is required based on water level data is as follows: Water level detection: Two water level sensors are set in the area where drainage is required, with a height difference between the water level sensors; the water level sensor at the higher position is the high water level sensor, and the other one is the low water level sensor; When the low water level sensor does not detect water and the high water level sensor does not detect water, the current water level is determined to be a low water level; When the low water level sensor detects water and the high water level sensor does not detect water, the current water level is determined to be a medium water level; When the low water level sensor detects water and the high water level sensor detects water, the current water level is determined to be a high water level; When the water level detection result is high, it is determined that drainage is necessary and a drainage output request is triggered; When the water level detection result is a low water level, it is determined that drainage is not necessary, and a stop drainage output request is triggered.

5. The method for controlling the drainage of accumulated water according to claim 4, wherein: The water level detection also includes: When the low water level sensor does not detect water and the high water level sensor detects water, it is judged as a sensor error.

6. The method for controlling the drainage of accumulated water according to claim 1, wherein: The drainage control device is also provided with a normally open mode and a normally closed mode; In the normally open mode, the drainage output demand will be sent continuously during the drainage power supply output control phase; In the normally closed mode, the drainage output demand will be closed during the drainage power supply output control stage.

7. A water drainage control device, characterized in that: The method for controlling accumulated water drainage according to any one of claims 1 to 6 comprises: a storage unit, configured to store predefined battery voltage multi-level threshold intervals and battery states, wherein each threshold interval corresponds to a different battery state; Mains power detection module, used to obtain data on whether there is mains power input; Water level detection module, used to obtain water level data; Battery voltage detection module, used to periodically obtain battery voltage data; Battery status judgment module, used for: Get the battery voltage data of the current cycle; Recalling the predefined battery voltage multi-level threshold interval and the stored battery status of the previous cycle in the storage unit to confirm the battery status of the current cycle; Control execution module, used to: When it is determined that drainage is required based on the water level data obtained by the water level detection module and the mains power detection module indicates that mains power is input, the mains power supply is turned on to drive the drainage device, and the battery status of the current cycle obtained by the battery status judgment module is used to determine whether the battery should be charged; When it is determined that drainage is required based on the water level data obtained by the water level detection module and the mains power detection module indicates that there is no mains power input, if the battery status of the current cycle obtained by the battery status judgment module meets the preset output battery status, the battery inverter power supply is turned on to drive the drainage device; otherwise, the battery inverter power supply is turned off; The multi-level threshold intervals include at least a severe undervoltage interval, an undervoltage interval, a low voltage interval, a recovery voltage interval, a normal voltage interval, and an overvoltage interval, and the corresponding battery states are a severe undervoltage state, an undervoltage state, a low voltage state, a recovery voltage state, a normal voltage state, and an overvoltage state, respectively. The confirmation condition set for each battery state is as follows: Severe undervoltage state: the battery voltage value of the current cycle is less than the first set voltage value; Undervoltage state: The first set voltage value < the battery voltage value of the current cycle < the second set voltage value, and the battery state in the previous cycle was not in a serious undervoltage state; Low voltage state: The second set voltage value < the battery voltage value of the current cycle < the third set voltage value, and the battery state in the previous cycle was not undervoltage state or severe undervoltage state; Recovering voltage status: the battery voltage value of the current cycle is greater than the fourth set voltage value, and the battery status of the previous cycle is one of low voltage state, undervoltage state or severe undervoltage state; Normal voltage state: the third set voltage value < the battery voltage value of the current cycle < the fifth set voltage value, and the battery state in the previous cycle was one of the overvoltage state and the recovery voltage state; Overvoltage state: the battery voltage value of the current cycle is greater than the fifth set voltage value; If the battery voltage value of the current cycle is equal to the critical value or does not meet the above battery status condition set, the current battery status is the battery status of the previous cycle; Among them, the first set voltage value<the second set voltage value<the third set voltage value<the fourth set voltage value<the fifth set voltage value.

8. A computer-readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the accumulated water drainage control method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Improved bottom pit simple lifting parking equipment

    CN108915324A

  • A hierarchical power limit protection method in a battery management system

    CN109167108A