A method for controlling a socket, a socket, a home power distribution network, and a storage medium.

By configuring a current detection module and status lights in the socket, the current detection module collects the current value and compares it with the rated current value of the household branch circuit. The color and breathing frequency of the status lights are controlled to solve the problem of the single status indication of existing sockets. This achieves intuitive and hierarchical indication of socket status, improving the safety and availability of the household power distribution network.

CN123073499APending Publication Date: 2026-11-10SHENZHEN HELLO TECH ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611580259.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-12
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

The status indicators of existing sockets are simple, making it difficult for users to quickly identify the working status and degree of abnormality of the socket, especially in cases of overload or overheating, making it difficult to judge the severity of the fault in a timely manner.

Method used

By configuring a current detection module and status lights in the socket, the current detection module collects the current value and compares it with the rated current value of the household branch circuit. The color and breathing frequency of the status lights are controlled to reflect the operating status of the socket, including normal status and multiple abnormal alarm statuses.

Benefits of technology

It provides intuitive, hierarchical, and interference-free indication of socket status, allowing users to quickly identify the socket's working status and abnormality type through color and breathing frequency, thereby improving the safety and availability of the home power distribution network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123073499A_ABST
    Figure CN123073499A_ABST
Patent Text Reader

Abstract

This application discloses a control method for a socket, a socket, a home power distribution network, and a computer-readable storage medium. The socket is installed at the source of a home branch circuit. After being connected to an AC power source, it connects to a downstream power supply terminal. The socket is equipped with a current detection module and a status light. The current detection module collects the current value flowing through the socket to the downstream power supply terminal. The control method includes: acquiring the current value through the current detection module; comparing the current value with the rated current value of the home branch circuit; and controlling the operating state of the status light based on the comparison. The operating state includes color and / or breathing frequency. This application issues warnings to users through changes in the color and breathing frequency of the status light, enabling users to take timely measures to avoid serious losses, such as circuit breaker tripping due to overload or line overheating, thereby improving the safety and availability of the home power distribution network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of socket technology, specifically to a socket control method, a socket, a home power distribution network, and a computer-readable storage medium. Background Technology

[0002] As common electrical appliances in homes and offices, sockets are typically equipped with LED status lights to indicate power on / off status or simple operating conditions. However, existing socket status lights offer only simple indications. While some sockets use multi-color LEDs, the excessive number of colors or unclear meanings make it difficult for users to quickly identify the issue. Furthermore, when a socket malfunctions, such as overload or overheating, it usually only flashes or remains lit with a single color, making it difficult for users to quickly assess the severity of the fault and hindering timely troubleshooting.

[0003] Therefore, there is an urgent need for a technology that allows users to quickly and easily determine the working status of a socket, and that can provide intuitive, hierarchical, and interference-free status indication of the socket at a low cost. Summary of the Invention

[0004] This application provides a method for controlling a socket, a socket, a home power distribution network, and a computer-readable storage medium.

[0005] In a first aspect, this application provides a method for controlling a socket, characterized in that the socket is installed at the source of a household branch circuit, and after being connected to an AC power source, it is connected to a downstream power supply terminal via the socket. The socket is equipped with a current detection module and a status light. The current detection module is used to collect the current value flowing through the socket to supply the downstream power supply terminal. The control method includes: acquiring the current value through the current detection module; comparing the current value with the rated current value of the household branch circuit; and controlling the working state of the status light based on the comparison, wherein the working state includes color and / or breathing frequency.

[0006] In some embodiments, the operating state of the socket includes a normal state and an abnormal state, the abnormal state corresponding to multiple abnormality levels, the color including a first color and a second color, the breathing frequency including a first breathing frequency and a second breathing frequency, and controlling the operating state of the status light based on the comparison situation including: determining the operating state of the socket according to the comparison situation; when the operating state is the normal state, controlling the status light to display with the first color and / or to periodically change brightness with the first breathing frequency; when the operating state is the abnormal state, obtaining the abnormality level corresponding to the current abnormal state; and controlling the status light to display with the second color corresponding to the abnormal level and / or to periodically change brightness with the second breathing frequency corresponding to the abnormal level, wherein each abnormal level corresponds to a different second color, and each abnormal level corresponds to a different second breathing frequency.

[0007] In some embodiments, the anomaly level includes at least a level 1 alarm, a level 2 alarm, and a level 3 alarm; the second breathing frequency includes at least a level 1 breathing frequency, a level 2 breathing frequency, and a level 3 breathing frequency; controlling the status light to display in a second color and / or to periodically change brightness at the second breathing frequency corresponding to the anomaly level includes: when the anomaly level is a level 1 alarm, controlling the status light to display in the second color corresponding to the level 1 alarm and / or to periodically change brightness at the level 1 breathing frequency; when the anomaly level is a level 2 alarm, controlling the status light to display in the second color corresponding to the level 2 alarm and / or to periodically change brightness at the level 2 breathing frequency, wherein the level 2 breathing frequency is less than the level 1 breathing frequency; when the anomaly level is a level 3 alarm, controlling the status light to display in the second color corresponding to the level 3 alarm and / or to periodically change brightness at the level 3 breathing frequency, wherein the level 3 breathing frequency is less than the level 2 breathing frequency.

[0008] In some embodiments, the control method further includes: when the abnormality level is a level two alarm or a level three alarm, continuously monitoring the current of the socket, and determining whether the degree of abnormality of the abnormal state has changed based on the monitoring results; and when the degree of abnormality worsens, if the current level is a level two alarm, upgrading the level two alarm to a level one alarm according to the degree of worsening, and controlling the status light to display the second color corresponding to the level one alarm and / or periodically changing its brightness at the level one breathing frequency; if the current level is a level three alarm, upgrading the level three alarm to a level two alarm according to the degree of worsening, and controlling the status light to display the second color corresponding to the level two alarm and / or periodically changing its brightness at the level two breathing frequency; or upgrading the level three alarm to a level one alarm, and controlling the status light to display the second color corresponding to the level one alarm and / or periodically changing its brightness at the level one breathing frequency.

[0009] In some embodiments, the socket further includes a temperature detection module for collecting the internal temperature of the socket, and the control method further includes: comparing the temperature with a temperature threshold; controlling the working state of the status light based on the comparison includes: controlling the working state of the status light based on the result of comparing the current value with the rated current value of the household branch circuit and the result of comparing the temperature with the temperature threshold, wherein the working state includes color and / or breathing frequency.

[0010] In some embodiments, controlling the status light to display a first color and to periodically change its brightness at a first breathing frequency includes: outputting an adjustment pulse width modulation signal to a light-emitting element in the status light for emitting light of the first color, wherein the duty cycle of the pulse width modulation signal changes periodically within a preset duty cycle range according to a sine wave pattern.

[0011] In some embodiments, the socket further includes a photosensor, and the control method further includes: detecting the current ambient light parameter through the photosensor; controlling the status light to turn off when the ambient light parameter is lower than a preset light parameter threshold; and controlling the status light to turn on when the ambient light parameter is higher than the light parameter threshold.

[0012] In some embodiments, the socket further includes a human body recognition sensor, and the control method further includes: when the status light is off, detecting human movement within a preset range using the human body recognition sensor; when human movement is detected within the preset range, controlling the status light to turn on and starting a timer, and continuing to detect human movement within the preset range; when no human movement is detected after the timer reaches a preset time, controlling the status light to turn off.

[0013] Secondly, this application also provides a socket installed at the source of a household branch circuit. After being connected to an AC power source, the socket is connected to a downstream power supply terminal. The socket includes: a housing, a status light, a current detection module, and a control unit. The status light is disposed on the housing. The current detection module is used to collect the current value flowing through the socket to supply the downstream power supply terminal. The control unit is connected to the status light and the current detection module respectively, and is configured to execute the control method of the socket described in any of the above claims.

[0014] In some embodiments, the socket further includes: a temperature detection module connected to the control unit, the temperature detection module being configured to collect the temperature inside the socket; a photosensor module connected to the control unit, the photosensor module being configured to detect current ambient light parameters; a human body recognition sensor connected to the control unit, the human body recognition sensor being configured to detect human movement within a preset range when the status light is off; and a power module for connecting to mains power and / or energy storage power, and converting AC power to DC power to power the control unit, the photosensor module, and the human body recognition sensor.

[0015] Thirdly, this application also provides a household power distribution network, including any of the sockets described above. The socket is installed at the source of a household branch circuit, and after being connected to mains power and / or energy storage power, it is connected to a downstream power supply terminal. The socket includes a power module, a current detection module, and a status light. The current detection module is used to collect the current value flowing through the socket to supply the downstream power supply terminal. The status light is used to indicate the current working status of the socket. The power module is used to connect to mains power and / or energy storage power and convert AC power into DC power.

[0016] Fourthly, this application also provides a computer-readable storage medium storing a computer program thereon, characterized in that, when the computer program is executed by a processor, it implements the control method for the socket described in any of the preceding claims.

[0017] The socket control method, socket, home power distribution network, and computer-readable storage medium of this application, by comparing the current value with the rated current value, can issue early warnings to users through changes in the color and breathing frequency of the status lights. This allows users to take timely measures to avoid serious losses, such as circuit breaker tripping due to overload or line overheating, thereby improving the safety and availability of the home power distribution network. Simultaneously, users can intuitively understand the current branch load status by observing the color and breathing rhythm of the status lights on the socket without the need for a mobile app or professional instruments. Furthermore, through combinations of color and / or breathing frequency, various operating states and abnormal types of the socket can be distinguished, such as normal, overload, overtemperature, and short circuit states, enabling the socket to achieve intuitive, hierarchical, and interference-free status indication at a low cost. Moreover, the socket uses a uniform color and / or breathing frequency combination scheme during the transition from a normal to an abnormal state, ensuring that the status light display is regular, consistent, and unified throughout the entire operating cycle, resulting in a more harmonious and user-friendly overall visual effect that better meets human-centered design requirements.

[0018] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0019] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein: Figure 1 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 2 This is a schematic diagram of the structure of a socket according to some embodiments of this application; Figure 3 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 4 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 5 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 6 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 7 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 8 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 9 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 10 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 11 This is a flowchart illustrating the control method of a socket according to some embodiments of this application; Figure 12 This is a schematic diagram of the network structure of a home power distribution network according to some embodiments of this application.

[0020] The reference numerals in the detailed embodiments are as follows: Socket 100, housing 10, status light 20, current detection module 30, control unit 40, temperature detection module 50, photosensitive sensor 60, human body recognition sensor 70, power supply module 80; 200 kW of mains power and / or energy storage power; Downstream power supply terminal 300. Detailed Implementation

[0021] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the specific embodiments of this application are described in detail below with reference to the accompanying drawings. Many specific details are set forth in the following description to provide a thorough understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar modifications without departing from the spirit of this application. Therefore, this application is not limited to the specific embodiments disclosed below.

[0022] In the description of this application, it should be understood that the terms "center", "length", "upper", "lower", "front", "rear", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0023] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0024] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "joining," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; 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; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0025] In this application, unless otherwise expressly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.

[0026] The socket 100 is a power control device that can be connected to a home network. Its panel has a status light 20 with a flashing display function. However, the status indication of the status light 20 in existing sockets 100s is relatively simple, usually indicating whether power is on or off using only a single monochrome LED, failing to distinguish between different operating states such as normal, overload, overtemperature, and short circuit. While some sockets 100 use multi-color LEDs, the excessive number of colors or unclear meanings make it difficult for users to quickly identify the correct status.

[0027] To address this issue, this application provides a method for controlling the indicator light of a smart socket 100. Figure 1 As shown), socket 100 ( Figure 2 As shown), home power distribution network ( Figure 12 (as shown), and computer-readable storage media.

[0028] Please see Figure 1 This application provides a control method for a socket 100. The socket 100 is installed at the source of a household branch circuit. After being connected to an AC power source, it is connected to a downstream power supply terminal 300. The socket 100 is equipped with a current detection module 30 and a status light 20. The current detection module 30 is used to collect the current value flowing through the socket 100 to supply the downstream power supply terminal 300. The control method includes: 01: Obtain the current value through the current detection module 30; 02: Compare the current value with the rated current value of the household branch circuit; and, 04: Control the working status of status light 20 based on the comparison situation. The working status includes color and / or breathing frequency.

[0029] Please see Figure 2 The control method of this application is applied to a socket 100, which is installed at the source of a household branch circuit. After being connected to an AC power source, the socket 100 connects to a downstream power supply terminal 300. The socket 100 includes a housing 10, a status light 20, a current detection module 30, and a control unit 40. The status light 20 is mounted on the housing 10. The current detection module 30 is used to collect the current value flowing through the socket 100 to supply the downstream power supply terminal 300. The control unit 40 is connected to the status light 20 and the current detection module 30, respectively. The control unit 40 obtains the current value through the current detection module 30, compares the current value with the rated current value of the household branch circuit, and controls the working state of the status light 20 based on the comparison. The working state includes color and / or breathing frequency.

[0030] In this system, a household branch circuit refers to a circuit within the household power distribution system, such as a lighting branch circuit, a socket branch circuit, or an air conditioning branch circuit. Socket 100 is installed at the source of the household branch circuit, and after being connected to an AC power source, it connects to the downstream power supply terminal 300 via socket 100. It is understood that the AC power source is the AC power supply that powers the household branch circuit, such as mains power and / or a stored energy source 200. The downstream power supply terminal 300, located downstream of socket 100, is the interface or power supply terminal for electrical equipment powered by socket 100, such as a downstream wall socket or the power input terminal of an electrical device.

[0031] Additionally, socket 100 is installed at the source of the household branch circuit. An AC power source is connected to socket 100 and then connected to the downstream power supply terminal 300 via socket 100, allowing the AC power source to supply power to the downstream power supply terminal 300 through socket 100. A current detection module 30 is installed in socket 100 to collect the current value flowing through socket 100 to supply power to the downstream power supply terminal 300. Furthermore, a status light 20 is installed on socket 100, for example, it can be installed on the socket 100 panel, housing 10, or a special display area.

[0032] In step 01, the current value flowing through the socket 100 to supply the downstream power supply terminal 300 is obtained by the current detection module 30. The current detection module 30 includes, but is not limited to, a current transformer, a shunt resistor sampling circuit, or other devices suitable for AC current detection, and can collect current values ​​in real time or periodically according to a preset cycle.

[0033] In step 02, the obtained current value is compared with the rated current value of the household branch circuit. The rated current value of the household branch circuit can be the maximum current allowed to pass through the household branch circuit according to its design. Comparing the current value with the rated current value can be done by calculating the ratio or difference between the current value and the rated current value, or by determining whether the current value falls within a preset threshold range.

[0034] In step 04, the operating state of the status light 20 is controlled based on the comparison conditions. The operating state includes color and / or breathing frequency. The status light 20 can be a light indicator device installed on the socket 100, such as an LED light or an RGB light. Specifically, the status light 20 enters different operating states according to different comparison conditions. For example, when the current value is less than a first proportional threshold of the rated current value of the household branch circuit, the status light 20 is controlled to operate with a first color and a first breathing frequency; when the current value is greater than or equal to the first proportional threshold and less than a second proportional threshold, the status light 20 is controlled to operate with a second color and a second breathing frequency; when the current value is greater than or equal to the rated current value of the household branch circuit, the status light 20 is controlled to operate with a third color and a third breathing frequency.

[0035] It is understood that color includes, but is not limited to, any combination or variation of one or more colors, and breathing frequency includes, but is not limited to, any breathing rhythm, such as one or more combinations of slow breathing, medium breathing, and rapid breathing. The working status of status light 20 can be distinguished by color, by breathing frequency, or by a combination of color and breathing frequency.

[0036] In some implementations, the ratio between the current value collected by the current detection module 30 and the preset rated current value of the household branch circuit can be calculated to obtain the current ratio. This current ratio is then compared with multiple preset ratio ranges, such as a first ratio range, a second ratio range, and a third ratio range. If the current ratio falls within the first ratio range, the household branch circuit is determined to be in a normal state, and the control status light 20 displays orange and illuminates periodically at a breathing frequency of 1Hz. If the current ratio falls within the second ratio range, the household branch circuit is determined to be under slight overload, and the control status light 20 displays red and illuminates periodically at a breathing frequency of 2Hz. If the current ratio falls within the third ratio range, the household branch circuit is determined to be under severe overload, and the control status light 20 displays red and illuminates periodically at a breathing frequency of 3Hz.

[0037] Thus, by comparing the current value with the rated current value, the color change and breathing frequency change of the status light 20 can issue a warning to the user, enabling the user to take timely measures to avoid serious losses, such as circuit breaker tripping due to overload or line overheating, thereby improving the safety and availability of the home power distribution network. At the same time, users can intuitively understand the current branch load status by observing the color and breathing rhythm of the status light 20 on the socket 100 without the need for a mobile app or professional instruments. Furthermore, through the combination of color and / or breathing frequency, various operating states and abnormal types of the socket 100 can be distinguished, such as normal, overload, overtemperature, and short circuit states, allowing the socket 100 to achieve intuitive, hierarchical, and interference-free status indication at a low cost. In addition, the socket uses a uniform color and / or breathing frequency combination scheme during the transition from a normal state to an abnormal state, making the status light display regular, consistent, and unified throughout the entire working cycle, resulting in a more harmonious and user-friendly overall visual effect that better meets human-centered design requirements.

[0038] Please see Figure 3 In some embodiments, the operating state of the socket 100 includes a normal state and an abnormal state. The abnormal state corresponds to multiple abnormality levels, the color includes a first color and a second color, and the breathing frequency includes a first breathing frequency and a second breathing frequency. The operating state of the status light 20 is controlled based on the comparison situation, including: 041: Determine the operating status of socket 100 based on the comparison results; 042: When the operating state is normal, the control status light 20 displays in a first color and / or changes brightness periodically at a first breathing frequency; 043: When the running state is abnormal, obtain the abnormality level corresponding to the current abnormal state; that is, 044: Control the status light 20 to display the second color corresponding to the abnormality level and / or to perform periodic brightness changes at the second breathing frequency, wherein each abnormality level corresponds to a different second color and each abnormality level corresponds to a different second breathing frequency.

[0039] Correspondingly, please refer to Figure 2 The control unit 40 in the socket 100 can also determine the operating status of the socket 100 based on the comparison situation; when the operating status is normal, the control status light 20 is displayed with a first color and / or its brightness changes periodically with a first breathing frequency; when the operating status is abnormal, the abnormality level corresponding to the current abnormality is obtained; and the control status light 20 is displayed with a second color and / or its brightness changes periodically with a second breathing frequency corresponding to the abnormality level, wherein each abnormality level corresponds to a different second color and each abnormality level corresponds to a different second breathing frequency.

[0040] The normal state of socket 100 can be defined as the current flowing through socket 100 being within the rated current value of the household branch circuit, or within a preset normal current range, which to some extent indicates that the load power consumption of the downstream power supply terminal 300 is within the allowable operating range of the household branch circuit. The abnormal state can be defined as the current flowing through socket 100 reaching or exceeding the rated current value of the household branch circuit, or within a preset abnormal current range, which to some extent indicates that the household branch circuit has at least one of the following risks: overload, overcurrent, short circuit, overtemperature, etc.

[0041] Specifically, the operating status of socket 100 is determined based on the comparison, that is, whether the current operating status of socket 100 is normal or abnormal. For example, the ratio of the current value to the rated current value of the household branch circuit is calculated and compared with a preset threshold. If the ratio is less than the threshold, socket 100 is determined to be in a normal state; if the ratio is greater than or equal to the threshold, socket 100 is determined to be in an abnormal state.

[0042] Furthermore, under normal operating conditions, the status light 20 is controlled to display in a first color and / or periodically change brightness at a first breathing frequency. The first color and the first breathing frequency can be preset parameters. For example, the first color can be a color that evokes a sense of safety, such as green or blue, or a personalized product color. The first breathing frequency can be a slower breathing rhythm, causing the status light 20 to periodically brighten and dim, creating a smooth and soothing visual effect. The control unit 40 can control the status light 20 to display in the first color, control it to periodically change brightness at the first breathing frequency, or control it to operate in both the first color and the first breathing frequency simultaneously.

[0043] In some implementations, the rated current of the household branch circuit is 16A. The current detection module 30 detects a current of 4A flowing through the socket 100. The control unit 40 compares this current value with 16A and determines that the current value is much lower than the rated current value, thus confirming that the socket 100 is in a normal state. At this time, the control unit 40 controls the status light 20 on the socket 100 to display orange, and the brightness changes periodically at a first breathing frequency, for example, completing a gradual brightening and dimming breathing cycle every 3 seconds. When the user sees the status light 20 displaying a slow orange breathing pattern, they know that the load on the household branch circuit is normal and they can continue to use electricity normally.

[0044] Furthermore, when the operating state is abnormal, the corresponding abnormality level is obtained. It is known that the abnormal states of the socket 100 are divided into several types, such as minor overload, severe overload, overtemperature, and short circuit. Different abnormal states can be classified into levels according to severity or user-specified types, such as level one, level two, and level three. The abnormal states of the socket 100 can correspond to multiple abnormality levels, and the correspondence between abnormal states and abnormality levels can be preset in the mapping table of the control unit 40. In this way, the user can intuitively determine the urgency of the current abnormality based on the level. For example, if it is determined that the current state is abnormal and belongs to minor overload, then according to the preset mapping table, the current abnormality level can be obtained as level three.

[0045] Once the anomaly level is determined, the status light 20 can be controlled to display in a second color and / or periodically change brightness at a second breathing frequency corresponding to the anomaly level. The second color can be a pre-set color used to indicate an abnormal state, such as red. Different anomaly levels can use the same or different second colors; for example, red can be divided into various shades of light red, red, and dark red. Each anomaly level corresponds to a different second breathing frequency; for example, the higher the anomaly level, the higher the second breathing frequency can be, meaning the period of brightness change in the status light 20 is shorter, and the breathing or flashing changes are faster.

[0046] Understandably, the control unit 40 can control the status light 20 to display only in the second color, or control the status light 20 to periodically change brightness at the second breathing frequency, or control the status light 20 to operate at both the second color and the second breathing frequency simultaneously. By assigning different second breathing frequencies to different levels of abnormality, users can intuitively judge the severity of the abnormality based on the breathing rate of the status light 20 without needing to view specific numerical values.

[0047] In some implementations, the rated current of the household branch circuit is 16A. The current detection module 30 collects a current value of 13A. The control unit 40 compares this current value with 16A, and if the ratio is approximately 81%, the abnormality level is determined to be a slight overload, with an abnormality level of three. At this time, the control unit 40 controls the status light 20 on the socket 100 to display a light red color, and its brightness changes periodically at the second breathing frequency corresponding to this abnormality level, for example, completing a gradual brightening and dimming breathing cycle every 1.5 seconds. When the current value rises to 16A, and the ratio reaches 100%, the control unit 40 determines the abnormality level to be a severe overload, with an abnormality level of two. The control unit then controls the status light 20 to display a dark red color and operates at a faster second breathing frequency, for example, completing a breathing cycle every 0.8 seconds.

[0048] Thus, by dividing the operating status of the socket 100 into normal and abnormal states, and further setting multiple abnormal levels for the abnormal state, the status light 20 can intuitively reflect the load status of the household branch circuit in a graded manner. In the normal state, the status light 20 is controlled to display a first color and / or periodically change brightness at a first breathing frequency, allowing the user to intuitively confirm that the branch circuit is within a safe operating range. In the abnormal state, the abnormal level corresponding to the current abnormal state is first obtained, and then the status light 20 is controlled to display a second color and / or periodically change brightness at a second breathing frequency corresponding to that abnormal level, with each abnormal level corresponding to a different second breathing frequency. Therefore, the user can not only distinguish between normal and abnormal states, but also judge the severity of the abnormality based on the speed of the second breathing frequency.

[0049] Please see Figure 4 In some implementations, the anomaly level includes at least a level 1 alarm, a level 2 alarm, and a level 3 alarm; the second breathing frequency includes at least a level 1 breathing frequency, a level 2 breathing frequency, and a level 3 breathing frequency; and controlling the status light 20 to display in a second color and / or to periodically change brightness at the second breathing frequency corresponding to the anomaly level includes: 0441: When the alarm level is Level 1, control the status light 20 to display in the second color corresponding to the Level 1 alarm and / or to periodically change brightness at the Level 1 breathing frequency. 0442: When the alarm level is level 2, control the status light 20 to display in the second color corresponding to the level 2 alarm and / or to periodically change brightness at the level 2 breathing frequency, wherein the level 2 breathing frequency is less than the level 1 breathing frequency; 0443: When the alarm level is three, the control status light 20 displays the second color corresponding to the three-level alarm and / or changes its brightness periodically at a three-level breathing frequency, wherein the three-level breathing frequency is less than the two-level breathing frequency.

[0050] Correspondingly, please refer to Figure 2 The control unit 40 of the socket 100 can also be configured to, in the event of a level 1 alarm, control the status light 20 to display a second color corresponding to the level 1 alarm and / or to periodically change its brightness at a level 1 breathing frequency; in the event of a level 2 alarm, control the status light 20 to display a second color corresponding to the level 2 alarm and / or to periodically change its brightness at a level 2 breathing frequency, wherein the level 2 breathing frequency is less than the level 1 breathing frequency; and in the event of a level 3 alarm, control the status light 20 to display a second color corresponding to the level 3 alarm and / or to periodically change its brightness at a level 3 breathing frequency, wherein the level 3 breathing frequency is less than the level 2 breathing frequency.

[0051] The anomaly levels include at least Level 1, Level 2, and Level 3 alarms, and the second breathing frequency includes at least Level 1, Level 2, and Level 3 breathing frequencies. It is understood that Level 1, Level 2, and Level 3 alarms can correspond to different severity levels or different types of anomaly states preset by the user. For example, a Level 3 alarm could be a minor overload, a Level 2 alarm could be a severe overload, and a Level 1 alarm could be a short circuit. Similarly, a Level 1 alarm can correspond to the Level 1 breathing frequency in the second breathing frequency, a Level 2 alarm can correspond to the Level 2 breathing frequency in the second breathing frequency, and a Level 3 alarm can correspond to the Level 3 breathing frequency in the second breathing frequency.

[0052] Specifically, when the alarm level is Level 1, the status light 20 can be controlled to display in a corresponding second color, such as dark red; or the status light 20 can be controlled to periodically change its brightness at a Level 1 breathing frequency, such as periodically illuminating at a frequency of 2Hz; or the status light 20 can be controlled to display in a combination of the second color and the Level 1 breathing frequency, such as the status light 20 displaying dark red while periodically illuminating at a frequency of 2Hz. When the alarm level is Level 2, the status light 20 can be controlled to display in a corresponding second color, such as red; or the status light 20 can be controlled to periodically change its brightness at a Level 2 breathing frequency, such as periodically illuminating at a frequency of 1.5Hz; or the status light 20 can be controlled to display in a combination of the second color and the Level 2 breathing frequency, such as the status light 20 displaying red while periodically illuminating at a frequency of 1.5Hz. When the alarm level is three, the status light 20 can be controlled to display in the corresponding second color, such as dark red; the status light 20 can also be controlled to periodically change its brightness at a three-level breathing frequency, such as periodically illuminating at a frequency of 1Hz; or the status light 20 can be controlled to display in combination with the second color and the three-level breathing frequency, such as the status light 20 displaying dark red while periodically illuminating at a frequency of 1Hz.

[0053] Please see Figure 5 In some implementations, the current detection module 30 periodically collects and acquires the current value, then compares the current value with the rated current value of the household branch circuit, and determines whether the operating status of the socket 100 is normal based on the comparison. When the operating status is determined to be normal, the control status light 20 displays orange as the first color and emits light periodically at a first frequency of 0.33Hz.

[0054] Furthermore, when an abnormal operating state is determined, the orange status light 20 is turned off, while red is turned on as the secondary color for display, and the corresponding abnormality level is determined according to the abnormality state. When the abnormality level is a level one alarm, the status light 20 can be controlled to display dark red and periodically illuminate at a frequency of 2Hz; when the abnormality level is a level two alarm, the status light 20 can be controlled to display red and periodically illuminate at a frequency of 1.5Hz; when the abnormality level is a level three alarm, the status light 20 can be controlled to display light red and periodically illuminate at a frequency of 1Hz. After the alarm ends, the current value can continue to be periodically collected to determine the operating status of the socket.

[0055] In this way, users can not only identify that the socket 100 is currently in an abnormal state, but also accurately distinguish the current abnormality level based on the difference in the breathing rate of the status light 20, thereby judging the severity or urgency of the abnormality, without having to read specific current values ​​or rely on external devices such as mobile apps. At the same time, without adding complex components, using combinations of color and / or breathing frequency changes to correspond to different alarm messages reduces hardware costs and further improves the intuitiveness and recognizability of status indications.

[0056] Please see Figure 6 In some implementations, the control method further includes: 0444: In the event of a Level 2 or Level 3 alarm, continuously monitor the current of socket 100 and determine whether the degree of abnormality has changed based on the monitoring results; and 0445: When the severity of the abnormality increases, if the current level is a level 2 alarm, the level 2 alarm will be upgraded to a level 1 alarm according to the severity of the increase, and the status light 20 will be controlled to display in the second color corresponding to the level 1 alarm and / or to change its brightness periodically at the level 1 breathing frequency. 0446: If the current alarm level is Level 3, upgrade the Level 3 alarm to Level 2 alarm according to the severity, and control the status light 20 to display in the second color corresponding to the Level 2 alarm and / or periodically change its brightness at a Level 2 breathing frequency; or 0447: Upgrade the level 3 alarm to the level 1 alarm, and control the status light 20 to display in the second color corresponding to the level 1 alarm and / or to perform periodic brightness changes at the level 1 breathing frequency.

[0057] Correspondingly, please refer to Figure 2The control unit 40 of the socket 100 can also be configured to continuously monitor the current of the socket 100 when the abnormality level is a level 2 or level 3 alarm, and determine whether the degree of abnormality of the abnormal state has changed according to the monitoring results; and when the degree of abnormality increases, if the current level is a level 2 alarm, the level 2 alarm is upgraded to a level 1 alarm according to the degree of increase, and the status light 20 is controlled to display with the second color corresponding to the level 1 alarm and / or to perform periodic brightness changes with the level 1 breathing frequency; if the current level is a level 3 alarm, the level 3 alarm is upgraded to a level 2 alarm according to the degree of increase, and the status light 20 is controlled to display with the second color corresponding to the level 2 alarm and / or to perform periodic brightness changes with the level 2 breathing frequency; or the level 3 alarm is upgraded to a level 1 alarm, and the status light 20 is controlled to display with the second color corresponding to the level 1 alarm and / or to perform periodic brightness changes with the level 1 breathing frequency.

[0058] Specifically, when the alarm level is Level 2 or Level 3, it indicates that the household branch circuit is in a relatively serious abnormal state. At this time, the control unit can continuously monitor the current value flowing through the socket 100 through the current detection module 30, and can acquire new current values ​​according to a preset cycle or in real time. The control unit 40 compares the newly acquired current value with the rated current value of the household branch circuit, or with the threshold range corresponding to the current alarm level, to determine whether the degree of abnormality has changed. If the comparison result shows that the current value further increases, exceeding the upper limit threshold corresponding to the current alarm level, or falling into the threshold range corresponding to a higher alarm level, then the degree of abnormality can be determined to have worsened. At this time, the control unit 40 determines a new alarm level based on the degree of worsening, and upgrades the current alarm level to a higher level alarm, such as upgrading from Level 3 to Level 2, or from Level 2 to Level 1. Furthermore, the control unit 40 controls the status light 20 to switch the currently executing second breathing frequency to the second breathing frequency corresponding to the upgraded higher-level alarm.

[0059] In some implementations, the rated current of the household branch circuit is 16A. The socket 100 is currently in a level three alarm state. The current detection module 30 collects a current value of 17A, and the control unit 40 controls the status light 20 to periodically change its brightness with a light red color and a level three breathing frequency (e.g., 1.5Hz). Subsequently, the control unit 40 continuously monitors the current. If the current value further increases to 20A, the control unit 40 compares this current value with a preset abnormality level threshold, determines that the abnormality level has worsened from level three to level two, and thus upgrades the alarm level from level three to level two, controlling the status light 20 to switch to red, while simultaneously switching the breathing frequency to a level two breathing frequency (e.g., 0.8Hz).

[0060] In this way, by continuously monitoring the current and dynamically judging changes in the degree of abnormality, the alarm level can be upgraded in a timely manner and the breathing frequency of status light 20 can be switched when the abnormal state worsens, thereby reflecting the development trend of the abnormality in real time. At the same time, by switching the breathing frequency to achieve graded warnings, users can intuitively perceive the escalation of abnormalities without the need for external devices, which is conducive to taking load reduction or power outage measures in advance, thereby improving the safety and reliability of the home power distribution network.

[0061] Please see Figure 7 In some embodiments, the socket 100 further includes a temperature detection module 50 for collecting the internal temperature of the socket 100, and the control method further includes: 03: Compare the temperature with the temperature threshold; The operating status of the control status light 20 is controlled based on the comparison situation, including: 045: Based on the comparison between the current value and the rated current value of the household branch circuit, and the comparison between the temperature and the temperature threshold, control the working status of the status light 20. The working status includes color and / or breathing frequency.

[0062] Please refer to it again. Figure 2 The socket 100 also includes a temperature detection module 50 connected to the control unit 40. The temperature detection module 50 is configured to collect the temperature inside the socket 100. The control unit 40 compares the temperature with a temperature threshold and controls the working status of the status light 20 based on the comparison of the current value with the rated current value of the household branch circuit and the comparison of the temperature with the temperature threshold. The working status includes color and / or breathing frequency.

[0063] The temperature detection module 50 is used to collect the internal temperature of the socket 100, and can be a thermistor module, a digital temperature sensor, or an integrated temperature detection circuit. The temperature detection module 50 can be positioned inside the socket 100 near power devices, the PCB board, or other heat-prone components to collect the internal temperature of the socket 100. This temperature is the temperature exhibited by the internal components or environment of the socket 100 during operation, including but not limited to the temperature of the power switching devices, the PCB board temperature, or the internal ambient temperature of the socket 100. The temperature threshold can be a pre-set temperature reference value used to determine whether the socket 100 is overheating, and can be determined based on the device's temperature resistance rating, insulation material rating, safety specifications, or experimental data.

[0064] In some implementations, the rated current of the household branch circuit is 16A, and the temperature threshold is 60°C. The current detection module 30 detects a current value of 8A, and the temperature detection module 50 detects an internal temperature of 35°C for the socket 100. The control unit 40 determines that the current value is less than the rated current value and the temperature is below the temperature threshold, thus confirming a normal operating state. The control status light 20 operates at an orange color with a slow breathing frequency. If the current value remains at 8A, but the internal temperature of the socket 100 rises to 65°C, exceeding the temperature threshold, the control unit 40 determines that the current is normal but there is a risk of overheating. The control status light 20 operates at a yellow color with a faster breathing frequency, reminding the user to check the heat dissipation or contact status of the socket 100. If the current value rises to 18A, exceeding the rated current value, but the internal temperature of the socket 100 is 45°C, not exceeding the temperature threshold, the control unit 40 determines that there is an overload but not yet overheating. The control status light 20 operates at a light red color with a rapid breathing frequency. If the current rises to 18A and the internal temperature of the socket 100 rises to 70°C, the control unit 40 determines that there is both overload and overheating. The control status light 20 operates with a deep red color and a faster breathing frequency or remains constantly lit, prompting the user to immediately reduce the load or disconnect the power for inspection.

[0065] Thus, by adding a temperature detection module 50 and using both the current comparison result and the temperature comparison result to control the working status of the status light 20, the shortcomings of judging the load status solely based on the current can be avoided, making the status indication more accurate and comprehensive. This allows for the detection of abnormal over-temperature conditions caused by poor contact, poor heat dissipation, or component aging. Through a special combination of color and / or breathing frequency, users can intuitively distinguish between different situations such as normal, overload, overheating, and simultaneous overload and overheating, thereby taking timely measures such as load reduction, power outage, or maintenance.

[0066] Please see Figure 8 In some embodiments, the control status light 20 is displayed in a first color and its brightness changes periodically at a first breathing frequency, including: 0421: Output adjustment pulse width modulation signal to the light-emitting element in status lamp 20 for emitting light of the first color, wherein the duty cycle of the pulse width modulation signal changes periodically within a preset duty cycle range according to a sine wave law.

[0067] Correspondingly, please refer to Figure 2 The control unit 40 of the socket 100 can also be configured to output an adjustment pulse width modulation signal to the light-emitting element in the status lamp 20 for emitting light of the first color, wherein the duty cycle of the pulse width modulation signal changes periodically within a preset duty cycle range according to a sine wave law.

[0068] The adjustment of the pulse width modulation (PWM) signal regulates the brightness of the status lamp 20's light-emitting element by changing its duty cycle. The duty cycle is the ratio of the high-level duration to the total time of a pulse width modulation cycle. It is known that a larger duty cycle results in a longer average on-time of the light-emitting element within one cycle, leading to higher brightness; conversely, a smaller duty cycle results in a shorter average on-time and lower brightness. Furthermore, a sinusoidal waveform allows the light-emitting element to exhibit a smooth transition between gradually brightening, dimming, and then brightening again. The preset duty cycle range is a pre-defined interval between the upper and lower limits of the duty cycle, used to prevent the light-emitting element from completely turning off or remaining excessively bright for extended periods.

[0069] In some implementations, the primary color of the status light 20 is green. The control unit 40 outputs a pulse-width modulation (PWM) signal to the orange light-emitting element in the status light 20 that emits green light. This PWM signal has a frequency of 1 Hz and a duty cycle that periodically changes according to a sine wave pattern within a preset duty cycle range of 20% to 80%, with a cycle of 3 seconds, i.e., a first breathing frequency of approximately 0.33 Hz. Within one cycle, the duty cycle gradually increases from 20% to 80%, gradually increasing the green brightness; then gradually decreases from 80% to 20%, gradually decreasing the orange brightness; and then repeats this cycle. The user can visually confirm that the household circuit is currently under normal load by observing the orange light gradually brightening and dimming at a slow, smooth rhythm.

[0070] Thus, periodic changes in color brightness can be achieved by adjusting the duty cycle of the pulse width modulation signal, eliminating the need for additional complex analog dimming circuits and reducing costs. Simultaneously, by outputting a pulse width modulation signal with a duty cycle that varies periodically within a preset duty cycle range according to a sine wave pattern, the brightness of the first color of the status light 20 exhibits a smooth breathing effect, avoiding flickering and brightness jumps caused by abrupt changes in duty cycle or step-wise adjustments, resulting in a more natural and softer visual appearance. Furthermore, the preset duty cycle range prevents the light-emitting element from completely turning off or becoming overly bright, ensuring the breathing effect is clearly visible and not glaring.

[0071] Please see Figure 9 In some embodiments, the socket 100 further includes a photosensor 60, and when the operating state is normal, the control method further includes: 05: The current ambient light parameters are detected by the photosensor 60; 06: When the ambient light parameters are lower than the preset light parameter threshold, control the status light 20 to turn off; 07: When the ambient light parameter is higher than the light parameter threshold, control the status light 20 to turn on.

[0072] Please see Figure 2The socket 100 also includes a photosensor 60 connected to the control unit 40. The photosensor 60 is configured to detect the current ambient light parameters; if the ambient light parameters are lower than a preset light parameter threshold, the status light 20 is turned off; if the ambient light parameters are higher than the light parameter threshold, the status light 20 is turned on.

[0073] The photosensor 60 can be a device that converts ambient light intensity into an electrical signal, such as a photoresistor, photodiode, phototransistor, or integrated ambient light sensor. The photosensor 60 can be installed on or inside the socket 100 to sense the ambient light conditions around the socket 100. Ambient light parameters can be parameters characterizing the current ambient light intensity, such as illuminance, photocurrent, photovoltage, or the resistance value of the photoresistor. Furthermore, the light parameter threshold can be preset in the control unit 40. Its value can be set according to the user's actual application scenario, automatically set by the sensor based on the current lighting conditions, or set according to specific user groups.

[0074] Specifically, if the ambient light parameter is lower than the preset light parameter threshold, it indicates that the current environment is dark or weak, and the status light 20 is turned off to avoid light pollution or disturbing the user's rest in the dark environment; if the ambient light parameter is equal to or higher than the light parameter threshold, it indicates that the current environment is bright, and the status light 20 is turned on to ensure that the status light 20 can still be observed by the user in the bright environment.

[0075] It is understood that this control method should be executed under the premise that the socket 100 is in a normal operating state. When the operating state is abnormal, the communication connection of the photosensitive sensor 60 can be shut off to prevent the status light from being turned off due to the dark environment in case of overload, overtemperature or other abnormalities, which would prevent the user from seeing the alarm. In addition, this control method can be executed independently or in conjunction with the aforementioned process of controlling the working state of the status light 20 based on the current comparison result. That is, the turning on or off of the status light 20 serves as the enabling condition for the operation of the status light 20, while the color and / or breathing frequency are still determined based on the comparison results of current, temperature, etc.

[0076] Thus, by adding a photosensitive sensor 60 to automatically control the status light 20 to turn on or off, it can prevent the status light 20 from being too bright in dark environments, thus avoiding light pollution, affecting users' rest, or disturbing their sleep. In bright environments, it ensures that the status light 20 works normally and is clearly visible. At the same time, no manual operation is required from the user, the level of intelligence is high, energy can be saved, and the lifespan of the status light 20 can be extended, thereby improving the practicality and comfort of the status indication of the socket 100.

[0077] Please see Figure 10In some embodiments, the socket 100 further includes a human body recognition sensor, and the control method further includes: 08: When status light 20 is off, human movement within a preset range is detected by the human body recognition sensor; 09: If human movement is detected within the preset range, control status light 20 to turn on and start timing, and continue to detect human movement within the preset range; 010: If no human movement is detected after the preset time has elapsed, control status light 20 will turn off.

[0078] Please see Figure 2 The socket 100 also includes a human body recognition sensor 70 connected to the control unit 40. The human body recognition sensor 70 is configured to detect human movement within a preset range when the status light 20 is off; if human movement is detected within the preset range, control the status light 20 to turn on and start a timer, and continue to detect human movement within the preset range; and if no human movement is detected after the timer reaches the preset time, control the status light 20 to turn off.

[0079] The human body recognition sensor 70 can be a sensor capable of detecting the presence or movement of a human body within a preset range, such as an infrared sensor, microwave radar sensor, camera, or integrated human body sensing module. It can be installed on or inside the socket 100 to sense whether a user is near the socket 100. The preset range can be the spatial range within which the human body recognition sensor 70 can effectively detect human movement, and can be set according to sensor sensitivity, installation location, or actual needs.

[0080] Specifically, when the status light 20 is off, the human body recognition sensor 70 detects human movement within a preset range. If human movement is detected within the preset range, the status light 20 is turned on and a timer is started, while the detection of human movement within the preset range continues; if no human movement is detected after the preset time has elapsed, the status light 20 is turned off.

[0081] It is understandable that this control method can be used in conjunction with the photosensitive sensor 60 control method described above, that is, the status light 20 automatically turns off in dark environments, but automatically turns on when a user approaches, so that the user can check the status.

[0082] Please see Figure 11In some implementations, the preset time is 30 seconds. After the indoor lights are turned off at night, the photosensor 60 detects that the ambient light parameter is below a threshold, and the control unit 40 controls the status light 20 to turn off. When a user approaches the socket 100, the human body recognition sensor 70 detects human movement within a preset range, the control unit 40 controls the status light 20 to turn on, and starts a 30-second timer while continuing to detect human movement. If the user stays or walks near the socket 100, the human body recognition sensor 70 continues to detect movement, the control unit 40 keeps the status light 20 on, and resets the timer. During this period, if the user leaves and no further human movement is detected within 30 seconds, the control unit 40 controls the status light 20 to turn off; however, if the user does not leave within 30 seconds, the human body recognition sensor 70 detects human movement only after 30 seconds, the status light 20 remains on, and the previous timer continues. After the 30-second timer expires, the ambient light parameters can continue to be detected by the photosensitive sensor 60. If the current ambient light parameters are lower than the threshold, that is, the current environment is still a low light environment, the control unit 40 controls the status light 20 to turn off; if the current ambient light parameters are equal to or higher than the threshold, that is, the current environment is not a low light environment, the control unit 40 controls the status light 20 to turn on and display according to the current status.

[0083] Thus, by adding a human body recognition sensor 70, the movement of people within a preset range can be detected when the status light 20 is off, enabling automatic control of "lights on when people are present, lights off when people leave," making it convenient for users to check the load status of household branch circuits. At the same time, the timing and continuous detection mechanism prevents the status light 20 from immediately turning off after a user leaves briefly, improving usability and enhancing the intelligence level of the socket 100 and the convenience of household electricity management to a certain extent.

[0084] Please see Figure 12 This application also provides a home power distribution network, including a socket 100 installed at the source of a home branch circuit. After being connected to an AC power source, the socket 100 is connected to a downstream power supply terminal 300. The socket 100 includes a power module 80, a current detection module 30, and a status light 20. The current detection module 30 is used to collect the current value flowing through the socket 100 to supply the downstream power supply terminal 300. The status light 20 is used to indicate the current working status of the socket 100. The power module 80 is used to connect to mains power and / or energy storage power 200 and convert AC power to DC power.

[0085] In summary, the control method for the socket 100, the socket 100 itself, the home power distribution network, and the computer-readable storage medium of this application, by comparing the current value with the rated current value, can issue warnings to users through changes in the color and breathing frequency of the status light 20, enabling users to take timely measures to avoid serious losses, such as circuit breaker tripping due to overload or line overheating, thereby improving the safety and availability of the home power distribution network. Simultaneously, users can intuitively understand the current branch load status by observing the color and breathing rhythm of the status light 20 on the socket 100 without relying on a mobile app or professional instruments. Furthermore, through combinations of color and / or breathing frequency, various operating states and abnormal types of the socket 100 can be distinguished, such as normal, overload, overtemperature, and short circuit states, thus enabling the socket 100 to achieve intuitive, hierarchical, and interference-free status indication at a low cost. In addition, the socket uses a uniform color and / or breathing frequency combination scheme during the transition from normal to abnormal state, so that the status light display is regular, whole and consistent throughout the working cycle, thereby making the overall visual effect more harmonious, user-friendly and more in line with humanized design requirements.

[0086] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to a computer device, and the computer program causes the computer device to execute the corresponding processes in the control methods of the embodiments of this application; for the sake of brevity, further details are omitted here.

[0087] This application also provides a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the control method of the embodiments of this application. For simplicity, further details are omitted here.

[0088] This application also provides a computer program comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the control method of this application. For brevity, further details are omitted here.

[0089] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. Furthermore, other implementation methods can be derived based on the above embodiments, allowing for structural and logical substitutions and changes without departing from the scope of this disclosure.

[0090] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this patent application should be determined by the appended claims.

Claims

1. A method for controlling a socket, characterized in that, The socket is installed at the source of a household branch circuit. After being connected to an AC power source, it is connected to a downstream power supply terminal via the socket. The socket is equipped with a current detection module and a status indicator. The current detection module is used to collect the current value flowing through the socket to supply the downstream power supply terminal. The control method includes: The current value is obtained through the current detection module; Compare the current value with the rated current value of the household branch circuit; and... The operating state of the status light is controlled based on the comparison situation, and the operating state includes color and / or breathing frequency.

2. The control method according to claim 1, characterized in that, The socket's operating status includes a normal state and an abnormal state. The abnormal state corresponds to multiple abnormality levels. The color includes a first color and a second color. The breathing frequency includes a first breathing frequency and a second breathing frequency. Controlling the operating state of the status light based on comparison includes: The operating status of the socket is determined based on the comparison results; When the operating state is the normal state, the status light is controlled to display in a first color and / or to periodically change brightness at a first breathing frequency; When the operating state is in the abnormal state, obtain the abnormal level corresponding to the current abnormal state; and, The status light is controlled to display in a second color corresponding to the abnormality level and / or to periodically change brightness at the second breathing frequency, wherein each abnormality level corresponds to a different second color and each abnormality level corresponds to a different second breathing frequency.

3. The control method according to claim 2, characterized in that, The anomaly level includes at least a level 1 alarm, a level 2 alarm, and a level 3 alarm; the second breathing frequency includes at least a level 1 breathing frequency, a level 2 breathing frequency, and a level 3 breathing frequency; controlling the status light to display in a second color and / or to periodically change brightness at the second breathing frequency corresponding to the anomaly level includes: In the event of an alarm of level 1, the status light is controlled to display the second color corresponding to the level 1 alarm and / or to periodically change brightness at the level 1 breathing frequency. In the event of an alarm at the level of Level 2, the status light is controlled to display in the second color corresponding to the Level 2 alarm and / or to periodically change brightness at the Level 2 breathing frequency, wherein the Level 2 breathing frequency is less than the Level 1 breathing frequency; and, In the event of an alarm of level three, the status light is controlled to display the second color corresponding to the level three alarm and / or to periodically change brightness at the level three breathing frequency, wherein the level three breathing frequency is less than the level two breathing frequency.

4. The control method according to claim 3, characterized in that, The control method further includes: In the event of an alarm level of Level 2 or Level 3, the current in the socket is continuously monitored, and the degree of abnormality is determined based on the monitoring results; and When the degree of abnormality worsens, if the current level is the second-level alarm, the second-level alarm is upgraded to the first-level alarm according to the degree of worsening, and the status light is controlled to display the second color corresponding to the first-level alarm and / or to periodically change brightness according to the first-level breathing frequency. If the current alarm level is the Level 3 alarm, then the Level 3 alarm is upgraded to the Level 2 alarm according to the severity, and the status light is controlled to display the second color corresponding to the Level 2 alarm and / or to periodically change brightness at the Level 2 breathing frequency; or The third-level alarm is upgraded to the first-level alarm, and the status light is controlled to display the second color corresponding to the first-level alarm and / or to periodically change brightness at the first-level breathing frequency.

5. The control method according to claim 4, characterized in that, The socket also includes a temperature detection module for collecting the internal temperature of the socket, and the control method further includes: The temperature is compared with a temperature threshold. The method of controlling the working state of the status light based on comparison includes: Based on the comparison between the current value and the rated current value of the household branch circuit, and the comparison between the temperature and the temperature threshold, the working state of the status light is controlled, and the working state includes color and / or breathing frequency.

6. The control method according to any one of claims 2 to 5, characterized in that, The control of the status light to display in a first color and to periodically change brightness at a first breathing frequency includes: The pulse width modulation signal is output to the light-emitting element in the status lamp that emits the first color light, wherein the duty cycle of the pulse width modulation signal changes periodically within a preset duty cycle range according to a sine wave law.

7. The control method according to claim 2, characterized in that, The socket also includes a photosensor, and when the operating state is the normal state, the control method further includes: The current ambient light parameters are detected by the photosensitive sensor; When the ambient light parameters are lower than a preset light parameter threshold, the status light is controlled to turn off; and, When the ambient light parameter is higher than the light parameter threshold, the status light is turned on.

8. The control method according to claim 7, characterized in that, The socket also includes a human body recognition sensor, and the control method further includes: When the status light is off, the human body recognition sensor detects human movement within a preset range; If human movement is detected within the preset range, the status light is turned on and a timer is started, and the detection of human movement within the preset range continues; and, If no human movement is detected after the preset time has elapsed, the status light will be turned off.

9. A socket, characterized in that, The socket is installed at the source of the household branch circuit. After being connected to an AC power source, it is connected to the downstream power supply terminal via the socket. The socket includes: case; A status light is provided on the housing; A current detection module, wherein the current detection module is used to collect the current value flowing through the socket to supply the downstream power supply terminal; and, The control unit is connected to the status light and the current detection module respectively, and is configured to perform the control method of the socket according to any one of claims 1-8.

10. The socket according to claim 9, characterized in that, The socket also includes: A temperature detection module is connected to the control unit, and the temperature detection module is configured to collect the temperature inside the socket; A photosensitive sensor is connected to the control unit, and the photosensitive sensor is configured to detect the current ambient light parameters; A human body recognition sensor, connected to the control unit, is configured to detect human movement within a preset range when the status light is off; and, The power module is used to connect to mains power and / or energy storage power, and convert AC power into DC power to power the control unit, the photosensitive sensor and the human body recognition sensor.

11. A household power distribution network, characterized in that, include: The socket according to any one of claims 9 to 10, wherein the socket is installed at the source of a household branch circuit, and after being connected to mains power and / or energy storage power, is connected to a downstream power supply terminal via the socket, the socket comprising a power module, a current detection module, and a status indicator; wherein, The current detection module is used to collect the current value flowing through the socket to supply the downstream power supply terminal; The status light is used to indicate the current working status of the socket; and The power module is used to connect to mains power and / or energy storage power, and to convert AC power into DC power.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the control method of the socket as described in any one of claims 1 to 8.