Safety guardian system for smart socket
By constructing a multi-dimensional protection architecture and utilizing the main control module and detection module of the smart socket for anomaly prediction and hierarchical processing, the problem of insufficient protection of smart sockets in complex power environments is solved, achieving self-recovery protection and enhanced security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Filing Date
- 2026-04-30
- Publication Date
- 2026-07-14
AI Technical Summary
Existing smart sockets offer limited protection in complex electrical environments, cannot predict risks, and require professional repairs after a malfunction, failing to provide multi-dimensional proactive protection and self-recovery.
It employs a main control module, a power IC module, an electricity metering chip, a temperature and humidity detection module, a child lock module, an interactive warning module, and an APP communication module to construct a multi-dimensional protection architecture. Through power, temperature, and humidity detection algorithms, it performs anomaly prediction and graded processing to achieve self-recovery protection.
It achieves comprehensive perception and graded handling of risks such as overload, overheating, and humidity, has the ability to predict dangerous trends, reduces the risk of electrical fires and electric shocks, reduces power outage interference, improves user experience and reduces maintenance costs.
Smart Images

Figure CN122393682A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart socket technology, specifically to a smart socket safety protection system. Background Technology
[0002] Currently, in the field of smart home products, the safety of high-voltage sockets is one of the core indicators for measuring their quality. Preventing electrical safety accidents such as electric shock and fire is not only a basic requirement of product design, but also a key focus of various national standards and certifications. Although the existing certification system provides basic guarantees for socket safety through material selection, structural design, and electrical testing, in actual use environments, due to power grid fluctuations, abnormal loads, aging, or environmental factors, there are still unsafe risks that cannot be completely eliminated. Therefore, how to further improve the adaptive protection capabilities and recoverability of smart sockets under abnormal operating conditions while meeting mandatory safety standards has become an important direction that urgently needs attention in this field.
[0003] Currently, the safety design of smart sockets mainly focuses on two aspects: structural protection and electrical protection. The first category is structural safety technology, which includes using flame-retardant materials for the outer shell and internal structural components, and achieving shell sealing through ultrasonic welding to prevent internal electric arcs from igniting external flammable materials. Simultaneously, safety valves are commonly installed to prevent children or foreign objects from accidentally touching live sockets. The second category is electrical safety technology, which integrates electrical safety circuits within the socket, using hardware design to monitor abnormal conditions and quickly cut off power. Specifically, common solutions include: monitoring load current to determine if there is abnormal current under no-load conditions, setting overload protection, leakage protection, and over-temperature protection. The above monitoring typically relies on additional sensing elements and triggers a hardware shutdown mechanism upon detecting an anomaly, such as driving a relay to disconnect, triggering a thyristor protection circuit, or blowing a fuse.
[0004] However, existing electrical safety solutions share a common flaw: once the protection mechanism is triggered, the socket often requires professional repair or even complete disposal. In the event of overload, leakage, or overheating, irreversible components in the protection circuit may activate, such as blown fuses, short-circuited varistors, damaged power chips due to overcurrent, or relays becoming stuck and unable to reset. Even with self-resetting protection, if the triggering cause is not diagnosed or eliminated, direct reset still carries the risk of repeated triggering. Therefore, users cannot easily restore the socket to normal working order themselves; they must seek professional repair, component replacement, or simply discard the product. This not only increases usage costs and maintenance difficulty but also limits the smart socket's ability to adaptively handle sudden electrical anomalies in a home environment. There is an urgent need for a smart socket protection solution that ensures safety while possessing recoverability or fault self-isolation capabilities. Summary of the Invention
[0005] The purpose of this invention is to provide a smart socket safety protection system, which aims to solve the problems of existing sockets having a single protection dimension in complex power environments, being unable to predict risks, and requiring professional repairs after a failure, so as to achieve multi-dimensional active protection, risk trend prediction, full-cycle power management, and self-recovering safety protection.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a safety protection system for an intelligent socket, comprising a main control module, a power IC module, an electricity metering chip, a temperature and humidity detection module, a child lock module, an interactive warning module, an APP communication module, and an output control module; The main control module is electrically connected to the power IC module, the electricity metering chip, the temperature and humidity detection module, the child lock module, the interactive warning module, the APP communication module, and the output control module, respectively. The power IC module is used to implement overcurrent, overload, overvoltage, undervoltage, and overheat protection with self-recovery function; The electricity metering chip is used to collect current and voltage data in real time and calculate active power. The temperature and humidity detection module is used to periodically collect the internal temperature and humidity of the socket; The child lock module is used to disable the physical buttons on the socket, and works in conjunction with the physical safety door to achieve dual protection against electric shock. The main control module is configured to perform anomaly prediction and graded processing based on power detection algorithm, temperature detection algorithm, and humidity detection algorithm, triggering interactive warning module, APP alarm or automatic power-off, and the protection action does not damage the hardware circuit.
[0007] The intelligent socket safety protection system of this invention coordinates the power IC module, electricity metering chip, temperature and humidity detection module, child lock module, interactive warning module, APP communication module, and output control module through a main control module, constructing a multi-dimensional protection architecture with deep hardware and software integration. The power IC module provides basic hardware protection with self-recovery function as the first line of defense. The electricity metering chip and temperature and humidity detection module collect electrical and environmental parameters respectively, providing high-precision data support for the main control module's algorithm judgment. The child lock module, in conjunction with a physical safety door, achieves dual protection against electric shock, improving household electrical safety. The main control module performs anomaly prediction and graded processing based on multiple detection algorithms, triggering local alarms, APP alarms, or automatic power cut-off without damaging the hardware circuitry. This achieves a leap from passive protection to active protection, comprehensively covering common electrical risks such as overload, overheating, humidity, creepage, and short circuits.
[0008] Preferably, the power detection algorithm includes: The current and voltage values are collected at a period of 1-2 seconds and sent to the FIFO queue. The maximum and minimum values are removed every 10-20 seconds and the average current and average voltage are calculated to eliminate transient interference. The system uses a count accumulation logic: when the power exceeds the threshold, count is incremented by 1 per second; when the power is below the threshold, count is decremented by 1 per second. When the count reaches the first threshold, a local light alarm and an APP notification will be activated. When the count reaches the second threshold, the control output module will disconnect the power.
[0009] The power detection algorithm used in this invention periodically collects current and voltage data and stores them in a FIFO queue. Every 10-20 seconds, the maximum and minimum values are removed and the average value is calculated. This eliminates false over-threshold signals caused by instantaneous power grid fluctuations or equipment startup impacts, thus avoiding false alarms and power outages. Simultaneously, the system employs a count accumulation logic—accumulating every second when the power exceeds the threshold and decreasing every second when it falls below the threshold—giving the system the ability to make time-accumulated judgments. Short-term minor overloads will not trigger protection, while continuous severe overloads can be reliably identified. When the count reaches the first threshold, a light alarm and APP notification are activated first; only when the count reaches the second threshold is the power cut off. This implements a graded protection strategy, ensuring safety while reducing unnecessary power outage interference and improving the user experience.
[0010] Preferably, the temperature detection algorithm includes: Temperature data is collected every 1-2 seconds and stored in a FIFO queue of length 10. Compare the latest temperature with the average temperature of the queue. If the increase exceeds Δh for three consecutive times, it is determined that the temperature is rising rapidly. If the average temperature exceeds the socket's maximum withstand temperature ΔH for five consecutive times, an abnormal temperature is determined and power-off protection is activated.
[0011] The temperature detection algorithm of this system uses a FIFO queue of length 10 to store historical temperature data. The latest temperature is dynamically compared with the average value of the queue, which can effectively filter out noise from single acquisitions or instantaneous thermal disturbances. The algorithm has set dual judgment conditions: if the temperature rises rapidly for three consecutive times, it can identify the temperature rise trend caused by poor contact or overload in advance; if the average temperature exceeds the maximum withstand temperature ΔH of the socket for five consecutive times, power-off protection is executed to ensure that the intervention is completed before the temperature reaches the dangerous threshold. This algorithm takes into account both response sensitivity and anti-interference ability. It can quickly alarm in the event of sudden overheating and avoid false power-off caused by short-term temperature fluctuations, providing a reliable guarantee for the long-term safe operation of the socket.
[0012] Preferably, the humidity detection algorithm includes: Humidity data is collected every 1-2 seconds and stored in a FIFO queue of length 10; Compare the latest humidity with the average humidity of the queue. If the increase exceeds ΔT for three consecutive times, the humidity is judged to be abnormal. ΔT is dynamically adjusted according to the average humidity. The higher the average humidity, the smaller ΔT is, and the lower the average humidity, the larger ΔT is.
[0013] The humidity detection algorithm in this invention employs a dynamic threshold adjustment mechanism designed for humid environments inside sockets. The algorithm collects humidity data every 1-2 seconds and stores it in a FIFO queue of length 10. It identifies sudden humidity changes by comparing the latest humidity with the queue's average humidity. The core innovation lies in the dynamic adjustment of ΔT based on the average humidity: the higher the average humidity, the smaller ΔT, thus increasing detection sensitivity in humid environments and promptly detecting even slight increases in humidity, effectively preventing creepage or leakage risks; conversely, the lower the average humidity, the larger ΔT, thus reducing sensitivity in dry environments and avoiding false alarms due to occasional humidity fluctuations. This adaptive threshold strategy enables the system to adapt to humidity changes in different regions and seasons, achieving accurate identification of humidity risks and effective control of false alarm rates.
[0014] Preferably, when the child lock module is activated, all physical buttons on the socket become disabled, preventing manual power output and forming a double protection against electric shock with the internal mechanical interlock safety door. The child lock module disables all physical buttons on the socket, preventing manual power output and eliminating the possibility of children accidentally pressing buttons. Simultaneously, the electronic child lock and the internal mechanical interlock safety door provide double protection against electric shock: the physical safety door prevents foreign objects from being inserted into the socket, and the electronic child lock prevents accidental button presses from activating the power. Working together, even if a child touches multiple buttons simultaneously or pokes a foreign object into the socket, the socket will not become electrified. This design enhances the safety of families with infants and young children, meeting the highest requirements for personal safety in smart home products. Furthermore, the child lock function can be remotely controlled via an app, eliminating the need for a physical switch and further enhancing convenience.
[0015] Preferably, the main control module automatically identifies the rated voltage, rated current, and maximum power of the current socket by sampling the hardware sampling resistor using an ADC, and adaptively matches the corresponding protection threshold, achieving compatibility of the same program with smart sockets of different specifications. This solution, through the main control module's ADC sampling hardware sampling resistor, can automatically identify the rated voltage, rated current, and maximum power of the current socket, eliminating the need for manual configuration or software programming of different versions. It can adaptively match the corresponding protection threshold, enabling the same software program to be compatible with smart sockets of different specifications, reducing production management costs and software maintenance complexity. Simultaneously, the automatic identification mechanism avoids protection threshold mismatch problems caused by manual setting errors. For example, misconfiguring a high-power socket to a low-power threshold will cause frequent false power outages, or misconfiguring a low-power socket to a high-power threshold will result in loss of protection function. This adaptive technology improves the product's versatility, safety, and production yield.
[0016] Preferably, the alarm interaction module is used to output safety protection status prompts, electricity usage habit evaluations, anomaly warnings, and power outage recovery prompts, realizing safety protection interaction with users. This system's alarm interaction module not only performs traditional anomaly alarm functions but also further outputs safety protection status prompts, electricity usage habit evaluations, anomaly warnings, and power outage recovery prompts to users, constructing an intelligent interaction channel between people and the socket. Users can intuitively understand whether the current electricity environment is safe, whether historical electricity usage behavior is reasonable, whether there are potential risks recently, and how to restore power after troubleshooting through the APP or local interface. This proactive and user-friendly interaction method enables users to truly understand and participate in electricity safety management, strengthening user stickiness and perceived safety value of smart home products.
[0017] This invention also introduces a method for using the above-mentioned intelligent socket safety protection system, including the following steps: S1. Disable physical buttons via child lock module, and combine with physical safety door to achieve electric shock protection; S2, the power IC module monitors current, voltage, and temperature in real time to achieve basic self-recovery hardware protection; S3: The electricity metering chip periodically collects electrical parameters, and after filtering and averaging, executes the power detection algorithm; S4. The temperature and humidity module periodically collects temperature and humidity data and executes temperature detection algorithms and humidity detection algorithms respectively. S5. Based on the algorithm's judgment result, the main control module executes one or more actions among local alarm, APP alarm, and automatic power-off. S6 records device operating status, power consumption habits, and abnormal logs, which can be viewed via an app.
[0018] This invention describes a method of use that begins with a child lock module for safety. First, it disables physical buttons and combines this with a physical safety door to prevent electric shock, eliminating the risk of accidental activation at the source. Then, the power IC module monitors in real time and executes basic self-recovering hardware protection as the first line of defense for rapid response. The electricity metering chip and temperature and humidity module execute three types of detection algorithms—power, temperature, and humidity—to achieve multi-dimensional software-level anomaly detection. The main control module executes local alarms, APP alarms, or automatic power-off based on the algorithm results, and records and archives the device's operating status, power usage habits, and anomaly logs, allowing users to view them at any time via the APP. This method organically combines the speed advantage of hardware protection with the intelligence advantage of software protection, forming a complete safety closed-loop process from prevention and early warning to protection and traceability.
[0019] To further optimize the above usage method, power determination in S3 adopts a count mechanism: If the power exceeds the threshold, the count increases; if it falls below the threshold, the count decreases. An alarm is triggered when the count is ≥120, and the output is cut off when the count is ≥300, prioritizing early warning over power failure. The power assessment in this method uses a count mechanism: the count increases when the power exceeds the threshold and decreases when it falls below. This design achieves precise quantitative assessment of the overload duration. Short-term overloads only cause the count to rise briefly and then decrease rapidly, without triggering any protection. Moderate, sustained overloads cause an alarm to be triggered when the count accumulates to 120, prompting the user to take action. The output power is only cut off when the overload lasts for a sufficiently long time and the count reaches 300. This tiered strategy avoids unexpected power failures due to instantaneous overloads while ensuring reliable line protection during sustained severe overloads, achieving an ideal balance between user experience and safety.
[0020] Further optimization of the above usage method includes a threshold adaptation step: The main control module reads the hardware sampling resistor via an ADC, automatically identifies the socket specifications, and sets protection thresholds for current, voltage, power, temperature, and humidity, enabling a single software package to adapt to various smart sockets. The threshold adaptation step in this invention uses the main control module's ADC to read the hardware sampling resistor, automatically identify the socket's rated specifications, and dynamically set all protection thresholds accordingly. This design allows the same software firmware to be applied in batches to various socket specifications in different countries, regions, and application scenarios without any modification, simplifying product development, testing, production, and subsequent maintenance processes. Simultaneously, the adaptive mechanism eliminates safety hazards caused by manual configuration errors, thereby improving the product's global adaptability, production scalability, and system reliability.
[0021] Compared with the prior art, the beneficial effects of the present invention are: 1. The intelligent socket safety protection system of this invention breaks through the limitations of traditional sockets that rely solely on fuses or single hardware protection. It integrates three core detection algorithms—power, temperature, and humidity—to form a multi-dimensional, all-round, and hardware-software collaborative proactive safety protection system. This system can not only monitor common electrical faults such as overload and short circuit in real time, but also effectively identify hidden dangers that are difficult to detect by traditional solutions, such as creepage risks caused by humid environments and local overheating caused by poor contact. Through joint analysis of power, temperature change rate, and humidity threshold, the system has the ability to predict dangerous trends and can issue warnings and proactively intervene before faults occur. Compared with traditional solutions, this system has more comprehensive protection dimensions and a faster response speed, which can reduce the risk of electrical fires and electric shocks and improve the safety of sockets in daily and complex environments.
[0022] 2. This system integrates a dual notification mechanism of local audible and visual alarms and remote alarm via APP, ensuring that users can be notified of abnormal statuses immediately regardless of their location. At the same time, the system automatically records the long-term operating status of the equipment, every abnormal event, and the user's electricity usage habits, forming a complete equipment health record and behavior log. This allows users to not only clearly understand the risk points of the current power environment, but also trace the causes of historical anomalies, providing data support for troubleshooting and optimizing electricity usage behavior. By achieving controllable status, this system upgrades traditional sockets from passive power distribution tools to intelligent power management nodes with cognitive and memory capabilities.
[0023] 3. The system of this invention adopts a software and hardware collaborative judgment and hierarchical protection strategy, and is equipped with a self-resetting hardware protection circuit. When an overload or over-temperature fault is detected, the system can prioritize lightweight interventions such as power reduction or intermittent power supply; power outage protection is only triggered in extreme cases. Unlike traditional solutions where fuse blowing or varistor breakdown leads to permanent damage to the equipment, this system can automatically or through a simple reset restore power supply after the fault is cleared, without the need for professional repair or replacement of internal components, thereby reducing maintenance costs and the barrier to entry. More importantly, this system pioneers a systematic safety protection concept, providing users with power health assessment, historical protection records, and fault recovery guidance through an interactive interface. This upgrades the traditional single passive power outage protection to an active, intelligent, and user-friendly safety service, optimizing the user experience and deeply strengthening the core safety value of smart home products. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the overall process of the present invention; Figure 2 This is a schematic diagram of the internal module structure of the present invention. Detailed Implementation
[0025] 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.
[0026] This invention discloses a smart socket safety protection system. The system comprises a main control module, a power IC module, an electricity metering chip, a temperature and humidity detection module, a child lock module, an interactive alarm module, an APP communication module, and an output control module, forming a complete safety protection system. Building upon traditional flame-retardant materials, ultrasonic welding structures, physical safety doors, and basic electrical protection hardware, it integrates power detection algorithms, temperature detection algorithms, and humidity detection algorithms to predict abnormal trends, issue tiered alarms, and implement tiered power cut-offs. The protection process prevents permanent hardware damage. Furthermore, with its systematic safety protection mechanism and user-friendly interface, it provides proactive electricity safety services to users.
[0027] Example 1: This embodiment provides a standard household smart socket with a single-output design and a rated current of 10A, suitable for typical indoor power environments, and fully implements the safety protection technology described in this invention.
[0028] The smart socket described in this embodiment includes: a main control module, a power IC module, an electricity metering chip, a temperature and humidity detection module, a child lock module, an interactive alarm module, an APP communication module, and an output control module.
[0029] The main control module is electrically connected to the power IC module, electricity metering chip, temperature and humidity detection module, child lock module, interactive alarm module, APP communication module, and output control module to realize data acquisition, algorithm operation, logic judgment, status indication, remote communication, and on / off control.
[0030] The power IC module has VDD undervoltage protection, cycle-by-cycle current limiting, output overvoltage protection, overheat protection, overload protection, and VDD overvoltage protection functions. All of the above protections have self-recovery characteristics and can automatically resume operation after the abnormal conditions are eliminated, without causing permanent hardware damage.
[0031] The electricity metering chip is used to collect circuit current and voltage signals in real time and calculate the active power, providing data support for power detection and anomaly judgment.
[0032] The temperature and humidity detection module is used to periodically collect the internal ambient temperature and humidity of the socket, providing a data source for judging temperature trends and humidity anomalies.
[0033] The child lock module consists of a software enable unit and a hardware button latch unit, which is used to disable the physical buttons of the socket when it is open, and together with the internal mechanical interlock safety door, it forms a double protection against electric shock.
[0034] The interactive alarm module includes an LED indicator unit and a voice broadcast structure for local status display and abnormal alarms. The voice broadcast structure includes messages such as "Your recent electricity usage habits are good!", "Successfully protected n times, please pay attention to electrical safety!", and "Severe overload situation, automatically cutting off power for you, will resume use after the overload is resolved!", providing better safety protection for users through clear interaction.
[0035] The APP communication module uses Wi-Fi The Fi communication unit is used to establish a connection with the mobile terminal to realize remote status push, abnormal alarm, log query and parameter setting.
[0036] The output control module uses relay actuators and is driven by the main control module to connect and disconnect the power supply to the load.
[0037] The electricity metering chip collects raw current and voltage samples at a period of 1s-2s and sends the sampled data into a FIFO queue buffer. Every 10s-20s, the data in the queue is processed to remove the maximum and minimum values and then calculate the average current and average voltage to filter out instantaneous interference and sudden signals and avoid abnormal misjudgment.
[0038] The main control module calculates active power in real time based on average current and average voltage, and uses a count accumulation mechanism to judge power anomalies: when the real-time power is greater than the preset power threshold, count increases in 1 second period; when the real-time power is less than the preset power threshold, count decreases in 1 second period; count stops counting after it decreases to 0.
[0039] When the count accumulates to the first threshold, the main control module controls the interactive alarm module to issue a local light alarm and sends an abnormal notification to the mobile terminal through the APP communication module; when the count accumulates to the second threshold, the main control module drives the output control module to cut off the power supply circuit to achieve overload protection.
[0040] The temperature and humidity detection module collects internal temperature data of the socket in a period of 1s-2s and stores the continuously collected temperature data into a FIFO queue with a length of 10.
[0041] The main control module compares the latest temperature data with the average temperature of the queue. If the increase of the latest temperature relative to the average temperature exceeds Δh for three consecutive times, it is determined that the temperature is rising rapidly and a pre-alarm is executed. If the average temperature exceeds the maximum withstand temperature ΔH of the socket for five consecutive times, it is determined that the temperature is abnormally exceeded and the output control module is immediately controlled to execute power-off protection to avoid risks such as overheating and fire or component burnout. Δh is the threshold for judging a rapid rise in the internal temperature of the socket, used to identify abnormal temperature rise trends.
[0042] If the difference between the latest temperature and the average temperature exceeds Δh for three consecutive times, it is determined that the temperature has risen abnormally.
[0043] The temperature and humidity detection module collects humidity data inside the socket at a period of 1s-2s and stores the continuously collected humidity data into a FIFO queue with a length of 10.
[0044] The main control module compares the latest humidity data with the average humidity of the queue. If the increase of the latest humidity relative to the average humidity exceeds ΔT for three consecutive times, it is determined that the humidity has risen abnormally and there is a risk of condensation, creepage, or short circuit. Local alarms and remote prompts are then executed.
[0045] ΔT is the threshold for judging a rapid increase in humidity inside the socket, used to identify the risk of dampness and condensation.
[0046] ΔT will be dynamically adjusted according to the average humidity. If the humidity difference exceeds ΔT for three consecutive times, the humidity is judged to be abnormal. The higher the average humidity, the smaller the value of ΔT; the lower the average humidity, the larger the value of ΔT, so as to ensure stable abnormality detection sensitivity under different humidity environments.
[0047] After the user activates the child lock function through the mobile terminal APP, the child lock module sends a latching signal to the main control module. The main control module immediately disables all physical button functions, preventing the buttons from triggering power output. At the same time, the socket is equipped with a national standard mechanical interlock safety door, which can only be unlocked when two or three holes are simultaneously subjected to force, and cannot be inserted into a single hole. This forms a dual protection against electric shock, consisting of a software button lock and a physical safety door.
[0048] The main control module samples the voltage of the hardware sampling resistor through the built-in ADC unit. Based on the sampling results, it automatically identifies the rated voltage, rated current and maximum power specifications of the current socket, and adaptively matches the protection thresholds corresponding to current, voltage, power, temperature and humidity. This enables the same firmware program to be compatible with smart sockets of different specifications, improving product versatility and production consistency.
[0049] During operation, the system continuously records the equipment's operating status, power parameters, abnormal events, protection actions, and power usage habits, generating traceable log data and uploading it to the cloud, which users can query through the APP.
[0050] The interactive alarm module outputs safety protection-related prompts synchronously with the APP interface, including electricity usage habit evaluation, protection action records, abnormal warning information and power outage recovery instructions. It provides users with feedback on the safety protection status in a clear and user-friendly interactive way, realizing the transformation from passive protection to proactive safety protection.
[0051] Overall workflow (see details) Figure 1 content): The security protection process in this embodiment is based on the logic shown in the attached diagram, as detailed below: After the system is powered on, it first enters the child lock status judgment stage: if the user activates the child lock function through the APP, the main control module immediately disables the functions of all physical buttons on the socket and turns off the button trigger logic; if the child lock is not activated, the physical buttons can respond normally.
[0052] After the child lock status is determined, a multi-dimensional detection process is initiated simultaneously, including IC current detection, power detection, temperature detection, and humidity detection. Each detection step is executed in parallel. IC Current Detection and Basic Hardware Protection: The IC current detection unit collects the loop current in real time through the power IC feedback circuit to determine whether the current exceeds the Imax threshold. If the current exceeds Imax, the self-recovery protection of the power IC module is immediately triggered to cut off the abnormal loop. After the current returns to normal, the power supply is automatically restored, realizing basic hardware overload protection.
[0053] Power detection process: The power detection process is performed by the electricity metering chip, and the specific steps are as follows: The electricity metering chip collects raw current and voltage data in a period of 1-2 seconds (Δs). After collecting 10 data, the data is sent to a FIFO queue of length 10. Then, the data in the queue is processed to remove extreme values, and the maximum and minimum values are removed before the average current and average voltage are calculated, and sudden signals such as instantaneous surges and electromagnetic interference are filtered out.
[0054] The main control module calculates active power in real time based on average current and average voltage, and compares the calculation results with a preset power threshold. If the calculated power is greater than the threshold, the count accumulation mechanism is activated, and the count value is incremented by 1 every second; If the calculated power is less than the threshold, the count decrement mechanism is activated, and the count value is decremented by 1 every second. The counting stops when the count reaches 0.
[0055] When the accumulated count reaches the first threshold (corresponding to more than 2 minutes), the main control module triggers the interactive alarm module to execute the local light alarm, and at the same time pushes the abnormal prompt to the mobile terminal through the APP communication module; when the accumulated count reaches the second threshold (corresponding to more than 5 minutes), the main control module drives the output control module to automatically disconnect the output circuit to achieve overload graded protection.
[0056] In this embodiment, all abnormal protection is implemented using a hardware and software collaborative approach: the power IC module provides basic self-recovering hardware protection, power, temperature, and humidity anomalies are judged and graded by software algorithms, power-off actions are executed by relays, the protection process does not involve fuse blowing, permanent chip breakdown or irreversible damage to the protection circuit, and power supply can be restored manually or automatically after the abnormal conditions are cleared, effectively avoiding the problems of equipment being unusable and requiring professional maintenance caused by traditional protection methods.
[0057] Example 2: This embodiment provides a high-power smart socket with a rated current of 16A, suitable for high-power electrical equipment such as air conditioners, electric water heaters, and electric heaters. The difference between this embodiment and Embodiment 1 is: The hardware uses high-current power ICs, high-precision high-current metering chips, and high-capacity relays to meet the long-term working requirements of 16A; the housing is made of UL94V0 grade flame-retardant material and is sealed through ultrasonic welding process to improve heat resistance, flame retardancy and moisture resistance.
[0058] The power detection algorithm shortens the sampling period and average calculation period, improving the response speed to sudden changes in high-power loads; the temperature detection adopts dual-point acquisition, monitoring the temperature of the PCB area and the power device area respectively, improving the reliability of overheat detection.
[0059] The main control module identifies the 16A hardware specification through ADC sampling, automatically increases the power and temperature protection thresholds, adapts to high-power working scenarios, and avoids false protection during normal operation.
[0060] The threshold for judging abnormal humidity has been further tightened, improving the early warning capability for creepage and short circuit risks in humid environments, and making protection actions more timely. The rest of the system structure, algorithm logic, protection process, log recording and interaction method are the same as in Example 1, and will not be described again here.
[0061] Example 3: This embodiment provides a smart socket specifically designed for humid environments, suitable for high-humidity, dusty, and condensation-prone environments such as bathrooms, balconies, and industrial workshops. The difference between this embodiment and Embodiment 1 is: The temperature and humidity detection module increases the sampling frequency, shortens the data acquisition cycle, expands the FIFO queue depth, and improves the sensitivity of humidity trend judgment; the humidity algorithm works in conjunction with the product's sealing structure design to reduce the risk of moisture through both structural waterproofing and software early warning.
[0062] When the humidity continuously exceeds the standard, the system will perform a lock-out power cut-off. Users need to confirm through the APP that the moisture-proof treatment has been completed before the power supply can be restored, further improving the safety of use.
[0063] The system log now includes a humidity change curve, allowing users to analyze the effectiveness of the moisture-proof system and optimize the operating environment. The remaining system components, connections, power algorithms, temperature algorithms, child lock, adaptive threshold, non-destructive protection, and interaction mechanisms are the same as in Example 1 and will not be repeated here.
[0064] Example 4: This embodiment provides a linked smart socket that can communicate with an independent indoor smart thermometer and hygrometer to jointly judge internal and external environmental data, improving algorithm accuracy. The difference from Embodiment 1 is: The main control module obtains external ambient temperature and humidity data through the home network, compares the temperature and humidity inside the socket with the ambient temperature and humidity, distinguishes between natural environmental changes and abnormal heating or dampness inside the socket, and reduces false alarms and power outages.
[0065] Temperature and humidity algorithm thresholds are calibrated based on internal and external data to improve the accuracy of anomaly detection and optimize protection strategies. The remaining system structure, power detection, temperature detection, humidity detection, child lock, graded protection, non-destructive hardware, log recording, and security interaction are the same as in Example 1, and will not be described again here.
[0066] Example 5: This embodiment provides a multi-output intelligent power strip with multiple independent power supply circuits, each of which independently implements a safety protection function. The difference from Embodiment 1 is that: Each output is equipped with an independent power metering chip, relay, and temperature and humidity acquisition unit. The power, temperature, and humidity detection of each channel are independent of each other, and the algorithms run in parallel.
[0067] When a power, temperature, or humidity abnormality occurs in a certain circuit, only the power supply to the corresponding circuit is cut off, without affecting the normal operation of other circuits and the main power supply, thus improving the power supply continuity in scenarios with multiple devices using power.
[0068] The app interface displays the running status, protection records, and abnormal information separately, enabling unified management and refined security protection across multiple channels. The remaining hardware components, algorithm mechanisms, child lock, adaptive threshold, lossless protection, and interaction methods are the same as in Example 1, and will not be repeated here.
[0069] In summary, this invention constructs a multi-dimensional proactive safety protection system that deeply integrates hardware and software. With the main control module at its core, it collaborates with a power IC module, an electricity metering chip, a temperature and humidity detection module, and a child lock module. It integrates three types of detection algorithms—power, temperature, and humidity—to achieve comprehensive perception and graded handling of electrical risks such as overload, overheating, humidity, creepage, and short circuits. Through a counting and decrementing mechanism and dynamic threshold adjustment, the system can filter out transient interference and accurately identify continuous anomalies, prioritizing early warning over power outages. The power IC module provides self-recovering hardware protection; after troubleshooting, it can be restored to use without professional repair, reducing maintenance costs. The child lock module, combined with a physical safety door, forms dual protection against electric shock, enhancing personal safety. The system also has adaptive specification recognition capabilities, automatically matching protection thresholds for different rated parameters. Through local interaction and remote communication via an APP, the system upgrades traditional passive power-off protection to proactive safety services, automatically recording operating status and anomaly logs, enabling the identification of potential hazards, traceability of processes, and controllability of states, comprehensively improving the safety value and user experience of smart home products.
[0070] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A safety protection system for an intelligent socket, characterized in that, It includes a main control module, a power IC module, an electricity metering chip, a temperature and humidity detection module, a child lock module, an interactive warning module, an APP communication module, and an output control module; The main control module is electrically connected to the power IC module, the electricity metering chip, the temperature and humidity detection module, the child lock module, the interactive warning module, the APP communication module, and the output control module, respectively. The power IC module is used to implement overcurrent, overload, overvoltage, undervoltage, and overheat protection with self-recovery function; The electricity metering chip is used to collect current and voltage data in real time and calculate active power. The temperature and humidity detection module is used to periodically collect the internal temperature and humidity of the socket; The child lock module is used to disable the physical buttons on the socket, and works in conjunction with the physical safety door to achieve dual protection against electric shock. The main control module is configured to perform anomaly prediction and graded processing based on power detection algorithm, temperature detection algorithm, and humidity detection algorithm, triggering interactive warning module, APP alarm or automatic power-off, and the protection action does not damage the hardware circuit.
2. The safety protection system for the intelligent socket according to claim 1, characterized in that, The power detection algorithm includes: The current and voltage values are collected at a period of 1-2 seconds and sent to the FIFO queue. The maximum and minimum values are removed every 10-20 seconds and the average current and average voltage are calculated to eliminate transient interference. The system uses a count accumulation logic: when the power exceeds the threshold, count is incremented by 1 per second; when the power is below the threshold, count is decremented by 1 per second. When the count reaches the first threshold, a local light alarm and an APP notification will be activated. When the count reaches the second threshold, the control output module will disconnect the power.
3. The safety protection system for the intelligent socket according to claim 1, characterized in that, The temperature detection algorithm includes: Temperature data is collected every 1-2 seconds and stored in a FIFO queue of length 10. Compare the latest temperature with the average temperature of the queue. If the increase exceeds Δh for three consecutive times, it is determined that the temperature is rising rapidly. If the average temperature exceeds the socket's maximum withstand temperature ΔH for five consecutive times, an abnormal temperature is determined and power-off protection is activated.
4. The safety protection system for the intelligent socket according to claim 1, characterized in that, The humidity detection algorithm includes: Humidity data is collected every 1-2 seconds and stored in a FIFO queue of length 10; Compare the latest humidity with the average humidity of the queue. If the increase exceeds ΔT for three consecutive times, the humidity is judged to be abnormal. ΔT is dynamically adjusted according to the average humidity. The higher the average humidity, the smaller ΔT is, and the lower the average humidity, the larger ΔT is.
5. The safety protection system for an intelligent socket according to claim 1, characterized in that, Once the child lock module is activated, all physical buttons on the socket become disabled, preventing manual power output and creating a dual protection against electric shock in conjunction with the internal mechanical interlock safety door.
6. The safety protection system for an intelligent socket according to claim 1, characterized in that, The main control module automatically identifies the rated voltage, rated current and maximum power of the current socket by sampling the hardware sampling resistor through ADC, and adaptively matches the corresponding protection threshold to achieve compatibility of smart sockets of different specifications with the same program.
7. The safety protection system for an intelligent socket according to claim 1, characterized in that, The alarm interaction module is used to output safety protection status prompts, electricity usage habit evaluations, abnormal warnings and power outage recovery prompts, so as to realize safety protection interaction with users.
8. A method of using a safety protection system for an intelligent socket as described in claims 1-7, characterized in that, Includes the following steps: S1. Disable physical buttons via child lock module, and combine with physical safety door to achieve electric shock protection; S2, the power IC module monitors current, voltage, and temperature in real time to achieve basic self-recovery hardware protection; S3: The electricity metering chip periodically collects electrical parameters, and after filtering and averaging, executes the power detection algorithm; S4. The temperature and humidity module periodically collects temperature and humidity data and executes temperature detection algorithms and humidity detection algorithms respectively. S5. Based on the algorithm's judgment result, the main control module executes one or more actions among local alarm, APP alarm, and automatic power-off. S6 records device operating status, power consumption habits, and abnormal logs, which can be viewed via an app.
9. The method of using the safety protection system for the intelligent socket according to claim 8, characterized in that, The power determination in S3 uses a count mechanism: If the power exceeds the threshold, the count increases; if it falls below the threshold, the count decreases. An alarm is triggered when count ≥ 120, and the output is cut off when count ≥ 300, thus prioritizing early warning over power failure.
10. The method of using the safety protection system for the intelligent socket according to claim 8, characterized in that, It also includes a threshold adaptation step: The main control module reads the hardware sampling resistor through the ADC, automatically identifies the socket specifications, and sets protection thresholds for current, voltage, power, temperature, and humidity, enabling a single software to adapt to various smart sockets.