A socket water immersion detection system and method
The socket water immersion detection system uses voltage changes to determine whether the socket is submerged in water and disconnects the current output when it is submerged, thus solving the safety hazards caused by water immersion and improving safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TWS TECH GUANGZHOU LTD
- Filing Date
- 2023-09-15
- Publication Date
- 2026-05-15
AI Technical Summary
Outdoor and indoor power outlets are susceptible to water damage, posing a safety hazard.
A water immersion detection system for a socket was designed, including a control module, an auxiliary power supply, a resistor, and a switch. The system determines whether the socket is immersing in water by detecting the voltage change between the two pins, and disconnects the switch to stop the current output when the socket is immersing in water.
It enables automatic detection of water immersion in sockets, reducing safety risks during water immersion and improving the safety of socket use.
Smart Images

Figure CN117192617B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrical appliances, and more particularly to a system and method for detecting water immersion in a socket. Background Technology
[0002] Due to the harsh outdoor environment, outdoor power outlets are prone to getting wet from rain, and indoors, power outlets are also prone to getting splashed with water, meaning that outlets are easily affected by water immersion.
[0003] If a socket is submerged in water, the output of current will pose a significant safety hazard. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention provides a socket water immersion detection system and method that can automatically detect the water immersion status of sockets, thereby improving the safety of socket use.
[0005] To achieve the above objectives, embodiments of the present invention provide a socket water immersion detection system, including a control module, an auxiliary power supply, a first resistor, a second resistor, and a first switch disposed between the socket to be tested and an inverter; the inverter is used to output current to the socket to be tested when the first switch is turned on.
[0006] The first end of the first resistor is connected to the first pin of the socket to be tested, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is connected to the negative terminal of the auxiliary power supply, and the positive terminal of the auxiliary power supply is connected to the second pin of the socket to be tested.
[0007] The signal input terminal of the control module is connected between the second terminal of the first resistor and the first terminal of the second resistor, and the signal output terminal of the control module is connected to the controlled terminal of the first switch.
[0008] The control module is configured as follows:
[0009] The detection signal is obtained through the signal input terminal;
[0010] The detection signal is used to determine whether the socket to be tested is submerged in water.
[0011] When the socket to be tested is submerged in water, a first control signal is generated and sent to the controlled terminal of the first switch to cause the first switch to disconnect.
[0012] When the socket to be tested is not submerged in water, a second control signal is generated and sent to the controlled terminal of the first switch to turn on the first switch.
[0013] Furthermore, it also includes a first voltage regulator module; the first end of the first voltage regulator module is connected between the signal input terminal of the control module and the second end of the first resistor, and the second end of the first voltage regulator module is connected between the second end of the second resistor and the negative terminal of the auxiliary power supply.
[0014] Furthermore, determining whether the socket to be tested is submerged in water based on the detection signal specifically includes:
[0015] When the voltage value represented by the detection signal is less than a preset first voltage threshold, it is determined that the socket to be tested is not submerged in water;
[0016] When the voltage value represented by the detection signal is greater than a preset second voltage threshold, it is determined that the socket to be tested is submerged in water.
[0017] Furthermore, it also includes a second switch, a power supply, and a third resistor; the power supply is connected to the signal input terminal of the control module through the third resistor;
[0018] The first end of the second switch is connected between the second end of the first resistor and the first end of the second resistor. The second end of the second switch is connected between the signal input terminal of the control module and the third resistor. The third end of the second switch is connected between the second end of the second resistor and the negative terminal of the auxiliary power supply.
[0019] Furthermore, it also includes a second voltage regulator module; the first end of the second voltage regulator module is connected between the first end of the second switch and the second end of the first resistor, and the second end of the second voltage regulator module is connected between the second end of the second resistor and the third end of the second switch.
[0020] Furthermore, determining whether the socket to be tested is submerged in water based on the detection signal specifically includes:
[0021] When the voltage value represented by the detection signal is equal to the output voltage value of the power supply, it is determined that the socket to be tested has not been submerged in water;
[0022] When the voltage value represented by the detection signal is equal to zero, it is determined that the socket to be tested is submerged in water.
[0023] Furthermore, it also includes an output control switch; the output control switch is signal-connected to the control module;
[0024] When the socket to be tested is not submerged in water, a second control signal is generated, specifically including:
[0025] When the socket to be tested is not submerged in water and the output control switch is detected to be turned on, a second control signal is generated.
[0026] Furthermore, the second switch includes an NMOS transistor;
[0027] The gate (G) of the NMOS transistor is connected between the second end of the first resistor and the first end of the second resistor, the drain (D) of the NMOS transistor is connected between the signal input terminal of the control module and the third resistor, and the source (S) of the NMOS transistor is connected between the second end of the second resistor and the negative terminal of the auxiliary power supply.
[0028] Furthermore, it also includes a fourth resistor; the positive terminal of the auxiliary power supply is connected to the second pin of the socket to be tested through the fourth resistor.
[0029] This invention also provides a method for detecting water immersion in a socket, applicable to a control module, the method comprising:
[0030] The detection signal is obtained through the signal input terminal of the control module;
[0031] The detection signal is used to determine whether the socket to be tested is submerged in water.
[0032] When the socket to be tested is immersed in water, a first control signal is generated and sent to the controlled terminal of the first switch to make the first switch disconnect.
[0033] When the socket to be tested is not submerged in water, a second control signal is generated and sent to the controlled terminal of the first switch to turn on the first switch.
[0034] The first switch is located between the socket to be tested and the inverter; when the first switch is turned on, the inverter outputs current to the socket to be tested.
[0035] In summary, the present invention has the following beneficial effects:
[0036] This invention includes a control module, an auxiliary power supply, a first resistor, a second resistor, and a first switch disposed between a socket to be tested and an inverter. The inverter outputs current to the socket to be tested when the first switch is turned on. A first end of the first resistor is connected to a first pin of the socket to be tested, a second end of the first resistor is connected to a first end of the second resistor, a second end of the second resistor is connected to the negative terminal of the auxiliary power supply, and the positive terminal of the auxiliary power supply is connected to a second pin of the socket to be tested. The signal input terminal of the control module is connected between the second end of the first resistor and the first end of the second resistor, and the signal output terminal of the control module is connected to the controlled terminal of the first switch. The control module is configured to: acquire a detection signal through the signal input terminal; determine whether the socket to be tested is submerged in water based on the detection signal; when the socket to be tested is submerged in water, generate a first control signal and send it to the controlled terminal of the first switch to turn the first switch off; when the socket to be tested is not submerged in water, generate a second control signal and send it to the controlled terminal of the first switch to turn the first switch on. The embodiments of the present invention can automatically detect whether there is water immersion between the two pins of the socket, and when water immersion occurs, the inverter will automatically stop outputting current to the socket, thereby reducing the risk of water immersion and improving safety. Attached Figure Description
[0037] Figure 1 This is a schematic diagram of an embodiment of a socket water immersion detection system provided by the present invention;
[0038] Figure 2 This is a flowchart illustrating an embodiment of a socket water immersion detection method provided by the present invention;
[0039] Figure 3 This is a circuit diagram of an embodiment of a socket water immersion detection system provided by the present invention;
[0040] Figure 4 This is a circuit diagram of another embodiment of a socket water immersion detection system provided by the present invention;
[0041] Figure 5 This is a flowchart of a control method for an embodiment of a socket water immersion detection system provided by the present invention. Detailed Implementation
[0042] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0043] In the description of this application, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0044] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0045] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing specific embodiments only and is not intended to limit the invention. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0046] Example 1:
[0047] Combination Figure 1 and Figure 3 This is an embodiment of the socket water immersion detection system provided by the present invention, including a control module 101, an auxiliary power supply 102, a first resistor 103 (R3 and / or R4), a second resistor 104 (R5 and / or R6), and a first switch 105 (K1) disposed between the socket 106 to be tested and an inverter 107; the inverter 107 is used to output current to the socket 106 to be tested when the first switch 105 (K1) is turned on;
[0048] The first end of the first resistor 103 (R3 and / or R4) is connected to the first pin of the socket 106 to be tested, the second end of the first resistor 103 (R3 and / or R4) is connected to the first end of the second resistor 104 (R5 and / or R6), the second end of the second resistor 104 (R5 and / or R6) is connected to the negative terminal of the auxiliary power supply 102, and the positive terminal Vcc of the auxiliary power supply 102 is connected to the second pin of the socket 106 to be tested.
[0049] The signal input terminal of the control module 101 is connected between the second terminal of the first resistor 103 (R3 and / or R4) and the first terminal of the second resistor 104 (R5 and / or R6), and the signal output terminal of the control module 101 is connected to the controlled terminal of the first switch 105 (K1).
[0050] The control module 101 is configured to:
[0051] The detection signal is obtained through the signal input terminal;
[0052] The detection signal is used to determine whether the socket 106 to be tested is submerged in water.
[0053] When the socket to be tested 106 is immersed in water, a first control signal is generated and sent to the controlled terminal of the first switch 105 (K1) to make the first switch 105 (K1) open.
[0054] When the socket to be tested 106 is not submerged in water, a second control signal is generated and sent to the controlled terminal of the first switch 105 (K1) to turn on the first switch 105 (K1).
[0055] For example, see Figure 3 The first pin of the socket to be tested 106 is the PE pin of the AC socket, the second pin of the socket to be tested 106 is the N pin of the AC socket, and the control module 101 is an MCU.
[0056] Specifically, under normal circumstances, when the AC socket is not in water, the N pin and PE pin of the socket are essentially an open circuit (i.e., the resistance is infinite), so the voltage of the PE pin will be pulled down to the negative terminal of the power supply, and the voltage value obtained by the signal input terminal is close to zero.
[0057] When water enters the AC socket, the impedance between the N pin and the PE pin of the socket decreases, which can be less than 1M ohms. At this time, the current generated by the positive Vcc of the auxiliary power supply 102 flows through the first resistor 103 (R3 and / or R4) and the second resistor 104 (R5 and / or R6) in sequence, and the voltage value Vad obtained at the signal input terminal increases. In this embodiment, the voltage at this time will be as high as 4V or more.
[0058] The MCU determines whether the socket 106 to be tested is submerged in water based on the voltage value obtained through its signal input terminal. When submerged in water, the MCU controls the first switch 105 (K1) to turn off, and the inverter 107 stops supplying power to the outside. When not submerged in water, the MCU controls the first switch 105 (K1) to turn on, enabling the inverter 107 to supply power to the outside.
[0059] It should be noted that when the socket to be tested 106 is an AC socket, the first and second pins of the socket to be tested 106 are any two different pins among the N pin, L pin, and PE pin of the AC socket. That is, this embodiment can determine whether the AC socket is water-damaged by detecting the state between any two different pins in the AC socket.
[0060] As an improvement to the above solution, a first voltage regulator module D1 is also included; the first end of the first voltage regulator module D1 is connected between the signal input terminal of the control module 101 and the second end of the first resistor 103 (R3 and / or R4), and the second end of the first voltage regulator module D1 is connected between the second end of the second resistor 104 (R5 and / or R6) and the negative terminal of the auxiliary power supply 102.
[0061] It is understood that the first voltage regulator module D1 (5.1V in this embodiment) is used to protect the control module 101 to prevent the control module 101 from being damaged due to excessive voltage at the signal input terminal.
[0062] As an improvement to the above solution, the step of determining whether the socket 106 to be tested is submerged in water based on the detection signal specifically includes:
[0063] When the voltage value represented by the detection signal is less than a preset first voltage threshold, it is determined that the socket to be tested 106 is not submerged in water;
[0064] When the voltage value represented by the detection signal is greater than the preset second voltage threshold, it is determined that the socket to be tested 106 is submerged in water.
[0065] For example, the first voltage threshold is 0.7V and the second voltage threshold is 2.5V.
[0066] As an improvement to the above solution, a fourth resistor (R1 and / or R2) is also included; the positive terminal Vcc of the auxiliary power supply 102 is connected to the second pin of the socket to be tested 106 through the fourth resistor (R1 and / or R2).
[0067] Example 2:
[0068] Combination Figure 1 and Figure 4 In another embodiment, it also includes a second switch Q1, a power supply and a third resistor R7; the power supply is connected to the signal input terminal of the control module 101 through the third resistor R7;
[0069] The first end of the second switch Q1 is connected between the second end of the first resistor 103 (R3 and / or R4) and the first end of the second resistor 104 (R5 and / or R6), the second end of the second switch Q1 is connected between the signal input terminal of the control module 101 and the third resistor R7, and the third end of the second switch Q1 is connected between the second end of the second resistor 104 (R5 and / or R6) and the negative terminal of the auxiliary power supply 102.
[0070] It should be noted that the power supply is used to power the control module 101.
[0071] As an improvement to the above solution, a second voltage regulator module D1 is also included; the first end of the second voltage regulator module D1 is connected between the first end of the second switch Q1 and the second end of the first resistor 103 (R3 and / or R4), and the second end of the second voltage regulator module D1 is connected between the second end of the second resistor 104 (R5 and / or R6) and the third end of the second switch Q1.
[0072] It is understood that the second voltage regulator module D1 (15V in this embodiment) is used to protect the second switch Q1 to prevent the second switch Q1 from being damaged due to excessive voltage at the signal input terminal.
[0073] As an improvement to the above solution, the step of determining whether the socket 106 to be tested is submerged in water based on the detection signal specifically includes:
[0074] When the voltage value represented by the detection signal is equal to the output voltage value of the power supply, it is determined that the socket to be tested 106 is not submerged in water;
[0075] When the voltage value represented by the detection signal is equal to zero, it is determined that the socket to be tested 106 is submerged in water.
[0076] As an improvement to the above solution, the second switch Q1 includes an NMOS transistor;
[0077] The gate (G) of the NMOS transistor is connected between the second terminal of the first resistor 103 (R3 and / or R4) and the first terminal of the second resistor 104 (R5 and / or R6). The drain (D) of the NMOS transistor is connected between the signal input terminal of the control module 101 and the third resistor R7. The source (S) of the NMOS transistor is connected between the second terminal of the second resistor 104 (R5 and / or R6) and the negative terminal of the auxiliary power supply 102.
[0078] For details, see Figure 4 :
[0079] Under normal circumstances, when the AC socket is not in water, the N pin and PE pin of the socket are equivalent to an open circuit (i.e., the resistance is infinite). As a result, the G terminal of the second switch Q1 will be pulled down to the negative terminal of the power supply. The voltage value of the G terminal of the second switch Q1 is equal to zero, so the second switch Q1 is cut off. At this time, the voltage at the signal input terminal (i.e., the voltage on the D terminal of the second switch Q1) Vio = the voltage of the power supply Vdd.
[0080] When water enters the AC socket, the impedance between the N pin and PE pin of the socket decreases, which can be less than 1M ohms. At this time, the current generated by the positive terminal Vcc of the auxiliary power supply 102 flows through the first resistor 103 (R3 and / or R4) and the second resistor 104 (R5 and / or R6) in sequence, thereby generating a voltage on the G terminal of the second switch Q1. In this embodiment, the voltage generated on the G terminal at this time is greater than 5V, which is higher than the opening voltage of the second switch Q1 to make the second switch Q1 conduct. At this time, the voltage at the signal input terminal (that is, the voltage on the D terminal of the second switch Q1) Vi o = 0V.
[0081] Therefore, the MCU determines whether the socket 106 to be tested is submerged in water based on the voltage Vio at the signal input terminal. When submerged in water, the MCU controls the first switch 105 (K1) to turn off and stop the inverter 107 from supplying power to the outside. When not submerged in water, the MCU controls the first switch 105 (K1) to turn on and enable the inverter 107 to supply power to the outside.
[0082] As an improvement to the above solution, an output control switch is also included; the output control switch is signal-connected to the control module 101;
[0083] When the socket to be tested 106 is not submerged in water, a second control signal is generated, specifically including:
[0084] When the socket to be tested 106 is not submerged in water and the output control switch is detected to be turned on, a second control signal is generated.
[0085] For details, see Figure 5 In this embodiment, the second control signal will only be generated when it is determined that the socket to be tested 106 is not submerged in water and the output control switch is turned on.
[0086] It is understood that this embodiment can further improve the safety of the socket during use.
[0087] For example, the output control switch is a push-button switch located on an outdoor power supply.
[0088] As an improvement to the above solution, a fourth resistor (R1 and / or R2) is also included; the positive terminal Vcc of the auxiliary power supply 102 is connected to the second pin of the socket to be tested 106 through the fourth resistor (R1 and / or R2).
[0089] See Figure 2 This is a flowchart illustrating an embodiment of the socket water immersion detection method provided by the present invention. The method is applicable to a control module and includes steps S1 to S4, as detailed below:
[0090] S1, the detection signal is obtained through the signal input terminal of the control module;
[0091] S2, determine whether the socket to be tested is submerged in water based on the detection signal;
[0092] S3, When the socket to be tested is immersed in water, a first control signal is generated and sent to the controlled terminal of the first switch to make the first switch disconnect;
[0093] S4, when the socket to be tested is not submerged in water, a second control signal is generated and sent to the controlled terminal of the first switch to turn on the first switch;
[0094] The first switch is located between the socket to be tested and the inverter; when the first switch is turned on, the inverter outputs current to the socket to be tested.
[0095] In specific implementation, the working principle, structural setup, control process, and technical effects of the socket water immersion detection method provided in this embodiment of the invention are the same as those of the socket water immersion detection system in the above embodiments, and will not be repeated here.
[0096] In summary, the present invention has the following beneficial effects:
[0097] This invention includes a control module, an auxiliary power supply, a first resistor, a second resistor, and a first switch disposed between a socket to be tested and an inverter. The inverter outputs current to the socket to be tested when the first switch is turned on. A first end of the first resistor is connected to a first pin of the socket to be tested, a second end of the first resistor is connected to a first end of the second resistor, a second end of the second resistor is connected to the negative terminal of the auxiliary power supply, and the positive terminal of the auxiliary power supply is connected to a second pin of the socket to be tested. The signal input terminal of the control module is connected between the second end of the first resistor and the first end of the second resistor, and the signal output terminal of the control module is connected to the controlled terminal of the first switch. The control module is configured to: acquire a detection signal through the signal input terminal; determine whether the socket to be tested is submerged in water based on the detection signal; when the socket to be tested is submerged in water, generate a first control signal and send it to the controlled terminal of the first switch to turn the first switch off; when the socket to be tested is not submerged in water, generate a second control signal and send it to the controlled terminal of the first switch to turn the first switch on. The embodiments of the present invention can automatically detect whether there is water immersion between the two pins of the socket, and when water immersion occurs, the inverter will automatically stop outputting current to the socket, thereby reducing the risk of water immersion and improving safety.
[0098] Through the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary hardware platforms, and of course, it can also be implemented entirely by hardware. Based on this understanding, all or part of the technical solution of the present invention that contributes to the background art can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present invention.
[0099] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A socket water immersion detection system, characterized in that, It includes a control module, an auxiliary power supply, a first resistor, a second resistor, and a first switch disposed between the socket to be tested and the inverter; the inverter is used to output current to the socket to be tested when the first switch is turned on. The first end of the first resistor is connected to the first pin of the socket to be tested, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is connected to the negative terminal of the auxiliary power supply, and the positive terminal of the auxiliary power supply is connected to the second pin of the socket to be tested. The signal input terminal of the control module is connected between the second terminal of the first resistor and the first terminal of the second resistor, and the signal output terminal of the control module is connected to the controlled terminal of the first switch. The control module is configured as follows: The detection signal is obtained through the signal input terminal; The detection signal is used to determine whether the socket to be tested is submerged in water. When the socket to be tested is submerged in water, a first control signal is generated and sent to the controlled terminal of the first switch to cause the first switch to disconnect. When the socket to be tested is not submerged in water, a second control signal is generated and sent to the controlled terminal of the first switch to turn on the first switch. The system further includes a first voltage regulator module; a first terminal of the first voltage regulator module is connected between the signal input terminal of the control module and the second terminal of the first resistor, and a second terminal of the first voltage regulator module is connected between the second terminal of the second resistor and the negative terminal of the auxiliary power supply. The system further includes a second switch, a power supply, and a third resistor; the power supply is connected to the signal input terminal of the control module through the third resistor; the first terminal of the second switch is connected between the second terminal of the first resistor and the first terminal of the second resistor, the second terminal of the second switch is connected between the signal input terminal of the control module and the third resistor, and the third terminal of the second switch is connected between the second terminal of the second resistor and the negative terminal of the auxiliary power supply. The system further includes a second voltage regulator module; the first end of the second voltage regulator module is connected between the first end of the second switch and the second end of the first resistor, and the second end of the second voltage regulator module is connected between the second end of the second resistor and the third end of the second switch.
2. The socket water immersion detection system as described in claim 1, characterized in that, The step of determining whether the socket to be tested is submerged in water based on the detection signal specifically includes: When the voltage value represented by the detection signal is less than a preset first voltage threshold, it is determined that the socket to be tested is not submerged in water; When the voltage value represented by the detection signal is greater than a preset second voltage threshold, it is determined that the socket to be tested is submerged in water.
3. The socket water immersion detection system as described in claim 1, characterized in that, The step of determining whether the socket to be tested is submerged in water based on the detection signal specifically includes: When the voltage value represented by the detection signal is equal to the output voltage value of the power supply, it is determined that the socket to be tested has not been submerged in water; When the voltage value represented by the detection signal is equal to zero, it is determined that the socket to be tested is submerged in water.
4. The socket water immersion detection system as described in claim 3, characterized in that, It also includes an output control switch; the output control switch is signal-connected to the control module. When the socket to be tested is not submerged in water, a second control signal is generated, specifically including: When the socket to be tested is not submerged in water and the output control switch is detected to be turned on, a second control signal is generated.
5. The socket water immersion detection system as described in claim 1, characterized in that, The second switch includes an NMOS transistor; The gate (G) of the NMOS transistor is connected between the second end of the first resistor and the first end of the second resistor, the drain (D) of the NMOS transistor is connected between the signal input terminal of the control module and the third resistor, and the source (S) of the NMOS transistor is connected between the second end of the second resistor and the negative terminal of the auxiliary power supply.
6. The socket water immersion detection system as described in claim 1, characterized in that, It also includes a fourth resistor; the positive terminal of the auxiliary power supply is connected to the second pin of the socket to be tested through the fourth resistor.
7. A method for detecting water immersion in a socket, characterized in that, The control module applicable to the socket water immersion detection system according to any one of claims 1-6, wherein the socket water immersion detection method includes: The detection signal is obtained through the signal input terminal of the control module; The detection signal is used to determine whether the socket to be tested is submerged in water. When the socket to be tested is immersed in water, a first control signal is generated and sent to the controlled terminal of the first switch to make the first switch disconnect. When the socket to be tested is not submerged in water, a second control signal is generated and sent to the controlled terminal of the first switch to turn on the first switch. The first switch is located between the socket to be tested and the inverter; when the first switch is turned on, the inverter outputs current to the socket to be tested.