CN108181056B - Indoor water leakage detection method and system, storage medium and electronic equipment - Google Patents

Indoor water leakage detection method and system, storage medium and electronic equipment Download PDF

Info

Publication number
CN108181056B
CN108181056B CN201711394967.2A CN201711394967A CN108181056B CN 108181056 B CN108181056 B CN 108181056B CN 201711394967 A CN201711394967 A CN 201711394967A CN 108181056 B CN108181056 B CN 108181056B
Authority
CN
China
Prior art keywords
water leakage
capacitance
water
short
indoor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711394967.2A
Other languages
Chinese (zh)
Other versions
CN108181056A (en
Inventor
苑芳生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Kohler Electronics Ltd
Original Assignee
Shanghai Kohler Electronics Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Kohler Electronics Ltd filed Critical Shanghai Kohler Electronics Ltd
Priority to CN201711394967.2A priority Critical patent/CN108181056B/en
Publication of CN108181056A publication Critical patent/CN108181056A/en
Application granted granted Critical
Publication of CN108181056B publication Critical patent/CN108181056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M3/00Investigating fluid-tightness of structures
    • G01M3/02Investigating fluid-tightness of structures by using fluid or vacuum
    • G01M3/04Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point
    • G01M3/16Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point using electric detection means

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Examining Or Testing Airtightness (AREA)

Abstract

The invention discloses an indoor water leakage detection method, an indoor water leakage detection system, a storage medium and electronic equipment, wherein the method comprises the following steps: when detecting that at least one short-circuit induction electrode which is arranged in an accumulated water detection device on the ground and is electrically connected with a first general input/output port of a controller is short-circuited, acquiring the capacitance value of a capacitance induction electrode which is arranged in the accumulated water detection device and is electrically connected with a second general input/output port of the controller according to preset activity times to generate a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode; and judging whether water leaks indoors or not according to the capacitance value array. When the short circuit induction electrode is in short circuit, the controller collects capacitance values of the capacitance induction electrode for multiple times to generate a capacitance value array, and whether water leaks indoors is judged according to the capacitance value array, so that whether water leaks is accurately judged, and misjudgment is prevented.

Description

Indoor water leakage detection method and system, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of water leakage detection, in particular to an indoor water leakage detection method, an indoor water leakage detection system, a storage medium and electronic equipment.
Background
With the continuous improvement of living standard, water becomes an essential substance for human life, and in daily life, domestic water is mainly conveyed to indoor space through a water pipe for people to use. However, due to the influence of the service life and the environment, the water pipe is easy to break, or people forget to close the water faucet when using the water pipe, so that the indoor water leakage phenomenon is caused, indoor household equipment is damaged, and serious economic loss is brought to users.
The existing indoor water leakage detection methods mainly comprise the following steps:
1) the water inlet pipe is provided with a flow sensor, the water inlet flow of the water inlet pipe is detected through the flow sensor, and whether water leakage occurs is judged according to an empirical value;
2) when the potential difference of the induction electrode disappears, water leakage is judged;
3) the first method and the second method are combined to judge whether water leakage occurs or not, and if the application number is 201620074666.6, the name is Chinese utility model patent of an intelligent household water leakage prevention system based on the Internet of things.
The existing indoor water leakage detection system has the following defects:
1) the first detection method needs to set a relatively large flow threshold, and only when the water leakage reaches the flow threshold, the water leakage can be detected, and at this time, indoor home may be damaged, and whether the water leakage occurs indoors cannot be accurately detected.
2) In the second detection method, when the ground is affected with moisture, condensation and the like, the potential difference of the sensing electrode disappears, so that water leakage misjudgment is easy to occur, whether water leaks indoors or not cannot be accurately detected, and inconvenience is brought to users;
3) the third detection method is simply to superpose the first detection method and the second detection method, and the defects of the two methods still exist, and accurate judgment on whether water leaks indoors cannot be achieved.
Disclosure of Invention
The invention aims to overcome the defects that the prior art is easy to generate water leakage misjudgment and cannot accurately detect whether water leaks indoors, and provides an indoor water leakage detection method, an indoor water leakage detection system, a storage medium and electronic equipment.
The technical scheme of the invention provides an indoor water leakage detection method, which comprises the following steps:
when detecting that at least one short-circuit induction electrode which is arranged in a water accumulation detection device on the ground and is electrically connected with a first general input/output port of a controller is short-circuited, acquiring the capacitance value of a capacitance induction electrode which is arranged in the water accumulation detection device and is electrically connected with a second general input/output port of the controller according to preset activity times to generate a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode;
and judging whether water leaks indoors or not according to the capacitance value array, and generating judgment result information, wherein the judgment result information comprises water leakage and water leakage.
Further, the determining whether water leakage occurs according to the capacitance array specifically includes:
calculating a standard deviation according to the capacitance value array to generate a variance value;
and when the variance value is larger than or equal to a preset variance threshold value, judging that the indoor environment is water leakage.
Further, the calculating a standard deviation according to the capacitance value array specifically includes:
the standard deviation was calculated using the following formula:
Figure BDA0001518323690000021
wherein S is the standard deviation, n is the number of samples, XiX is the average of n sample data.
Further, the determining whether water leaks indoors according to the capacitance array to generate determination result information, and then further includes:
and when the judgment result information indicates that water leaks, sending a water leakage alarm signal, and sending a closing control signal to an electromagnetic valve for controlling the opening or closing of the indoor water main.
The technical scheme of the invention provides an indoor water leakage detection system, which comprises: controller and the ponding detection device who sets up subaerial, ponding detection device include at least one with the short circuit response electrode that the first general input/output port electricity of controller is connected and with the electric capacity response electrode that the second general input/output port electricity of controller is connected, the controller still includes:
the acquisition module is used for acquiring the capacitance value of the capacitance induction electrode according to preset activity times when the short circuit of the short circuit induction electrode is detected, and generating a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode;
and the judging module is used for judging whether water leaks indoors or not according to the capacitance value array and generating judging result information, wherein the judging result information comprises water leakage and water leakage.
Further, the judging module includes:
the calculation module is used for calculating the standard deviation according to the capacitance value array to generate a variance value;
and the judgment submodule is used for judging that the indoor environment is water leakage when the variance value is greater than or equal to a preset variance threshold value.
Further, the calculation module is further configured to:
the standard deviation was calculated using the following formula:
Figure BDA0001518323690000031
wherein S is the standard deviation, n is the number of samples, XiX is the average of n sample data.
Further, the controller further includes:
and the alarm module is used for sending a water leakage alarm signal when the judgment result information is water leakage and sending a closing control signal to an electromagnetic valve for controlling the indoor water main to be opened or closed.
The technical scheme of the invention provides a storage medium, which stores computer instructions and is used for executing all the steps of the indoor water leakage detection method when a computer executes the computer instructions.
The technical scheme of the invention provides electronic equipment, which comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
when detecting that at least one short-circuit induction electrode which is arranged in a water accumulation detection device on the ground and is electrically connected with a first general input/output port of a controller is short-circuited, acquiring the capacitance value of a capacitance induction electrode which is arranged in the water accumulation detection device and is electrically connected with a second general input/output port of the controller according to preset activity times to generate a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode;
and judging whether water leaks indoors or not according to the capacitance value array, and generating judgment result information, wherein the judgment result information comprises water leakage and water leakage.
Further, the determining whether water leakage occurs according to the capacitance array specifically includes:
calculating a standard deviation according to the capacitance value array to generate a variance value;
and when the variance value is larger than or equal to a preset variance threshold value, judging that the indoor environment is water leakage.
Further, the calculating a standard deviation according to the capacitance value array specifically includes:
the standard deviation was calculated using the following formula:
Figure BDA0001518323690000041
wherein S is the standard deviation, n is the number of samples, XiX is the average of n sample data.
Further, the determining whether water leaks indoors according to the capacitance array to generate determination result information, and then further includes:
and when the judgment result information indicates that water leaks, sending a water leakage alarm signal, and sending a closing control signal to an electromagnetic valve for controlling the opening or closing of the indoor water main.
After adopting above-mentioned technical scheme, have following beneficial effect: through setting up short circuit response electrode and electric capacity response electrode and being connected with the first general input/output mouth electricity of controller respectively, when short circuit response electrode took place the short circuit, the controller gathered the capacitance value of electric capacity response electrode many times, generated the capacitance value array, whether leak according to capacitance value array judgement indoor to whether realize accurate judgement and leak, prevent the erroneous judgement.
Drawings
The disclosure of the present invention will become more readily understood by reference to the drawings. It should be understood that: these drawings are for illustrative purposes only and are not intended to limit the scope of the present disclosure. In the figure:
fig. 1 is a schematic view of a working flow of an indoor water leakage detection method according to an embodiment of the present invention;
FIG. 2 is a schematic view of a flow chart of an indoor water leakage detection method according to an alternative embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an indoor water leakage detection system according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an indoor water leakage detection system according to an alternative embodiment of the present invention;
fig. 5 is a schematic hardware configuration diagram of an electronic device for performing an indoor water leakage detection method according to a sixth embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings.
It is easily understood that according to the technical solution of the present invention, those skilled in the art can substitute various structures and implementation manners without changing the spirit of the present invention. Therefore, the following detailed description and the accompanying drawings are merely illustrative of the technical aspects of the present invention, and should not be construed as limiting or restricting the technical aspects of the present invention.
The terms of orientation of up, down, left, right, front, back, top, bottom, and the like referred to or may be referred to in this specification are defined relative to the configuration shown in the drawings, and are relative terms, and thus may be changed correspondingly according to the position and the use state of the device. Therefore, these and other directional terms should not be construed as limiting terms.
Example one
As shown in fig. 1, fig. 1 is a schematic view of a work flow of an indoor water leakage detection method according to an embodiment of the present invention. The method in fig. 1 may be executed by a single chip Microcomputer (MCU), the MCU is connected to a device for detecting water accumulation on the ground in a wired or wireless manner, in order to save electricity and reduce power consumption, the MCU automatically enters a sleep mode after initialization, and performs self-checking of the device at regular intervals (for example, 60 seconds), if all is normal, the device continues to enter the sleep mode, and if not, the following method steps are executed:
step S11: when detecting that at least one short-circuit induction electrode which is arranged in an accumulated water detection device on the ground and is electrically connected with a first general input/output port of a controller is short-circuited, acquiring the capacitance value of a capacitance induction electrode which is arranged in the accumulated water detection device and is electrically connected with a second general input/output port of the controller according to preset activity times to generate a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode;
step S12: and judging whether water leaks indoors or not according to the capacitance value array, and generating judgment result information, wherein the judgment result information comprises water leakage and water leakage.
Particularly, set up a plurality of metal contact points and a electric capacity response electrode on the ponding detection device, at least one metal contact point is connected with MCU's first General Purpose Input Output (GPIO) mouth electricity, all the other metal contact points ground connection, make the metal contact point of being connected with MCU's first GPIO mouth electricity form short circuit response electrode, electric capacity response electrode is connected with MCU's second GPIO mouth electricity, do not connect between first GPIO mouth and the second GPIO mouth, independent setting. It should be noted that, in order to enable the accumulated water detection device to detect accumulated water in a larger range and improve the sensitivity of the accumulated water detection device, a plurality of metal contact points arranged in different directions can be simultaneously and electrically connected with the first GPIO port of the MCU to form a short circuit induction electrode.
When water is accumulated on the ground, the short circuit induction electrode is in short circuit, and a resistor is connected between the short circuit induction electrode and the ground in parallel, so that the level of the first GPIO port of the MCU is lowered, and the MCU is triggered to be awakened by external interruption, and the state of the MCU is abnormal. The MCU collects the capacitance value of the capacitance sensing electrode according to the preset activity times to generate a capacitance value array, so that the continuous learning environment of the capacitance sensing electrode is realized. And when the capacitance value in the capacitance value array does not change greatly and is a constant value, judging that no water leakage occurs, and continuously entering the sleep mode by the MCU. When the capacitance value in the capacitance value array is changed greatly, water leakage is judged.
The preset number of activities may be to collect capacitance values of the capacitive sensing electrode multiple times in a certain period, for example, one time every 100 milliseconds, and 22 times in connection.
According to the indoor water leakage detection method, the short circuit induction electrode and the capacitance induction electrode are respectively and electrically connected with the first universal input/output port of the controller, when the short circuit induction electrode is short-circuited, the controller collects capacitance values of the capacitance induction electrode for multiple times to generate a capacitance value array, and whether water leaks indoors is judged according to the capacitance value array, so that whether water leaks or not is accurately judged, and misjudgment is prevented.
Example two
As shown in fig. 2, fig. 2 is a schematic view of a working flow of an indoor water leakage detection method according to an optional embodiment of the present invention, and the method in fig. 2 further adds a specific water leakage determination method and an alarm processing method based on the first embodiment, so that the same parts as the first embodiment are not described again. The method comprises the following steps:
step S21: when detecting that at least one short-circuit induction electrode which is arranged in an accumulated water detection device on the ground and is electrically connected with a first general input/output port of a controller is short-circuited, acquiring the capacitance value of a capacitance induction electrode which is arranged in the accumulated water detection device and is electrically connected with a second general input/output port of the controller according to preset activity times to generate a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode;
step S22: calculating a standard deviation according to the capacitance value array to generate a variance value;
step S23: when the variance value is larger than or equal to a preset variance threshold value, judging that water leakage exists indoors;
step S24: and when the judgment result information is water leakage, sending a water leakage alarm signal, and sending a closing control signal to an electromagnetic valve for controlling the opening or closing of a water main in the control room.
Specifically, when the capacitance values of the capacitive sensing electrodes are acquired, the maximum value and the minimum value are removed to generate a capacitance value array, and then the standard deviation is calculated by using the following formula:
Figure BDA0001518323690000071
wherein S is the standard deviation, n is the number of samples, XiX is the average of n sample data.
The standard deviation of the acquired capacitance array is calculated by the above formula, and after the variance value is generated, the generated variance value is compared with a preset variance threshold, where the preset variance threshold is 10 as an example. And when the variance value is less than 10, the situation that the environment is abnormal, such as humidity, is judged to be water-tight, and an environment abnormal command is sent to the user. When the variance value is more than or equal to 10, water leakage is judged, a water leakage alarm signal is sent to a user, if the water leakage alarm signal is sent to a user mobile terminal through a buzzer, the user is prompted, meanwhile, a closing control signal is sent to an electromagnetic valve arranged on a water main, so that the electromagnetic valve is controlled to be closed, and water resource waste is avoided.
According to the indoor water leakage detection method, the short circuit induction electrode and the capacitance induction electrode are respectively and electrically connected with the first universal input/output port of the controller, when the short circuit induction electrode is short-circuited, the controller collects capacitance values of the capacitance induction electrode for multiple times to generate a capacitance value array, and whether water leaks indoors is judged according to the capacitance value array, so that whether water leaks or not is accurately judged, and misjudgment is prevented. Meanwhile, the user is prompted by sending an alarm signal to the user, and a closing control signal is sent to the electromagnetic valve arranged on the water main to control the electromagnetic valve to be closed, so that water resource waste is avoided.
EXAMPLE III
As shown in fig. 3, fig. 3 is a schematic structural diagram of an indoor water leakage detection system according to an embodiment of the present invention, and a system according to a third embodiment corresponds to the method according to the first embodiment, and therefore, the same parts as those in the first embodiment are not described again. The system comprises: controller 31 and the ponding detection device 32 of setting on ground, ponding detection device 32 includes at least one short circuit response electrode 321 that is connected with the first general input/output 311 electricity of controller 31, and with the electric capacity response electrode 322 that is connected with the second general input/output 312 electricity of controller 31, and controller 31 still includes:
an acquisition module 313, configured to acquire a capacitance value of the capacitive sensing electrode 322 according to a preset number of activities when the short circuit 321 of the short sensing electrode is detected, and generate a capacitance value array, where the number of activities indicates the number of times of acquiring the capacitive sensing electrode 322;
the determining module 314 is configured to determine whether water leaks indoors according to the capacitance array, and generate determination result information, where the determination result information includes water leakage and water leakage.
According to the indoor water leakage detection system, the short circuit induction electrode and the capacitance induction electrode are respectively and electrically connected with the first universal input/output port of the controller, when the short circuit induction electrode is short-circuited, the controller collects capacitance values of the capacitance induction electrode for multiple times to generate a capacitance value array, and whether water leaks indoors is judged according to the capacitance value array, so that whether water leaks or not is accurately judged, and misjudgment is prevented.
Example four
As shown in fig. 4, fig. 4 is a schematic structural diagram of an indoor water leakage detection system according to an optional embodiment of the present invention, and a system of the fourth embodiment corresponds to the method of the second embodiment, so that the same parts as those in the second embodiment are not described again. The system comprises: controller 41 and the ponding detection device 42 that sets up on ground, ponding detection device 42 include at least one short circuit response electrode 421 with the first general input/output port 411 electricity of controller 41 is connected, and with the electric capacity response electrode 422 that the second general input/output port 412 electricity of controller 41 is connected, and controller 41 still includes:
the acquisition module 413 is configured to acquire a capacitance value of the capacitive sensing electrode 422 according to a preset number of activities when the short circuit of the short circuit sensing electrode 421 is detected, and generate a capacitance value array, where the number of activities indicates the number of times of acquiring the capacitive sensing electrode 422;
a calculating module 414, configured to calculate a standard deviation according to the capacitance value array, and generate a variance value;
and a determining sub-module 415, configured to determine that water leaks indoors when the variance value is greater than or equal to a preset variance threshold.
And the alarm module 416 is configured to send a water leakage alarm signal when the determination result information indicates that water leakage occurs, and send a closing control signal to an electromagnetic valve that controls opening or closing of a water main in the room.
According to the indoor water leakage detection system, the short circuit induction electrode and the capacitance induction electrode are respectively and electrically connected with the first universal input/output port of the controller, when the short circuit induction electrode is short-circuited, the controller collects capacitance values of the capacitance induction electrode for multiple times to generate a capacitance value array, and whether water leaks indoors is judged according to the capacitance value array, so that whether water leaks or not is accurately judged, and misjudgment is prevented. Meanwhile, an alarm signal is sent to the user through the alarm module to prompt the user, a closing control signal is sent to the electromagnetic valve arranged on the water main, the electromagnetic valve is controlled to be closed, and water resource waste is avoided.
EXAMPLE five
A fifth embodiment of the present invention provides a non-volatile computer storage medium having stored thereon computer-executable instructions that may perform the method for detecting an indoor water leak in any of the above-described method embodiments.
EXAMPLE six
As shown in fig. 5, fig. 5 is a schematic diagram of a hardware structure of an electronic device for executing an indoor water leakage detection method according to a sixth embodiment of the present invention, which mainly includes: at least one processor 51; and a memory 52 communicatively coupled to the at least one processor 51; wherein the memory 52 stores instructions executable by the one processor 51, the instructions being executable by the at least one processor 51 to enable the at least one processor 51 to perform the method flows as shown in fig. 1-4.
The electronic device performing indoor water leakage detection may further include: an input device 53 and an output device 54.
The processor 51, the memory 52, the input device 53 and the output device 54 may be connected by a bus or other means, and fig. 5 illustrates the bus connection.
The memory 52 is a non-volatile computer-readable storage medium, and can be used to store a non-volatile software program, a non-volatile computer-executable program, and modules, such as program instructions/modules corresponding to the indoor water leakage detection method in the embodiments of the present application, for example, the method flow shown in fig. 1-4, the controller 31 shown in fig. 3, the first general input/output port 311, the second general input/output port 312, the collecting module 313, the determining module 314, the water accumulation detecting device 32, the short-circuit sensing electrode 321, and the capacitance sensing electrode 322. The processor 51 executes various functional applications and data processing by running the nonvolatile software programs, instructions and modules stored in the memory 52, that is, implements the indoor water leakage detection method in the above-described embodiment.
The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created when the indoor water leakage detection method is performed, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 52 may optionally include memory located remotely from the processor 51, and these remote memories may be connected to the indoor water leak detection system via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 53 may receive input from a user click and generate signal inputs related to user settings and functional control of the indoor water leak detection system. The output device 54 may include a display device such as a display screen.
The indoor water leakage detection method in any of the method embodiments described above is performed when the one or more modules are stored in the memory 52 and executed by the one or more processors 51.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of embodiments of the present invention exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic devices with data interaction functions.
Furthermore, the logic instructions in the memory 52 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a mobile terminal (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by software plus a necessary general hardware server, and of course, can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and not to limit the same; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. An indoor water leakage detection method is characterized by comprising the following steps:
when detecting that at least one short-circuit induction electrode which is arranged in an accumulated water detection device on the ground and is electrically connected with a first general input/output port of a controller is short-circuited, acquiring the capacitance value of a capacitance induction electrode which is arranged in the accumulated water detection device and is electrically connected with a second general input/output port of the controller according to preset activity times to generate a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode according to a preset time interval in a certain period, the accumulated water detection device is provided with a plurality of short-circuit induction electrodes and one capacitance induction electrode, at least one short-circuit induction electrode is electrically connected with the first general input/output port, and the rest short-circuit induction electrodes are grounded;
and judging whether water leaks indoors or not according to the capacitance value array, and generating judgment result information, wherein the judgment result information comprises water leakage and water leakage.
2. The method for detecting indoor water leakage according to claim 1, wherein the determining whether indoor water leakage occurs according to the capacitance array specifically includes:
calculating a standard deviation according to the capacitance value array to generate a variance value;
and when the variance value is larger than or equal to a preset variance threshold value, judging that the indoor environment is water leakage.
3. The method of claim 2, wherein the calculating a standard deviation from the capacitance array comprises:
the standard deviation was calculated using the following formula:
Figure FDA0002590463970000011
wherein S is the standard deviation, n is the number of samples, XiX is the average of n sample data.
4. An indoor water leakage detection method according to any one of claims 1 to 3, wherein the method for determining whether water leaks indoors according to the capacitance array and generating determination result information further comprises:
and when the judgment result information indicates that water leaks, sending a water leakage alarm signal, and sending a closing control signal to an electromagnetic valve for controlling the opening or closing of the indoor water main.
5. An indoor water leakage detection system, comprising: controller and the ponding detection device who sets up subaerial, ponding detection device includes a plurality of short circuit response electrodes and a electric capacity response electrode, at least one short circuit response electrode with the first general input/output ports electricity of controller is connected, all the other short circuit response electrode ground connection, electric capacity response electrode with the second general input/output ports electricity of controller is connected, the controller still includes:
the acquisition module is used for acquiring the capacitance value of the capacitive sensing electrode according to preset activity times when the short circuit of the short circuit sensing electrode is detected, and generating a capacitance value array, wherein the activity times represent the times of acquiring the capacitive sensing electrode according to a preset time interval in a certain period;
and the judging module is used for judging whether water leaks indoors or not according to the capacitance value array and generating judging result information, wherein the judging result information comprises water leakage and water leakage.
6. The indoor water leakage detection system according to claim 5, wherein said judging module comprises:
the calculation module is used for calculating the standard deviation according to the capacitance value array to generate a variance value;
and the judgment submodule is used for judging that the indoor environment is water leakage when the variance value is greater than or equal to a preset variance threshold value.
7. The indoor water leak detection system of claim 6, wherein the calculation module is further configured to:
the standard deviation was calculated using the following formula:
Figure FDA0002590463970000021
wherein S is the standard deviation, n is the number of samples, XiX is the average of n sample data.
8. The indoor water leakage detection system as claimed in any one of claims 5 to 7, wherein said controller further comprises:
and the alarm module is used for sending a water leakage alarm signal when the judgment result information is water leakage and sending a closing control signal to an electromagnetic valve for controlling the indoor water main to be opened or closed.
9. A storage medium storing computer instructions for performing all the steps of the indoor water leakage detection method according to any one of claims 1 to 4 when the computer instructions are executed by a computer.
10. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when detecting that at least one short-circuit induction electrode which is arranged in an accumulated water detection device on the ground and is electrically connected with a first general input/output port of a controller is short-circuited, acquiring the capacitance value of a capacitance induction electrode which is arranged in the accumulated water detection device and is electrically connected with a second general input/output port of the controller according to preset activity times to generate a capacitance value array, wherein the activity times represent the times of acquiring the capacitance induction electrode, the accumulated water detection device is provided with a plurality of short-circuit induction electrodes and one capacitance induction electrode, at least one short-circuit induction electrode is electrically connected with the first general input/output port, and the rest short-circuit induction electrodes are grounded;
and judging whether water leaks indoors or not according to the capacitance value array, and generating judgment result information, wherein the judgment result information comprises water leakage and water leakage.
11. The electronic device of claim 10, wherein the determining whether water leaks indoors according to the capacitance array specifically comprises:
calculating a standard deviation according to the capacitance value array to generate a variance value;
and when the variance value is larger than or equal to a preset variance threshold value, judging that the indoor environment is water leakage.
12. The electronic device of claim 11, wherein the calculating a standard deviation from the array of capacitance values is by:
the standard deviation was calculated using the following formula:
Figure FDA0002590463970000031
wherein S is the standard deviation, n is the number of samples, XiX is the average of n sample data.
13. The electronic device according to any one of claims 10-12, wherein the determining whether water leaks indoors according to the capacitance array, and generating determination result information, further comprises:
and when the judgment result information indicates that water leaks, sending a water leakage alarm signal, and sending a closing control signal to an electromagnetic valve for controlling the opening or closing of the indoor water main.
CN201711394967.2A 2017-12-21 2017-12-21 Indoor water leakage detection method and system, storage medium and electronic equipment Active CN108181056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711394967.2A CN108181056B (en) 2017-12-21 2017-12-21 Indoor water leakage detection method and system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711394967.2A CN108181056B (en) 2017-12-21 2017-12-21 Indoor water leakage detection method and system, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108181056A CN108181056A (en) 2018-06-19
CN108181056B true CN108181056B (en) 2020-10-27

Family

ID=62546890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711394967.2A Active CN108181056B (en) 2017-12-21 2017-12-21 Indoor water leakage detection method and system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108181056B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110940464B (en) * 2018-09-25 2022-06-24 宁波方太厨具有限公司 Water leakage detection method and water leakage detection device
CN109597058B (en) * 2018-12-21 2021-06-22 上海科勒电子科技有限公司 Microwave measuring method for induction tap, electronic equipment and storage medium
CN111724575B (en) * 2020-07-27 2022-07-19 九牧厨卫股份有限公司 Capacitive overflow detection alarm method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6639517B1 (en) * 2002-09-30 2003-10-28 James Chapman Leak detection mat and system
CN201820110U (en) * 2010-10-25 2011-05-04 张浩达 Intelligent water leakage prevention controller
CN205263533U (en) * 2015-11-04 2016-05-25 周口师范学院 Intellectuality processing system that leaks
CN205540159U (en) * 2016-01-25 2016-08-31 胡宇祥 Intelligence house leak protection water system based on thing networking
CN106125606A (en) * 2016-07-14 2016-11-16 宁波顺源电子科技有限公司 A kind of preventing water leakage protection system
CN107314250A (en) * 2017-08-21 2017-11-03 张嘉睿 A kind of indoor water-leakage monitoring, alarming and control device and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102840883B (en) * 2012-09-19 2014-09-10 南京大学 Intelligent sensor network-based emergency tunnel defect monitoring system
JP2015099125A (en) * 2013-11-20 2015-05-28 大和ハウス工業株式会社 Water leakage determination device and water leakage determination method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6639517B1 (en) * 2002-09-30 2003-10-28 James Chapman Leak detection mat and system
CN201820110U (en) * 2010-10-25 2011-05-04 张浩达 Intelligent water leakage prevention controller
CN205263533U (en) * 2015-11-04 2016-05-25 周口师范学院 Intellectuality processing system that leaks
CN205540159U (en) * 2016-01-25 2016-08-31 胡宇祥 Intelligence house leak protection water system based on thing networking
CN106125606A (en) * 2016-07-14 2016-11-16 宁波顺源电子科技有限公司 A kind of preventing water leakage protection system
CN107314250A (en) * 2017-08-21 2017-11-03 张嘉睿 A kind of indoor water-leakage monitoring, alarming and control device and method

Also Published As

Publication number Publication date
CN108181056A (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN108181056B (en) Indoor water leakage detection method and system, storage medium and electronic equipment
US11862773B2 (en) On-demand charging method and terminal
CN106814710B (en) Control method and device for intelligent household equipment
US20150062032A1 (en) Mobile communication terminal, screen adjusting method and storage medium thereof
CN107366834B (en) Water pipe water leakage detection method, storage medium and electronic equipment
CN105045386A (en) Sleeping state monitoring method, sleeping state monitoring terminal and air conditioner system
CN204314269U (en) air quality prompt system, robot and server
CN105572302A (en) Air quality prompting system, method, robot and server
CN106354494A (en) Quick start method and system of application program
CN106726160A (en) A kind of intelligent diaper
CN106662970A (en) Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device
CN105496362B (en) Sleep state monitors system and method
CN110375417B (en) Control method and device of voice module and air conditioner
CN203705425U (en) Portable air quality detecting device
CN203413767U (en) Air conditioner as well as control device and system of air conditioner
CN209801721U (en) Self-learning type fresh air intelligent control system and fresh air fan
CN108419203A (en) Use monitoring method, device, equipment and the storage medium of electronic equipment
CN106896387B (en) Method for determining whether portable terminal is located indoors or outdoors and portable terminal
CN104344497A (en) Air conditioner, and control method and device thereof
CN108538018A (en) A kind of intelligent security guard early warning system
CN106707741B (en) Electrical equipment control method and device
CN104616456B (en) A kind of system and method for preventing mobile terminal from omitting
US20160364066A1 (en) Information Processing Method and Electronic Device
CN206400300U (en) Intelligent gas extraction system between a kind of novel sanitation
US11327547B2 (en) Extending processor performance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant