Kitchen and bath basin drainage system control method, device and equipment

By dynamically adjusting the electric valve and intelligently treating liquid impurities, the problems of inefficiency and poor adaptability of traditional kitchen and bathroom basin drainage systems are solved, and intelligent drainage control for multi-scene adaptation is realized, improving the efficiency and adaptability of the system.

CN120335337APending Publication Date: 2025-07-18海腾创建(深圳)集团有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510395514.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

Traditional kitchen and bathroom basin drainage systems have problems such as inefficiency, easy overflow, lack of automatic anti-blocking mechanism, high noise from mechanical valves and inability to link with smart home equipment, and different application scenarios have different requirements for the drainage system.

Method used

By receiving terminal instructions, obtaining water level and flow rate data, dynamically adjusting the opening of the electric valve, using impurity detection sensors to identify the type of liquid impurity, and selecting appropriate treatment methods based on the type of impurity, including centrifugal separation, filtration, chemical treatment, etc., to achieve intelligent drainage control.

Benefits of technology

It improves the efficiency and adaptability of the drainage system, reduces overflow risks, optimizes water resource utilization, and realizes intelligent drainage control for multi-scene adaptation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335337A_ABST
    Figure CN120335337A_ABST
Patent Text Reader

Abstract

The invention discloses a kitchen and bath basin drainage system control method, device and equipment, and relates to the technical field of drainage control, and the method comprises the steps: receiving a drainage starting instruction sent by a terminal, obtaining water level data and flow velocity data of liquid in a target basin based on the drainage starting instruction, and sending the data to the terminal; a valve opening degree control instruction sent by the terminal is received, the opening degree of the electric valve is dynamically adjusted so that the liquid can be transmitted to the drainage pipeline through the electric valve, and the valve opening degree control instruction is obtained by controlling and analyzing the water level data and the flow velocity data through a feedback control algorithm by the terminal; performing impurity detection on the liquid through an impurity detection sensor on the drainage pipeline to obtain impurity detection data and sending the impurity detection data to a terminal; and receiving a liquid processing instruction sent by the terminal and performing liquid processing on the liquid. The corresponding processing mode is determined based on the impurity type of the liquid, and drainage control of multiple scenes can be adapted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of drainage control, and particularly to a control method, device and equipment for a kitchen and bathroom sink drainage system. Background Art

[0002] Traditional kitchen and bathroom sink drainage systems have many problems, such as low efficiency and easy overflow due to fixed drainage rates, lack of automatic anti-blocking mechanisms, loud mechanical valve noises, and inability to be linked with smart home devices. In addition, different application scenarios have different usage requirements for kitchen and bathroom sink drainage systems. Application scenarios such as households, commercial kitchens, industrial cleaning, public facilities, agricultural irrigation, ships and RVs correspond to different drainage requirements. For example, household drainage gives priority to drainage noise management; commercial kitchens need to handle high-grease wastewater; industrial cleaning needs to handle high-impurity water bodies such as heavy metals; public facilities need remote operation and maintenance management, etc.

[0003] Therefore, there is an urgent need to propose a kitchen and bathroom sink drainage solution adaptable to multiple scenarios.

[0004] The above content is only used to assist in understanding the technical solution of this application, and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main purpose of this application is to provide a control method, device and equipment for a kitchen and bathroom sink drainage system, aiming to solve the technical problem that the kitchen and bathroom sink drainage system is difficult to adapt to multiple scenarios.

[0006] To achieve the above object, this application proposes a control method for a kitchen and bathroom sink drainage system. The control method for the kitchen and bathroom sink drainage system is applied to the drainage end, and the method includes:

[0007] Receiving a drainage start instruction sent by a terminal, obtaining water level data and flow rate data of the liquid in the target sink based on the drainage start instruction, and sending the water level data and the flow rate data to the terminal;

[0008] Receiving a valve opening control instruction sent by the terminal, dynamically adjusting the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve. The valve opening control instruction is obtained by the terminal through a feedback control algorithm for control analysis of the water level data and the flow rate data;

[0009] Detecting impurities in the liquid through an impurity detection sensor on the drainage pipe, obtaining impurity detection data of the liquid, sending the impurity detection data to the terminal, so that the terminal analyzes the impurity detection data to determine the impurity type of the liquid, generates a corresponding liquid treatment instruction based on the impurity type and sends it to the drainage end;

[0010] Receive the liquid processing instruction sent by the terminal, perform liquid processing on the liquid based on the liquid processing instruction, and discharge the processed liquid through the drainage pipe.

[0011] In one embodiment, the step of obtaining the water level data and flow rate data of the liquid in the target water basin based on the drainage start instruction includes:

[0012] Detect the water level height in the target water basin through a water level sensor to generate the water level data of the target water basin;

[0013] Detect the water flow velocity in the target water basin through a flow rate sensor to generate the flow rate data of the target water basin.

[0014] In one embodiment, after the step of detecting impurities in the liquid through an impurity detection sensor on the drainage pipe to obtain the impurity detection data of the liquid and sending the impurity detection data to the terminal, the following steps are further included:

[0015] Receive the pipeline cleaning instruction sent by the terminal, and clean the drainage pipe based on the pipeline cleaning instruction. The pipeline cleaning instruction is generated by the terminal based on the impurity concentration and impurity type to determine the corresponding pipeline cleaning method for the drainage pipe.

[0016] In one embodiment, the control method for the kitchen and bathroom water basin drainage system is applied to a terminal, and the control method for the kitchen and bathroom water basin drainage system includes:

[0017] Send a drainage start instruction to the drainage end, so that the drainage end obtains the water level data and flow rate data of the liquid in the target water basin based on the drainage start instruction and sends them to the terminal;

[0018] Receive the water level data and the flow rate data sent by the terminal, perform control analysis on the water level data and the flow rate data through a feedback control algorithm, generate a valve opening control instruction, and send the valve opening control instruction to the drainage end, so that the drainage end dynamically adjusts the opening of the electric valve based on the valve opening control instruction to enable the liquid to be transmitted to the drainage pipe through the electric valve;

[0019] Receive the impurity detection data sent by the drainage end, perform impurity analysis on the impurity detection data to determine the impurity type of the liquid, determine the corresponding liquid processing method based on the impurity type, generate the corresponding liquid processing instruction based on the liquid processing method and send it to the drainage end, so that the drainage end performs liquid processing on the liquid based on the liquid processing instruction method, and discharges the processed liquid through the drainage pipe.

[0020] In one embodiment, the step of determining a corresponding liquid treatment method based on the type of impurities includes:

[0021] When the type of impurities is the first type of impurities, the liquid is separated by a centrifugal separation device;

[0022] When the type of impurities is the second type of impurities, the liquid is filtered by a filtration device.

[0023] In one embodiment, after the step of receiving the impurity detection data sent by the drainage end, analyzing the impurity detection data to determine the type of impurities in the liquid, the following steps are further included:

[0024] Analyze the impurity detection data to determine the impurity concentration of the liquid;

[0025] Based on the type of impurities and the impurity concentration, determine the corresponding pipeline cleaning method for the drainage pipeline, generate a corresponding pipeline cleaning instruction based on the pipeline cleaning method, and send the pipeline cleaning instruction to the drainage end so that the drainage end cleans the drainage pipeline based on the pipeline cleaning instruction.

[0026] In one embodiment, the step of determining the corresponding pipeline cleaning method for the drainage pipeline based on the type of impurities and the impurity concentration includes:

[0027] When the impurity concentration is greater than or equal to a preset concentration threshold, determine the corresponding pipeline cleaning method for the drainage pipeline based on the type of impurities;

[0028] When the type of impurities is the third type of impurities, the drainage pipeline is cleaned by high-pressure water flushing;

[0029] When the type of impurities is the fourth type of impurities, the drainage pipeline is cleaned by chemical dissolution;

[0030] When the type of impurities is the fifth type of impurities, the drainage pipeline is cleaned by mechanical scraping.

[0031] In one embodiment, the control method for the kitchen and bathroom sink drainage system further includes:

[0032] Construct a pipeline digital twin model according to the target sink and the drainage pipeline;

[0033] Based on the water level data, the flow rate data and the impurity detection data, synchronously update the pipeline state in the pipeline digital twin model, and provide the updated pipeline state to the target user.

[0034] In addition, to achieve the above object, the present application further provides a control device for a kitchen and bathroom sink drainage system, and the control device for the kitchen and bathroom sink drainage system includes:

[0035] A data acquisition module, configured to receive a drainage start instruction sent by a terminal, acquire water level data and flow rate data of the liquid in a target sink based on the drainage start instruction, and send the water level data and the flow rate data to the terminal;

[0036] A valve adjustment module, configured to receive a valve opening control instruction sent by the terminal, dynamically adjust the opening of an electric valve based on the valve opening control instruction so that the liquid is transmitted to a drainage pipe through the electric valve, and the valve opening control instruction is obtained by the terminal through a feedback control algorithm for controlling and analyzing the water level data and the flow rate data;

[0037] An impurity detection module, configured to detect impurities in the liquid through an impurity detection sensor on a drainage pipe, obtain impurity detection data of the liquid, send the impurity detection data to the terminal, so that the terminal performs impurity analysis on the impurity detection data to determine the impurity type of the liquid, generate a corresponding liquid treatment instruction based on the impurity type and send it to a drainage end;

[0038] A liquid treatment module, configured to receive a liquid treatment instruction sent by the terminal, perform liquid treatment on the liquid based on the liquid treatment instruction, and discharge the treated liquid through the drainage pipe.

[0039] In addition, to achieve the above object, the present application further provides a control device for a kitchen and bathroom sink drainage system, and the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the control method for the kitchen and bathroom sink drainage system as described above.

[0040] In addition, to achieve the above object, the present application further provides a storage medium, the storage medium is a computer-readable storage medium, a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the control method for the kitchen and bathroom sink drainage system as described above are implemented.

[0041] In addition, to achieve the above object, the present application further provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the control method for the kitchen and bathroom sink drainage system as described above are implemented.

[0042] One or more technical solutions provided by the present application have at least the following technical effects:

[0043] A control method, device, and equipment for a kitchen and bathroom sink drainage system proposed in an embodiment of the present application. The control method for the kitchen and bathroom sink drainage system is applied to the drainage end and includes: receiving a drainage start instruction sent by a terminal, obtaining water level data and flow rate data of the liquid in the target sink based on the drainage start instruction, and sending the water level data and the flow rate data to the terminal; receiving a valve opening control instruction sent by the terminal, and dynamically adjusting the opening of an electric valve based on the valve opening control instruction so that the liquid is transmitted to a drainage pipe through the electric valve. The valve opening control instruction is obtained by the terminal through a feedback control algorithm for controlling and analyzing the water level data and the flow rate data; detecting impurities in the liquid through an impurity detection sensor on the drainage pipe to obtain impurity detection data of the liquid, and sending the impurity detection data to the terminal so that the terminal analyzes the impurity detection data to determine the impurity type of the liquid, generates a corresponding liquid treatment instruction based on the impurity type, and sends it to the drainage end; receiving the liquid treatment instruction sent by the terminal, performing liquid treatment on the liquid based on the liquid treatment instruction, and discharging the treated liquid through the drainage pipe. Determining the corresponding treatment method based on the impurity type of the liquid can adapt to drainage control in multiple scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0045] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0046] Figure 1 It is a flowchart provided for Embodiment 1 of the control method for the kitchen and bathroom sink drainage system of the present application;

[0047] Figure 2 It is a module structure diagram of the control device for the kitchen and bathroom sink drainage system in an embodiment of the present application;

[0048] Figure 3 It is a device structure diagram of the hardware operating environment involved in the control method for the kitchen and bathroom sink drainage system in an embodiment of the present application.

[0049] The implementation, functional features, and advantages of the objectives of the present application will be further described in conjunction with the embodiments with reference to the drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0050] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not used to limit the present application.

[0051] To better understand the technical solutions of the present application, the following will be described in detail in conjunction with the accompanying drawings of the specification and specific implementation manners.

[0052] The main solution of the embodiment of the present application is: The control method of the kitchen and bathroom sink drainage system is applied to the drainage end, including: receiving a drainage start instruction sent by a terminal, obtaining water level data and flow rate data of the liquid in the target sink based on the drainage start instruction, and sending the water level data and the flow rate data to the terminal; receiving a valve opening control instruction sent by the terminal, and dynamically adjusting the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve, and the valve opening control instruction is obtained by the terminal through a feedback control algorithm to perform control analysis on the water level data and the flow rate data; detecting impurities in the liquid through an impurity detection sensor on the drainage pipe to obtain impurity detection data of the liquid, and sending the impurity detection data to the terminal so that the terminal performs impurity analysis on the impurity detection data to determine the impurity type of the liquid, generating a corresponding liquid treatment instruction based on the impurity type and sending it to the drainage end; receiving the liquid treatment instruction sent by the terminal, performing liquid treatment on the liquid based on the liquid treatment instruction, and discharging the treated liquid through the drainage pipe.

[0053] In this embodiment, for the convenience of description, the following will be described with the control device of the kitchen and bathroom sink drainage system as the execution subject.

[0054] Since there are many problems in the existing kitchen and bathroom sink drainage systems, such as low efficiency and easy overflow due to fixed drainage rate, lack of automatic anti-blocking mechanism, loud noise of mechanical valves, and inability to be linked with smart home devices. In addition, different application scenarios have different usage requirements for the kitchen and bathroom sink drainage systems. Application scenarios such as homes, commercial kitchens, industrial cleaning, public facilities, agricultural irrigation, ships and RVs correspond to different drainage requirements. For example, home drainage gives priority to drainage noise management; commercial kitchens need to handle high-fat waste water; industrial cleaning needs to handle high-impurity water bodies such as heavy metals; public facilities need remote operation and maintenance management, etc. Therefore, there is an urgent need to propose a kitchen and bathroom sink drainage solution that adapts to multiple scenarios.

[0055] The present application provides a solution that determines the corresponding treatment method based on the impurity type of the liquid and can adapt to the drainage control of multiple scenarios.

[0056] It should be noted that the execution entity of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a control device for a kitchen and bathroom sink drainage system, etc. that can implement the above functions. Hereinafter, taking the control device for a kitchen and bathroom sink drainage system as an example, this embodiment and the following embodiments will be described.

[0057] Based on this, an embodiment of the present application provides a control method for a kitchen and bathroom sink drainage system. Refer to Figure 1 , Figure 1 which is a schematic flowchart of the first embodiment of the control method for the kitchen and bathroom sink drainage system of the present application.

[0058] In this embodiment, the control method for the kitchen and bathroom sink drainage system is applied to the drainage end. The control method for the kitchen and bathroom sink drainage system includes steps S11 to S14:

[0059] Step S11, receive a drainage start instruction sent by the terminal, obtain the water level data and flow rate data of the liquid in the target sink based on the drainage start instruction, and send the water level data and the flow rate data to the terminal.

[0060] It should be noted that the drainage end refers to the hardware execution part of the kitchen and bathroom sink drainage system, including a main body module and an expansion module. The main body module refers to components including a sink, a sensor, an electric valve, a drainage pipe, a stepping motor, a self-cleaning nozzle, etc. The expansion module refers to devices required for liquid treatment and pipeline cleaning, including a centrifugal separation device, a filtering device, a cleaning device, a disinfection device, etc. One or more devices of the expansion module are determined according to the application scenario of the system. For example, a centrifugal separation device is adopted in high-fat wastewater scenarios such as commercial kitchens; a filtering device is adopted in industrial cleaning scenarios where metal ions are generated; a disinfection device is adopted in hospital or public facility scenarios to disinfect and sterilize the system. In daily ordinary application scenarios, the expansion module may not be required, and the main body module can complete the drainage function of the complete kitchen and bathroom sink drainage system.

[0061] In addition, it should be noted that the terminal refers to a device or system with the functions of instruction sending, data receiving and processing. It receives information such as water level data, flow rate data, and impurity detection data fed back by the drainage end, and performs corresponding processing and analysis on these data; sends various control instructions to the drainage end, such as a drainage start instruction, a valve opening control instruction, a liquid treatment instruction, etc. The terminal is an intelligent device (such as a mobile phone, a tablet, or an edge computing node) that controls the drainage end and is used for data processing and instruction generation.

[0062] In addition, it should be noted that the drainage start instruction is a signal sent by the terminal to the drainage end, used to instruct the drainage end to start the drainage operation.

[0063] Additionally, it should be noted that the water level data represents the height information of the liquid in the target water basin relative to a specific reference point at a certain moment. It is obtained through a specific water level sensor and is used to reflect the stock situation of the liquid in the water basin.

[0064] Additionally, it should be noted that the flow rate data is information used to describe the flow rate of the liquid in the target water basin. It is measured by means of a corresponding flow rate sensor and can reflect the speed of the liquid flow.

[0065] Specifically, when the terminal detects that a drainage operation needs to be started (for example, the user triggers the drainage button through the terminal interface), the terminal sends a drainage start instruction to the drainage end, and the drainage end promptly receives this instruction and enters the drainage preparation stage. After receiving the drainage start instruction, the drainage end activates the water level sensor and the flow rate sensor installed in the target water basin. The water level sensor measures the water level height in the water basin in real time, and the flow rate sensor accurately calculates the flow rate of the liquid. The drainage end sorts out the obtained water level data and flow rate data and sends these data to the terminal through the communication module. The communication module supports wired transmission and wireless transmission. The wireless transmission supports Wi-Fi and Bluetooth protocols and is also compatible with smart home platforms, such as Apple Smart Home HomeKit, Alibaba Cloud Internet of Things Platform, Xiaomi Smart Home, etc.

[0066] Step S12: Receive the valve opening control instruction sent by the terminal, and dynamically adjust the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve. The valve opening control instruction is obtained by the terminal through a feedback control algorithm for control analysis of the water level data and the flow rate data.

[0067] It should be noted that the valve opening control instruction is an instruction generated by the terminal through a feedback control algorithm for control analysis of the water level data and the flow rate data, and is used to instruct the drainage end to dynamically adjust the opening of the electric valve. By adjusting the valve opening, the flow rate of the liquid transmitted to the drainage pipe through the electric valve is controlled, thereby achieving precise control of the drainage process.

[0068] Additionally, it should be noted that the electric valve refers to a device installed at the junction of the target water basin and the drainage pipe, which can dynamically adjust its opening by receiving the valve opening control instruction. The water is transmitted from the target water basin to the drainage pipe through the electric valve, and its opening size directly affects the flow rate of the liquid from the water basin to the drainage pipe. The electric valve is equipped with a rubber buffer pad and starts and stops in stages through a stepper motor.

[0069] Additionally, it should be noted that the feedback control algorithm refers to the Proportional-Integral-Derivative (PID) control algorithm, which is a linear control method. Based on the deviation between the given value and the actual output value, it generates a control signal through the combined operations of the proportional (P), integral (I), and derivative (D) links, and acts on the controlled object to make the output value of the controlled object as close as possible to the given value. In an embodiment of the present application, the opening degree of the electric valve is controlled through the PID control algorithm based on the water flow data and the flow velocity data.

[0070] Specifically, after receiving the water level data and the flow velocity data, the terminal analyzes these data using the feedback control algorithm. According to the preset control strategy and objectives (such as maintaining an appropriate drainage speed, avoiding too fast or too slow drainage, etc.), the terminal generates a valve opening degree control instruction and sends it to the drainage end. After receiving the instruction, the drainage end controls the driving device of the electric valve according to the received valve opening degree control instruction. The driving device adjusts the opening degree of the electric valve, changing the flow rate of the liquid flowing through the electric valve into the drainage pipeline. By dynamically adjusting the valve opening degree, precise control of the drainage process is achieved, ensuring the stability and efficiency of the drainage process.

[0071] Step S13: Detect impurities in the liquid through an impurity detection sensor on the drainage pipeline to obtain the impurity detection data of the liquid, and send the impurity detection data to the terminal, so that the terminal analyzes the impurity detection data to determine the impurity type of the liquid, generates a corresponding liquid treatment instruction based on the impurity type, and sends it to the drainage end.

[0072] It should be noted that the drainage pipeline is a pipeline system that transports the liquid in the target water basin to a designated location. It is the channel for liquid discharge, connecting the water basin, the electric valve, and is equipped with an impurity detection sensor and the final discharge outlet.

[0073] Additionally, it should be noted that the impurity detection sensor is a device used to detect impurities in the liquid passing through the pipeline. It can identify the impurities present in the liquid and generate corresponding impurity detection data, providing the original information for the terminal to analyze the impurity type of the liquid, so that the terminal can take targeted liquid treatment measures.

[0074] Additionally, it should be noted that the impurity detection data is the data generated after the impurity detection sensor detects the liquid, including relevant information such as the type, content, and size of the impurities in the liquid. These data reflect the purity and quality status of the liquid. By analyzing the impurity detection data, the terminal can accurately determine the impurity type of the liquid.

[0075] Specifically, during the process of the liquid passing through the drainage pipe, the impurity detection sensor installed on the drainage pipe starts to work. The sensor uses specific detection technologies (such as optical detection, electrochemical detection, etc.) to detect impurities in the liquid and identify information such as the type and content of the impurities. The impurity detection sensor converts the detected impurity information into impurity detection data. After the drainage end obtains this data, it sends it to the terminal.

[0076] Step S14, receive the liquid treatment instruction sent by the terminal, perform liquid treatment on the liquid based on the liquid treatment instruction, and discharge the treated liquid through the drainage pipe.

[0077] It should be noted that the liquid treatment instruction is an instruction generated by the terminal based on the impurity type determined from the impurity detection data and sent to the drainage end. This instruction clearly instructs the drainage end to perform specific treatment operations on the liquid.

[0078] Specifically, the terminal deeply analyzes the received impurity detection data to determine the type of impurities in the liquid. According to the impurity type, the terminal combines a preset treatment plan to generate a corresponding liquid treatment instruction and sends this instruction to the drainage end. The drainage end starts the corresponding liquid treatment equipment (such as filters, purification devices, etc.) according to the liquid treatment instruction. The treatment equipment performs targeted treatment on the liquid to remove impurities and improve the liquid quality so that it meets the discharge standard or subsequent use requirements. The treated liquid continues to be discharged through the drainage pipe, completing the control process of the entire kitchen and bathroom sink drainage system.

[0079] Through the above solution in this embodiment, by dynamically adjusting the electric valve and intelligently processing liquid impurities, the efficiency and adaptability of the drainage system are improved, the overflow risk is reduced, and the utilization of water resources is optimized.

[0080] Based on the above implementation solution, in a feasible implementation manner, the step of obtaining the water level data and flow rate data of the liquid in the target sink based on the drainage start instruction includes S21 - S22:

[0081] Step S21, detect the water level height in the target sink through a water level sensor and generate the water level data of the target sink.

[0082] It should be noted that the water level sensor is a device used to detect the water level height in the sink.

[0083] Step S22, detect the water flow velocity in the target sink through a flow velocity sensor and generate the flow rate data of the target sink.

[0084] It should be noted that the flow velocity sensor is a device used to detect the flow velocity of the liquid transmitted from the sink to the drainage pipe.

[0085] Specifically, a water level sensor is installed at a suitable position of the target water basin in the kitchen and bathroom water basin drainage system, and a flow rate sensor is installed at the connection between the target water basin and the drainage pipe. The water level height in the target water basin is detected by the water level sensor to generate water level data, and the water flow rate in the target water basin is detected by the flow rate sensor to generate flow rate data. The generated water level data and flow rate data are sent to the terminal.

[0086] Through the above solution in this embodiment, by accurately obtaining water level and flow rate data, the drainage control system can more accurately adjust the opening degree of the electric valve, thereby improving the drainage efficiency and the response speed of the system.

[0087] Based on the above implementation solution, in a feasible implementation manner, after the step of detecting impurities in the liquid by an impurity detection sensor on the drainage pipe to obtain the impurity detection data of the liquid and sending the impurity detection data to the terminal, the following step S31 is further included:

[0088] Step S31, receiving a pipeline cleaning instruction sent by the terminal, and cleaning the drainage pipe based on the pipeline cleaning instruction. The pipeline cleaning instruction is generated by the terminal based on the impurity concentration and impurity type to determine the corresponding pipeline cleaning method for the drainage pipe.

[0089] It should be noted that the pipeline cleaning instruction is an instruction generated by the terminal based on the analysis results of the impurity concentration and impurity type in the drainage pipe and sent to the drainage end.

[0090] Specifically, the communication module at the drainage end receives the pipeline cleaning instruction signal sent by the terminal; parses the received instruction to extract the cleaning method and relevant parameter information; and cleans the drainage pipe according to the parsed cleaning method. In daily ordinary application scenarios, the drainage pipe is cleaned by a ring-shaped nozzle and reverse water flow flushing to improve the impurity removal rate and reduce the probability of pipeline blockage.

[0091] Through the above solution in this embodiment, by monitoring and analyzing the impurities in the drainage pipe, intelligent cleaning of the drainage pipe is realized, the risk of pipeline blockage is reduced, and the reliability and maintenance efficiency of the drainage system are improved.

[0092] Based on the above implementation solution, in a feasible implementation manner, the control method for the kitchen and bathroom water basin drainage system is applied to the terminal, and the control method for the kitchen and bathroom water basin drainage system includes S41 to S43:

[0093] Step S41, sending a drainage start instruction to the drainage end, so that the drainage end obtains the water level data and flow rate data of the liquid in the target water basin based on the drainage start instruction and sends them to the terminal.

[0094] Specifically, the terminal generates a drainage start instruction according to the user's operation (such as pressing the drainage button) or a preset drainage condition (such as the water level reaching a set height). The drainage start instruction is sent to the drainage end through the communication module. After receiving the drainage start instruction, the drainage end measures the water level height of the liquid in the water basin in real time through a water level sensor, accurately calculates the flow rate of the liquid through a flow rate sensor, and sends the water level data and flow rate data of the liquid in the target water basin to the terminal for the terminal to receive.

[0095] Step S42: Receive the water level data and the flow rate data sent by the terminal, perform control analysis on the water level data and the flow rate data through a feedback control algorithm, generate a valve opening control instruction, and send the valve opening control instruction to the drainage end, so that the drainage end dynamically adjusts the opening of the electric valve based on the valve opening control instruction to enable the liquid to be transmitted to the drainage pipe through the electric valve.

[0096] Specifically, the terminal analyzes the received water level data and flow rate data using a feedback control algorithm. The feedback control algorithm will consider factors such as the height of the water level and the speed of the flow rate according to preset control objectives and rules, and determine whether the current drainage state meets the requirements; based on the results of the data analysis, the terminal generates a valve opening control instruction. This instruction specifies the opening size that the electric valve needs to be adjusted to in order to achieve a suitable drainage speed and water level control. The terminal sends the valve opening control instruction to the drainage end, and the drainage end dynamically adjusts the opening of the electric valve according to this instruction, enabling the liquid to be transmitted to the drainage pipe through the electric valve.

[0097] Step S43: Receive the impurity detection data sent by the drainage end, perform impurity analysis on the impurity detection data to determine the impurity type of the liquid, determine the corresponding liquid treatment method based on the impurity type, generate a corresponding liquid treatment instruction based on the liquid treatment method, and send the liquid treatment instruction to the drainage end, so that the drainage end performs liquid treatment on the liquid based on the liquid treatment instruction and discharges the treated liquid through the drainage pipe.

[0098] Specifically, the terminal performs impurity analysis on the received impurity detection data to determine the impurity type in the liquid; according to the determined impurity type, the terminal combines a preset liquid treatment method library to determine the corresponding liquid treatment method; based on the determined liquid treatment method, generates a corresponding liquid treatment instruction; sends the liquid treatment instruction to the drainage end, and the drainage end performs corresponding treatment on the liquid according to this instruction, and then discharges the treated liquid through the drainage pipe.

[0099] Through the above solution, this embodiment realizes the remote management and optimization of the drainage system through the intelligent control and analysis of the terminal, improving the automation level and operation and maintenance efficiency of the drainage system.

[0100] Based on the above implementation solution, in a feasible implementation manner, the step of determining the corresponding liquid treatment method based on the impurity type includes S51-S52:

[0101] Step S51, when the impurity type is the first type of impurity, the liquid is separated by a centrifugal separation device.

[0102] It should be noted that the first type of impurity refers to high-oil impurity, which often appears in kitchen application scenarios such as shopping malls and restaurants, and will generate high-oil wastewater.

[0103] In addition, it should be noted that a centrifugal separation device is a device that uses centrifugal force to separate solid impurities in a liquid. It usually includes a high-speed rotating drum. When the liquid enters the drum, the solid impurities will be pushed to the edge of the drum due to their greater weight, while the liquid flows out from the center.

[0104] Specifically, in an embodiment of the present application, the kitchen and bathroom sink drainage system supports multi-sink linkage control. When it is detected that the liquid contains high-oil impurities, the high-oil wastewater is pumped out from the drainage pipe or storage container and transported to the feed port of the centrifugal separation device through a pipe; when the wastewater enters the centrifugal separation device, different centrifugal forces will be generated inside the high-speed rotating drum due to the different densities of oil and water. The oil is subjected to a greater centrifugal force and is thrown towards the inner wall of the drum and accumulates to form an oil layer; while the water is subjected to a smaller centrifugal force and remains in the center of the drum and is discharged; after the separation is completed, the oil layer and the water layer are collected separately. The oil layer can be transported to an oil recovery device through a dedicated pipe for further treatment, such as refining and reuse; the water layer can continue to be processed subsequently, such as discharging up to standard or reuse. The centrifugal separation device is cleaned to remove residual oil and impurities.

[0105] Step S52, when the impurity type is the second type of impurity, the liquid is filtered by a filtering device.

[0106] It should be noted that the second type of impurity refers to metal ion impurities.

[0107] Specifically, a transfer pump is used to transfer the metal ion wastewater from the drainage pipe or storage container to the inlet of the filtration device. A pretreatment device, such as a sedimentation tank, can be set before the filtration device to remove large particle impurities in the wastewater first. After the wastewater enters the filtration device and passes through the filter element, metal ions will be adsorbed or intercepted by the filter element, while water flows out through the filter element to become relatively clean water. The operating parameters of the filtration device, such as the pressure difference between the inlet and outlet, are monitored in real time. When the pressure difference reaches the set value, it indicates that the filter element may be blocked, and it is necessary to perform backwashing or replace the filter element in time. The filtered liquid is further detected to ensure that the metal ion content therein meets the discharge standard or reuse requirement. The qualified liquid is discharged or recycled. If it still does not meet the standard, other corresponding advanced treatment methods, such as chemical precipitation and ion exchange, are adopted.

[0108] Through the above solution, in this embodiment, by selecting the most suitable liquid treatment method according to the impurity type, the efficiency and effect of liquid treatment are improved, the quality of the discharged liquid is ensured, and it is applicable to various drainage scenarios.

[0109] Based on the above implementation solution, in a feasible implementation manner, after the step of receiving the impurity detection data sent by the drainage end and performing impurity analysis on the impurity detection data to determine the impurity type of the liquid, S61 - S62 are further included:

[0110] Step S61, perform impurity analysis on the impurity detection data to determine the impurity concentration of the liquid.

[0111] Specifically, perform impurity analysis on the impurity detection data. For example, by comparing the spectral characteristics, chemical properties, etc. of known impurities, identify the types of impurities present in the liquid, such as grease, metal ions, fibers, etc. According to the information related to the impurity content in the impurity detection data, combined with specific calculation formulas or calibration curves, calculate the concentration of each impurity. For example, for the signal intensity obtained by the optical detection method, the impurity concentration in the liquid can be determined according to the pre - established relationship curve between the signal intensity and the impurity concentration.

[0112] Step S62, determine the pipeline cleaning method corresponding to the drainage pipe based on the impurity type and the impurity concentration, generate a corresponding pipeline cleaning instruction based on the pipeline cleaning method, and send the pipeline cleaning instruction to the drainage end so that the drainage end can clean the drainage pipe based on the pipeline cleaning instruction.

[0113] Specifically, a correspondence library of impurity types, impurity concentrations, and pipeline cleaning methods is established in the terminal; this library is established based on a large amount of experimental data and practical experience and contains the most suitable cleaning methods for different combinations of impurity types and concentrations. For example, for high-concentration oil impurities, it may correspond to the method of high-temperature and high-pressure water flushing combined with chemical cleaners; for low-concentration metal ion impurities, a specific adsorption material cleaning method may be used. According to the impurity type and impurity concentration, match in the correspondence library to find the most suitable cleaning method for the current drainage pipeline. Encode the determined pipeline cleaning method to generate a pipeline cleaning instruction. The instruction should include specific parameters of the cleaning method, such as the pressure, temperature, and time of high-temperature and high-pressure water flushing, and the type and dosage of chemical cleaners. Package the encoded instruction with relevant identification information (such as drainage pipeline number, cleaning task number, etc.) to form a complete pipeline cleaning instruction data packet. Send the packaged pipeline cleaning instruction data packet to the drainage end through a communication connection. After receiving the pipeline cleaning instruction, the drainage end parses it, extracts the cleaning method and relevant parameter information, and prepares the corresponding cleaning equipment and materials according to the parsed cleaning method; operates the cleaning equipment to clean the drainage pipeline according to the parameter requirements in the instruction; after the cleaning is completed, the drainage end sends a cleaning completion signal to the terminal to inform the terminal that the cleaning work of the drainage pipeline has ended.

[0114] Through the above solution, in this embodiment, by analyzing the impurity concentration and type, the cleaning method of the drainage pipeline is intelligently determined, improving the cleaning efficiency, reducing manual intervention, and extending the service life of the pipeline.

[0115] Based on the above implementation scheme, in a feasible implementation manner, the step of determining the pipeline cleaning method corresponding to the drainage pipeline based on the impurity type and the impurity concentration includes S71 to S74:

[0116] Step S71, when the impurity concentration is greater than or equal to a preset concentration threshold, determine the pipeline cleaning method corresponding to the drainage pipeline based on the impurity type.

[0117] It should be noted that the preset concentration threshold refers to a concentration limit value set for a specific type of impurity in the cleaning of the drainage pipeline. When the detected impurity concentration reaches or exceeds this value, the device will determine the corresponding pipeline cleaning method.

[0118] Specifically, a suitable concentration threshold is set for each type of impurity according to the specific actual situation. The impurity detection sensor is used to monitor the impurity concentration in the drainage pipeline in real time. The system automatically compares the detected impurity concentration with the preset concentration threshold. When the impurity concentration reaches or exceeds the preset concentration threshold, the system determines the corresponding cleaning method according to the impurity type.

[0119] Step S72, when the type of impurity is the third type of impurity, the drainage pipe is cleaned by means of high-pressure water flushing.

[0120] It should be noted that the third type of impurity refers to loose sediments that can be removed by hydraulic scouring, such as sediment, organic residues, etc.

[0121] Specifically, when the type of impurity is identified as the third type of impurity, the terminal determines to use the high-pressure water flushing method for pipe cleaning. After the drainage end receives the instruction, it starts the high-pressure water flushing equipment. Set the water pressure and flow rate according to the parameters in the instruction, and control the nozzle to conduct a comprehensive flushing of the drainage pipe. During the flushing process, pay attention to controlling the flushing direction and scope to ensure that all parts inside the pipe can be effectively cleaned.

[0122] Step S73, when the type of impurity is the fourth type of impurity, the drainage pipe is cleaned by means of chemical dissolution.

[0123] It should be noted that the fourth type of impurity refers to chemical adhesives that require chemical dissolution, such as grease, mineral scale, etc.

[0124] Specifically, when the type of impurity is the fourth type of impurity, the terminal determines to use the chemical dissolution method for cleaning. The drainage end prepares the corresponding chemical agent according to the instruction and injects it into the drainage pipe according to the specified concentration and dosage; after the agent is injected, let it stay in the pipe for a period of time to fully react with the impurity. During this period, the reaction progress can be judged by monitoring the reaction conditions inside the pipe (such as temperature, pressure changes, etc.).

[0125] Step S74, when the type of impurity is the fifth type of impurity, the drainage pipe is cleaned by means of mechanical scraping.

[0126] It should be noted that the fifth type of impurity refers to hard blockages that require mechanical intervention, such as tree roots, plastic fragments, etc.

[0127] Specifically, if the type of impurity is the fifth type of impurity, the terminal determines to use the mechanical scraping method for cleaning. The drainage end prepares suitable mechanical scraping tools, such as scrapers, brushes, etc., and installs them on the corresponding operating equipment; the operating equipment makes the scraping tool enter the drainage pipe and scrapes the inner wall of the pipe according to the operating speed and method in the instruction. During the scraping process, pay attention to controlling the strength and direction to avoid damaging the pipe.

[0128] Through the above solution, this embodiment can select a suitable cleaning method according to different types of impurities, which can more effectively remove specific types of impurities and reduce the risk of pipe blockage.

[0129] Based on the above implementation solutions, in a feasible implementation manner, the control method for the kitchen and bathroom sink drainage system further includes steps S81 to S82:

[0130] Step S81, construct a pipeline digital twin model according to the target sink and the drainage pipeline.

[0131] It should be noted that the pipeline digital twin model relies on digital technology and takes the target sink and its connected drainage pipeline as physical entities to construct a highly accurate and dynamically mapped digital mirror in the virtual space. Through real-time data interaction and intelligent algorithm drive, the pipeline digital twin model can dynamically reflect the actual operating state of the physical pipeline system, realize the accurate simulation and prediction of complex physical processes such as water flow and impurity transmission in the pipeline, and provide powerful data support for pipeline operation and maintenance management, performance optimization, etc.

[0132] Specifically, collect the detailed specifications of the target sink and the drainage pipeline, including dimensions, materials, connection methods, as well as the pipeline layout diagram and sink position information; create a digital model based on the obtained data information to ensure that the model can accurately reflect the geometric shape and connection relationship of the actual pipeline; integrate interfaces in the digital twin model to receive data from water level sensors, flow rate sensors, and impurity detection sensors.

[0133] Step S82, synchronously update the pipeline state in the pipeline digital twin model based on the water level data, the flow rate data, and the impurity detection data, and provide the updated pipeline state to the target user.

[0134] It should be noted that the pipeline state refers to the data that comprehensively reflects various characteristics such as the internal water flow, impurity distribution, and the physical condition of the pipeline itself at a specific moment of the drainage pipeline. The pipeline state includes but is not limited to the water level height, water flow velocity, impurity type, impurity concentration, impurity distribution, and the physical state of the pipeline.

[0135] Specifically, obtain the water level data, flow rate data, and impurity detection data in real time; preprocess the collected data, including data cleaning, format conversion, etc., to meet the requirements of model update; input the processed data into the digital twin model to update the pipeline state in the model; display the updated pipeline state to the user through the graphical interface of the terminal, enabling the user to intuitively understand the current condition of the pipeline. Use the model to analyze the updated pipeline state and identify potential problems such as blockage and leakage.

[0136] Through the above solutions in this embodiment, real-time monitoring and intelligent management of the kitchen and bathroom sink drainage system can be achieved through the pipeline digital twin model, improving the operation efficiency and reliability of the system, and also enhancing the efficiency of system operation and maintenance.

[0137] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the control method of the kitchen and bathroom sink drainage system of this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.

[0138] This application also provides a control device for a kitchen and bathroom sink drainage system. Please refer to Figure 2 The control device for the kitchen and bathroom sink drainage system includes:

[0139] A data acquisition module 201, configured to receive a drainage start instruction sent by a terminal, obtain water level data and flow rate data of the liquid in the target sink based on the drainage start instruction, and send the water level data and the flow rate data to the terminal;

[0140] A valve adjustment module 202, configured to receive a valve opening control instruction sent by the terminal, and dynamically adjust the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve. The valve opening control instruction is obtained by the terminal through a feedback control algorithm for control analysis of the water level data and the flow rate data;

[0141] An impurity detection module 203, configured to detect impurities in the liquid through an impurity detection sensor on the drainage pipe, obtain impurity detection data of the liquid, and send the impurity detection data to the terminal, so that the terminal performs impurity analysis on the impurity detection data to determine the impurity type of the liquid, generate a corresponding liquid treatment instruction based on the impurity type, and send it to the drainage end;

[0142] A liquid treatment module 204, configured to receive a liquid treatment instruction sent by the terminal, perform liquid treatment on the liquid based on the liquid treatment instruction, and discharge the treated liquid through the drainage pipe.

[0143] The control device for the kitchen and bathroom sink drainage system provided by this application adopts the control method of the kitchen and bathroom sink drainage system in the above embodiment, and can solve the technical problem that it is difficult for the kitchen and bathroom sink drainage system to adapt to multiple scenarios. Compared with the prior art, the beneficial effects of the control device for the kitchen and bathroom sink drainage system provided by this application are the same as those of the control method of the kitchen and bathroom sink drainage system provided by the above embodiment, and other technical features in the control device for the kitchen and bathroom sink drainage system are the same as the features disclosed in the method of the above embodiment, and will not be elaborated here.

[0144] The present application provides a control device for a kitchen and bathroom sink drainage system. The control device for the kitchen and bathroom sink drainage system includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the kitchen and bathroom sink drainage system control method in the first embodiment above.

[0145] Reference is made below to Figure 3 , which shows a schematic structural diagram of a control device for a kitchen and bathroom sink drainage system suitable for implementing the embodiments of the present application. The control device for the kitchen and bathroom sink drainage system in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The control device for the kitchen and bathroom sink drainage system shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0146] As Figure 3As shown, the control device for the kitchen and bathroom sink drainage system may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1002 or the program loaded from the storage device 1003 into the random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the control device for the kitchen and bathroom sink drainage system are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. The input / output interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the control device for the kitchen and bathroom sink drainage system to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a control device for the kitchen and bathroom sink drainage system having various systems, it should be understood that it is not required to implement or have all the shown systems. Instead, more or fewer systems can be implemented or had.

[0147] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.

[0148] The control device for the kitchen and bathroom sink drainage system provided in the present application adopts the control method for the kitchen and bathroom sink drainage system in the above-mentioned embodiment, and can solve the technical problem that it is difficult for the kitchen and bathroom sink drainage system to adapt to multiple scenarios. Compared with the prior art, the beneficial effects of the control device for the kitchen and bathroom sink drainage system provided in the present application are the same as those of the control method for the kitchen and bathroom sink drainage system provided in the above-mentioned embodiment, and other technical features in the control device for the kitchen and bathroom sink drainage system are the same as those disclosed in the method of the previous embodiment, and will not be elaborated here.

[0149] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0150] As described above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

[0151] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the kitchen and bathroom sink drainage system control method in the above embodiments.

[0152] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0153] The above computer-readable storage medium can be included in the kitchen and bathroom sink drainage system control device; it can also exist separately without being assembled into the kitchen and bathroom sink drainage system control device.

[0154] The above computer-readable storage medium carries one or more programs. When the one or more programs are executed by the control device of the kitchen and bathroom sink drainage system, the control device of the kitchen and bathroom sink drainage system is caused to: The kitchen and bathroom sink drainage control method is applied to the drainage end and includes: receiving a drainage start instruction sent by a terminal, obtaining water level data and flow rate data of the liquid in the target sink based on the drainage start instruction, and sending the water level data and the flow rate data to the terminal; receiving a valve opening control instruction sent by the terminal, and dynamically adjusting the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve. The valve opening control instruction is obtained by the terminal through a feedback control algorithm for controlling and analyzing the water level data and the flow rate data; detecting impurities in the liquid through an impurity detection sensor on the drainage pipe to obtain impurity detection data of the liquid, and sending the impurity detection data to the terminal so that the terminal analyzes the impurity detection data to determine the impurity type of the liquid, generates a corresponding liquid treatment instruction based on the impurity type and sends it to the drainage end; receiving the liquid treatment instruction sent by the terminal, performing liquid treatment on the liquid based on the liquid treatment instruction, and discharging the treated liquid through the drainage pipe.

[0155] Computer program code for performing the operations of the present application can be written in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages - such as Java, Smalltalk, C++, and also include conventional procedural programming languages - such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN: Local Area Network) or a wide area network (WAN: Wide Area Network), or can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

[0156] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0157] The modules described in the embodiments of the present application can be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.

[0158] The readable storage medium provided by the present application is a computer-readable storage medium, and the computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned control method for the kitchen and bathroom sink drainage system, which can solve the technical problem that the kitchen and bathroom sink drainage system is difficult to adapt to multiple scenarios. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the control method for the kitchen and bathroom sink drainage system provided in the above embodiments, and will not be elaborated here.

[0159] The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the steps of the control method for the kitchen and bathroom sink drainage system as described above.

[0160] The computer program product provided by the present application can solve the technical problem that the kitchen and bathroom sink drainage system is difficult to adapt to multiple scenarios. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the control method for the kitchen and bathroom sink drainage system provided in the above embodiments, and will not be elaborated here.

[0161] The above are only some embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.

Claims

1. A control method for a drainage system of a kitchen and bathroom washbasin, characterized in that, The control method of the kitchen and bathroom sink drainage system is applied to the drainage end, and the control method of the kitchen and bathroom sink drainage system includes: Receiving a drainage start instruction sent by the terminal, obtaining the water level data and flow rate data of the liquid in the target sink based on the drainage start instruction, and sending the water level data and the flow rate data to the terminal; Receiving a valve opening control instruction sent by the terminal, dynamically adjusting the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve, and the valve opening control instruction is obtained by the terminal through control analysis of the water level data and the flow rate data by a feedback control algorithm; Detecting impurities in the liquid through an impurity detection sensor on the drainage pipe, obtaining the impurity detection data of the liquid, and sending the impurity detection data to the terminal, so that the terminal analyzes the impurity detection data to determine the impurity type of the liquid, generates a corresponding liquid treatment instruction based on the impurity type, and sends it to the drainage end; Receiving the liquid treatment instruction sent by the terminal, performing liquid treatment on the liquid based on the liquid treatment instruction, and discharging the treated liquid through the drainage pipe.

2. The control method of the kitchen and bathroom sink drainage system according to claim 1, wherein The step of obtaining the water level data and flow rate data of the liquid in the target sink based on the drainage start instruction includes: Detecting the water level height in the target sink through a water level sensor to generate the water level data of the target sink; Detecting the water flow velocity in the target sink through a flow rate sensor to generate the flow rate data of the target sink.

3. The control method of the kitchen and bathroom sink drainage system according to claim 1, characterized in that, After the step of detecting impurities in the liquid through an impurity detection sensor on the drainage pipe, obtaining the impurity detection data of the liquid, and sending the impurity detection data to the terminal, the following is further included: Receiving a pipe cleaning instruction sent by the terminal, cleaning the drainage pipe based on the pipe cleaning instruction, and the pipe cleaning instruction is generated by the terminal based on the impurity concentration and impurity type to determine the corresponding pipe cleaning method for the drainage pipe.

4. A control method for a drainage system of a kitchen and bathroom washbasin, characterized in that, The control method of the kitchen and bathroom sink drainage system is applied to the terminal, and the control method of the kitchen and bathroom sink drainage system includes: Sending a drainage start instruction to the drainage end, so that the drainage end obtains the water level data and flow rate data of the liquid in the target sink based on the drainage start instruction and then sends them to the terminal; Receiving the water level data and the flow rate data sent by the terminal, performing control analysis on the water level data and the flow rate data through a feedback control algorithm, generating a valve opening control instruction, and sending the valve opening control instruction to the drainage end, so that the drainage end dynamically adjusts the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve; Receive the impurity detection data sent by the drainage end, perform impurity analysis on the impurity detection data to determine the impurity type of the liquid, determine the corresponding liquid treatment method based on the impurity type, generate a corresponding liquid treatment instruction based on the liquid treatment method and send it to the drainage end, so that the drainage end performs liquid treatment on the liquid based on the liquid treatment instruction method, and discharge the treated liquid through the drainage pipe.

5. The control method of the kitchen and bathroom sink drainage system according to claim 4, characterized in that, The step of determining the corresponding liquid treatment method based on the impurity type includes: When the impurity type is the first type of impurity, separate the liquid through a centrifugal separation device; When the impurity type is the second type of impurity, filter the liquid through a filtering device.

6. The control method of the kitchen and bathroom sink drainage system according to claim 4, characterized in that After the step of receiving the impurity detection data sent by the drainage end and performing impurity analysis on the impurity detection data to determine the impurity type of the liquid, it further includes: Perform impurity analysis on the impurity detection data to determine the impurity concentration of the liquid; Determine the corresponding pipeline cleaning method for the drainage pipe based on the impurity type and the impurity concentration, generate a corresponding pipeline cleaning instruction based on the pipeline cleaning method, and send the pipeline cleaning instruction to the drainage end, so that the drainage end cleans the drainage pipe based on the pipeline cleaning instruction.

7. The control method of the kitchen and bathroom sink drainage system according to claim 6, characterized in that, The step of determining the corresponding pipeline cleaning method for the drainage pipe based on the impurity type and the impurity concentration includes: When the impurity concentration is greater than or equal to a preset concentration threshold, determine the corresponding pipeline cleaning method for the drainage pipe based on the impurity type; When the impurity type is the third type of impurity, clean the drainage pipe by high-pressure water flushing; When the impurity type is the fourth type of impurity, clean the drainage pipe by chemical dissolution; When the impurity type is the fifth type of impurity, clean the drainage pipe by mechanical scraping.

8. The control method for the drainage system of the kitchen and bathroom washbasin according to any one of claims 1 to 7, characterized in that, The control method of the kitchen and bathroom sink drainage system further includes: Construct a pipeline digital twin model according to the target sink and the drainage pipe; Synchronously update the pipeline state in the pipeline digital twin model based on the water level data, the flow rate data, and the impurity detection data, and provide the updated pipeline state to the target user.

9. A control device for a drainage system of a kitchen and bathroom washbasin, characterized in that, The control device of the kitchen and bathroom sink drainage system includes: A data acquisition module, configured to receive a drainage start instruction sent by a terminal, acquire the water level data and the flow rate data of the liquid in the target sink based on the drainage start instruction, and send the water level data and the flow rate data to the terminal; A valve adjustment module, configured to receive a valve opening control instruction sent by the terminal, dynamically adjust the opening of the electric valve based on the valve opening control instruction so that the liquid is transmitted to the drainage pipe through the electric valve, and the valve opening control instruction is obtained by the terminal through a feedback control algorithm for control analysis of the water level data and the flow rate data; An impurity detection module is used to detect impurities in the liquid through an impurity detection sensor on the drainage pipe, obtain the impurity detection data of the liquid, and send the impurity detection data to the terminal, so that the terminal analyzes the impurity detection data to determine the impurity type of the liquid, generates a corresponding liquid treatment instruction based on the impurity type and sends it to the drainage end; A liquid treatment module is used to receive the liquid treatment instruction sent by the terminal, perform liquid treatment on the liquid based on the liquid treatment instruction, and discharge the treated liquid through the drainage pipe.

10. A control device for a drainage system of a kitchen and bathroom washbasin, characterized in that, The device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the control method for the kitchen and bathroom sink drainage system according to any one of claims 1 to 8.