Intelligent switch, processing method and control system

By incorporating a proximity sensor module and a light-emitting module working in tandem in a smart switch, the problem of limited lighting indication functionality in smart switches is solved, enabling flexible lighting control and energy savings.

CN115097742BActive Publication Date: 2025-11-04WUHAN LINPTECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210804279.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-07
Publication Date
2025-11-04
Estimated Expiration
2042-07-07

AI Technical Summary

Technical Problem

Existing smart switches have limited light indicator functions when operated by buttons, making it difficult to meet diverse light indicator needs.

Method used

A proximity sensor module is installed in the smart switch. When a human body enters the sensing area, the light-emitting module is controlled to continuously emit a light signal for the first period of time. If a human body is still present in the sensing area, the light signal is stopped, and the light remains off when the human body leaves.

Benefits of technology

It enables flexible light indication control of the smart switch when a person enters and leaves the sensing area, saving energy and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115097742B_ABST
    Figure CN115097742B_ABST
Patent Text Reader

Abstract

The application provides a kind of intelligent switch, processing method and control system, comprising: key, proximity sensing module, communication processing module, light emitting module;If the communication processing module receives the sensing signal sent by the proximity sensing module, the light emitting module is controlled to continuously send light signal in the first period;The sensing signal represents that someone enters the sensing area;If still detect that someone exists in the sensing area after the first period, the light emitting module is controlled to stop sending light signal;And after controlling the light emitting module to stop sending light signal, if the person in the sensing area moves towards the direction away from the intelligent switch, the communication processing module controls the light emitting module to keep the state of not sending light signal.The application can control the time of light prompting and the time of stopping light by detecting whether there is a human body in the sensing area, and realizes the various light prompting control of intelligent switch.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of switch, in particular to a kind of intelligent switch, processing method and control system. BACKGROUND

[0002] Intelligent switch can be understood as switch with data processing capability, meanwhile, intelligent switch can be configured with processor for realizing data processing, and wireless communication module for realizing external wireless communication.

[0003] Intelligent switch can be prompted with light when being used in response to user's key operation, however, in the prior art, intelligent switch can only be prompted with simple flashing light when current key is operated, which is difficult to meet the diverse light prompting needs of intelligent switch. SUMMARY

[0004] The present application provides an intelligent switch, processing method and control system to solve the problem that it is difficult to meet the diverse light prompting needs of intelligent switch.

[0005] According to the first aspect of the present application, an intelligent switch is provided, comprising: a key, a proximity sensing module, a communication processing module, a light emitting module; the proximity sensing module and the light emitting module are electrically connected to the communication processing module;

[0006] The proximity sensing module is arranged below the key to form a sensing area within the specified range of the key;

[0007] The light emitting module is coupled with the position of the key so that the light signal emitted by the light emitting module can be displayed externally through the key;

[0008] The communication processing module, the proximity sensing module and the light emitting module are configured together so that:

[0009] If the communication processing module receives the sensing signal emitted by the proximity sensing module, the light emitting module is controlled to continuously emit light signal in the first period; the sensing signal represents that a human body enters the sensing area;

[0010] If a human body is still detected in the sensing area after the first period, the light emitting module is controlled to stop emitting light signal; and after the light emitting module is controlled to stop emitting light signal, if the human body in the sensing area moves away from the intelligent switch, the communication processing module controls the light emitting module to remain in the state of not emitting light signal.

[0011] According to a second aspect of the present application, a processing method of a smart switch is provided, the smart switch comprising: a key, a proximity sensing module, a communication processing module, a light emitting module; the proximity sensing module and the light emitting module are electrically connected to the communication processing module; the proximity sensing module is arranged below the key to form a sensing area within a specified range of the key; the light emitting module is coupled with the position of the key so that the light signal emitted by the light emitting module can be displayed externally through the key; the processing method comprises:

[0012] If the communication processing module receives the sensing signal emitted by the proximity sensing module, the light emitting module is controlled to continuously emit light signal within a first time period; the sensing signal represents that a human body enters the sensing area;

[0013] If the human body in the sensing area is still detected after the first time period, the light emitting module is controlled to stop emitting light signal; and after the light emitting module is controlled to stop emitting light signal, if the human body in the sensing area moves away from the smart switch, the communication processing module controls the light emitting module to remain in the state of not emitting light signal.

[0014] According to a third aspect of the present application, a control system is provided, comprising the above-mentioned smart switch, a terminal and a gateway; the smart switch can communicate with the gateway after joining the network where the gateway is located; the terminal can directly or indirectly communicate with the gateway;

[0015] The smart switch is used for: reporting a control event to the gateway in response to the control of the smart switch, or receiving control information issued by the terminal or the gateway, and executing the control result pointed by the control information;

[0016] The gateway is used for: feeding back the control event to the terminal;

[0017] The terminal is used for: externally prompting the control event, and / or generating and sending control information to the smart switch in response to the control event of the smart switch.

[0018] The intelligent switch, the processing method and the control system provided by the application have the following advantages: the proximity sensing module is arranged in the intelligent switch, the communication processing module is controlled to continuously send light signals in the first time period when the proximity sensing module senses that there is a human body in the sensing area of the intelligent switch, and then, the light is turned on to prompt when there is a human body in the sensing area of the intelligent switch based on the sensing of the proximity sensing module on the human body, and on this basis, the light emitting module is controlled to stop sending light signals after the first time period, and the light emitting module does not send light signals when the human body in the sensing area leaves after the light emitting module is controlled to stop sending light signals, so that the intelligent switch is prevented from frequently lighting when the human body enters and leaves the sensing area, and the energy consumption of the intelligent switch is saved. It can be seen that the time of light prompting and the time of stopping light can be controlled by detecting whether there is a human body in the sensing area, and various light prompting control of the intelligent switch is realized. BRIEF DESCRIPTION OF DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only show some embodiments of the application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0020] Figure 1 is a structural schematic diagram of the control system in an embodiment of the application;

[0021] Figure 2 is a structural schematic diagram of the intelligent switch in an embodiment of the application Figure 1 ;

[0022] Figure 3 is a structural schematic diagram of the intelligent switch in an embodiment of the application Figure 2 ;

[0023] Figure 4 is a circuit diagram of the light emitting module in an embodiment of the application;

[0024] Figure 5 is a circuit diagram of the DCDC chip with the true off function in an embodiment of the application;

[0025] Figure 6 is a structural schematic diagram of the intelligent switch in an embodiment of the application Figure 3 ;

[0026] Figure 7 is a circuit diagram of the switch device in an embodiment of the application;

[0027] Figure 8 is the circuit of the proximity sensing module in an embodiment of the present application Figure 1 ;

[0028] Figure 9 is the layout of the PCB of the smart switch in an embodiment of the present application Figure 1 ;

[0029] Figure 10 is the structure of the smart switch in an embodiment of the present application Figure 4 ;

[0030] Figure 11 is the circuit of the smart switch in an embodiment of the present application Figure 1 ;

[0031] Figure 12 is the circuit of the driving module and the relay in an embodiment of the present application

[0032] Figure 13 is the circuit of the type identification unit in an embodiment of the present application

[0033] Figure 14 is the circuit of the proximity sensing module in an embodiment of the present application Figure 2 ;

[0034] Figure 15 is the layout of the PCB of the smart switch in an embodiment of the present application Figure 2 ;

[0035] Figure 16 is the flow chart of the processing method of the smart switch in an embodiment of the present application DETAILED DESCRIPTION

[0036] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.

[0037] The terms "first", "second", "third", "fourth" and the like in the description and in the claims of the present application, and above-described drawings, if any, are used to distinguish between similar objects and are not necessarily used to describe a particular sequential or chronological order. It is to be understood that the use of the terms so-termed, where appropriate, can be interchanged with each other, so that the embodiments of the application described herein can be implemented in other than the order illustrated or described herein. Furthermore, the terms "comprise" and "have", and any variations thereof, are intended to cover non-exclusive inclusions, for example, a process, method, system, product or apparatus that comprises a list of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to such processes, methods, products or apparatuses.

[0038] The technical solutions of the present application will be described in detail below with specific examples. The following specific examples can be combined with each other, and the same or similar concepts or processes can not be described in some examples.

[0039] Reference is made to Figure 1 The present disclosure provides a control system, which can include an intelligent switch 1, a controlled device 2, a terminal 4 and a gateway 3.

[0040] The intelligent switch 1 can be understood as a switch with data processing capability. At the same time, the intelligent switch can be configured with a processor for realizing data processing, and a wireless communication module for realizing external wireless communication. The intelligent switch can interact with the gateway, the router and the wireless switch through the wireless communication module, and the wireless communication can be any mode such as radio frequency, Bluetooth and Wifi. It should be noted that the intelligent switch in the present embodiment can be a wireless switch that sends wireless messages outward, for example, sends wireless messages outward when controlled, so as to control other controlled devices connected to the network through the gateway or the terminal. The intelligent switch in the present embodiment can also be a wireless switch that receives wireless messages sent by the terminal, the gateway and the like from the outside through the wireless communication module, and realizes on-off control according to the wireless messages. At this time, the intelligent switch can be controlled as a controlled device by other control devices in the network. The intelligent switch in the present embodiment can also be a switch that has both the functions of sending wireless messages outward and receiving external wireless messages, which is not limited herein.

[0041] The controlled device 2 can be any device or combination of devices that can be controlled to realize on-off control, and is provided with a processing module and other circuits with data processing capability, and is also provided with a wireless communication module and other circuits with wireless communication capability. In one example, the controlled device 2 can be a wall switch. In other examples, the intelligent controller can also be a fan, a lamp, a socket, a garbage disposal device or a device connected thereto. The communication mode of the controlled device 2 to the outside can include at least one of the following: radio frequency, Bluetooth, Wifi, mobile network and the like.

[0042] The terminal 4 can be any device or combination of devices with data processing capability and external communication capability, for example, it can be a mobile phone, a computer, a tablet computer, a computer, a car machine, etc.

[0043] The gateway 3 can be any network gateway, for example, it can be any one of a Wifi network, a Zigbee network, and a Bluetooth network; in further schemes, the gateway 3 can access the Internet, thereby realizing data exchange with other devices (for example, terminals, sound box devices) accessing the Internet. In addition, the gateway 3 can be a gateway device specially used as the gateway 3, or can be other devices with a gateway function (for example, a sound box device with a gateway function, a display device with a gateway function, a computer with a gateway function, a host, etc.).

[0044] In some schemes, the control system can further include a server, the gateway and the terminal can interact with the server, and data interaction between the gateway and the terminal can be realized based on the server. In some examples, the server can mainly play a role of data forwarding, and in some examples, the server can also play a role of data storage and processing.

[0045] In the following, the smart switch 1 in some schemes of the embodiments of the present application will be described in detail, and the scope of the embodiments of the present application can not be limited thereto.

[0046] Please refer to Figure 2 The present disclosure provides a smart switch, which can include: a key 101, a proximity sensing module 102, a communication processing module 103, and a light emitting module 104; the proximity sensing module 102 and the light emitting module 104 are both electrically connected to the communication processing module 103.

[0047] Wherein, the communication processing module can receive corresponding signals through the operation of the key 101 (for example, the operation of pressing down). For example, the key 101 can include an operation part, which can be understood as a key 101 of a smart switch, or a combination of a key 101 including a smart switch and a component such as a transmission member that can move together. The key 101 can also include a sensing part, and the operation part can trigger the corresponding sensing part in response to the operation; the triggering can be direct triggering or indirect triggering (for example, through other transmission members). The sensing part is electrically connected to the communication processing module 103 to transmit a trigger signal to the communication processing module 103 when triggered. In further examples, the sensing part can include a detection switch (for example, a microswitch), and in an example, when triggered, the trigger switch device is turned on, at which time the corresponding port of the communication processing module 103 is pulled to the ground, so that it knows that the operation part has been pressed down. When the trigger switch device is not triggered or stops being triggered, the corresponding port of the communication processing module 103 is stopped from being pulled to the ground, so that it knows that the operation part has been released. In other examples, the switch device can be turned off when triggered, and turned on when not triggered or stops being triggered. The switch device can be pulled down to the ground, or it can be pulled up to a specified potential. In addition, after the operation part is pressed down, if it is released (i.e., after the pressing-down force disappears), the operation part can be reset under the drive of the sensing part (for example, a microswitch) and / or other components for transmission and reset, returning to the position when it is not pressed down.

[0048] The proximity sensing module 102 is arranged below the key 101 to form a sensing area within a specified range of the key 101; for example, the proximity sensing module 102 can be arranged below the operation part of the key 101, so that the proximity sensing module 102 forms a sensing area that radiates outwardly based on the operation part of the key 101. The sensing area at least includes the area where the user manipulates the operation part of the key 101, so that the proximity sensing module 102 can sense the human body in the manipulation area. At this time, the human body can only stay in the manipulation area but not manipulate the key 101.

[0049] The light emitting module 104 is coupled with the position of the key 101 to enable the light signal emitted by the light emitting module 104 to be displayed externally through the key 101. In the present embodiment, the light signal emitted by the light emitting module 104 can be directly or indirectly displayed externally through the key 101, for example, the light signal emitted by the light emitting module 104 can be displayed on the front or side of the key 101. The display mode can be directly displayed on a specific display area on the surface of the key 101, or indirectly guided to the key 101 through a light guide structure for display, etc., which is not limited herein.

[0050] The communication processing module 103 can be a circuit module with data processing capability and communication capability, on the basis of which the communication processing module 103 can be additionally provided with other functional circuits or combinations of circuits. In further solutions, the communication processing module 103 can also have other detection and conversion functions. The communication processing module 103 can be integrated together, or can be a separate communication processing module 103 and a wireless communication unit, so as to realize wireless communication through the wireless communication unit. The wireless communication unit can be any one of a Bluetooth unit, a radio frequency unit, a Wifi unit, and a Zigbee unit. The wireless communication unit can be electrically connected to a corresponding antenna.

[0051] The communication processing module 103, the proximity sensing module 102, and the light emitting module 104 are collectively configured to:

[0052] If the communication processing module 103 receives the sensing signal sent by the proximity sensing module 102, the light emitting module 104 is controlled to continuously emit a light signal in a first time period. The sensing signal indicates that a human body enters the sensing area.

[0053] If the human body is still detected in the sensing area after the first time period, the light emitting module 104 is controlled to stop emitting the light signal. If the human body in the sensing area moves away from the smart switch after the light emitting module 104 stops emitting the light signal, the communication processing module 103 controls the light emitting module 104 to maintain the state of not emitting the light signal.

[0054] In the embodiment, when the communication processing module 103 receives the sensing signal sent by the proximity sensing module 102, it indicates that a human body enters the sensing area, and the light emitting module 104 is controlled to automatically emit light and continuously emit a light signal in a first time period. In an application scenario, in a dark environment with all lights turned off, when the smart switch senses a human body in the sensing area, it can automatically emit a light signal in a first time period, providing backlight for the user. This can help the user confirm the layout of the keys 101 of the smart switch in a dark environment, making it easier for the user to accurately control the smart switch and avoid misoperation. In addition, the light can be automatically turned on when the user passes by the smart switch, providing illumination for the user in a dark environment, thereby improving the user experience.

[0055] Further, after the light emitting module 104 continuously emits light signal for the first time period, if it is still detected that there is a human body in the sensing area, the light emitting module 104 is controlled to stop emitting light signal. When the light emitting module 104 continuously emits light for a long time, if it is still detected that there is a human body in the sensing area, it indicates that the human body has been in the sensing area for a long time, and the continuous light emission in the first time period is enough to provide backlight for the user to indicate the switch layout, and then the light emitting module 104 is controlled to stop emitting light signal. Thus, the power consumption of the smart switch is avoided, especially for the battery-powered smart switch, the power waste of the battery is reduced. Wherein, after the light emitting module 104 continuously emits light signal for the first time period, if it is still detected that there is a human body in the sensing area, it can be understood that there is always a human body in the sensing area, or the human body in the sensing area does not move, etc., which is not limited herein. After the light emitting module 104 is controlled to stop emitting light signal, if the human body in the sensing area leaves, the state of the light emitting module 104 not emitting light signal is maintained. In some embodiments, the proximity sensing module 102 can detect the movement or presence of the human body in the sensing area, and if the human body leaves, the proximity sensing module 102 can also send a sensing signal to the communication processing module 103. In this embodiment, after the light emitting module 104 is controlled to stop emitting light signal, if it is confirmed that the human body in the sensing area leaves, the state of the light emitting module 104 not emitting light signal is still maintained, so as to avoid the light emitting module 104 being triggered by mistake when the human body in the sensing area leaves, thereby saving the power consumption of the smart switch when the human body enters and leaves the sensing area.

[0056] In this embodiment, the proximity sensing module is arranged in the smart switch, and when the proximity sensing module senses that there is a human body in the sensing area of the smart switch, a sensing signal is sent to the communication processing module. The communication processing module controls the light emitting module to continuously emit light signal for a first time period. Further, based on the sensing of the proximity sensing module on the human body, the light emitting module is controlled to stop emitting light signal when it is still detected that there is a human body in the sensing area after the first time period. And after the light emitting module is controlled to stop emitting light signal, if the human body in the sensing area leaves, the state of the light emitting module not emitting light signal is maintained. It can be seen that, by detecting whether there is a human body in the sensing area, the time of light emitting prompt and the time of stopping light emitting can be controlled, and various light prompt control of the smart switch is realized.

[0057] In some embodiments, if the communication processing module receives the sensing signal sent by the proximity sensing module, the light emitting module is controlled to continuously emit light signal for a first time period, which includes:

[0058] The communication processing module receives the sensing signal, and controls the light emitting module to emit a light signal;

[0059] When the time of emitting the light signal reaches a first specified time, it is determined whether the sensing signal can still be received; if yes, the light emitting module is controlled to continuously emit the light signal until a second specified time; otherwise, the light emitting module is controlled to continuously emit the light signal until a third specified time and then stop emitting the light signal;

[0060] The third specified time is greater than or equal to the first specified time, and the second specified time is greater than the third specified time.

[0061] In the embodiment, the proximity sensing module detects an sensing parameter (such as a capacitance parameter) generated based on the presence of a human body in the sensing area, and continuously sends a sensing signal to the communication processing module according to the sensing parameter. For example, the proximity sensing module continuously sends a low-level signal as a sensing signal to the communication processing module when detecting the presence of a human body in the sensing area, and sends a high-level signal to the communication processing module when detecting the absence of a human body in the sensing area.

[0062] In the embodiment, the communication processing module receives the sensing signal sent by the proximity sensing module, starts timing, and controls the light emitting module to emit a light signal. When the timing duration reaches a first specified time, it is determined whether the sensing signal sent by the proximity sensing module can still be received. If the sensing signal can still be received, the light emitting module is controlled to continuously emit light for a second specified time since the start of timing. If the sensing signal cannot be received, the light emitting module is controlled to continuously emit light for a third specified time since the start of timing. The third specified time is greater than or equal to the first specified time, and the second specified time is greater than the third specified time.

[0063] In the embodiment, after a human body enters the sensing area, the communication processing module controls the light emitting module to emit light for a first specified time, and then determines whether the human body has left the sensing area at the first specified time. If it is confirmed that the human body has left, the light emitting module is controlled to emit light for a short time to save the power consumption of the intelligent switch. If it is confirmed that the human body still exists in the sensing area, the light emitting module is controlled to continuously emit light for a long time to continuously turn on the backlight. In a dark environment, the user can be provided with backlight through long-time light emission, and the user experience is improved.

[0064] It should be noted that in some proximity sensing modules have a self-calibration function, that is, after the proximity sensing module detects that a human body enters the sensing area, if the human body is still present when the calibration time is reached, the proximity sensing module identifies the current environment where the human body is always present as the default environment, and will not send a sensing signal to the communication processing module when the human body is always present thereafter, which will cause the intelligent switch to only emit light for a short time and be unable to emit light for a long time beyond the calibration time. Based on this, in the present embodiment, the communication processing module controls the light emitting module to emit light for a first specified time, which is less than the calibration time of the proximity sensing module, and if it is confirmed that the human body has not left the sensing area at the first specified time, the communication processing module controls the light emitting module to emit light for a longer time. Thus, by the communication processing module confirming whether the human body is still present in the sensing area before the calibration time of the proximity sensing module is reached, if so, the communication processing module directly controls the light emitting module to emit light for a longer time, which is greater than the calibration time of the proximity sensing module. In this way, the limitation of the calibration time of the proximity sensing module is avoided, and the light emitting module can be controlled by the communication processing module to emit light for a longer time when the human body is always present in the sensing area.

[0065] In an optional embodiment, the third specified time is equal to the calibration time, that is, when the communication processing module confirms that the human body has left the sensing area at the first specified time, it can directly wait for the no-human-existence sensing signal feedback from the proximity sensing module when the calibration time is reached, and then automatically control the light emitting module to stop emitting the light signal when the calibration time is reached.

[0066] In the present embodiment, the communication processing module controls the light emitting module to emit light for a short time or a long time by confirming whether the human body is still present in the sensing area at the first specified time, thereby achieving control of the duration of the light emitting prompt and the stop light emitting time by the presence of the human body, and achieving various light prompt control of the intelligent switch.

[0067] In some embodiments, the communication processing module is further configured to:

[0068] The communication processing module controls the light emitting module to emit a light signal to the outside for a set calibration time, acquires the calibration sensing signal sent by the proximity sensing module, and controls the light emitting module to stop emitting a light signal to the outside according to the calibration sensing signal; the calibration sensing signal represents that the sensing signal acquired by the proximity sensing module in at least one specified calibration period within the set calibration time does not change.

[0069] In some application scenarios, the smart switch may consume power if it keeps emitting light according to the sensing signal of human presence, especially in a battery-powered smart switch, which may cause the battery to be consumed too quickly and thus need to be replaced frequently, reducing the user's experience with the smart switch. Based on this, the smart switch in this embodiment is configured with a timing calibration function, which takes the state in a period of time as the background and recognizes it as the normal state of the environment. The communication processing module controls the light emitting module to emit light signals to the outside for a set calibration time, obtains the calibration sensing signal sent by the proximity sensing module, and controls the light emitting module to stop emitting light signals to the outside according to the calibration sensing signal. It should be noted that in an optional embodiment, when the set calibration time is reached, the proximity sensing module can determine whether the sensing signal in a specified calibration period in the sensing area changes. If there is no change, for example, there is always a human presence, it is identified as the normal state of the environment, and the calibration sensing signal without human presence is sent to the communication processing module. The communication processing module directly controls the light emitting module to stop emitting light signals to the outside according to the calibration sensing signal. In another optional embodiment, when the set calibration time is reached, the communication processing module can obtain the calibration sensing signal sent by the proximity sensing module. The calibration sensing signal is a signal that truly reflects whether there is a human presence in the sensing area. The communication processing module determines whether the sensing signal in a specified calibration period in the sensing area changes. If there is no change, for example, there is always a human presence, it is identified as the normal state of the environment, and the communication processing module directly controls the light emitting module to stop emitting light signals to the outside according to the calibration sensing signal.

[0070] It should be noted that in an optional embodiment, the proximity sensing module uses the IQS211A / B proximity sensing chip of Azoteq. When the proximity sensing chip is calibrated, the sensing parameters in the current sensing area are obtained, and calibration is performed based on the calibration base value, for example, including but not limited to determining the size and change of the sensing parameter value based on the calibration base value, etc., to take the state in a period of time as the background and recognize it as the normal state of the environment. The inventors of the present application have found through many experiments that when the calibration base value is set to 1200, the sensing distance, calibration effect, etc. are optimal, but when the calibration base value is set to 400 or less, the power consumption of the proximity sensing chip is lower, thereby saving the power consumption of the smart switch, for example, the calibration base value can be set to 384, 192, etc.

[0071] In some application environments where the presence of a human body is sensed but the light-emitting module does not need to emit light continuously, such as when the user holds the smart switch all the time, the proximity sensing module can identify the presence of a human body in the sensing area, but the smart switch does not need to emit light continuously at this time. Through the timing calibration function, when the set calibration time is reached, even if the presence of a human body is detected all the time, if the state of the presence of the human body has not changed all the time, the light-emitting module can be automatically controlled to stop emitting light signals to the outside. This avoids continuous light emission in specific application environments, thereby reducing the energy loss of the smart switch.

[0072] In some embodiments, the communication processing module is further configured to control the light-emitting module to emit light signals to the outside within a specified time in response to at least one trigger signal caused by the operation of the key of the smart switch.

[0073] In this embodiment, the communication processing module controls the light-emitting module to emit light signals to the outside within a specified time when at least one trigger signal caused by the operation of the key of the smart switch is received. The light signals can include prompt light signals corresponding to the operated key, and can also include backlight signals corresponding to the smart switch, such as the prompt light signals corresponding to all the keys of the smart switch being continuously lit within the specified time. It should be noted that in this embodiment, when the communication processing module receives the trigger signal caused by the operation of the key, if no sensing signal sent by the proximity sensing module is received, it means that the user may be operating at the edge of the key without entering the sensing area, resulting in the proximity sensing module not identifying the presence of a human body. The communication processing module controls the light-emitting module to emit light signals to the outside within a specified time, that is, the communication processing module controls the light-emitting module to perform the same light-emitting processing flow as when the sensing signal is received, thereby making up for the blind area of the sensing area causing the proximity sensing module to not identify the human body operating at the edge of the key, thereby improving the user experience. For example, in a dark environment, the user performs touch at the edge of the key, and although the proximity sensing module does not identify the presence of a human body, the communication processing module still controls the light-emitting module to turn on the backlight to provide light for the user, thereby providing illumination for the user in the dark environment.

[0074] In some embodiments, if the communication processing module receives the sensing signal sent by the proximity sensing module, the light-emitting module is controlled to continuously emit light signals within a first period of time, including:

[0075] After the communication processing module receives the sensing signal, the light-emitting module is controlled to emit light signals to the outside;

[0076] when the light signal is continuously sent for a fourth specified time and before a fifth specified time, if the sensing signal sent by the proximity sensing module is received again, then,

[0077] controlling the light emitting module to continuously emit light for a sixth specified time;

[0078] otherwise, controlling the light emitting module to continuously emit light for a seventh specified time;

[0079] wherein the sixth specified time is greater than the fifth specified time, and the seventh specified time is less than the sixth specified time.

[0080] In the embodiment, the proximity sensing module sends a sensing signal to the communication processing module according to the sensing parameter if the sensing parameter generated based on the moving human body in the sensing area is detected. That is, in the embodiment, the proximity sensing module sends a sensing signal to the communication processing module by detecting the moving human body. If the human body does not move in the sensing area all the time, the proximity sensing module will not generate a sensing signal. In an alternative embodiment, the proximity sensing module uses a microwave sensing module to detect proximity and movement based on the Doppler effect. The radar antenna of the proximity sensing module transmits a signal of a fixed frequency. When the human body in the contact sensing area is detected, a return signal is generated. The real movement change is reflected by detecting the frequency change amount of the return signal and the transmitted signal, so as to realize the human body movement detection in the sensing area. For example, the proximity sensing module generates a sensing signal and sends the sensing signal to the communication processing module, which can include: obtaining the transmission frequency at the first time and the return frequency at the second time; calculating the frequency change amount of the transmission frequency and the return frequency, if the frequency change amount exceeds the set frequency change threshold, it is determined that there is a moving human body in the sensing area, and a sensing signal is sent to the communication processing module.

[0081] In the embodiment, after the communication processing module receives the sensing signal, it starts timing and controls the light emitting module to send a light signal to the outside. When the timing duration reaches a fourth specified time and before a fifth specified time, the communication processing module determines whether the sensing signal sent by the proximity sensing module is received again. If the communication processing module receives the sensing signal again, it controls the light emitting module to continuously emit light for a sixth specified time since the start of timing. If the communication processing module fails to receive the sensing signal, it controls the light emitting module to continuously emit light for a seventh specified time since the start of timing. Wherein the sixth specified time is greater than the fifth specified time, and the seventh specified time is less than the sixth specified time.

[0082] In this embodiment, after the human body enters the sensing area, the communication processing module controls the light emitting module to emit light for at least a fifth specified time. Since the proximity sensing module generates a sensing signal only when it detects a moving human body in the sensing area, and considering the user's operation habit, there is usually an interval between two movements of the human body. Therefore, after the human body enters the sensing area, when the timing duration reaches the fourth specified time and has not reached the fifth specified time, the processing module determines whether the sensing signal sent by the proximity sensing module is received again. If it is confirmed that the human body does not move in the sensing area, the light emitting module is controlled to emit light for a shorter time, such as a seventh specified time, to save the power consumption of the intelligent switch. If it is confirmed that the human body moves again in the sensing area, the light emitting module is controlled to emit light for a longer time, such as a sixth specified time, so that the backlight is continuously turned on when the user needs to continuously turn on the backlight and moves again in the sensing area, for example, waving the palm. In a dark environment, the user can be provided with backlight for a longer time, and the user experience is improved.

[0083] It should be noted that when the light signal is continuously emitted for a fourth specified time and has not reached a fifth specified time, if the sensing signal sent by the proximity sensing module is received again, the light emitting module is controlled to emit light continuously until the sixth specified time. In an optional embodiment, the light emitting module can be controlled to emit light for a fifth specified time again from the time when the sensing signal sent by the proximity sensing module is received again. That is, when the sensing signal sent by the proximity sensing module is received again, the previous light emitting time is cleared, and the light emitting module is controlled to emit light for a fifth specified time again, so as to prolong the time of the light signal emitted by the light emitting module, that is, the sixth specified time is equal to the previous light emitting time plus the fifth specified time.

[0084] In an optional embodiment, the duration of the fourth specified time is less than the duration from the fourth specified time to the fifth specified time. Since it is necessary to confirm whether the human body moves again in the sensing area during the period from the fourth specified time to the fifth specified time, the time interval between the two movements of the human body, that is, the time interval between the human body entering the sensing area and moving again, is set to be less than the period for confirming whether the human body moves again in the sensing area. Therefore, most of the time period within the fifth specified time is used to detect whether the human body moves again in the sensing area, so that the high power consumption caused by the continuous detection of the intelligent switch can be avoided by setting the time interval, and the movement of the human body in the sensing area can be accurately detected during most of the time period, so as to meet the user's demand for the intelligent switch to emit light for a long time.

[0085] The communication processing module controls the light emitting module to emit light for a short time or a long time by confirming whether the human body in the sensing area moves again within the fourth specified time to the fifth specified time, so as to control the duration of the light emitting prompt and the time of stopping emitting light according to the movement of the human body in the sensing area, and realize the various light prompt control of the intelligent switch.

[0086] Specifically, in an optional embodiment, the proximity sensing module outputs a high pulse signal. When the human body enters the sensing area, the proximity sensing module outputs a high pulse signal with a duration of t1, that is, within the t1 time after the sensing signal is generated when the human body enters the sensing area, the proximity sensing module cannot generate a rising edge signal again, and the communication processing module triggers the human body sensing event by using edge triggering. Therefore, within the t1 time, the communication processing module cannot detect the movement of the human body in the sensing area again. When the communication processing module detects a rising edge signal (such as the high pulse signal generated when the human body enters the sensing area), the light emitting module is controlled to emit light outward and start timing t2. Within the t1 to t2 time period, if the human body moves in the sensing area again, the light emitting module is controlled to continue emitting light outward after t2. If the human body does not move in the sensing area again during the t2 timing, the light emitting module is controlled to emit light outward to the end of the t2 timing, the light emitting module stops emitting light, and after the human body in the sensing area leaves, the light emitting module is kept in a state of not emitting light. The t1 to t2 time period is greater than t1, so that most of the time within the t2 time is used to detect whether the human body moves in the sensing area again, so as to meet the demand of the user for the intelligent switch to emit light for a long time.

[0087] Further, in some embodiments, a program (APP) can be run in a terminal (such as a mobile phone). In the APP, the backlight function of the intelligent switch can be set to be turned on or turned off in response to the configuration manipulation of the user for the light control of the intelligent switch. When the backlight function is set to be turned on, the intelligent switch performs the process of controlling the light emitting module to emit light as described in the above embodiments when the human body is sensed to exist. When the backlight function is set to be turned off, the intelligent switch can turn off the receiving sensing module and does not detect the existence of the human body, so as to save the energy consumption of the intelligent switch, or even if the existence of the human body is sensed, the light emitting module will not be controlled to emit light. In this embodiment, the user can flexibly turn on or turn off the backlight function of the intelligent switch through the APP, so as to improve the user experience.

[0088] In some embodiments, as Figure 3As shown, the intelligent switch is implemented as a wireless switch, the wireless switch comprises a circuit board, the proximity sensing module 102 and the communication processing module 103 are arranged on the circuit board, the proximity sensing module 102 comprises a capacitive proximity sensing module, an inductive antenna of the capacitive proximity sensing module is arranged at the outermost circle of the circuit board, so as to increase the range of the inductive area and reduce the dead angle of the proximity sensing. It adopts a capacitive working principle, and realizes the proximity detection function by measuring the change amount of the capacitance value formed between the human body and the lead-out plate of the proximity sensing module. The wireless switch further comprises a power supply module 105 and a switch voltage stabilizing module 106, the power supply module 105 is electrically connected to the switch voltage stabilizing module 106 and the communication processing module 103 respectively, so as to supply power to the switch voltage stabilizing module 106 and the communication processing module 103; the switch voltage stabilizing module 106 is electrically connected between the power supply module 105 and the light-emitting module 104, and the switch voltage stabilizing module 106 is also electrically connected to the communication processing module.

[0089] The power supply module 105 is electrically connected to the communication processing module 103 to supply power to the communication processing module 103; wherein the power supply provided by the power supply module 105 includes at least one of the following: a kinetic generator, a solar cell panel, a battery; wherein the battery can be a rechargeable battery or a non-rechargeable battery, for example, the battery can be a button cell. In addition, the power supply module 105 can also be provided with other devices or combinations of devices for voltage stabilization, filtering, rectification and the like.

[0090] The communication processing module 103 is further used for:

[0091] When the power of the power supply module is higher than the preset threshold, the light-emitting module 104 is controlled to output a first light signal to the outside;

[0092] When the power of the power supply module is lower than the preset threshold, the light-emitting module 104 is controlled to output a second light signal to the outside;

[0093] Wherein, the first light signal and the second light signal are different.

[0094] In this embodiment, when the voltage information of the power supply module 105 is higher than the power threshold, the light-emitting module 104 is controlled to output a first light signal to the outside; when the voltage information is lower than the power threshold, the light-emitting module 104 is controlled to output a second light signal to the outside;

[0095] The voltage information is voltage information of the power supply module, and specifically can be voltage information of a battery BAT. By comparing the voltage information with the power threshold, it can be determined whether the voltage is low. When the voltage information of the power supply module is low, the light-emitting module can be used to provide an external prompt. In one embodiment, the first light signal and the second light signal have different colors, and the light-emitting module includes a first light-emitting part for emitting the first light signal and a second light-emitting part for emitting the second light signal. The first light-emitting part and the second light-emitting part can be indicator lights (also referred to as light-emitting diodes, LEDs) of different colors. In a further example, the color of the first light signal is any one of blue, green, and white, and the color of the second light signal is any one of orange, red, and yellow.

[0096] In addition, one key can also correspond to one or more indicator lights in the light-emitting module. When the corresponding key is touched, the communication processing module can also trigger the corresponding indicator light to emit light to externally feedback the key that is currently touched.

[0097] The first light signal and the second light signal can be emitted when externally feeding back the key that is currently touched, that is, when it is necessary to use a light signal to externally indicate the key that is currently touched, the following can be implemented: when the voltage information is higher than the power threshold, the light-emitting module is controlled to externally output the first light signal; and when the voltage information is lower than the power threshold, the light-emitting module is controlled to externally output the second light signal.

[0098] In some embodiments, the communication processing module controls the light-emitting module to externally emit a light signal. For example, when the communication processing module receives an induction signal emitted by the proximity induction module and confirms that a human body enters the induction area, the communication processing module can control the light-emitting module to continuously emit a light signal for a first period of time, which can include the following steps:

[0099] The communication processing module sends a first control signal to the switching voltage stabilizing module, so that the switching voltage stabilizing module supplies power to the light-emitting module according to the first control signal, and the light-emitting module emits a light signal externally;

[0100] The communication processing module controls the light-emitting module to stop emitting a light signal, which can include the following steps:

[0101] After the light-emitting module continuously emits a light signal for a first period of time, the communication processing module sends a second control signal to the switching voltage stabilizing module, so that the switching voltage stabilizing module stops supplying power to the light-emitting module according to the second control signal, and the light-emitting module stops emitting a light signal.

[0102] In the embodiment, the light-emitting module is powered by the switching voltage stabilizing module. When the communication processing module needs to control the light-emitting module to emit light, the switching voltage stabilizing module is controlled to be turned on, so that the switching voltage stabilizing module processes the power of the power supply module and provides stable and reliable power to the light-emitting module to make the light-emitting module emit light signals. Compared with the existing scheme of directly driving the light-emitting module by the power supply module such as a battery or by the IO port of the communication processing module, when the power supply module such as a battery directly supplies power, as the battery power decreases, the brightness of the light signals emitted by the light-emitting module will visibly decrease, and even the light-emitting module will not emit light. When the battery power decreases to below 50%, if the communication processing module has a large current action, for example, wireless switch network configuration, and external message transmission, the battery voltage will be frequently pulled down with the large current action of the communication processing module, which causes the voltage output by the IO port to change, and the light signals emitted by the light-emitting module will visibly flicker, which greatly affects the user experience. In the embodiment, the switching voltage stabilizing module is powered by the power of the power supply module, and then outputs stable and reliable voltage to the light-emitting module, so that the power supply of the light-emitting module will not cause the light signals emitted by the light-emitting module to significantly decrease or flicker with the decrease of the battery power or the change of the voltage output by the IO port, and the user experience is improved. Especially when the light signals emitted by the light-emitting module display specific patterns such as laser-engraved design patterns through the keys, the stable light signals emitted by the light-emitting module can make the display effect of the specific patterns better, and further enrich the diverse light prompts of the wireless switch.

[0103] Specifically, as shown in Figure 3 When the smart switch is implemented as a wireless switch, the smart switch at least includes:

[0104] The power supply module 105, the switching voltage stabilizing module 106, the light-emitting module 104, the communication processing module 103, and the proximity sensing module 102; wherein the power supply module 105 is configured to provide a usable power supply for other units; in the embodiment, the power supply module is powered by a button cell;

[0105] The switching voltage stabilizing module 106 is connected between the power supply module 105 and the light-emitting module 104, and is controlled by the communication processing module 103; the communication processing module 103 is configured to:

[0106] Based on the sensing result of the proximity sensing module 102, the switching voltage stabilizing module 106 is controlled to be turned on or turned off; when the switching voltage stabilizing module 106 is turned on, the light-emitting module 104 is driven to emit light signals.

[0107] The light-emitting module 104 is also electrically connected to the communication processing module 103, and the communication processing module 103 is further configured to:

[0108] When the switching regulator module 106 is turned on, a specified level signal is output to the light-emitting module 104 so that the light-emitting module 104 can be driven to emit light signals; the specified level signal includes a high level signal or a low level signal.

[0109] In one specific embodiment, such as Figure 4 As shown, the light-emitting module 104 includes an LED array consisting of four white LEDs (LED25, LED27, LED28, and LED30) and two orange LEDs (LED26 and LED29). The LED array uses a common anode power supply, meaning that the anodes of all LEDs are connected to the output terminal of the switching regulator module, and the cathodes are directly or indirectly controlled by a designated I / O port of the communication processing module (for example, LUW and LUO in the figure below are both used to connect to the designated I / O port of the communication processing module). The communication processing module drives the light-emitting module to emit light signals by controlling the switching regulator module to turn on and controlling the designated I / O port to output a designated level.

[0110] Existing smart switches use LEDs that are either directly driven by a battery or by the MCU's I / O ports. Both solutions have significant drawbacks. When directly powered by a battery, the white LED experiences a 2.5V voltage drop. When the battery voltage approaches or drops below this level, the brightness of the white LED visibly decreases, or it may even fail to light up. When directly driven by the MCU's I / O ports, if the battery level drops below 50% and the MCU performs high-current operations (e.g., during network distribution or message transmission), the battery voltage will frequently drop due to these high current operations. This causes the I / O port output voltage to fluctuate, resulting in visible flickering of the LEDs and significantly impacting the user experience. To address these technical issues, the LED array in this embodiment uses a common-anode power supply. All LED anodes are connected to the output of the switching regulator module, while the cathodes are directly or indirectly controlled by a designated I / O port of the communication processing module. When the switching regulator module is turned on, the power supply module provides a stable driving voltage to the light-emitting module after boosting the voltage through the switching regulator module. Simultaneously, the communication processing module outputs a low level (i.e., the specified level) through a designated I / O port to control the light-emitting module to emit a light signal. By supplying power to the LEDs in the light-emitting module in this way, the brightness of the LEDs no longer decreases as the power supply module voltage decreases. When the power supply module's charge drops to 0%, the LEDs still maintain the brightness of those at 100% charge.

[0111] The intelligent switch further comprises a key, the key is electrically connected to the communication processing module; the communication processing module is further configured to:

[0112] determine whether the key is triggered, send a wireless control signal outward when the key is triggered, and control the switch voltage stabilizing module to be turned on, so that the light emitting module can be driven to emit a light signal.

[0113] In some embodiments, the key has a laser-engraved pattern, the position of the light emitting module matches the laser-engraved pattern, and the light signal emitted by the light emitting module is emitted outward through the laser-engraved pattern so that the laser-engraved pattern is lit. Using multiple LED lights can display the laser-engraved information on the key more clearly, and the use of a single LED light will not cause uneven light emission, resulting in inconsistent brightness of the laser-engraved pattern and affecting the user experience of the product. The PCB area corresponding to the LED light array uses white silk printing, and a large area of white silk printing is added at the bottom of each LED light to enhance the area brightness and further improve the laser-engraving display effect. The four corners around each key are white LED lights, the left and right middle are orange LED lights, and the bottom is evenly distributed with white reflective silk printing, which makes the light more concentrated and reduces scattering. Symmetrical and uniform distribution can better display the laser-engraved area, making the light emitted by the laser-engraved area more uniform. Double-color light indicates different key actions such as single click and double click, and the user experience is better. The key supports up to four keys.

[0114] The switch voltage stabilizing module comprises at least one inductor, at least one capacitor, and at least one voltage booster; wherein the power supply module is connected to the input end of the voltage booster through the inductor, so as to convert the first voltage output by the power supply module into a second voltage output after voltage boosting; the output end of the voltage booster is operatively connected to the capacitor, and the capacitor is used to store electrical energy and supply power to the light emitting module, so as to drive the light emitting module to emit a light signal through the second voltage;

[0115] Further, the communication processing module controls the passage between the inductor and the voltage booster through a power supply switch; wherein when the power supply switch is turned on, the switch voltage stabilizing module is turned on to drive the light emitting module to emit a light signal, and when the power supply switch is turned off, the switch voltage stabilizing module is turned off to reduce the leakage current in the circuit to less than 1uA.

[0116] In some embodiments, the power supply switch is implemented as a transistor with switching function, such as a triode or a MOS tube. The boost voltage converter is implemented as a BOOST circuit. Further, when the power supply switch is implemented as a MOS tube and the boost voltage converter is implemented as a BOOST circuit, the MOS tube and the BOOST circuit can be inheritedly packaged in one circuit to save space. A classic boost circuit has a big disadvantage when used in a battery-powered smart switch, i.e., the DCDC circuit cannot be completely turned off, and there is always a leakage current, resulting in large standby power consumption and short service life of the smart switch. To solve this technical problem, the embodiment adds a power supply switch between the inductor and the back-end circuit to control the on-off of the entire DCDC circuit on the basis of the classic BOOST circuit. When the power supply switch is turned off, the entire DCDC circuit is turned off, so that the leakage current of the entire circuit is reduced to less than 1uA.

[0117] In actual use, a power supply chip with the above functions can be selected, such as a DCDC chip ME2107A33M5G with true off function. The specific circuit diagram is shown in Figure 5 The inductor L1 is connected to the LX pin thereof, the enable pin EN is connected to the communication processing module, so that the communication processing module can control the conduction or turn-off of the chip through the enable pin EN; the capacitors C6 and C7 are connected to the output pin VOUT thereof, for storing electric energy and generating a second voltage DVCC to supply power to the light-emitting module. Using this chip, the actual leakage current in the circuit can be less than 1uA when the chip is controlled to be turned off by the communication processing module, and the communication processing module can output a control signal to the EN enable pin of the chip through the SWV pin to turn off the switch voltage stabilizing module when the light-emitting module does not need to emit light signals. The actual consumption current is as low as 0.45uA, which greatly increases the service life of the smart switch and the use rate of the battery, and brings very good experience to the user.

[0118] In addition, as shown in Figure 6 The power supply module 105 and other units are also provided with a switching device 107 for controlling the power supply circuit of the power supply module 105. When the switching device 107 is turned off, the smart switch is powered off, so as to solve the problem of power consumption of the smart switch during storage or transportation.

[0119] In a specific embodiment, as shown in Figure 7As shown, the switch device 107 is set as a slide switch SW1, and the power supply of the intelligent switch is controlled by the slide switch SW1, wherein P1 is used for connecting the positive pole of the power supply module (for example, a button cell), and DVCC is used for connecting the back-end units to supply power to the units. In this way, when the product is stored in the warehouse after production, the slide switch SW1 can be closed, and the power consumption of the intelligent switch is 0, which perfectly solves the problem of power consumption of the products stored in the warehouse.

[0120] Further, the proximity sensing module adopts a capacitive proximity sensing chip, which has an induced plate; the capacitive proximity sensing chip realizes the proximity detection function by measuring the change amount of the capacitance value formed between the human body and the induced plate of the chip; and the specific capacitance value calculation formula is as follows:

[0121]

[0122] S is the relative area of the capacitor plate, d is the distance between the plates, and ε r is the relative dielectric constant (which is an inherent parameter related to the dielectric material).

[0123] As Figure 8 shown, in an exemplary embodiment, the capacitive proximity sensing chip uses the IQS211A / B proximity sensing chip of Azoteq, wherein IO1 and IO2 are the IIC programming pins and the GPIO output port of the chip, IO1 and IO2 need to be pulled up during programming, and CX is the interface of the sensing antenna E1 of the chip; and the chip is configured in a low-power mode, and specifically:

[0124] The low-power scanning time is greater than or equal to 160 ms and less than or equal to 256 ms. Preferably, the scanning time is set to 160 ms.

[0125] The calibration base value is set to be greater than or equal to 192 and less than or equal to 1200. Preferably, the calibration base value is set to 192 or 384.

[0126] In an example, as Figure 9 shown, Figure 9 is a layout diagram of the PCB of the intelligent switch in an embodiment of the present application. In some embodiments, the distance between the induced plate and other traces on the PCB is set to be greater than or equal to 5 mm; and the sensing antenna is arranged at the outermost circle of the PCB to be as close to the edge of the PCB as possible, so as to increase the sensing range and reduce the dead angle of proximity sensing.

[0127] In addition, the part of the induction antenna away from the power supply module adopts a thick antenna, and the part close to the power supply module adopts a thin antenna, so as to minimize the influence of the power supply module on the induction sensitivity of the induction antenna. It should be noted that the PCB is used to provide a carrier for the circuit in the embodiment. The proximity induction module is arranged at the lower right corner of the PCB. The proximity induction module induction antenna foot should be as short as possible from the antenna, and the surrounding should avoid large current wiring, so the proximity induction module is placed at the lower right corner, away from the switch voltage stabilizing module, i.e. the DCDC chip, in the middle of the PCB. By setting the positions of the keys 1-5 on the PCB, the PCB can be compatible with single-key, double-key, triple-key, and four-key versions of the intelligent switch. Multiple versions of the intelligent switch can share part of the structure and the PCB. Only the detection switches required for different key versions need to be welded at the corresponding positions, and there is no need to redesign and layout the PCB for each key version of the intelligent switch, thereby improving the production efficiency of the intelligent switch and reducing the production cost.

[0128] In some embodiments, the communication processing module is configured to:

[0129] In response to at least one trigger signal caused by the control operation of the key, a control message is generated, and the control message is sent externally.

[0130] By sending the control message, the control result pointed to by the control message can be executed by the corresponding controlled device. The controlled device can be a directly controlled intelligent controller, a device (such as an intelligent controller, a sound box device, which can not be limited to this) connected to the gateway network, or other devices (such as a sound box device connected to a terminal Wifi hotspot, which can not be limited to this) that can interact with the gateway and the terminal, and a device connected to the intelligent controller.

[0131] In addition, after the wireless switch is paired with the intelligent controller, the wireless switch can directly send the control message to the intelligent controller, so that the intelligent controller or the device connected thereto executes the corresponding control result. After the wireless switch is configured with the gateway, the wireless switch can send the control message to the gateway, and the gateway sends control information to the intelligent controller or other devices based on the control message, or forwards it to the terminal or server, and then the terminal or server can control other devices to execute the corresponding control result based on this.

[0132] Further, when the wireless switch includes multiple keys, the communication processing module in the embodiment further generates and sends a combined key control message in response to a trigger signal caused by manipulation of at least two keys, so that: a control result pointed to by the combined key control message can be executed by a corresponding controlled device; and the combined key control message includes control manipulation information, which represents at least one of: the smart switch; the at least two keys being manipulated; and manipulation actions accepted by the at least two keys.

[0133] In the embodiment, a program (APP) can be run in a terminal (for example, a mobile phone), and the APP sets a mapping relationship between different key combinations of the wireless switch and control tasks in response to user manipulation. The control tasks can include executable functions of a controlled device connected to the terminal or a gateway. The generated mapping relationship can be stored in the terminal, the gateway, or a server. When the wireless switch responds to manipulation of multiple keys, a combined key control message is generated and sent out, which can carry information related to the manipulated combined keys. After the terminal, the gateway, or the server receives the combined key control message, the terminal, the gateway, or the server determines a control task corresponding to the message according to the information related to the combined keys carried by the combined key control message and the stored mapping relationship, and controls the corresponding controlled device to execute the control task.

[0134] The wireless switch in the embodiment can control corresponding controlled devices in response to manipulation of combined keys. Multiple keys can be combined to form multiple control modes, and by setting a mapping relationship between different key combinations and control tasks, the wireless switch can be linked to more controlled devices, greatly enriching the control mode of the wireless switch.

[0135] In some embodiments, as shown in Figure 10 The smart switch is implemented as a wall switch, and the proximity sensing module includes a microwave proximity sensing module that works on the principle of proximity and movement detection based on the Doppler effect. The radar antenna of the microwave proximity sensing module transmits a signal of a fixed frequency. When an obstacle is contacted, a return signal is generated. The real movement change is reflected by detecting the frequency change amount of the return signal and the transmitted signal, so as to achieve movement detection. The wall switch further includes a driving module 108 and an output on-off module 109. An input end of the driving module 108 is electrically connected to the communication processing module 103, and an output end of the driving module 108 is electrically connected to the output on-off module 109, so as to drive the output on-off module 109 to turn on or off based on a control signal sent by the communication processing module 103, and further control the on-off of the power supply path of the load.

[0136] In some embodiments, the communication processing module is further configured to determine the on-off state of the output on-off module, and if the output on-off module is in the on state, control the light-emitting module to continuously emit the third light signal, and if the output on-off module is in the off state, control the light-emitting module to stop emitting the third light signal. In this embodiment, when the output on-off module of the wall switch, for example, a relay, is in the on state, the light-emitting module is controlled to continuously emit the third light signal, for example, a continuously orange light, to prompt the user that the relay channel corresponding to the current key is in the on state; when the relay is in the off state, the light-emitting module is controlled to stop emitting the third light signal, for example, stop the orange light, to prompt the user that the relay channel corresponding to the current key is in the off state. Thus, the user is prompted according to whether the light-emitting module emits the third light signal to determine the on-off state of the relay, which facilitates the user to perform corresponding operations according to the prompt.

[0137] Further, the communication processing module, after receiving the sensing signal, determines whether the light-emitting module currently emits the third light signal, and if the light-emitting module currently emits the third light signal, controls the light-emitting module to continuously emit the third light signal; and if the light-emitting module currently does not emit the third light signal, controls the light-emitting module to emit a fourth light signal within a specified time; wherein the third light signal is different from the fourth light signal, for example, the third light signal and the fourth light signal are different in light-emitting color, flashing frequency, and / or light-emitting duration, and here, only an example is taken that the third light signal is an orange light and the fourth light signal is a white light, which is not limited.

[0138] In this embodiment, when a human body enters the sensing area, corresponding light prompting control can be performed according to different states of the relay channel on-off. For example, the communication processing module, after receiving the sensing signal, determines whether the light-emitting module currently emits an orange light, and if yes, it means that the light-emitting module has emitted a light and there is no need to emit a white light for prompting, and thus the orange light is continuously emitted, otherwise, the light-emitting module is controlled to emit a white light according to the sensing signal to turn on the backlight. That is, when the relay is off, the turning on and off of the white light is controlled according to whether a human body enters the sensing area, and when the relay is on, the light emitted by the light-emitting module is no longer controlled according to whether a human body enters the sensing area, but the orange light is continuously emitted.

[0139] It is to be noted that the output on-off module comprises at least one on-off channel such as a relay channel, each on-off channel corresponding to one key, and the light-emitting module comprises a plurality of light-emitting units, each light-emitting unit corresponding to one key. When the wall switch comprises a plurality of keys, the corresponding light-emitting control is performed according to the different states of the relay channels corresponding to each key. For example, the wall switch comprises two keys A and B, the relay channel corresponding to the key A is in the on state, and then the light-emitting unit corresponding to the key A continuously emits orange light, the relay channel corresponding to the key B is in the off state, and then the light-emitting unit corresponding to the key B is extinguished. When the inductive area senses the entry of a human body, the communication processing module confirms that the light-emitting unit corresponding to the key A emits orange light, and then the light-emitting unit corresponding to the key A continuously emits orange light without responding to the inductive signal, the communication processing module confirms that the light-emitting unit corresponding to the key B is extinguished, and then the light-emitting unit corresponding to the key B emits white light in response to the inductive signal to provide backlight.

[0140] In the embodiment, different light-emitting modes are provided according to the different states of the relay channels, the state prompt of the relay channel is considered, and the backlight prompt when the human body enters the inductive area is considered, and the intelligent switch realizes various light prompt control.

[0141] In addition, in some embodiments, after a specific operation such as a long press operation is performed on the keys of the wall switch, the wall switch enters a network configuration state, and in the network configuration state, the wall switch can be connected to the network of the gateway or the terminal. The wall switch controls the light-emitting module to emit a specific light signal such as flashing orange light in the network configuration state. If the light-emitting module continuously emits the specific light signal for a specified network configuration time and has not been successfully configured, the light-emitting module stops emitting light and automatically exits the network configuration state. If the light-emitting module emits the specific light signal for less than the specified network configuration time, at least one trigger signal caused by the touch operation on the key is responded to, the light-emitting module is controlled to stop emitting the specific light signal, but the intelligent switch still remains in the network configuration state until the specified network configuration time is reached. For example, if the flashing orange light is stopped and the network configuration mode is exited after 30 minutes of flashing orange light without network configuration, when the orange light is still flashing and the 30 minutes have not been reached, triggering a key at will can turn off the orange light flashing, but the network configuration mode is still in the network configuration mode within 30 minutes. In the embodiment, light pollution caused by the network configuration process at night can be avoided, and the normal network configuration of the wall switch is not affected.

[0142] In some embodiments, the communication processing module is further configured to: acquire a configuration instruction sent by a terminal; the configuration instruction is generated by the terminal in response to a corresponding operation of a key of the intelligent switch; and set the key to a corresponding working mode in response to the first configuration instruction, and control the on-off state of the on-off channel corresponding to the key according to the working mode set for the key. In this embodiment, in the normal working mode, the wall switch controls the on-off of the on-off channel corresponding to the key in response to the on-off control operation of the key, thereby changing the on-off state of the connected line, and can also control the light-emitting unit corresponding to the key on which the on-off control operation is performed to emit light, for example, to switch between an orange light and a white light. Further, in this embodiment, a program (APP) can be run in the terminal (for example, a mobile phone), and the corresponding working mode of each key of the wall switch can be set in the APP in response to the configuration operation of the user, for example, the key can be set to a first mode, and the first mode represents that the key of the wall switch is switched to a wireless mode, and the key can also be set to a second mode, and the second mode represents that the key of the wall switch is switched to a Lingdong mode.

[0143] Specifically, in one embodiment, the communication processing module is further configured to:

[0144] In response to at least one trigger signal caused by the operation of the key, if it is determined that the working mode of the key is set to the first mode, a wireless message is generated and sent outward, so that the gateway or the terminal can control the corresponding controlled device to execute the control result indicated by the wireless message according to the wireless message.

[0145] In this embodiment, when it is confirmed that the key is in the first mode, the on-off channel corresponding to the key is controlled to remain in the on state. If the on-off channel corresponding to the key is in the off state at this time, the on-off channel is automatically switched to the on state.

[0146] The communication processing module sends a wireless message (that is, an external control message) outward in response to at least one trigger signal caused by the external control operation of the key. Through the external control message, the gateway or the terminal can control the corresponding controllable device to execute the control result indicated by the external control message according to the external control message. In this embodiment, the wall switch is usually a controlled device because it needs to control the on-off output of the line between the terminal posts, and the above scheme also realizes the conversion of the control role, breaks through the functional limitation of the intelligent switch such as the wall switch, and is helpful to meet various and diverse control requirements.

[0147] The corresponding controllable device is controlled by the gateway or the terminal according to the external control message, for example, after sending the external control message to the gateway or the terminal, the gateway or the terminal can forward part or all information of the external control message to the corresponding controllable device. The controllable device can be, for example, other intelligent controllers (such as wall switches), fans, lamps, sockets, garbage disposal devices, sound box devices, etc., and can also be the gateway or the terminal itself.

[0148] When the key is in the first mode, the user operates the key, and the communication processing module will not send a driving signal to control the key corresponding to the on-off channel to be off or on, but maintain it in the on state. At the same time, at least one wireless message (i.e. external control message) will be sent to the gateway or the mobile terminal when the user operates the key. The wireless message can be used by the gateway or the mobile terminal or the server to control other devices. Specifically, the user can send different external control messages under different operations. Under the actions of short pressing, double clicking, and long pressing, different external control messages are sent respectively. Through the implementation process under the external control state, the wall switch can be given more functions.

[0149] In another embodiment, the key corresponding on-off channel is connected in series to a specific intelligent device, and the specific intelligent device can change the output state after detecting that the key corresponding on-off channel has a power failure event, which refers to the state change of the key corresponding on-off channel from on to off, and then changes to on after a certain time;

[0150] The communication processing module is also used for:

[0151] In response to at least one trigger signal caused by the operation of the key, if it is determined that the working mode corresponding to the key is set to the second mode, the key corresponding on-off channel is controlled to be off, and after maintaining the off state for a certain time, the key corresponding on-off channel is controlled to be switched to the on state, so that the specified intelligent device connected in series to the key corresponding on-off channel changes the output state.

[0152] Further, through the above control process, the power-off event can be actively formed for the specific reaction of the specific intelligent device to the power-off event, so as to control the output state to change, wherein the specific intelligent device may, for example, be a dimmable intelligent lamp, but is not limited thereto. In the control process, although the power-off event occurs in the specific intelligent device, the energy of the energy storage module (such as a capacitor) in the specific intelligent device is generally not used up, so the functions of other circuits of the specific intelligent module can still work normally. However, since the wall switch is automatically restored after the power-off for a period of time, the dimmable intelligent lamp is still powered, and the Bluetooth and WIFI can continue to maintain the online state, although the output of the dimmable intelligent lamp is in the off state (i.e., not connected to the alternating current at this time). In the case that the output of the dimmable intelligent lamp is off, if the power-off is detected, the output of the dimmable intelligent lamp is adjusted to on.

[0153] In the embodiment, when the key is in the second mode, the user operates the key, and the communication processing module does not send a driving signal to control the on-off channel corresponding to the key to be off or on, but sends a corresponding driving signal to control the on-off channel corresponding to the key to be off, then maintains for a specific time length (for example, 10-200 ms), and then controls the on-off channel corresponding to the key to be on. In this process, a power-off event can be actively formed.

[0154] In some embodiments, the communication processing module is configured to: if the control information sent by the terminal or the gateway is acquired, output a corresponding first driving signal to the driving module according to the control information; and control the on-off of the output on-off module according to the first driving signal.

[0155] If the paired switch control message sent by the paired wireless switch is received, a corresponding second driving signal is output to the driving module; and the on-off of the output on-off module is controlled according to the second driving signal.

[0156] In the embodiment, the wall switch can not only receive the control information sent by the terminal or the gateway through the network to realize the corresponding on-off control, but also receive the paired switch control message sent by the paired wireless switch to realize the corresponding on-off control. When the network between the wall switch and the terminal or the gateway is disconnected, the on-off control can still be realized through the paired wireless switch, which enriches the application environment of the wall switch.

[0157] In some embodiments, a type identification unit is arranged in the intelligent switch, and the communication processing module is configured to:

[0158] The type recognition unit collects type codes, and the communication processing module determines switch type information of the smart switch according to the type codes and sends the switch type information to a terminal or a gateway, so that the terminal displays the switch type information.

[0159] In this embodiment, the communication processing module determines the switch type information of the smart switch according to the type codes fed back by the type recognition unit, such as single-fire wall switch, zero-fire wall switch, one, two or more output on-off channels of the output on-off module, and sends the switch type information to a terminal or a gateway, so that the terminal displays the switch type information to prompt the user to configure the smart switch according to the displayed switch type information. In an optional implementation, the communication processing module is further configured to set a message receiving duty cycle corresponding to the switch type of the smart switch based on the switch type information, where the message receiving duty cycle represents a duty cycle of the smart switch scanning and receiving messages. For example, the message receiving duty cycle of a single-fire wall switch is generally set to be lower than that of a zero-fire wall switch.

[0160] Specifically, when the smart switch is implemented as a wall switch, it can be powered in a single-fire or zero-fire manner, and a zero-fire power supply is exemplarily illustrated here:

[0161] As Figure 11 indicated above, the smart switch at least includes a power supply module, a communication processing module, a proximity sensing module, a driving module, an output on-off module such as a relay, a key and a light-emitting module; the power supply module is configured to convert external alternating current power into power supply suitable for the power supply of the back-end modules (for example, the power supply 3.3V of the communication processing module and the power supply 5V of the relay). The key is electrically connected to the communication processing module, and the communication processing module sends a control signal to the driving module based on the trigger signal of the key; the input end of the driving module is electrically connected to the communication processing module, and the output end is electrically connected to the relay, so as to drive the relay on-off based on the control signal sent by the communication processing module, and control the on-off of the power supply path of the load Lamp to switch the on-off state of the load L. The proximity sensing module and the light-emitting module are respectively electrically connected to the communication processing module, and the communication processing module controls the light-emitting module to emit a light signal based on the sensing signal of the proximity sensing module.

[0162] Further, a specific implementation circuit of the driving module and the relay is as shown in Figure 12 Figure 12 ​As shown, it is a control circuit diagram of a four-way relay, wherein relay1 to relay4 are respectively used for connecting four IO ports of a communication processing module, the communication processing module outputs a control signal through the corresponding IO port to control the on-off of the corresponding relay. Herein, taking the leftmost group as an example for exemplary description: the input end of the drive module is electrically connected with the communication processing module, and the output end is electrically connected with the relay; the drive module comprises: a resistor R8, a resistor R13, a triode Q4 and a diode D5;

[0163] Wherein, one end of the resistor R8 is electrically connected with the communication processing module as the input end relay1 of the drive module, the other end is connected with the base of the triode Q4, the emitter of the triode Q4 is connected with the ground, the resistor R13 is connected in parallel with the base and the emitter of the triode Q4, the collector of the triode Q4 is electrically connected with the anode of the diode D5, and one end of the coil of the relay K1 is electrically connected with the collector of the triode Q4 as the output end of the drive module, the other end of the coil of the relay K1 is connected with the cathode of the diode D5, and the cathode of the diode D5 is connected with the DC power supply 5V. Since the inductive coil (the coil of the relay K1) will have a reverse voltage at the moment of power-off, the reverse voltage is relatively high, which may be a voltage higher than the power supply by several times, and this reverse voltage is likely to burn out the triode Q4. The reverse diode D5 is used to give a discharge path to the reverse voltage at the moment of power-off of the relay K1, effectively protecting the driving triode Q4. The control principle of the relay is as follows: when relay1 is a high-level signal, the triode Q4 is turned on, the coil of the relay K1 is powered, and there is a current passing through the coil. According to the magnetic effect of the current, the relay coil has magnetism, the armature is attracted to the iron core under the action of the electromagnetic force to overcome the pulling force of the return spring, thereby driving the moving contact of the armature to be attracted to the static contact (normally open contact), and the power supply circuit of the switch is turned on. When relay1 is a low-level signal, the triode Q4 is turned off, the coil of the relay K1 is powered off, and when the coil is powered off, the electromagnetic attraction also disappears, the armature returns to the original position under the action of the spring, so that the moving contact is released from the original static contact (normally closed contact), and the power supply circuit of the receiver is disconnected. In this way, the working state of the load is controlled.

[0164] In some embodiments, further comprising a type identification unit, which is electrically connected to the communication processing module and is used to indicate the type of the wall switch; the communication processing module is configured to: after power-on, acquire the type code of the wall switch based on the type identification unit, and run the corresponding preset control program according to the type code. Exemplarily, as shown in Figure 13 The type identification unit is composed of a pull-up resistor arranged at the IO port of the communication processing module connected with the drive module (as shown in Figure 13R10 to R13 in the table 1), and the communication processing module can identify the type of the wall switch by identifying the level of the IO port, and then send the type of the wall switch to the terminal or gateway, so that the terminal displays the switch type information, or different control programs can be run according to the type of the wall switch, for example, the on-off time of the related circuit module is controlled according to the type of the wall switch to provide different power supply control modes for single-fire wall switches or zero-fire wall switches, or the corresponding message receiving duty cycle is set according to the type of the wall switch. For the convenience of understanding, the following will be further illustrated by examples:

[0165] Figure 13 The wall switch is a zero-fire four-way control channel wall switch, wherein relay1-relay4 are respectively used to connect the driving modules of four-way relays, and the four IO ports (relay1 to relay4) of the communication processing module are connected with pull-up resistors, which are R10 corresponding to relay1, R11 corresponding to relay2, R12 corresponding to relay3 and R13 corresponding to relay4; the identification principle is that when the communication processing module is powered on, the level signals of relay1 to relay4 are read and a type code 1111 is formed, and then based on the type code, it is determined that the current wall switch type is a zero-fire four-way control channel wall switch, and a control program corresponding to the wall switch type is run; similarly, if the type of the wall switch is a zero-fire three-way control channel wall switch, at least one of relay1 to relay4 is not welded with a pull-up resistor, while the others are welded with a pull-up resistor, so that the type code read by the communication processing module after being powered on is 0111, 1011, 1101 or 1110, and the identification principle of other types of zero-fire wall switches is similar. If the type of the wall switch is a single-fire four-way control channel wall switch, pull-down resistors are connected to the ports of relay1 to relay4 (not shown here), and then the type code obtained by the communication processing module after being powered on is 0000, and a control program corresponding to the wall switch type is run. Similarly, if the type of the wall switch is a single-fire three-way control channel wall switch, at least one of relay1 to relay4 is not welded with a pull-down resistor, while the others are welded with a pull-down resistor, so that the type code read by the communication processing module after being powered on is 0001, 0010, 0100 or 1000, and the identification principle of other types of single-fire wall switches is similar.

[0166] Further, the proximity sensing module adopts the MS58-2020S68U4 module of the Mifare technology, the working center frequency of which is 5.8 GHz, and the module works based on the Doppler effect to detect proximity and movement. The radar antenna transmits a signal of fixed frequency, and when it contacts an obstacle, a return signal is generated. The real motion change is reflected by detecting the frequency change of the return signal and the transmitted signal, so as to realize motion detection. Compared with the capacitive proximity sensing, the proximity sensing based on the Doppler effect adopted in the embodiment has the advantages of strong anti-interference ability, long detection distance, and small occupied size. Compared with the infrared proximity sensing, the proximity sensing based on the Doppler effect adopted in the embodiment can penetrate a certain thickness of plastic shell without exposing the transmitting and receiving probes, so as to ensure the integrity of the shell and make the appearance more beautiful.

[0167] Specifically, the Doppler effect calculation relationship is as follows:

[0168]

[0169] In the above formula, v is the relative motion speed of the radar and the detected object; c is the speed of light; f s is the transmitting frequency; f0 is the return frequency; and the working principle of the proximity sensing module is as follows: when a moving object approaches the radar, v takes a positive value, f0>f s , otherwise f0<f s . The MS58-2020S68U4 module of the Mifare technology adopted in the embodiment has a maximum proximity detection distance of 0.8 m and an effective detection angle of 110°, and the specific implementation circuit is shown in Figure 14 . After detecting the movement of an object in the detection area, the communication processing module controls the light emitting module to emit a light signal. In a dark use environment, it can provide effective orientation indication and key indication, and can greatly improve the use experience of the product.

[0170] In addition, since the carrier frequency of the proximity sensing module is high, when designing the PCB of the intelligent switch, the area corresponding to the proximity sensing module is designed using a four-layer board, while the other areas still use a double-layer board, so as to meet the layout requirements of the proximity sensing module while reducing production costs. Specifically, the four-layer PCB corresponding to the proximity sensing module and the PCB of other parts are installed in a stamp hole welding manner, which can effectively utilize the idle space of the control board and save the installation cost. In an example, as shown in Figure 15 , the four-layer PCB corresponding to the proximity sensing module is connected to the double-layer PCB of other parts through a stamp hole welding manner. Figure 15Fig. 1 is a layout diagram of a PCB of the intelligent switch described in an embodiment of the present application. In the figure, the position of the proximity sensing module is set at the middle position of the PCB, which can increase the sensing range of the sensing area, cover the detectable area of the human body in the front of the intelligent switch, and more accurately sense the movement of the human body in front of the intelligent switch. Moreover, the antenna of the proximity sensing module is pasted on the top of the PCB, i.e. the antenna is directed to the direction of the keys, which can achieve better sensitivity and detection range compared to the antenna directed inward. In addition, by setting the positions of the keys 1-5 on the PCB, the PCB can be compatible with the intelligent switches of single-key, double-key, three-key, and four-key versions. The intelligent switches of multiple versions can share part of the structure and the PCB. Only the detection switches required for different key versions need to be welded at the corresponding positions, and there is no need to redesign and layout the PCB for each key version of the intelligent switch, which improves the production efficiency of the intelligent switch and reduces the production cost.

[0171] Further, the light emitting module includes a light emitting array composed of a first light emitting part and a second light emitting part, and each key corresponds to a group of light emitting arrays. The color of the light signal emitted by the first light emitting part is different from the color of the light signal emitted by the second light emitting part. For example, the light emitting module includes a group of LED arrays composed of four white LED lamps and two orange LED lamps. The key has a laser-engraved pattern, and the position of the light emitting module matches the laser-engraved pattern. The light signal emitted by the light emitting module is emitted outward through the laser-engraved pattern, so that the laser-engraved pattern is lit. The use of multiple LED lamps can display the laser-engraved information on the key more clearly, and the use of a single LED lamp cannot display the laser-engraved information uniformly, which leads to inconsistent brightness of the laser-engraved pattern and affects the user experience of the product. In the embodiment, the four white LED lamps and the two orange LED lamps can display different light signals outward on the intelligent switch or the key. For example, the first light signal and the second light signal can be distinguished and displayed by the white LED lamps and the orange LED lamps, respectively, and the third light signal and the fourth light signal can also be distinguished and displayed by the white LED lamps and the orange LED lamps, respectively.

[0172] In addition, in the embodiment, the PCB area corresponding to the LED array adopts white silk printing, and a large-area white silk printing is added at the bottom of the LED lamp to strengthen the area brightness and further improve the laser-engraved display effect.

[0173] In the embodiment, the key adopts a high-specification mouse key, the trigger force is only 0.6 N, the rebound feedback is strong, and the use effect of the product can be improved.

[0174] Further, the communication processing module adopts an MHCB09P-B Bluetooth chip.

[0175] For ease of understanding, the sub-units in the power supply module are described here by way of example:

[0176] Furthermore, such as Figure 11 As shown, the power supply module includes a surge suppression unit, a rectification unit, a filtering unit, and a transformer output unit connected in sequence. External AC high-voltage power is input through the surge suppression unit and then rectified, filtered, and converted into 5V and 3.3V power to power the downstream devices. Specifically:

[0177] The surge suppression subunit includes a surge current suppression unit and a surge voltage suppression unit. The surge current suppression unit can be implemented as a fuse, and the surge voltage suppression unit can be implemented as a varistor. The surge current suppression unit is connected in series between the live wire and the input terminal of the rectifier unit to suppress surge current in the circuit; the surge voltage suppression unit is connected in parallel between the live wire and the neutral wire to suppress surge voltage in the circuit.

[0178] The rectifier unit adopts a full-bridge rectifier, and its input terminal is connected to the input terminal of the surge suppression unit, and its output terminal is connected to the filter unit to adjust the 220V AC power to DC power output.

[0179] The filtering unit includes a first inductor L1, a first resistor R1, a first capacitor C1, and a second capacitor C2. One end of L1 and R1, connected in parallel, is connected to one end of C1 and then to the output of the rectifier unit. The other end is connected to one end of C2 and then to the input of the transformer output unit. The other ends of C1 and C2 are respectively connected to the rectifier unit and the transformer output unit. Thus, the filtering unit composed of C1, L1, and C2 filters the DC power output from the rectifier unit before outputting it to the transformer output unit. Simultaneously, the inductor L1 connected in parallel with R1 acts as an absorption resistor, improving EMC test results. Furthermore, during surge testing, R1 releases the energy stored in L1, preventing damage to the device from repeated surge impacts.

[0180] The voltage conversion output unit comprises a flyback voltage reduction converter and a direct current voltage converter; wherein the input end of the flyback voltage reduction converter is electrically connected to the output end of the filter unit, and the output end is electrically connected to the direct current voltage converter, so as to output 5V direct current after reducing the voltage of the electric energy output by the filter unit to the direct current voltage converter, and then further convert the 5V direct current into 3.3V power supply through the direct current voltage converter, so as to supply power to the power consumption module (such as a communication processing module) at the back end, wherein the 5V direct current can be used to supply power to the relay at the back end. Wherein the flyback voltage reduction converter is composed of a driving signal generator, D1, R3, R4, a transformer, D2 and C3, and converts high-voltage direct current into 5V low-voltage direct current output. The working principle is as follows: when Q1 is turned on, the current passes through the primary winding of the transformer, at this time, the secondary winding cannot form a loop due to the existence of diode D2 and the same name end direction of the primary winding of the transformer, so no current passes through the load and is provided by the capacitor C3; at this time, the transformer stores energy, when the switch tube Q1 is turned off, the secondary diode is turned on, and the energy accumulated in the transformer is supplied to the back-end load and charges the capacitor C3, so as to achieve the purpose of voltage reduction output. The auxiliary winding of the transformer provides the energy required for the power management chip to work, and the resistance division feedback network composed of R3 and R4 adjusts the size of the output voltage. At the same time, the RCD clamping absorption circuit composed of D1, C3 and R5 is connected in parallel on the primary winding, which can effectively prevent the MOS tube and other devices from being damaged by the leakage inductance peak impact on the transformer at the moment of switch-off. Similarly, C5 and R6 connected in parallel with D2 also enhance the EMC absorption capacity. The direct current voltage converter adopts ME6231 power supply chip.

[0181] Please refer to Figure 16 The embodiment also provides a processing method of an intelligent switch, the intelligent switch comprising: a key, a proximity sensing module, a communication processing module and a light emitting module; the proximity sensing module and the light emitting module are electrically connected to the communication processing module; the proximity sensing module is arranged below the key to form a sensing area within a specified range of the key; the light emitting module is coupled with the position of the key so that the light signal emitted by the light emitting module can be displayed externally through the key; and the processing method comprises:

[0182] S1601, if the communication processing module receives the sensing signal emitted by the proximity sensing module, the light emitting module is controlled to continuously emit a light signal within a first time period; and the sensing signal represents that a human body enters the sensing area;

[0183] S1602, if the first period of time, still detect the presence of the sensing area of the human body, the control light emitting module stop sending light signal; and in control light emitting module stop sending light signal, if the sensing area of the human body towards away from the direction of the smart switch, the communication processing module control light emitting module keep not send light signal state.

[0184] Optionally, if the communication processing module receives the sensing signal emitted by the proximity sensing module, the control light emitting module continuously sends light signal within a first period of time, comprising:

[0185] The communication processing module receives the sensing signal, control light emitting module send light signal to the outside;

[0186] When the time of sending light signal reaches the first specified time, judge whether the sensing signal can still be received; if yes, control the light emitting module continuously send light signal to the second specified time; otherwise, control the light emitting module continuously send light signal to the third specified time and then stop sending light signal;

[0187] Among them, the third specified time is greater than or equal to the first specified time, and the second specified time is greater than the third specified time.

[0188] Optionally, the processing method further comprises:

[0189] The communication processing module controls the light emitting module to send light signal to the outside for a set calibration duration, acquires the calibration sensing signal sent by the proximity sensing module, and controls the light emitting module to stop sending light signal to the outside according to the calibration sensing signal; the calibration sensing signal represents that the sensing signal acquired by the proximity sensing module in at least one specified calibration period within the set calibration duration does not change.

[0190] Optionally, the key is electrically connected to the communication processing module; the processing method further comprises: the communication processing module controls the light emitting module to send light signal to the outside within a specified time in response to at least one trigger signal caused by the operation of the key of the smart switch.

[0191] Optionally, if the communication processing module receives the sensing signal emitted by the proximity sensing module, the control light emitting module continuously sends light signal within a first period of time, comprising:

[0192] The communication processing module receives the sensing signal, control light emitting module send light signal to the outside;

[0193] when the light signal is continuously sent for a fourth specified time and the fifth specified time is not reached, if the sensing signal sent by the proximity sensing module is received again, then,

[0194] controlling the light emitting module to continuously emit light to a sixth specified time;

[0195] otherwise, controlling the light emitting module to continuously emit light to a seventh specified time;

[0196] wherein the sixth specified time is greater than the fifth specified time, and the seventh specified time is less than the sixth specified time.

[0197] Optionally, the fourth specified time is less than the time length from the fourth specified time to the fifth specified time.

[0198] The above-mentioned technical terms, technical features, optional embodiments and technical effects can be understood with reference to the above-mentioned embodiments related to the intelligent switch. For repeated content, it will not be repeated here.

[0199] In the embodiment, the proximity sensing module is arranged in the intelligent switch. When the proximity sensing module senses a human body in the sensing area of the intelligent switch, the sensing signal is sent to the communication processing module. The communication processing module controls the light emitting module to continuously emit the light signal in the first time period. Further, based on the sensing of the proximity sensing module on the human body, the light is emitted to prompt when a human is in the sensing area of the intelligent switch. On this basis, if the human body is still detected in the sensing area after the first time period, the light emitting module is controlled to stop emitting the light signal. And after the light emitting module is controlled to stop emitting the light signal, if the human body in the sensing area leaves, the light emitting module is kept in the state of not emitting the light signal, thereby avoiding the intelligent switch from frequently lighting when the human body enters and leaves the sensing area, so as to save the energy consumption of the intelligent switch. It can be seen that the time of light prompting and the time of stopping light can be controlled by detecting whether the human body exists in the sensing area, so as to realize the various light prompting control of the intelligent switch.

[0200] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the foregoing storage medium includes ROM, RAM, magnetic disc or optical disc and various storage medium that can store program codes.

[0201] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit the present application; although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions recorded in the above embodiments can be modified, or some or all of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A smart switch, characterized in that, include: Buttons, proximity sensing module, communication processing module, and light-emitting module; Both the proximity sensing module and the light-emitting module are electrically connected to the communication processing module; The proximity sensing module is disposed below the button to form a sensing area within a specified range of the button; The communication processing module, the proximity sensing module, and the light-emitting module are configured together to: If the communication processing module receives a sensing signal from the proximity sensing module, it controls the light-emitting module to continuously emit a light signal during a first time period; the sensing signal indicates that a human body has entered the sensing area; the proximity sensing module is able to detect the presence of a human body within the sensing area. include: After receiving the sensing signal, the communication processing module controls the light-emitting module to emit light signals to the outside world; When the time for emitting the light signal reaches the first specified time, it is determined whether the sensing signal can still be received; if so, the light-emitting module is controlled to continue emitting the light signal until the second specified time; otherwise, the light-emitting module is controlled to continue emitting the light signal until the third specified time and then stops emitting the light signal. Wherein, the third specified time is greater than or equal to the first specified time, and the second specified time is greater than the third specified time; If a human body is still detected within the sensing area after the first time period, the light-emitting module is controlled to stop emitting light signals; wherein, "still detected a human body within the sensing area" means that a human body is always present within the sensing area; and after the light-emitting module is controlled to stop emitting light signals, if the human body within the sensing area moves away from the smart switch, the communication processing module controls the light-emitting module to remain in a state of not emitting light signals.

2. The intelligent switch according to claim 1, characterized in that, The communication processing module is further configured to: When the light-emitting module controls the light-emitting module to emit light signals to the outside world for a set calibration time, it acquires the calibration sensing signal sent by the proximity sensing module, and controls the light-emitting module to stop emitting light signals to the outside world according to the calibration sensing signal; the calibration sensing signal indicates that the sensing signal acquired by the proximity sensing module has not changed during at least one specified calibration period within the set calibration time.

3. The intelligent switch according to claim 1, characterized in that, The button is electrically connected to the communication processing module; the communication processing module is also used to: control the light-emitting module to emit light signals to the outside within a specified time in response to at least one trigger signal generated by the operation of the button on the smart switch.

4. The intelligent switch according to any one of claims 1-3, characterized in that, The smart switch also includes a power supply module, which is directly or indirectly electrically connected to the communication processing module to supply power to the communication processing module. The communication processing module is further used for: When the power supply module's charge level exceeds a preset threshold, the light-emitting module is controlled to output a first light signal. When the power supply module's power level is lower than a preset threshold, the light-emitting module is controlled to output a second light signal. The first optical signal is different from the second optical signal.

5. The intelligent switch according to any one of claims 1-3, characterized in that, The smart switch further includes: a power supply module and a switching voltage regulator module; the switching voltage regulator module is electrically connected between the power supply module and the light-emitting module, and is controlled by the communication processing module; the communication processing module is configured to: The proximity sensor module controls the switching regulator module to turn on or off based on the sensing result of the proximity sensor module; wherein, when the switching regulator module is on, the light-emitting module is driven to emit a light signal; the communication processing module controls the light-emitting module to continuously emit a light signal during a first time period, including: The communication processing module controls the switching regulator module to remain on during the first time period, so that the light-emitting module continuously emits light signals during the first time period. The communication processing module is further configured to: When the switching regulator module is turned on, a specified level signal is output to the light-emitting module so that the light-emitting module can be driven to emit a light signal; the specified level signal includes a high level signal or a low level signal.

6. The intelligent switch according to claim 5, characterized in that, The switching regulator module includes at least one inductor, at least one capacitor, and at least one boost converter; wherein, the power supply module is connected to the input terminal of the boost converter via the inductor to convert the first voltage output by the power supply module into a boosted second voltage output; the output terminal of the boost converter is operatively connected to the capacitor, the capacitor being used to store electrical energy and power the light-emitting module to drive the light-emitting module to emit light signals through the second voltage; The communication processing module also controls the path between the inductor and the boost converter via a power supply switch; wherein, when the power supply switch is turned on, the switching regulator module is turned on to drive the light-emitting module to emit light signals; when the power supply switch is turned off, the switching regulator module is turned off to reduce the leakage current in the circuit to less than 1uA.

7. The intelligent switch according to claim 5, characterized in that, The smart switch further includes a switching device electrically connected to the power supply module. The switching device is used to control the power supply circuit of the power supply module. When the switching device is disconnected, the smart switch is de-energized.

8. The intelligent switch according to any one of claims 1-3, characterized in that, The smart switch also includes a power supply module, which is directly or indirectly connected to the communication processing module to supply power to the communication processing module. The power supply module, the proximity sensing module, and the communication processing module are disposed on at least one circuit board. The proximity sensing module includes a capacitive proximity sensing module, and the sensing antenna of the capacitive proximity sensing module is arranged on the outermost ring of the circuit board. The portion of the sensing antenna away from the power supply module uses a thick antenna, and the portion close to the power supply module uses a thin antenna.

9. The intelligent switch according to any one of claims 1-3, characterized in that, The communication processing module is also used for: In response to trigger signals resulting from the manipulation of at least two buttons on the smart switch, a combination button control message is generated and sent outward, such that: the control result indicated by the combination button control message can be executed by the corresponding controlled device; the combination button control message includes control information, which represents at least one of the following: The intelligent switch; At least two buttons are being manipulated; The control actions received by at least two buttons.

10. The intelligent switch according to any one of claims 1-3, characterized in that, The smart switch further includes: a driving module and an output switching module; wherein, the input terminal of the driving module is electrically connected to the communication processing module, and the output terminal is electrically connected to the output switching module, so as to drive the output switching module to switch on and off based on the control signal sent by the communication processing module, thereby controlling the on and off of the power supply path of the load connected to the output switching module; The communication processing module is also used for: The on / off state of the output on / off module is determined. If the output on / off module is in the on state, the light-emitting module is controlled to continuously emit a third light signal. If the output on / off module is in the off state, the light-emitting module is controlled to stop emitting the third light signal.

11. The intelligent switch according to claim 10, characterized in that, When the communication processing module receives the sensing signal from the proximity sensing module, it controls the light-emitting module to continuously emit a light signal during a first time period, including: After receiving the sensing signal, the communication processing module confirms whether the light-emitting module is currently emitting a third light signal. If the light-emitting module is currently emitting a third light signal, it controls the light-emitting module to continuously emit the third light signal. If the light-emitting module is not currently emitting a third light signal, it controls the light-emitting module to emit a fourth light signal to the outside world within a specified time. The third light signal is different from the fourth light signal.

12. The intelligent switch according to claim 10, characterized in that, The communication processing module is also used for: In response to at least one trigger signal resulting from the operation of the button, if it is determined that the working mode corresponding to the button is set to the first mode, a wireless message is generated and sent outward, so that: the gateway or terminal can control the corresponding controlled device to execute the control result pointed to by the wireless message according to the wireless message.

13. The intelligent switch according to claim 12, characterized in that, The output on / off module includes at least one on / off channel, each on / off channel corresponding to one button, and the communication processing module is further used for: The terminal receives a first configuration instruction; the first configuration instruction is generated by the terminal in response to a corresponding operation of the button on the smart switch. In response to the first configuration command, the button is set to the first mode, and the on / off channel corresponding to the button is kept in the on state.

14. The intelligent switch according to claim 10, characterized in that, The output on / off module includes at least one on / off channel, each on / off channel corresponding to one button, and the communication processing module is further used for: In response to at least one trigger signal resulting from the operation of the button, if it is determined that the working mode corresponding to the button is set to the second mode, the on / off channel corresponding to the button is controlled to be turned off, and after maintaining the off state for a specific duration, the on / off channel corresponding to the button is controlled to be switched to the on state, so that the output state of the specified smart device connected in series with the on / off channel corresponding to the button changes.

15. The intelligent switch according to claim 10, characterized in that, The communication processing module is used to: if it receives control information from a terminal or gateway, output a corresponding first drive signal to the drive module according to the control information; so that the drive module controls the on / off state of the output on / off module according to the first drive signal. If a paired switch control message is received directly from a paired wireless switch, a corresponding second drive signal is output to the drive module so that the drive module controls the on / off state of the output switching module according to the second drive signal.

16. The intelligent switch according to claim 10, characterized in that, The smart switch also includes a type identification unit, which is electrically connected to the communication processing module and is used to indicate the type of the smart switch; The communication processing module is used for: The type identification unit acquires the type code collected by the type identification unit, determines the switch type information of the smart switch based on the type code, and sends the switch type information to the terminal or gateway so that the terminal displays the switch type information, and / or runs the corresponding preset control program based on the type code.

17. The intelligent switch according to claim 16, characterized in that, The communication processing module is used to: set a message receiving duty cycle corresponding to the switch type of the smart switch based on the switch type information, wherein the message receiving duty cycle represents the duty cycle of the smart switch scanning and receiving message time.

18. The intelligent switch according to any one of claims 1-3, characterized in that, The light-emitting module includes a light-emitting array composed of a first light-emitting part and a second light-emitting part. Each button corresponds to a set of light-emitting arrays. The light signal emitted by the first light-emitting part is different in color from the light signal emitted by the second light-emitting part. The button is provided with a laser-engraved pattern. The position of the light-emitting module matches the laser-engraved pattern. The light signal emitted by the light-emitting module is emitted outward through the laser-engraved pattern, causing the laser-engraved pattern to be lit up.

19. A smart switch, characterized in that, include: Buttons, proximity sensing module, communication processing module, and light-emitting module; Both the proximity sensing module and the light-emitting module are electrically connected to the communication processing module; The proximity sensing module is disposed below the button to form a sensing area within a specified range of the button; The communication processing module, the proximity sensing module, and the light-emitting module are configured together to: If the communication processing module receives a sensing signal from the proximity sensing module, it controls the light-emitting module to continuously emit a light signal during the first time period; the sensing signal indicates that a human body has entered the sensing area; the proximity sensing module can detect human movement within the sensing area. include: After receiving the sensing signal, the communication processing module controls the light-emitting module to emit light signals to the outside world; If the proximity sensing module receives the sensing signal again after continuously emitting light signals for a fourth specified time but before reaching a fifth specified time; Then, the light-emitting module is controlled to continue emitting light until the sixth specified time. Otherwise, control the light-emitting module to continue emitting light until the seventh specified time; Wherein, the sixth specified time is greater than the fifth specified time, and the seventh specified time is less than the sixth specified time; If a human body is still detected within the sensing area after the first time period, the light-emitting module is controlled to stop emitting light signals. The presence of a human body within the sensing area is defined as the human body not moving. Furthermore, if, after the light-emitting module stops emitting light signals, the human body within the sensing area moves away from the smart switch, the communication processing module controls the light-emitting module to remain in a state of not emitting light signals.

20. The intelligent switch according to claim 19, characterized in that, The communication processing module is further configured to: When the light-emitting module controls the light-emitting module to emit light signals to the outside world for a set calibration time, it acquires the calibration sensing signal sent by the proximity sensing module, and controls the light-emitting module to stop emitting light signals to the outside world according to the calibration sensing signal; the calibration sensing signal indicates that the sensing signal acquired by the proximity sensing module has not changed during at least one specified calibration period within the set calibration time.

21. The intelligent switch according to claim 19, characterized in that, The button is electrically connected to the communication processing module; the communication processing module is also used to: control the light-emitting module to emit light signals to the outside within a specified time in response to at least one trigger signal generated by the operation of the button on the smart switch.

22. The intelligent switch according to claim 19, characterized in that, The duration of the fourth specified time is less than the duration from the fourth specified time to the fifth specified time.

23. The intelligent switch according to any one of claims 19-22, characterized in that, The smart switch also includes a power supply module, which is directly or indirectly electrically connected to the communication processing module to supply power to the communication processing module. The communication processing module is further used for: When the power supply module's charge level exceeds a preset threshold, the light-emitting module is controlled to output a first light signal. When the power supply module's power level is lower than a preset threshold, the light-emitting module is controlled to output a second light signal. The first optical signal is different from the second optical signal.

24. The intelligent switch according to any one of claims 19-22, characterized in that, The smart switch further includes: a power supply module and a switching voltage regulator module; the switching voltage regulator module is electrically connected between the power supply module and the light-emitting module, and is controlled by the communication processing module; the communication processing module is configured to: The proximity sensor module controls the switching regulator module to turn on or off based on the sensing result of the proximity sensor module; wherein, when the switching regulator module is on, the light-emitting module is driven to emit a light signal; the communication processing module controls the light-emitting module to continuously emit a light signal during a first time period, including: The communication processing module controls the switching regulator module to remain on during the first time period, so that the light-emitting module continuously emits light signals during the first time period. The communication processing module is further configured to: When the switching regulator module is turned on, a specified level signal is output to the light-emitting module so that the light-emitting module can be driven to emit a light signal; the specified level signal includes a high level signal or a low level signal.

25. The intelligent switch according to claim 24, characterized in that, The switching regulator module includes at least one inductor, at least one capacitor, and at least one boost converter; wherein, the power supply module is connected to the input terminal of the boost converter via the inductor to convert the first voltage output by the power supply module into a boosted second voltage output; the output terminal of the boost converter is operatively connected to the capacitor, the capacitor being used to store electrical energy and power the light-emitting module to drive the light-emitting module to emit light signals through the second voltage; The communication processing module also controls the path between the inductor and the boost converter via a power supply switch; wherein, when the power supply switch is turned on, the switching regulator module is turned on to drive the light-emitting module to emit light signals; when the power supply switch is turned off, the switching regulator module is turned off to reduce the leakage current in the circuit to less than 1uA.

26. The intelligent switch according to claim 24, characterized in that, The smart switch further includes a switching device electrically connected to the power supply module. The switching device is used to control the power supply circuit of the power supply module. When the switching device is disconnected, the smart switch is de-energized.

27. The intelligent switch according to any one of claims 19-22, characterized in that, The smart switch also includes a power supply module, which is directly or indirectly connected to the communication processing module to supply power to the communication processing module. The power supply module, the proximity sensing module, and the communication processing module are disposed on at least one circuit board. The proximity sensing module includes a capacitive proximity sensing module, and the sensing antenna of the capacitive proximity sensing module is arranged on the outermost ring of the circuit board. The portion of the sensing antenna away from the power supply module uses a thick antenna, and the portion close to the power supply module uses a thin antenna.

28. The intelligent switch according to any one of claims 19-22, characterized in that, The communication processing module is also used for: In response to trigger signals resulting from the manipulation of at least two buttons on the smart switch, a combination button control message is generated and sent outward, such that: the control result indicated by the combination button control message can be executed by the corresponding controlled device; the combination button control message includes control information, which represents at least one of the following: The intelligent switch; At least two buttons are being manipulated; The control actions received by at least two buttons.

29. The intelligent switch according to any one of claims 19-22, characterized in that, The smart switch further includes: a driving module and an output switching module; wherein, the input terminal of the driving module is electrically connected to the communication processing module, and the output terminal is electrically connected to the output switching module, so as to drive the output switching module to switch on and off based on the control signal sent by the communication processing module, thereby controlling the on and off of the power supply path of the load connected to the output switching module; The communication processing module is also used for: The on / off state of the output on / off module is determined. If the output on / off module is in the on state, the light-emitting module is controlled to continuously emit a third light signal. If the output on / off module is in the off state, the light-emitting module is controlled to stop emitting the third light signal.

30. The intelligent switch according to claim 29, characterized in that, When the communication processing module receives the sensing signal from the proximity sensing module, it controls the light-emitting module to continuously emit a light signal during a first time period, including: After receiving the sensing signal, the communication processing module confirms whether the light-emitting module is currently emitting a third light signal. If the light-emitting module is currently emitting a third light signal, it controls the light-emitting module to continuously emit the third light signal. If the light-emitting module is not currently emitting a third light signal, it controls the light-emitting module to emit a fourth light signal to the outside world within a specified time. The third light signal is different from the fourth light signal.

31. The intelligent switch according to claim 29, characterized in that, The communication processing module is also used for: In response to at least one trigger signal resulting from the operation of the button, if it is determined that the working mode corresponding to the button is set to the first mode, a wireless message is generated and sent outward, so that: the gateway or terminal can control the corresponding controlled device to execute the control result pointed to by the wireless message according to the wireless message.

32. The intelligent switch according to claim 31, characterized in that, The output on / off module includes at least one on / off channel, each on / off channel corresponding to one button, and the communication processing module is further used for: The terminal receives a first configuration instruction; the first configuration instruction is generated by the terminal in response to a corresponding operation of the button on the smart switch. In response to the first configuration command, the button is set to the first mode, and the on / off channel corresponding to the button is kept in the on state.

33. The intelligent switch according to claim 29, characterized in that, The output on / off module includes at least one on / off channel, each on / off channel corresponding to one button, and the communication processing module is further used for: In response to at least one trigger signal resulting from the operation of the button, if it is determined that the working mode corresponding to the button is set to the second mode, the on / off channel corresponding to the button is controlled to be turned off, and after maintaining the off state for a specific duration, the on / off channel corresponding to the button is controlled to be switched to the on state, so that the output state of the specified smart device connected in series with the on / off channel corresponding to the button changes.

34. The intelligent switch according to claim 29, characterized in that, The communication processing module is used to: if it receives control information from a terminal or gateway, output a corresponding first drive signal to the drive module according to the control information; so that the drive module controls the on / off state of the output on / off module according to the first drive signal. If a paired switch control message is received directly from a paired wireless switch, a corresponding second drive signal is output to the drive module so that the drive module controls the on / off state of the output switching module according to the second drive signal.

35. The intelligent switch according to claim 29, characterized in that, The smart switch also includes a type identification unit, which is electrically connected to the communication processing module and is used to indicate the type of the smart switch; The communication processing module is used for: The type identification unit acquires the type code collected by the type identification unit, determines the switch type information of the smart switch based on the type code, and sends the switch type information to the terminal or gateway so that the terminal displays the switch type information, and / or runs the corresponding preset control program based on the type code.

36. The intelligent switch according to claim 35, characterized in that, The communication processing module is used to: set a message receiving duty cycle corresponding to the switch type of the smart switch based on the switch type information, wherein the message receiving duty cycle represents the duty cycle of the smart switch scanning and receiving message time.

37. The intelligent switch according to any one of claims 19-22, characterized in that, The light-emitting module includes a light-emitting array composed of a first light-emitting part and a second light-emitting part. Each button corresponds to a set of light-emitting arrays. The light signal emitted by the first light-emitting part is different in color from the light signal emitted by the second light-emitting part. The button is provided with a laser-engraved pattern. The position of the light-emitting module matches the laser-engraved pattern. The light signal emitted by the light-emitting module is emitted outward through the laser-engraved pattern, causing the laser-engraved pattern to be lit up.

38. A method for processing an intelligent switch, characterized in that, The smart switch includes: a button, a proximity sensing module, a communication processing module, and a light-emitting module; both the proximity sensing module and the light-emitting module are electrically connected to the communication processing module; the proximity sensing module is disposed below the button to form a sensing area within a specified range of the button; the processing method includes: If the communication processing module receives a sensing signal from the proximity sensing module, it controls the light-emitting module to continuously emit a light signal during a first time period; the sensing signal indicates that a human body has entered the sensing area; the proximity sensing module is able to detect the presence of a human body within the sensing area. include: After receiving the sensing signal, the communication processing module controls the light-emitting module to emit light signals to the outside world; When the time for emitting the light signal reaches the first specified time, it is determined whether the sensing signal can still be received; if so, the light-emitting module is controlled to continue emitting the light signal until the second specified time; otherwise, the light-emitting module is controlled to continue emitting the light signal until the third specified time and then stops emitting the light signal. Wherein, the third specified time is greater than or equal to the first specified time, and the second specified time is greater than the third specified time; If a human body is still detected within the sensing area after the first time period, the light-emitting module is controlled to stop emitting light signals; wherein, "still detected a human body within the sensing area" means that a human body is always present within the sensing area; and after the light-emitting module is controlled to stop emitting light signals, if the human body within the sensing area moves away from the smart switch, the communication processing module controls the light-emitting module to remain in a state of not emitting light signals.

39. The processing method according to claim 38, characterized in that, Also includes: When the light-emitting module controls the light-emitting module to emit light signals to the outside world for a set calibration time, it acquires the calibration sensing signal sent by the proximity sensing module, and controls the light-emitting module to stop emitting light signals to the outside world according to the calibration sensing signal; the calibration sensing signal indicates that the sensing signal acquired by the proximity sensing module has not changed during at least one specified calibration period within the set calibration time.

40. The processing method according to claim 38, characterized in that, The button is electrically connected to the communication processing module; the processing method further includes: the communication processing module responds to at least one trigger signal caused by the operation of the button on the smart switch, and controls the light-emitting module to emit light signals to the outside within a specified time.

41. A method for processing an intelligent switch, characterized in that, The smart switch includes: a button, a proximity sensing module, a communication processing module, and a light-emitting module; both the proximity sensing module and the light-emitting module are electrically connected to the communication processing module; the proximity sensing module is disposed below the button to form a sensing area within a specified range of the button; the processing method includes: If the communication processing module receives a sensing signal from the proximity sensing module, it controls the light-emitting module to continuously emit a light signal during the first time period; the sensing signal indicates that a human body has entered the sensing area; the proximity sensing module can detect human movement within the sensing area. include: After receiving the sensing signal, the communication processing module controls the light-emitting module to emit light signals to the outside world; If the proximity sensing module receives the sensing signal again after continuously emitting light signals for a fourth specified time but before the fifth specified time, the proximity sensing module will not generate a sensing signal if the human body has not moved within the sensing area. Then, the light-emitting module is controlled to continue emitting light until the sixth specified time. Otherwise, control the light-emitting module to continue emitting light until the seventh specified time; Wherein, the sixth specified time is greater than the fifth specified time, and the seventh specified time is less than the sixth specified time; If a human body is still detected within the sensing area after the first time period, the light-emitting module is controlled to stop emitting light signals. The presence of a human body within the sensing area includes: the human body within the sensing area not moving. Furthermore, if, after the light-emitting module stops emitting light signals, the human body within the sensing area moves away from the smart switch, the communication processing module controls the light-emitting module to remain in a state of not emitting light signals.

42. The processing method according to claim 41, characterized in that, Also includes: When the light-emitting module controls the light-emitting module to emit light signals to the outside world for a set calibration time, it acquires the calibration sensing signal sent by the proximity sensing module, and controls the light-emitting module to stop emitting light signals to the outside world according to the calibration sensing signal; the calibration sensing signal indicates that the sensing signal acquired by the proximity sensing module has not changed during at least one specified calibration period within the set calibration time.

43. The processing method according to claim 41, characterized in that, The button is electrically connected to the communication processing module; the processing method further includes: the communication processing module responds to at least one trigger signal caused by the operation of the button on the smart switch, and controls the light-emitting module to emit light signals to the outside within a specified time.

44. The processing method according to claim 41, characterized in that, The duration of the fourth specified time is less than the duration from the fourth specified time to the fifth specified time.

45. A control system, characterized in that, Includes the smart switch, terminal, and gateway as described in any one of claims 1 to 37; the smart switch is capable of communicating with the gateway after joining the network where the gateway is located; the terminal is capable of communicating with the gateway directly or indirectly; The smart switch is used to: report a control event to the gateway in response to the operation of the smart switch, or receive control information sent by the terminal or the gateway and execute the control result indicated by the control information; The gateway is used to: feed back the control event to the terminal; The terminal is used to: externally prompt the control event, and / or, in response to a control event for the smart switch, generate and send control information to the smart switch.

Citation Information

Patent Citations

  • Wire controller control method

    CN105357818A

  • Lamp light control method and device and lamp light controller

    CN106961775A

  • Vehicle-to-vehicle communication transceiver based on LED vehicle lamp, and coding and decoding method

    CN108631867A

  • Inductive lighting method of switch panel

    CN111148315A