Accumulated water drainage control method and device and computer readable medium
By refining battery status judgment and power supply control, the safety and power consumption problems of existing drainage devices during power outages are solved, and the safety of equipment and standby time are improved.
Patent Information
- Application Number
- CN202510887001.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2045-06-30
AI Technical Summary
The existing drainage device cannot work when the mains power is outage, and the backup battery power supply scheme cannot be controlled according to the actual state of the battery, which can easily damage the inverter or load, and the inverter consumes a large power consumption when it is no-load, reducing the standby time of the power supply control device.
By predefined multi-stage threshold intervals of battery voltage, combined with water level data and mains input, the battery status judgment is refined, and the inverter power supply is turned on only when drainage is required and the battery status is allowed, avoiding rapid switching of the battery status and reducing power consumption.
It improves the safety and standby time of the device, avoids equipment abnormalities, reduces power consumption, and extends the battery power supply time.
Smart Images

Figure CN120389503A_ABST
Abstract
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: 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; Recall the predefined battery voltage multi-level threshold interval and the stored battery status of the previous cycle; 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. Alternatively, according to the threshold interval in which the battery voltage value of the current cycle falls, and when the battery state of the previous cycle meets the target battery state, confirm the battery state of the current cycle and store the battery state of the current cycle; Drainage power supply output control: When it is determined according to the water level data that drainage is required and there is mains power input, turn on the mains power supply to drive the drainage device, and confirm whether to charge the battery according to the battery state of the current cycle; When it is determined according to the water level data that drainage is required and there is no mains power input, if the battery state of the current cycle meets the preset battery state that can be output, turn on the battery inverter power supply to drive the drainage device, otherwise, turn off the battery inverter power supply.
[0005] Preferably, the multi-level threshold interval at least includes a severe undervoltage interval, an undervoltage interval, a low voltage interval, a recovery voltage interval, a normal voltage interval, and an overvoltage interval. 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 sets for each battery state are as follows: Severe undervoltage state: The battery voltage value of the current cycle < 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 of the previous cycle is not in the severe 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 of the previous cycle is not one of the undervoltage state and the severe undervoltage state; Recovery voltage state: The battery voltage value of the current cycle > the fourth set voltage value, and the battery state of the previous cycle is one of the low voltage state, the undervoltage state, or the 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 of the previous cycle is one of the overvoltage state and the recovery voltage state; Overvoltage state: The battery voltage value of the current cycle > 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 condition set of the above battery state, then the current battery state is the battery state of the previous cycle; Wherein, 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.
[0006] Preferably, in the drainage power supply output control, the preset battery states that can be output are the low voltage state and the normal voltage state.
[0007] Preferably, the drainage power supply output control further includes: When the battery is in a severely under-voltage state, the battery sleep mode is executed; during sleep, the battery voltage and mains input are detected according to the set wake-up period.
[0008] Preferably, in the drainage power supply output control, the method for judging whether drainage is required according to the water level data is as follows: Water level detection: Two water level sensors are set in the area where drainage is required, and there is a height difference between the water level sensors; the water level sensor located at a higher position is the high water level sensor, and the other 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, it is judged that the current water level is low; When the low water level sensor detects water and the high water level sensor does not detect water, it is judged that the current water level is medium; When the low water level sensor detects water and the high water level sensor detects water, it is judged that the current water level is high; When the water level detection result is high water level, it is judged that drainage is required, and a drainage output request is triggered; When the water level detection result is low water level, it is judged that drainage is not required, and a stop drainage output request is triggered.
[0009] Preferably, the water level detection further includes: When the low water level does not detect water and the high water level sensor detects water, it is judged as a sensor error.
[0010] Preferably, the drainage control device is also provided with a normally open mode and a normally closed mode; In the normally open mode, the drainage power supply output control stage will always send a drainage output demand; In the normally closed mode, the drainage power supply output control stage will always close the drainage output demand.
[0011] The present invention further provides a waterlogging drainage control device, which adopts the waterlogging drainage control method described above, including: A storage unit for storing predefined multi-level threshold intervals of battery voltage and battery status, where each threshold interval corresponds to a different battery status; A mains detection module for obtaining data on whether there is mains input; A water level detection module for obtaining water level data; A battery voltage detection module for periodically obtaining battery voltage data; A battery status judgment module for: Obtaining the battery voltage data of the current cycle; Calling the predefined multi-level threshold intervals of battery voltage stored in the storage unit and the stored battery status of the previous cycle; Confirm the battery state of the current cycle according to the threshold interval in which the battery voltage value of the current cycle falls. Alternatively, according to the threshold interval in which the battery voltage value of the current cycle falls, and when the battery state of the previous cycle meets the target battery state, confirm the battery state of the current cycle; store the confirmed battery state of the current cycle in the storage unit; the control execution module is used for: When it is determined according to the water level data obtained by the water level detection module that drainage is required and the mains detection module indicates that there is mains input, turn on the mains power supply to drive the drainage device, and confirm whether to charge the battery according to the battery state of the current cycle obtained by the battery state judgment module. When it is determined according to the water level data obtained by the water level detection module that drainage is required and the mains detection module indicates that there is no mains input, if the battery state of the current cycle obtained by the battery state judgment module meets the preset battery state that can be output, turn on the battery inverter power supply to drive the drainage device; otherwise, turn off the battery inverter power supply.
[0012] The present invention also provides a computer-readable medium, on which a computer program is stored, and when the computer program is executed by a processor, the water accumulation drainage control method described above is implemented.
[0013] The water accumulation drainage control method provided by the present invention, through multi-level battery voltage detection combined with a specific output control method, greatly improves the safety during the use of the device and equipment. Moreover, it avoids the phenomenon that the battery state is prone to repeatedly and quickly switch between multiple states during the detection of the battery state, resulting in equipment abnormalities. In addition, the water accumulation drainage control method provided by the present invention only turns on the inverter function when the battery is powered and drainage is required, which can greatly reduce the standby power consumption of the device and equipment. In the case of the same battery capacity setting and power failure, the device and equipment adopting the present invention can greatly extend the standby time.
[0014] The water accumulation drainage control device adopting the water accumulation drainage control method provided by the present invention has good safety, low power consumption during power failure, and has a wide application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flowchart of the water accumulation drainage control method provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of mode selection; Figure 3 It is a flowchart of battery state judgment; Figure 4 It is a schematic diagram of water level detection; Figure 5 It is a flowchart of output control; Figure 6 It is a flowchart of low power consumption mode. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0016] In order to make the technical means, creative features, achieved objectives and effects realized by the present invention easy to understand, the present invention will be further described below in conjunction with specific embodiments. However, the following embodiments are only the preferred embodiments of the present invention, not all of them. Based on the embodiments in the implementation manners, other embodiments obtained by those skilled in the art without creative efforts all belong to the protection scope of the present invention. The experimental methods in the following embodiments are all conventional methods unless otherwise specified. The materials, reagents, etc. used in the following embodiments can all be obtained from commercial channels unless otherwise specified.
[0017] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", "inner", "outer", "front end", "rear end", "both ends", "one end", "the other end", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be construed as a limitation to the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.
[0018] In the description of the present invention, it should be noted that unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0019] In addition, the drawings are only schematic diagrams of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0020] As Figure 1 shown, an accumulated water drainage control method, device and computer-readable medium in an embodiment of the present invention. Among them, the accumulated water drainage control method is applied to a drainage control device. The drainage control device drives the drainage device to start draining by switching between mains power supply or battery inverter power supply. The method steps include: Pre - define multi - level threshold intervals for battery voltage, where each threshold interval corresponds to a different battery state; Obtain data on whether there is mains power input and water level data, and periodically obtain battery voltage data; Battery state judgment: Obtain the battery voltage data for the current cycle; Call the pre - defined multi - level threshold intervals for battery voltage and the stored battery state of the previous cycle; Based on the threshold interval into which the battery voltage value of the current cycle falls, confirm the battery state of the current cycle, Or, based on 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, confirm the battery state of the current cycle and store the battery state of the current cycle; Drainage power supply output control: When it is judged according to the water level data that drainage is required and there is mains power input, turn on the mains power supply to drive the drainage device, and confirm whether to charge the battery according to the battery state of the current cycle; When it is judged according to the water level data that drainage is required and there is no mains power input, if the battery state of the current cycle meets the preset battery state that can be output, turn on the battery inverter power supply to drive the drainage device, otherwise, turn off the battery inverter power supply.
[0021] In specific implementation, the drainage control device has a normally - open mode, a normally - closed mode, and an automatic mode.
[0022] When the drainage control device is powered on, it will first read the operating state stored in the FLASH at the previous shutdown as the initial operating state for this startup. As Figure 2 shown, the user can switch among the automatic, normally - open, and normally - closed modes through buttons. Under normal circumstances (normal battery voltage, 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, whether there is mains power input, and the battery voltage data; In the normally - open mode: switch the inverter or mains power supply according to the mains power state to ensure the normal power supply of the drainage device; In the normally - closed mode: cut off all power supplies of the drainage device, which is used for the user to turn off the device during inspection to ensure safety during inspection.
[0023] In the automatic mode: Pre - define multi - level threshold intervals for battery voltage, where each threshold interval corresponds to a different battery state. Among them, the multi - level threshold intervals at least include 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 state, undervoltage state, low - voltage state, recovery voltage state, normal voltage state, and overvoltage state respectively; Obtain data on whether there is mains input and water level data, and periodically obtain battery voltage data. The detection period of the battery voltage (1S ≤ detection period ≤ 3S) can be set according to the actual situation, including but not limited to being set to 1S. If the detected battery voltage value within the detection period is greater than a certain battery voltage threshold interval, then it is determined that the current battery state is the battery state represented by this threshold interval. For example, if the detected battery voltage value is greater than 15V continuously for 1S, then it is determined that the current battery state is the overvoltage state. By setting the detection period, the influence of battery voltage fluctuations or sampling distortion on the judgment is avoided to improve the accuracy of battery voltage detection; Current battery state judgment (as Figure 3 shown): Obtain the battery voltage data of the current period; Call the pre - defined multi - level threshold intervals for battery voltage and the stored battery state of the previous period; According to the threshold interval into which the battery voltage value of the current period falls, confirm the battery state of the current period, Or, according to the threshold interval into which the battery voltage value of the current period falls, and when the battery state of the previous period meets the target battery state, confirm the battery state of the current period and store the battery state of the current period; Specifically, the confirmation of each battery state needs to meet the following set of condition judgments to be valid: Severe undervoltage state: The battery voltage value of the current period < the first set voltage value; Undervoltage state: The first set voltage value < the battery voltage value of the current period < the second set voltage value, and the battery state of the previous period is not the severe undervoltage state; Low - voltage state: The second set voltage value < the battery voltage value of the current period < the third set voltage value, and the battery state of the previous period is not one of the undervoltage state and severe undervoltage state; Recovery voltage state: The battery voltage value of the current period > the fourth set voltage value, and the battery state of the previous period is one of the low - voltage state, undervoltage state, or severe undervoltage state; Normal voltage state: The third set voltage value < the battery voltage value of the current period < the fifth set voltage value, and the battery state of the previous period is one of the overvoltage state and recovery voltage state; Overvoltage state: The battery voltage value of the current period > the fifth set voltage value; 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 actually used battery. 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; the fifth set voltage value is 15V, but it is not limited thereto.
[0024] The above battery must meet the above conditions to enter a certain state. When the sampled voltage of the battery in a certain sampling period is equal to a certain critical value or does not meet any of the above sets of battery state conditions, the current battery state will inherit the battery state of the previous period, thus avoiding the situation of unclear battery state.
[0025] The condition setting of the battery state of the previous period provided in this embodiment is to prevent the battery state from repeatedly switching between two or more states. The set of conditions aggregates multiple judgment conditions, and the lack of conditions may cause abnormalities 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 current cycle battery state is in a low voltage state when the control device is unloaded (i.e., the water pump without a power supply load), after the device is loaded, the battery voltage drops, and the battery voltage meets the conditions set for the under-voltage state voltage and also meets the set of conditions for the under-voltage battery state, and the battery state switches to the under-voltage state of the battery. At this time, the control device will turn off the power supply output, and the battery voltage will rise again. The rising voltage meets the battery voltage judgment conditions for the low voltage state, but the battery state of the previous period does not meet the conditions, which can prevent the battery state from switching back to the low voltage state; therefore, although the rising voltage does not meet the judgment conditions for the under-voltage state, it cannot switch to other states either. At this time, the battery state will remain in the under-voltage state, which can prevent the battery state from repeatedly and quickly switching, thus avoiding abnormal on and off phenomena of the load (water pump); Drainage power supply output control (as Figure 5 shown): When it is determined according to the water level data that drainage is required, output control is performed according to the above confirmed battery voltage state, and the control conditions are specifically as follows: 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. 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. 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.
[0026] 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.
[0027] 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. 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.
[0028] 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.
[0029] In the above output control, the primary purpose of multi-level voltage status detection is to ensure equipment safety, as follows: a. If the battery is overvoltage and the inverter is forced to start, it may cause irreversible damage to the inverter.
[0030] b. When the battery is undervoltage, if it still outputs normally, driving a high-power load such as a water pump will damage the battery.
[0031] c. When the battery is severely undervoltage, the battery state is already very poor at this time. The control MCU enters the low-power mode, shuts down the output, and tries to reduce the battery output as much as possible to prevent the battery from being completely damaged.
[0032] In addition, in the control method provided in this embodiment, the inverter for battery inversion is only turned on when drainage is required. If drainage is not required currently, the inverter is disconnected. Especially in the case of a power outage of the commercial power, this control method can avoid the no-load consumption of the inverter, thereby greatly extending the standby duration of the control device.
[0033] The ponding drainage control method provided by the embodiment of the present invention refines the granularity of output control through the above multi-level voltage detection, improves the protection of device equipment, inverters, batteries, etc., and improves the safety performance; through the scheme of combining multi-level voltage detection with the battery state in the previous cycle to judge the battery state in the current cycle, it can avoid the problem that when the battery voltage fluctuates, the battery state is likely to switch repeatedly and quickly between multiple states, resulting in some abnormal behaviors of the device equipment; In addition, most of the related products on the market switch to the inverter operation state after a power outage. In the solution of the embodiment of the present invention, the inversion function is only turned on when the battery is powered and drainage is required, which can greatly reduce the standby power consumption of the device equipment. In the case of the same battery capacity and a power outage of the commercial power, the control device equipment adopting the control method of the embodiment of the present invention can greatly extend the standby time.
[0034] The operation logic of the above low-power mode is as follows: Such as Figure 6As shown in the figure, when the battery is in a severely under-voltage state (battery voltage value < 10V) and there is no mains input, it will enter the low-power mode, which will turn off all outputs to reduce energy loss. It will wake up once every set wake-up period (set according to the actual situation) to detect the battery voltage and mains input. Only when there is mains input or the battery voltage > 12.4V (i.e., the battery voltage state meets the voltage judgment condition for the recovery voltage state) will it exit the low-power mode. Among them: the wake-up period can be set to 8S, and the wake-up can be achieved through the watchdog module of the MCU (this is an existing technology and will not be elaborated here). Since the watchdog feeding time of the MCU in the control module is at most 64ms during normal operation, if the MCU does not clear the watchdog timer within 64ms, it will reset and restart to prevent jamming and accidents. Before entering the low-power mode, the watchdog feeding duration is set to 8S. In the low-power mode, if the watchdog timer is not cleared within 8S, the MCU will be woken up to work normally. After waking up, the MCU will detect the mains input and battery voltage. If the device still does not meet the working conditions, the MCU will enter the low-power mode again. In this step, when the battery is severely under-voltage, the battery health state is already very poor. At this time, turning off the alarm and entering the low-power mode is to reduce the battery's power output and reduce the battery's power consumption, as much as possible to ensure the battery health. In this step, the wake-up period is set to 6S - 9S. On the one hand, it avoids the problem that the wake-up time is set too short, resulting in the MCU being frequently woken up, because each wake-up will increase the power consumption in a short time and increase the consumption of the battery power. On the other hand, it avoids the problem that the wake-up time is set too long, which will cause a long delay for the MCU to be woken up to work normally under the condition that the external conditions meet the operating conditions, affecting the user experience.
[0035] During specific implementation, as Figure 4 shown in the figure, in the drainage power supply output control, the method for judging whether drainage is required according to the water level data is as follows: Water level detection: Set two water level sensors in the area where drainage is required. There is 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. Among them, the height position of the high water level sensor is the "liquid level height at which drainage is desired" set by the user, and the height position of the low water level sensor is the "liquid level height at which the pump operation is desired to stop" set by the user. When the low water level sensor does not detect water and the high water level sensor does not detect water, it is judged that the current water level is the low water level; When the low water level sensor detects water and the high water level sensor does not detect water, it is judged that the current water level is the middle water level; When the low water level sensor detects water and the high water level sensor detects water, it is judged that the current water level is the high water level; When the water level detection result is high water level, it is judged that drainage is required, triggering a drainage output request. During the drainage process (i.e., when the water level drops to the middle water level during the water level decline process), it is still judged that drainage is required until the water level detection result is low water level, at which point it is judged that drainage is not required, and then a stop drainage output request is triggered. Additionally, when the MCU detects that the water level is at the middle water level at startup, it will default the water level change process to the water level rising process, and at this time, no drainage control is performed.
[0036] Under normal circumstances, it should be that the low water level sensor detects water first, and then the high water level sensor detects water. Under certain test conditions, it may occur that the high water level sensor detects water first, which means that the installation position of the water level is incorrect, triggering a buzzer and / or flashing light warning to alert the user.
[0037] In the above water level detection method, the water level situation is jointly confirmed by two sensors, improving the detection accuracy and reducing the occurrence of misdetection phenomena.
[0038] The present invention further provides a ponding drainage control device, adopting any of the above-mentioned ponding drainage control methods, including: A storage unit for storing predefined multi-level threshold intervals of battery voltage and battery states, where each threshold interval corresponds to a different battery state; A mains detection module for obtaining data on whether there is mains input; A water level detection module for obtaining water level data; A battery voltage detection module for periodically obtaining battery voltage data; A battery state judgment module for: Obtaining the battery voltage data of the current cycle; Invoking the predefined multi-level threshold intervals of battery voltage stored in the storage unit and the battery state of the previous cycle stored; Confirming the battery state of the current cycle according to the threshold interval into which the battery voltage value of the current cycle falls, Or, 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, confirming the battery state of the current cycle; storing the confirmed battery state of the current cycle in the storage unit; A control execution module for: When it is judged that drainage is required according to the water level data obtained by the water level detection module and the mains detection module indicates that there is mains input, turning on the mains power supply to drive the drainage device, and confirming whether to charge the battery according to the battery state of the current cycle obtained by the battery state judgment module; 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 no mains power input, if the battery state in the current cycle obtained by the battery state determination module meets the preset battery state that can be output, the battery inverter power supply is turned on to drive the drainage device; otherwise, the battery inverter power supply is turned off.
[0039] The present invention also provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, it implements the waterlogging drainage control method as described above in any one of the above.
[0040] A computer-readable storage medium provided in this embodiment has a program product stored thereon that can implement the method described in the above specification. In some possible implementation manners, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of the above specification.
[0041] A program product for implementing the above method according to an embodiment of the present invention is described. It can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can 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 can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or apparatus.
[0042] The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0043] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0044] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0045] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, executed 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 may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or alternatively, may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0046] It should be noted that although several modules or units of a device for action execution are mentioned in the foregoing detailed description, such a division is not mandatory. In fact, according to embodiments of the present disclosure, the features and functions of two or more of the foregoing modules or units may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided and embodied by multiple modules or units.
[0047] Furthermore, although the steps of the methods in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in that specific order, or that all of the steps shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.
[0048] Those skilled in the art can easily understand from the description of the above embodiments that the example embodiments described herein can be implemented by software or by 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, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0049] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for controlling waterlogging drainage, characterized in that, Applied to a drainage control device, the drainage control device drives the drainage device to start draining by switching between mains power supply or battery inverter power supply. The method steps include: Pre-define multiple levels of battery voltage threshold intervals, where each threshold interval corresponds to a different battery state; Obtain data on whether there is mains input and water level data, and periodically obtain battery voltage data; Battery state judgment: Obtain the battery voltage data of the current cycle; Call the pre-defined multiple levels of battery voltage threshold intervals and the stored battery state of the previous cycle; Based on the threshold interval into which the battery voltage value of the current cycle falls, confirm the battery state of the current cycle, Or, based on 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, confirm the battery state of the current cycle and store the battery state of the current cycle; Drainage power supply output control: When it is determined according to the water level data that drainage is required and there is mains input, turn on the mains power supply to drive the drainage device, and confirm whether to charge the battery according to the battery state of the current cycle; When it is determined according to the water level data that drainage is required and there is no mains input, if the battery state of the current cycle meets the preset outputtable battery state, turn on the battery inverter power supply to drive the drainage device, otherwise, turn off the battery inverter power supply.
2. The waterlogging drainage control method according to claim 1, wherein: The multiple threshold intervals at least include a severely undervoltage interval, an undervoltage interval, a low voltage interval, a recovery voltage interval, a normal voltage interval, and an overvoltage interval. The corresponding battery states are a severely 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 sets for each battery state are as follows: Severely undervoltage state: The battery voltage value of the current cycle < 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 of the previous cycle is not in the severely 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 of the previous cycle is not one of the undervoltage state and the severely undervoltage state; Recovery voltage state: The battery voltage value of the current cycle > the fourth set voltage value, and the battery state of the previous cycle is one of the low voltage state, the undervoltage state, or the severely 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 of the previous cycle is one of the overvoltage state and the recovery voltage state; Overvoltage state: The battery voltage value of the current cycle > 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 condition set of the above battery state, then the current battery state is the battery state 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.
3. The waterlogging drainage control method according to claim 2, characterized in that: In the drainage power supply output control, the preset outputtable battery states are the low voltage state and the normal voltage state.
4. The waterlogging drainage control method according to claim 2, characterized in that: The drainage power supply output control further includes: When the battery state is in the severely undervoltage state, execute the battery sleep mode; during sleep, wake up according to the set wake-up cycle to detect the battery voltage and mains input.
5. The waterlogging drainage control method according to any one of claims 1-4, characterized in that: In the drainage power supply output control, the method for judging 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, and there is 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, it is judged that the current water level is low water level; When the low water level sensor detects water and the high water level sensor does not detect water, it is judged that the current water level is medium water level; When the low water level sensor detects water and the high water level sensor detects water, it is judged that the current water level is high water level; When the water level detection result is high water level, it is judged that drainage is required, and a drainage output request is triggered; When the water level detection result is low water level, it is judged that drainage is not required, and a stop drainage output request is triggered.
6. The waterlogging drainage control method according to claim 5, characterized in that: The water level detection further includes: When the low water level does not detect water and the high water level sensor detects water, it is judged as a sensor error.
7. The water accumulation and drainage control method according to claim 1, characterized in that: The drainage control device is also provided with a normally open mode and a normally closed mode; In the normally open mode, the drainage power supply output control stage will always send a drainage output demand; In the normally closed mode, the drainage power supply output control stage will always close the drainage output demand.
8. An accumulated water drainage control device, characterized in that, Adopting the ponding drainage control method as described in any one of claims 1-7, including: A storage unit for storing predefined multi-level threshold intervals of battery voltage and battery states, where each threshold interval corresponds to a different battery state; A mains detection module for obtaining data on whether there is mains input; A water level detection module for obtaining water level data; A battery voltage detection module for periodically obtaining battery voltage data; A battery state judgment module for: Obtaining the battery voltage data of the current cycle; Invoking the predefined multi-level threshold intervals of battery voltage stored in the storage unit and the battery state of the previous cycle stored; Confirming the battery state of the current cycle according to the threshold interval into which the battery voltage value of the current cycle falls, Or, 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, confirming the battery state of the current cycle; storing the confirmed battery state of the current cycle into the storage unit; A control execution module for: When it is judged that drainage is required according to the water level data obtained by the water level detection module and the mains detection module indicates that there is mains input, turning on the mains power supply to drive the drainage device, and confirming whether to charge the battery according to the battery state of the current cycle obtained by the battery state judgment module; When it is judged that drainage is required according to the water level data obtained by the water level detection module and the mains detection module indicates that there is no mains input, if the battery state of the current cycle obtained by the battery state judgment module meets the preset outputtable battery state, turning on the battery inverter power supply to drive the drainage device; otherwise, turning off the battery inverter power supply.
9. A computer-readable medium having a computer program stored thereon, characterized in that, The computer program, when executed by a processor, implements the ponding drainage control method as described in any one of claims 1-7.
Citation Information
Patent Citations
Improved bottom pit simple lifting parking equipment
CN108915324A
A hierarchical power limit protection method in a battery management system
CN109167108A
Battery undervoltage protection method and system based on BMS (Battery Management System)
CN109980609A
Battery state judgment method and system of intelligent flow measurement robot and chip
CN113890141A
Vehicle-mounted power supply adjustment method and device, electronic equipment and storage medium
CN115765095A