Control system and processing method of intelligent wall switch and intelligent wall switch

Through direct wireless interaction between smart wall switches powered by strong electricity, the problems of single control method of smart wall switches and defects of wireless switches are solved, and stable, low-cost diversified control and linkage functions are achieved.

CN120669596APending Publication Date: 2025-09-19WUHAN LINPTECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510812088.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

Existing smart wall switches have a single control method and are difficult to meet more diverse control needs. In addition, wireless switches have problems such as inconvenient battery replacement, poor feel, and high cost.

Method used

The first switch and the second switch powered by strong electricity establish a wireless interactive relationship through a direct connection. The first switch responds to a wireless control signal to control the state of the electrical appliance, and the second switch sends a wireless control signal through a direct connection to achieve mutual control between the smart wall switches powered by strong electricity.

Benefits of technology

It expands the control methods of smart wall switches, reduces application costs, improves control stability and user experience, avoids the problems of battery replacement and poor feel of wireless switches, and realizes linkage control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120669596A_ABST
    Figure CN120669596A_ABST
Patent Text Reader

Abstract

The invention provides a control system and a processing method of an intelligent wall switch, and the intelligent wall switch, and the control system comprises a first switch which is electrically connected with a power supply loop of a first electric appliance, and is configured to respond to a control operation to control the connection or disconnection of the power supply loop; the second switch comprises at least one key which is used for receiving control operation; the signal transmitting unit is operably coupled with the key and is configured to be capable of sending a wireless control signal to the outside in response to a control operation applied to the key; each of the first switch and the second switch comprises at least one power supply port used for being connected with a live wire so as to be connected with a strong-current power supply, and the second switch is in wireless interaction with the first switch in a direct connection mode; the first switch further comprises a signal receiving unit which is configured to be capable of receiving and responding to the wireless control signal to control the working state of the first electric appliance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent switches, and in particular to a control system and a processing method of an intelligent wall switch and an intelligent wall switch. Background Art

[0002] A wall switch is an electrical switch installed on the wall to connect and disconnect the circuit to control the switching of electrical appliances.

[0003] With the development of intelligent technology, smart wall switches have been widely used. Smart wall switches can be understood as wall switches with data processing capabilities. At the same time, smart wall switches can be equipped with a processor to realize data processing and a wireless communication module to realize wireless communication with the outside world.

[0004] However, existing smart wall switches generally act as the controlled party, and the control method is relatively simple, which makes it difficult to meet more diverse control needs. Summary of the Invention

[0005] The present invention provides a control system, a processing method and an intelligent wall switch for an intelligent wall switch, so as to solve the problem that the control mode of the intelligent wall switch in the prior art is relatively single.

[0006] According to a first aspect of the present invention, there is provided a control system for an intelligent wall switch, comprising:

[0007] The first switch is powered by a strong current and is configured to control the working state of a first electrical appliance in response to an action, or to control the working state of the first electrical appliance in response to a wireless control signal;

[0008] The second switch is powered by strong electricity, wirelessly interacts with the first switch in a direct connection manner, and is configured to generate and send the wireless control signal in response to a control operation.

[0009] According to a second aspect of the present invention, a processing method for an intelligent wall switch system is provided, wherein the intelligent wall switch system includes at least a first switch and a second switch; the first switch and the second switch are both powered by a strong current; the processing method includes: the first switch enters a pairing mode in response to a pairing operation and sends a pairing message;

[0010] The second switch receives the pairing message, and within a specified time after the first switch enters the pairing mode, the second switch responds to a pairing operation and enters the pairing mode, thereby completing pairing with the first switch.

[0011] According to a third aspect of the present invention, a smart wall switch is provided, wherein the smart wall switch is configured to execute the processing method described above.

[0012] The control system, processing method and smart wall switch provided by the present invention all establish a wireless interactive relationship between a first switch and a second switch powered by strong electricity through a direct connection. When the first switch receives a wireless control signal sent by the second switch in response to a control operation, the first switch controls the working state of the first electrical appliance connected to it to match the control result indicated by the wireless control signal, thereby realizing mutual control between the smart wall switches powered by strong electricity, effectively expanding the control method of the smart wall switch, and facilitating meeting more diverse control needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0014] Figure 1 1 is a schematic diagram of the structure of a control system in one embodiment of the present invention;

[0015] Figure 2 is a schematic diagram of the structure of a first switch in one embodiment of the present invention;

[0016] Figure 3 This is a schematic diagram of mutual control between the first switch and the second switch in one embodiment of the present invention. Figure 1 ;

[0017] Figure 4 This is a schematic diagram of mutual control between the first switch and the second switch in one embodiment of the present invention. Figure 2 ;

[0018] Figure 5 This is a schematic diagram of the pairing of the first switch, the second switch, and the third switch in one embodiment of the present invention. Figure 1 ;

[0019] Figure 6 This is a schematic diagram of the pairing of the first switch, the second switch, and the third switch in one embodiment of the present invention. Figure 2 ;

[0020] Figure 7 1 is a schematic diagram of a pairing process of button A of a first switch and button B of a second switch in one embodiment of the present invention;

[0021] Figure 8This is a flow chart of adding the button C of the third switch to the control network of the button A of the first switch and the button B of the second switch in one embodiment of the present invention;

[0022] Figure 9 This is a schematic diagram of the process of the button A of the first switch after entering the learning mode in one embodiment of the present invention;

[0023] Figure 10 1 is a schematic diagram of the mutual control process of button A of the first switch and button B of the second switch in one embodiment of the present invention;

[0024] Figure 11 1 is a flow chart of a processing method of an intelligent wall switch system in one embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0026] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way are interchangeable where appropriate, so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.

[0027] The following specific embodiments are used to describe the technical solution of the present invention in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0028] In the existing control of electrical appliances, traditional switches can only directly control the on and off of the switch access line by the user's press, thereby controlling the on and off of the electrical appliances. However, with the application of intelligence, intelligent controllers such as smart wall switches have gradually replaced traditional switches. Smart wall switches are equipped with wireless communication circuits, which can not only directly control the on and off of the line according to the user's press, but also realize the sending and receiving of wireless signals based on the built-in wireless communication circuit, such as controlling the on and off of the line by receiving external wireless signals, thereby realizing wireless control of the smart wall switch.

[0029] The inventors of this application discovered that because smart wall switches need to send or receive wireless signals in real time, when using smart wall switches to control the on / off of the power supply circuit of an electrical appliance, the smart wall switches also need to perform specific control on the power supply circuit to draw power from the power supply circuit to maintain the operation of the wireless communication circuit, thereby achieving real-time reception of wireless signals. However, when two smart wall switches are connected to control electrical appliances through wiring, it is difficult to coordinate the two smart wall switches to draw power from the wiring circuit at the same time, and thus it is impossible to ensure real-time power supply to the wireless communication circuit in each smart wall switch, causing the smart wall switches to fail to operate normally. For example, when dual-controlling a light, a single-pole double-throw switch is usually used, which is respectively installed at the door and the bedside, to control the on / off of the light power supply circuit. When either of the single-pole double-throw switches at the door and the bedside is operated, the light power supply circuit is directly connected or disconnected, thereby achieving dual control of the light. However, the modules in smart wall switches that control the on / off of the power supply circuit, such as relays, only support two control states: on and off. They cannot achieve the control characteristics of a single-pole double-throw switch. For example, if either single-pole double-throw switch is operated, the circuit will be on or off. Moreover, if two smart wall switches are used to control the light, if one smart wall switch disconnects the power supply circuit, the other smart wall switch will not be able to receive power normally. As a result, the wireless communication circuit in the smart wall switch will not be able to work properly and receive wireless signals, making intelligent control impossible. Therefore, it is impossible to use two smart wall switches to replace two traditional single-pole double-throw switches to achieve linked control.

[0030] Therefore, when wirelessly controlling a smart wall switch, it is usually achieved by adapting a wireless switch to it. For example, when using a smart wall switch to perform dual control of a lamp, a smart wall switch is connected to the circuit where the lamp is located, and the user can control the on and off of the lamp by pressing the smart wall switch. A wireless switch adapted to the smart wall switch is freely set at any position, so that the user can control the smart wall switch by pressing the wireless switch and thus control the on and off of the lamp.

[0031] However, the inventors of this application have also discovered that using wireless switches to control smart wall switches has the following disadvantages: Currently, there are two main types of wireless switches: battery-powered and self-generated. Battery-powered wireless switches require frequent battery replacement, which is inconvenient for users. Self-generated wireless switches, because they generate power through a press, require a longer pressing stroke than battery and high-voltage switches, resulting in an awkward feel. Furthermore, because both self-generated and battery switches are designed to conserve power, they generally do not provide a constant-on status indicator, preventing users from observing the status of the controlled device. In short, existing wireless switch-controlled smart wall switch solutions fail to fully achieve the user experience of traditional dual-control switches. Furthermore, both battery-powered and self-generated switches are control devices specifically configured for smart wall switches. For example, if a user needs to use a smart wall switch to control a light fixture, they must configure a wireless switch specifically for the smart wall switch, increasing the cost of using the smart wall switch.

[0032] Based on this, this embodiment provides a control system for solving the above technical problems, such as Figure 1 As shown, the control system includes at least a first switch 1 and a second switch 2. The first switch 1 and the second switch 2 can be any device or combination of devices capable of on-off control, and each includes a circuit with data processing capabilities, such as a processing module, and a circuit with wireless communication capabilities, such as a wireless communication module. In one example, the control system can be a smart wall switch. The smart wall switch can use at least one of the following external communication methods: radio frequency, Bluetooth, Wi-Fi, mobile network, etc.

[0033] The first switch 1 is powered by a strong current and is configured to control the operating state of a first electrical appliance in response to an actuation, or to control the operating state of a first electrical appliance in response to a wireless control signal. The second switch 2 is powered by a strong current and wirelessly interacts with the first switch via a direct connection, and is configured to generate and transmit the wireless control signal in response to a control operation. The direct connection can be understood as the first and second switches directly interacting and controlling each other without forwarding through an intermediary device such as a gateway or router, thereby reducing the delay time of the entire interaction process and not being subject to the performance and operating state of intermediary devices such as gateways and routers, thereby improving the stability of the mutual control between the first and second switches.

[0034] In this embodiment, the first switch 1 and the second switch 2 are both intelligent wall switches powered by strong electricity. Figure 2As shown, in some embodiments, the first switch 1 is connected to a circuit for controlling the operating state of a first electrical appliance. The first switch 1 includes a power supply module 101 that draws power from the circuit to convert strong alternating current into direct current. The first switch 1 also includes a processing module 102 that operates with the direct current, and the processing module 102 is electrically connected to the power supply module 101. The first switch 1 also includes a first execution module 103 that is communicatively connected to the processing module 102 and is controlled by the processing module 102 to control the operating state of the circuit. The first switch 1 can control the operating state of the first electrical appliance in response to an action. For example, the first switch 1 can trigger and control the operating state of the first electrical appliance in response to a local action. For example, the processing module 102 controls the operating state of the first execution module 103 to match the control operation in response to a control operation on the first switch 1, thereby controlling the operating state of the first electrical appliance.

[0035] Specifically, the first switch 1 also includes at least one power supply port for connecting to the live wire to connect to a high-voltage power source, such as a high-voltage input terminal P. The high-voltage input terminal P may include a live wire input terminal and a neutral wire input terminal, that is, the smart wall switch may be a switch powered by a zero-live wire. In some examples, the high-voltage input terminal P may also be a live wire input terminal, that is, the smart wall switch may be a switch powered by a single live wire. The power supply module 101 also includes an electric energy conversion unit, which is electrically connected to the processing module 102 to convert the connected high-voltage alternating current into the required direct current, and transmit the required direct current to the processing module 102 to enable the processing module 102 to operate normally.

[0036] One end of the first execution module 103 can be electrically connected to the power supply module 101, and the other end of the first execution module 103 can be electrically connected to the first electrical appliance, thereby controlling the on / off of the circuit where the first electrical appliance is located. For example, the first execution module 103 can control the on / off of the live wire or the neutral wire in the circuit where the first electrical appliance is located in response to the driving signal of the processing module 102. In one example, the first execution module 103 adopts a relay. In another example, the first execution module 103 is implemented as any module that can realize functions such as adjusting the color, brightness, and color temperature of the light. However, the implementation method of the first execution module 103 is not limited to this example. In addition, the first execution module 103 can also include any circuit module that can control the on / off of the relay.

[0037] The processing module 102 can output a driving signal to the first execution module 103. Correspondingly, the first execution module 103 is used to: receive the driving signal sent by the processing module 102, and drive the connected live wire to be on and off according to the received driving signal, thereby controlling the on and off of the circuit where the first electrical appliance is located. The processing module 102 can be any circuit with data processing capabilities and wireless communication capabilities, for example, it can include a processor, a wireless communication unit, and can also include a memory and other related devices. In addition, the processor and the wireless communication unit can be independent and different units, or they can be integrated into one unit. In some embodiments, the processing module can include a signal transmitting unit for sending a wireless control signal to the outside in response to external manipulation; the processing module can also include a signal receiving unit, which can receive and control the working state of the first electrical appliance in response to the wireless control signal sent from the outside.

[0038] In one embodiment, the first switch further includes a first indicator unit 104 for indicating the working state of the first switch 1. The first indicator unit 104 can be implemented as any element or combination of elements capable of realizing a light-emitting indication function, such as an LED lamp. The first indicator unit 104 is electrically connected to the processing module 102 and can be controlled by the processing module 102 to indicate the working state of the first switch 1 to the outside. For example, the working state of the first execution module 103, such as the on / off state of a relay, can be indicated to the outside through prompting methods including but not limited to voice prompting, light signal prompting (such as the on / off of an LED lamp), display interface prompting (such as a display screen prompting), specific structure prompting (such as laser engraving with specific text or patterns for prompting), or a combination of multiple prompting methods. This allows the user to know the current working state of the associated electrical appliance based on the prompt of the first indicator unit 104, facilitating the user to implement corresponding control.

[0039] In one embodiment, the first switch further includes a button 105 and a button recognition module (not shown in the figure), wherein the button recognition module is electrically connected to the processing module; the button 105 can trigger the corresponding button recognition module when pressed; and the button recognition module can transmit a touch signal to the processing module 102 when touched. The processing module 102 controls the on and off of the first execution module 103 according to the touch signal. This enables the first switch 1 to trigger and control the working state of the first electrical appliance in response to local actuation. The button recognition module in the first switch can be a switching device (such as a micro switch). The touch signal can be understood as any signal that enables the processing module to determine which button is currently pressed. The touch signal can be any one of the following: a high pulse signal, a low pulse signal, a high level signal, and a low level signal. The touch signal can also be multiple continuous or discontinuous signals. Regardless of the form adopted, it does not deviate from the scope described above.

[0040] In another embodiment, the first switch can also receive external wireless signals through the wireless communication unit in its processing module 102 to control the on / off of the first execution module 103 based on the wireless signal, thereby controlling the operating state of the first electrical appliance. For example, in this embodiment, the second switch 2 establishes a wireless interaction relationship with the first switch 1 through a direct connection, and when the second switch 2 responds to a control operation (such as a pressing operation of a button in the second switch), it generates and broadcasts a wireless control signal. Based on the wireless interaction relationship established between the first switch 1 and the second switch 2, the first switch 1 directly receives the wireless control signal through a broadcasting method and can control the operating state of the first electrical appliance in response to the wireless control signal.

[0041] The second switch 2 establishes a wireless interaction relationship with the first switch 1 via a direct connection. In some embodiments, the second switch 2 can be directly connected to the first switch 1 via a custom communication protocol. For example, the custom communication protocol can be a non-standard communication protocol such as a non-standard Bluetooth communication protocol. The second switch 2 can be directly connected to the first switch 1 via the non-standard Bluetooth communication protocol. The wireless control signals exchanged between the second switch 2 and the first switch 1 during direct communication are non-standard Bluetooth data signals. For example, the first switch 1 and the second switch 2 both store a custom communication protocol, such as a non-standard Bluetooth communication protocol. After the first switch 1 and the second switch 2 are paired, a direct wireless interaction relationship is established. When the second switch 2 responds to a control operation, the processing module within the second switch 2 encodes and generates a wireless control signal based on the custom communication protocol. The wireless control signal is then broadcasted externally via the wireless communication unit within the second switch 2, for example, by repeatedly transmitting the wireless control signal multiple times, continuously or intermittently, on broadcast channel 37, broadcast channel 38, or broadcast channel 39 within the Bluetooth communication frequency band. After directly receiving the wireless control signal broadcast by the second switch 2, the first switch 1 decodes the wireless control signal based on the custom communication protocol and controls the operating state of the first switch 1 according to the control instructions obtained from the decoded wireless control signal, thereby controlling the operating state of the first electrical appliance connected to the first switch 1, thereby enabling direct connection and mutual control between the first switch 1 and the second switch 2. The wireless control signal may include, but is not limited to, one or a combination of switch information, MAC address information, key information, encryption information, and verification information. Furthermore, in other embodiments, the second switch 2 may also be directly connected to the first switch 1 via a standard communication protocol, such as a standard Bluetooth communication protocol, a WIFI communication protocol, a ZIGBEE communication protocol, or the like. As long as a direct wireless interaction relationship can be established between the first switch 1 and the second switch 2, and the wireless signal generated by the second switch 2 can be directly sent to the first switch 1, the communication protocol employed remains within the scope of the above description.

[0042] In the prior art, two smart wall switches can communicate through some standard protocols (such as Bluetooth protocol). This method requires the forwarding of a gateway to realize the interaction of wireless signals. For example, when a smart wall switch responds to a control operation, it sends a wireless signal to the gateway, and the gateway forwards the wireless signal to the other smart wall switch to realize wireless interaction between the two smart wall switches. However, in this method, the two smart wall switches essentially communicate with the gateway separately, and then the gateway parses and forwards the signal. This method relies on the network established by the gateway. When there is a problem with the gateway network, such as disconnection or poor network conditions, the wireless interaction between the two smart wall switches will be affected, thereby causing delays or even failures in the user's control, affecting the user experience. In this embodiment, the first switch 1 and the second switch 2 can be wirelessly controlled by direct connection, that is, the first switch 1 and the second switch 2 directly interact with each other through wireless signals without the need for forwarding through other intermediate devices such as a gateway. This avoids the problem that if the network is interrupted when using gateway forwarding, the first switch 1 and the second switch 2 cannot communicate and thus cannot achieve linked control. Moreover, compared with the influence of network delay on information forwarding through the gateway, the direct connection between the first switch 1 and the second switch 2 in this embodiment has higher communication efficiency, faster speed and higher stability.

[0043] In this embodiment, a wireless interactive relationship is established between the first switch 1 and the second switch 2, both of which are powered by strong electricity, by a direct connection. When the first switch 1 receives a wireless control signal sent by the second switch 2 in response to a control operation, the first switch 1 controls the working state of the first electrical appliance connected to it to match the control result indicated by the wireless control signal, thereby achieving mutual control between the smart wall switches powered by strong electricity. This allows the smart wall switch to act not only as a controlled party, but also as a controller to achieve linkage control with other smart wall switches, effectively expanding the control methods of the smart wall switches and facilitating the satisfaction of more diverse control requirements. At the same time, in this embodiment, the first switch 1 and the second switch 2 are both smart wall switches powered by strong electricity. Compared with controlling smart wall switches through wireless switches, this overcomes the defects of wireless switches requiring frequent battery replacement or poor hand feel. In addition, by achieving mutual control between smart wall switches powered by strong electricity, linkage control can be achieved between smart wall switches already installed in the user's home without the need to specifically configure a wireless switch for the smart wall switch to control it, thereby reducing the user's cost of achieving intelligent application.

[0044] In some embodiments, the second switch includes a second indicator unit and a second execution module. The functions and principles of the second indicator unit, the second execution module, and other modules and units of the second switch are similar to those described above for the first switch and can be referred to above for the description of the first switch, and are not further described here. The second execution module is configured to be not directly or indirectly electrically connected to the electrical appliance. The first switch is further configured to control the first indicator unit to switch to a corresponding indication state before, after, or simultaneously with controlling the operating state of the first electrical appliance in response to a wireless control signal. The second switch is configured to control the second execution module to maintain a preset operating state and to control the second indicator unit to generate a preset indication signal when the wireless control signal is generated and transmitted in response to a control operation. The preset indication signal is used to remind the user of the current function of the second switch. Exemplarily, the preset indication signal is a breathing light signal, which reminds the user that the second switch currently only has a wireless remote control function. Of course, in some embodiments, the preset indication signal can also be implemented as a signal such as a fast flashing, slow flashing, or a normally open signal. As long as the preset indication signal can provide a reminder function, it is within the scope of this embodiment.

[0045] In this embodiment, after the second switch establishes a wireless interactive relationship with the first switch through a direct connection, when the second switch responds to a control operation, such as when a user presses a button on the second switch, the second switch generates and sends a wireless control signal to the outside, so that the first switch directly receives the wireless control signal and controls the operating state of the first execution module to match the control result indicated by the wireless control signal, thereby controlling the operating state of the first electrical appliance, thereby realizing remote control of the first switch by the second switch.

[0046] This embodiment can realize wireless control between the first switch and the second switch powered by strong electricity. The second switch can act as the controller to remotely control the first switch. The user can control the first switch in conjunction by operating the second switch, effectively expanding the control method of the smart wall switch and meeting more diverse control needs.

[0047] In some embodiments, the first switch is further configured to control the first indication unit to switch to a corresponding indication state before, after, or simultaneously with controlling the working state of a first electrical appliance in response to a wireless control signal; the second switch is configured to control the indication state of the second indication unit to switch to be consistent with the indication state of the first indication unit after generating and sending the wireless control signal in response to a control operation.

[0048] In this embodiment, when the first switch controls the operating state of the first execution module in response to the wireless control signal, it controls the first indicator unit thereof to switch its indication state. For example, when the first execution module is controlled to switch from on to off, the indicator light of the first indicator unit corresponding to the first execution module is controlled to switch from being on to being off. Simultaneously, the second switch controls the indication state of the second indicator unit thereof to switch to be consistent with the indication state of the first indicator unit. For example, when the indicator light of the first indicator unit is switched to being off, the second switch controls the indicator light of the second indicator unit to also switch to being off, so as to synchronize with the state of the first indicator unit.

[0049] The inventors of this application have discovered that in existing wireless switch-controlled wall switch solutions, because wireless switches need to conserve power to extend their service life, the indicator light of the wireless switch, acting as the remote controller, is not synchronized with the indicator light state of the controlled wall switch when the controlled device (e.g., a light bulb) is on. For example, for self-generating wireless switches, the amount of power generated each time is limited, which is insufficient to keep the indicator light of the wireless switch synchronized with the indicator light state of the wall switch for a long time. In order to conserve battery power, the indicator light of battery-powered wireless switches is generally set to flash only once when the wireless switch is controlled and then remain off. The lack of synchronization between the indicator light state of the wireless switch and the wall switch it controls makes it impossible for users to understand the operating status of the controlled electrical appliance through the indicator light state of the wireless switch, which can easily lead to user error. For example, if a switch includes multiple buttons, and each button corresponds to controlling different electrical appliances, the user cannot determine which appliance is being controlled based on the indicator state of each button. For example, the multiple buttons of a switch respectively control the ceiling light, downlight, etc. in the room. When the working states of the ceiling light, downlight, etc. are different and the user needs to control the working state of one of them through the switch, it is impossible to determine which specific button corresponds to the controlled electrical appliance, and control errors may occur. For example, the user wants to turn off the ceiling light but accidentally turns on the downlight, affecting the user experience.

[0050] In this embodiment, the two smart wall switches are powered by strong electricity, eliminating the need to worry about power supply. Therefore, when performing linkage control, after controlling the operating state of the electrical appliance in response to a control operation, the indication states of the indicator units of the first and second switches can be switched synchronously, i.e., the indication states of the indicator units of the first and second switches are consistent. This allows the user to determine the operating state of the electrical appliance based on the indication state of either the first or second switch, or to determine the switch to be linked to the electrical appliance based on its operating state, facilitating accurate intelligent control and improving the user experience.

[0051] Specifically, in some embodiments, the second execution module of the second switch is configured to be in a no-load state, that is, the second execution module is not electrically connected directly or indirectly to any electrical appliance; the second switch is further configured to: when generating and sending the wireless control signal in response to a control operation, control the working state of the second execution module to match the control result indicated by the wireless control signal, so that the indication state of the second indication unit is switched to be consistent with the indication state of the first indication unit.

[0052] In this embodiment, the second execution module of the second switch is not connected to a load. However, when generating and transmitting the wireless control signal in response to a control operation, the second execution module's operating state is synchronously controlled to match the control result indicated by the wireless control signal, thereby synchronizing the operating state of the second execution module with the operating state of the first execution module. The operating state of the first execution module is controlled by the first switch based on the control result indicated by the wireless control signal after receiving the wireless control signal. The processor (e.g., a single-chip microcomputer) of the second switch changes the display state (i.e., on / off state) of the second unit by identifying the on / off state (i.e., the operating state) of the second execution module. Therefore, the first and second switches can control the indication state of the corresponding indication unit based on the operating state of their respective execution modules, so that the indication state of the second indication unit switches to the same as the indication state of the first indication unit in response to a control operation.

[0053] In some embodiments, the second switch is further configured to: when generating and sending the wireless control signal in response to a control operation, control the second execution module to maintain a preset working state, and control the indication state of the second indication unit to be switched to be consistent with the indication state of the first indication unit.

[0054] In this embodiment, when responding to a control operation, the second switch controls its second execution module to maintain a preset operating state, for example, controlling the second execution module, such as a relay, to maintain a normally open or normally closed operating state. The second execution module of the second switch can be configured to not be directly or indirectly electrically connected to any electrical appliance, i.e., the second switch is not connected to a load. Furthermore, after the second switch generates and transmits the wireless control signal in response to a control operation, the first switch controls the operating state of a first electrical appliance in response to the wireless control signal and controls the first indicator unit to switch to a corresponding indication state. The second switch controls the indication state of the second indicator unit to be consistent with the indication state of the first indicator unit. In other words, in this embodiment, while the second switch remotely controls the first switch, even if the second execution module maintains a preset operating state, such as being normally open without a load, the second switch still controls the indication state of its second indicator unit to be consistent with the indication state of the first indicator unit in response to a control operation. In this case, the indication state of the second indicator unit does not indicate the operating state of the second execution module, but rather simultaneously indicates the operating state of the first execution module, i.e., the operating state of the first electrical appliance connected to the first switch. This allows the indication states of the indication units of the first and second switches to switch synchronously, i.e., the indication states of the indication units of the first and second switches are consistent, making it easier for users to perform accurate intelligent control based on the indication state of either the first or second switch, thereby improving the user experience.

[0055] In some embodiments, the second execution module of the second switch is used to disconnect or connect the power supply circuit of a second electrical appliance, such as the live wire or neutral wire in the circuit where the second electrical appliance is located. The second switch is further configured to: when generating and transmitting the wireless control signal in response to a control operation, control the second execution module to switch the operating state to control the operating state of the second electrical appliance. The first switch controls the operating state of a first electrical appliance in response to the wireless control signal.

[0056] In this embodiment, the first and second switches control different electrical appliances. The first execution module of the first switch controls the operating state of the first appliance, while the second execution module of the second switch controls the operating state of the second appliance. In response to a control operation applied to its button, the second switch can control the local second execution module to switch its operating state to control the operating state of the second appliance. Simultaneously, the second switch generates and transmits a wireless control signal. The first switch directly receives the wireless control signal and controls the operating state of the first appliance in response to the wireless control signal. Thus, through wireless interaction between the first and second switches, coordinated control of the first and second appliances is achieved. When controlling the operating state of the first appliance in response to the wireless control signal, the first switch controls the operating state of its first execution module to match the control result indicated by the wireless control signal, thereby controlling the operating state of the first appliance. For example, in an alternative embodiment, after adjusting the operating state of the second appliance in response to a control operation, the second switch transmits the wireless control signal, causing the first switch to adjust the operating state of the first appliance to match the operating state of the second appliance in response to the wireless control signal. In this way, in some application scenarios where two electrical appliances need to be controlled synchronously, the working states of the two electrical appliances can be synchronously controlled by two smart wall switches, such as synchronously controlling the lighting and extinguishing of different lamps. In addition, in other optional embodiments, the first switch can also respond to the wireless control signal to control the working state of the first electrical appliance to be opposite to the working state of the second electrical appliance, or control the working state of the first electrical appliance to change synchronously with the working state of the second electrical appliance, such as controlling a working parameter of the first electrical appliance to be synchronously increased or decreased with a working parameter of the second electrical appliance, or controlling a working parameter of the first electrical appliance to be increased and a working parameter of the second electrical appliance to be synchronously decreased, etc. The working parameters may include but are not limited to the color temperature and brightness of lamps, the temperature of air conditioners, the opening and closing degree of curtain motors, etc. As long as the first switch and the second switch interact through wireless control signals to achieve linkage control between different electrical appliances, it does not deviate from the scope of the above description.

[0057] Furthermore, the second switch is configured to control the second indicator unit to switch its indication state to match the current operating state of the second execution module when the second execution module switches its operating state. The first switch is further configured to control the first indicator unit to switch to a corresponding indication state before, after, or simultaneously with controlling the operating state of a first electrical appliance in response to the wireless control signal.

[0058] In this embodiment, when the first switch and the second switch are linked to control different electrical appliances, the corresponding indication states can be adjusted synchronously to indicate to the user the working state of the electrical appliances controlled by the switches. For example, after the second switch adjusts the working state of the second electrical appliance in response to a control operation, it controls the indication state of its second indication unit to switch to match the working state of the second electrical appliance, and generates a wireless control signal to be sent out, so that the first switch controls the working state of the first electrical appliance in response to the wireless control signal to adjust it to be consistent with the working state of the second electrical appliance. At the same time, the first switch controls its first indication unit to switch to the indication state corresponding to the working state of the first electrical appliance; thereby making the indication state of the second indication unit consistent with the indication state of the first indication unit. When the first electrical appliance and the second electrical appliance are linked to each other, the indication states of the indicator lights are synchronously controlled, so that the user can perform accurate intelligent control according to the indication state of either the first switch or the second switch, thereby improving the user experience.

[0059] like Figure 3 As shown, in some embodiments, when the second switch controls the second execution module to switch its operating state, it transmits the wireless control signal in response to a control operation applied to its key. That is, when a key in the second switch is manipulated, it can both control the second execution module corresponding to the manipulated key to switch its operating state and transmit the wireless control signal. This enables the second switch to both locally control the operating state of the second electrical appliance and wirelessly remotely control the operating state of the first electrical appliance connected to the first switch.

[0060] Furthermore, the first switch can also transmit a wireless signal in response to a control operation; the second switch can receive and respond to the wireless signal to control the operating state of the second electrical appliance. In this embodiment, in addition to enabling wireless remote control of the first switch by the second switch, the first switch can also transmit a wireless signal to the second switch when a control operation is performed to wirelessly control the operating state of the second electrical appliance connected to the second switch, thereby achieving wireless remote control of the second switch by the first switch.

[0061] Furthermore, the first switch transmits the wireless signal when it controls the connection or disconnection of the power supply circuit in response to a control operation. In this embodiment, when the first switch is manipulated to control the operating state of the first electrical appliance connected thereto, it can also simultaneously transmit a wireless signal to the second switch to wirelessly control the operating state of the second electrical appliance connected thereto, thereby achieving mutual control of the first and second switches, and further achieving coordinated control of the first and second electrical appliances.

[0062] In some embodiments, the first switch or the second switch may include multiple buttons, such as a single-button, double-button, or triple-button switch, and the first switch or the second switch may also include multiple sub-executable modules; different sub-executable modules correspond one-to-one to the buttons, and the buttons in the first switch can establish a pairing relationship with the buttons in the second switch, thereby establishing a wireless interaction relationship between the first and second switches through a direct connection, thereby controlling the working state of the corresponding sub-executable modules. Exemplarily, the execution modules in the first and second switches can be relays, and a corresponding sub-executable module can be a relay channel, with each button corresponding to a relay channel. When a button is pressed, the switch can control the conduction and disconnection of the corresponding relay channel, and control the conduction and disconnection of the relay channel corresponding to the paired button through the established wireless interaction relationship.

[0063] In addition, the first switch or the second switch may also include a plurality of sub-indication units (such as LED indicator lights), and each button corresponds to a sub-indication unit. When the button is manipulated, such as being pressed, or the working state of the sub-executable module corresponding to the button changes, the indication state of the sub-indication unit corresponding to the button also changes synchronously (such as the LED indicator light turns on or off) to indicate the corresponding working state to the user. For example, when two smart wall switches are linked and controlled, when the button of one smart wall switch is manipulated and the working state of the corresponding sub-executable module changes, the indication state of the sub-indication unit corresponding to the button will also change. Correspondingly, the working state of the sub-executable module corresponding to the button of the other smart wall switch paired with the button will also change synchronously. At the same time, the indication state of the sub-indication unit corresponding to the button of the other smart wall switch will also change synchronously. Therefore, when the smart wall switches are linked and controlled, the sub-executable modules and sub-indication units of the smart wall switches can synchronize their states.

[0064] In some embodiments, the first switch includes a first button and a second button; the first execution module is used to disconnect or connect the power supply circuit of the first electrical appliance, and the first switch is also configured to: be able to control the first execution module to switch the working state in response to the control operation applied to the first button; and be able to send a wireless signal to the outside in response to the control operation applied to the second button; the second switch includes a third button and a fourth button; the second switch is also configured to: be able to control the second execution module to switch the working state in response to the control operation applied to the fourth button; and be able to send the wireless control signal to the outside in response to the control operation applied to the third button.

[0065] Specifically, in an optional embodiment, as Figure 4As shown, the first switch includes at least a first button k1 and a second button k2, and the first switch also includes a first sub-execution module and a second sub-execution module corresponding to the first button and the second button; the second switch includes at least a third button k3 and a fourth button k4, and the second switch also includes a third sub-execution module and a fourth sub-execution module corresponding to the third button and the fourth button.

[0066] The first sub-executor module is used to disconnect or connect the live wire or neutral wire in the circuit where the first electrical appliance is located. The first button k1 can respond to an actuation to control the working state of the first sub-executor module and thereby control the working state of the first electrical appliance. The fourth sub-executor module is used to disconnect or connect the live wire or neutral wire in the circuit where the second electrical appliance is located. The fourth button k4 can respond to an actuation to control the working state of the fourth sub-executor module and thereby control the working state of the second electrical appliance.

[0067] The first switch and the second switch establish a wireless interactive relationship through a direct connection. Specifically, the first button k1 establishes a pairing relationship with the third button k3, and the second button k2 establishes a pairing relationship with the fourth button k4. The first switch can transmit a wireless control signal in response to an actuation of the second button k2, so that the second switch receives and responds to the wireless control signal to control the operating state of the fourth sub-executor module and thus the operating state of the second electrical appliance; the second switch can transmit a wireless control signal in response to an actuation of the third button k3, so that the first switch receives and responds to the wireless control signal to control the operating state of the first sub-executor module and thus the operating state of the first electrical appliance.

[0068] In this embodiment, through mutual control between smart wall switches, a smart wall switch can not only directly respond to local control to control the operating state of an electrical appliance as a controlled party, but can also control the operating state of another electrical appliance connected to another smart wall switch as a controlled party through direct wireless interaction. This effectively expands the control methods of smart wall switches and facilitates meeting more diverse control needs. For example, in this embodiment, the first switch can be installed at the bedroom door, and the second switch can be installed at the bedroom bedside. The user can achieve dual control of the first electrical appliance by operating the first button k1 of the first switch and the third button k3 of the second switch. The user can also achieve dual control of the second electrical appliance by operating the second button k2 of the first switch and the fourth button k4 of the second switch. The first and second electrical appliances can be different controlled devices in the bedroom, such as ceiling lights and downlights. This allows dual control of multiple electrical appliances using only two smart wall switches, enriching the control methods of smart wall switches. Furthermore, there is no need to configure a wireless switch specifically for each smart wall switch to achieve dual control of the electrical appliances connected to the smart wall switches, greatly reducing the cost of implementing intelligent applications for users.

[0069] In some embodiments, when the first switch establishes a wireless interactive relationship with the second switch via a direct connection, the first switch and the second switch need to be paired. After pairing is completed, wireless signal interaction between the first switch and the second switch can be performed subsequently. For example, the second switch can directly send the wireless control signal it generates to the first switch with which it is paired.

[0070] In an optional implementation, the first switch is configured as follows:

[0071] Before controlling the working state of a first electrical appliance in response to a wireless control signal, the device can also enter a pairing mode, also known as a learning mode, in response to a pairing operation (e.g., long pressing any button or a designated button in the first switch);

[0072] In pairing mode, the first switch receives a pairing message from a second switch. For example, the pairing message is sent by clicking any button or a designated button on the second switch to be paired. The pairing message includes information identifying the second switch, namely, a source identifier. The information identifying the second switch represents at least one of the following: the second switch; the button on the second switch that was manipulated during pairing; or the manipulation action performed on the button on the second switch during pairing. For example, the information identifying the second switch may include, but is not limited to, the manufacturer ID, MAC address, and key value of the second switch.

[0073] The first switch stores information for identifying the second switch to complete pairing with the second switch, and further establishes a wireless interactive relationship with the second switch in a direct connection manner.

[0074] After the first switch and the second switch are paired, the second switch generates and transmits the wireless control signal in response to a control operation, wherein the wireless control signal includes information identifying the second switch. Upon receiving the wireless control signal, the first switch confirms that the information identifying the second switch in the wireless control signal matches the information identifying the second switch stored by the first switch during pairing. For example, if the information identifying the second switch in the wireless control signal matches the information identifying the second switch stored by the first switch during pairing, the first switch determines that the received wireless control signal has been authenticated, and then responds to the wireless control signal to control the operating state of the first electrical appliance. Otherwise, the first switch does not respond to the wireless control signal.

[0075] In some embodiments, upon receiving a wireless control signal, the first switch may control the operating state of a first electrical device in response to the wireless control signal if the information identifying the second switch in the wireless control signal matches the information identifying the second switch stored in the first switch. For example, upon confirming that the information identifying the second switch matches, the first switch may control the first execution module, such as a relay channel, to flip its switch state, thereby enabling the second switch to remotely control the first switch.

[0076] Furthermore, in some embodiments, in addition to including information for identifying the second switch, the wireless control signal also includes an operating status identifier, which is used to indicate the operating status of the second switch. After receiving a wireless control signal, the first switch first verifies whether the information used to identify the second switch in the wireless control signal matches the information used to identify the second switch stored in the first switch. If a match is confirmed, the first switch then controls the operating status of the first switch to synchronize with the operating status of the second switch based on the operating status identifier obtained by parsing the wireless control signal, thereby controlling the operating status of a first electrical appliance. In this embodiment, when the second switch remotely controls the first switch, it can also carry its own status information through the wireless control signal, so that after receiving the wireless control signal, the first switch synchronizes its own status to be consistent with the status of the second switch.

[0077] Furthermore, based on the aforementioned remote control of the first switch by the second switch, the first and second switches can also be paired to achieve mutual control between the first and second switches. For example, after the first switch enters learning mode, clicking the second switch to pair with it will cause the first switch to store information identifying the second switch, completing the pairing. After the second switch enters learning mode, clicking the first switch to pair with it will cause the second switch to store information identifying the first switch, completing the pairing. In this way, after learning and pairing, the first and second switches can synchronize their operating states through the exchange of wireless control signals, enabling mutual control between the first and second switches.

[0078] Specifically, in an optional embodiment, you can first short-press and then long-press any button on the first switch, and release it after the indicator light flashes; short-press and then long-press any button on the second switch, and the indicator light of the first switch goes out, indicating that the pairing is successful. After pairing is completed, single-click either the first switch or the second switch, and the execution modules of the first switch and the second switch, such as relays and indicator lights, are synchronized. If the first switch and the second switch can be connected to the terminal via the network, then after single-clicking either the first switch and the second switch, the status of the first switch and the second switch after single-clicking will also be synchronized in the terminal APP.

[0079] The inventors of this application have found that the pairing method is relatively cumbersome when pairing two or more smart wall switches for mutual control. Figure 5 As shown, the first switch, the second switch, and the third switch are taken as examples for description.

[0080] After the first switch is paired with the second switch and the third switch, the second switch stores the source identifier of the first switch, and the third switch stores the source identifier of the first switch. Therefore, the second and third switches cannot be mutually controlled. If you want to achieve mutual control between the first, second, and third switches, you also need to pair the second and third switches. Therefore, if you want to achieve any mutual control between the first, second, and third switches using this pairing method, you need to pair them six times. As the number of switches increases, the number of pairings increases exponentially. When there are many smart wall switches that need to be mutually controlled, the pairing operation is too cumbersome, affecting the user experience.

[0081] Based on this, this embodiment proposes a new pairing method for smart wall switches to significantly reduce the number of pairing operations when there are a large number of switches. In this pairing method, both the first and second switches must enter pairing mode to complete pairing, enabling direct connection and mutual control between the first and second switches. Specifically, the first switch enters pairing mode in response to a pairing operation and sends a pairing message; the pairing message carries network identification information; the second switch receives the pairing message and stores the network identification information in the pairing message; within a specified time after the first switch enters pairing mode, the second switch enters pairing mode in response to a pairing operation, thereby completing pairing with the first switch and enabling direct connection and mutual control between the first and second switches.

[0082] In this embodiment, the first switch and the second switch are paired by storing the same network identification information during pairing. The network identification information is used to indicate that the first switch and the second switch are in the same control network, so that when the first switch and the second switch subsequently control each other, the network identification information is also used to verify and respond to wireless control signals.

[0083] In this way, after the other switches are paired with any one of the first switch and the second switch, the network identification information is also stored in the other switches. Since the first switch and the second switch store the same network identification information when pairing, mutual control between the other switches and the first switch and the second switch can be achieved. Compared with the above pairing method, since each switch in this pairing method stores public network identification information (rather than the source identification of each switch), in this embodiment, pairing and mutual control between three smart wall switches only require two pairings, which greatly simplifies the pairing process when mutual control between smart wall switches is achieved. In particular, when mutual control between multiple smart wall switches is achieved, it can effectively reduce the user's pairing operations and improve the user experience.

[0084] For example, Figure 6 As shown, the control system further includes a third switch, which is powered by a strong current. After the first switch and the second switch are paired for mutual control, and the first switch and the third switch are paired for mutual control, the first switch, the second switch, and the third switch all store the same network identification information, and the second switch and the third switch automatically form a mutual control relationship, that is, there is no need to perform a pairing operation between the second switch and the third switch, and mutual control among the first switch, the second switch, and the third switch can be achieved.

[0085] Moreover, by storing the same network identification information when pairing the first switch and the second switch, when the third switch joins the control network of the first and second switches, there is no requirement for the order of operating the third switch to enter the pairing mode and operating the first or second switch to enter the pairing mode. That is, whether the third switch is operated to enter the pairing mode first to pair with the first or second switch, or the first or second switch is operated to enter the pairing mode first to pair with the third switch, pairing of the first, second, and third switches can be achieved, which is convenient for user operation and improves the success rate of mutual control pairing of multiple smart wall switches.

[0086] Specifically, when a first switch is paired with a second switch, the first switch enters pairing mode in response to a pairing operation and sends a pairing message; the pairing message carries network identification information. The network identification information can be randomly generated by the first switch. This ensures that the randomly generated network identification information is brand new each time the pairing is re-done and does not conflict with the previous one. For example, after the first switch clears the network it has joined, when re-pairing is performed, new network identification information is randomly generated, and the new network identification information does not conflict with the previously cleared network identification. The network identification information includes, but is not limited to, a random identification string generated by the first switch using a software random algorithm or hardware.

[0087] The second switch receives and stores the network identification information in the pairing message. Within a specified time after the first switch enters the pairing mode, the second switch enters the pairing mode in response to a pairing operation (such as long pressing any button or a specified button in the second switch), and completes pairing with the first switch based on the network identification information. The second switch receives and stores the network identification information in the pairing message before entering the pairing mode, specifically including: the second switch receives the pairing message before entering the pairing mode and stores the network identification information in the second memory; the second switch completes pairing with the first switch based on the network identification information after entering the pairing mode, specifically including: the second switch stores the network identification information in the second memory in the first memory; the first memory and the second memory are different memories, and the first memory is a memory that does not lose data after power failure, such as a flash memory. The second memory can be a memory that loses data after power failure, such as a RAM memory, or it can be a memory that does not lose data after power failure, but is of a different type or storage address from the second memory.

[0088] After the second switch completes pairing, it exits the pairing mode and sends a pairing success message to the outside; the pairing success message is used to indicate that the second switch is paired successfully; the first switch receives the pairing success message and stores the network identification information, for example, storing the randomly generated network identification information in its first memory, such as a flash memory, to complete pairing with the second switch.

[0089] Furthermore, a pairing message carrying network identification information sent by the first switch in pairing mode can be received by another switch. For example, upon receiving the pairing message, the third switch stores the network identification information in the pairing message, for example, temporarily storing the network identification information in a second memory of the third switch, such as a RAM memory. After receiving the pairing success message, if the third switch determines that the third switch is not a pairing target, the third switch automatically clears the network identification information stored in the RAM memory to prevent the third switch from mistakenly learning the network identification information during subsequent pairing.

[0090] In another optional embodiment, after receiving the pairing success message from the second switch, the first switch sends a pairing completion message. After receiving the pairing completion message, the third switch automatically clears the network identification information stored in the RAM memory. In this embodiment, when the smart wall switch is installed in a fixed position, the pairing message sent by the first switch can be received by the third switch. After pairing with the second switch is completed, the first switch sends a pairing completion message. In this case, the third switch is likely to receive the pairing completion message and can then clear the temporarily stored network identification information based on the pairing completion message.

[0091] In this embodiment, the first switch sends a pairing message carrying network identification information during pairing mode. All other switches that receive the pairing message can temporarily store the network identification information. In response to a user's operation on the second switch to be paired, the network identification information is then stored to complete the pairing of the first and second switches. Upon successful pairing, a feedback message is sent to instruct the other switches to clear the temporarily stored network identification information. This pairing method allows for flexible pairing between smart wall switches and is particularly suitable for pairing multiple smart wall switches.

[0092] In one example, Figure 7 As shown, the pairing of button A of the first switch and button B of the second switch is taken as an example for description, wherein C is a button of another switch such as the third switch:

[0093] (1) Press and hold A for 3 seconds to enter learning mode, also known as pairing mode. A pairing message, also known as a learning start message, is broadcast, and a network identification information, such as a network ID, is randomly generated. Each smart wall switch can only temporarily store one network ID and can only be added to one network ID.

[0094] (2) After receiving the learning start message, B and C temporarily store the temporary network ID.

[0095] (3) If B presses for 3 seconds to enter the learning mode and has a temporary network ID, pairing is successful, the network ID is stored, and a pairing success message (i.e., learning success message) is broadcast, and B exits the learning mode. After receiving the learning success message, the other button (C) for temporarily storing the ID clears the temporary network ID. (You can also wait for the learning end message sent by A instead of clearing it at this time)

[0096] (4) After receiving the learning success message from B, A exits the learning mode and broadcasts the pairing end message, i.e., the learning end message, and stores the network ID at the same time.

[0097] (5) After receiving the learning completion message, the button (C) for other temporary IDs clears the temporary network ID.

[0098] After the second switch completes pairing with the first switch, if the third switch wants to join the control network of the first and second switches, either the first and second switches respond to a pairing operation and enter a pairing mode, and within a specified time after entering the pairing mode, the third switch responds to a pairing operation and enters a pairing mode, thereby completing the pairing of the first, second, and third switches; or

[0099] The third switch enters the pairing mode in response to a pairing operation, and within a specified time after entering the pairing mode, any one of the first switch and the second switch enters the pairing mode in response to a pairing operation, thereby completing the pairing among the first switch, the second switch and the third switch.

[0100] That is, if the third switch establishes a wireless interaction relationship with either the first or second switch via a direct connection, the first, second, and third switches can wirelessly interact with each other. Furthermore, pairing between the first, second, and third switches is possible regardless of whether the third switch is operated first to enter pairing mode to pair with the first or second switch, or whether the first or second switch is operated first to enter pairing mode to pair with the third switch.

[0101] In one embodiment, if the first switch or the second switch is operated first, after either the first switch or the second switch enters pairing mode in response to a pairing operation, the first switch or the second switch broadcasts a pairing message carrying the network identification information, causing the third switch to store the network identification information in response to the pairing message; and after the third switch enters pairing mode, pairing with the first switch and the second switch is completed.

[0102] In another embodiment, if the third switch is operated first, the third switch enters the pairing mode and broadcasts a first pairing message carrying random identification information; wherein the random identification information is randomly generated by the third switch.

[0103] After either the first or second switch enters pairing mode in response to a pairing operation, it broadcasts a second pairing message carrying the network identification information. The third switch receives the second pairing message and confirms that the network identification information in the second pairing message has a higher priority than the random identification information it generated. It then stores the network identification information in the second pairing message to complete pairing with the first and second switches. For example, after receiving the second pairing message, the third switch confirms that the network identification information already exists, indicating that other switches, such as the first and second switches, have already paired with the network identification information to form a control network. The third switch then confirms that the network identification information has a higher priority than the random identification information it generated. After the third switch completes pairing, it broadcasts a pairing success message indicating that the pairing is successful, causing other switches that received the first pairing message and temporarily stored the random identification information to clear the temporarily stored random identification information. Furthermore, after the third switch completes pairing, it clears the generated random identification information.

[0104] In addition, if the third switch receives a pairing success message sent by another switch before receiving the second pairing message, and the pairing success message is used to indicate that the pairing of the other switch is successful, the random identification information is stored to complete the pairing between the third switch and the other switch. After the third switch stores the random identification information, it also includes: the third switch broadcasts a pairing completion message to the outside, so that the first switch and / or the second switch that receive the pairing completion message clear the stored random identification information. In this embodiment, after the third switch broadcasts the first pairing message carrying a random identification information, if it receives a pairing success message sent by another switch, it means that after the other switch receives the first pairing message, it stores the random identification information in its first memory, such as a flash memory, to complete the pairing. In this case, the third switch also stores the random identification information to complete the pairing with the other switch.

[0105] In one example, Figure 8 As shown, after A and B complete pairing, C wants to join the control network of A and B. In one embodiment, as shown in FIG. Figure 7 As shown in method 1, if you first press and hold A (or B), and then press and hold C, the process is the same as the above steps for pairing A and B.

[0106] In another embodiment, Figure 7 As shown in method 2, if you first long-press C, C will broadcast a learning start message carrying a random ID randomly generated by C. Then, long-press A (or B), causing A to broadcast a learning start message carrying an existing network ID (the network ID stored when A and B were paired). C will then receive A's learning start message and store the network ID in it. (The existing network ID sent by A has higher priority than the random ID generated by C, so C chooses to store A's network ID and discards its own random ID.) C then sends a learning success message, which A receives and sends a learning completion message. This allows you to join the control network of A and B even if you operate C first.

[0107] In some embodiments, if the first switch receives a specified trigger operation (e.g., a short press of a button) on any button on the first switch within a specified time after entering pairing mode, the first switch exits pairing mode and broadcasts a second specified message. Alternatively, if the first switch does not receive a first specified message (e.g., a learning start message or a learning success message) within a specified time after entering pairing mode, the first switch exits pairing mode after the specified time has passed and broadcasts a second specified message (e.g., a learning end message). The second specified message indicates that the first switch has exited pairing mode. The second specified message is used to trigger other switches that have received the pairing message to clear the stored network identification information, wherein the other switches have not completed pairing with the first switch.

[0108] For example, Figure 9 The figure shows a flow chart of the button A of the first switch after entering the learning mode. A is pressed for 3 seconds to enter the learning mode. The first switch determines whether A has joined the control network. For example, the first switch determines whether the network ID corresponding to A is stored in its first memory, such as the flash memory. If so, it means that A has joined the network ID, and then a learning start message (with network ID + learning start event) is broadcast outward. At this time, other switches within the broadcast range that have not joined the network receive the learning start message and temporarily store the temporary network ID. The first switch exits the learning mode if it determines that the broadcast has timed out for 30 seconds, or exits the learning mode if it determines that the button is pressed shortly, or exits the learning mode if it determines that a learning success message is received; when exiting the learning mode, a learning end message (with network ID + learning end event) will be broadcast at the same time.

[0109] If the first switch determines that A has not joined the network ID, but has temporarily stored a temporary ID, for example, the first switch determines that the network ID corresponding to A is not stored in its first memory such as the flash memory, but has stored a temporary ID in its second memory such as the RAM memory, then the temporary ID temporarily stored in the second memory is stored in its first memory to successfully pair with the button B that broadcasts the temporary ID; and A broadcasts a learning success message (with network ID + learning success event) to exit the learning mode.

[0110] If the first switch determines that A has neither joined a network ID nor stored a temporary ID, it generates a random network ID and broadcasts a learning start message (containing the random network ID and the learning start event). If the first switch determines that the broadcast has timed out for 30 seconds, it exits learning mode, or if it determines that a short press of the button has occurred, it exits learning mode. If a learning success message is received, the generated random network ID is stored and learning mode is exited. Exiting learning mode also broadcasts a learning end message. If a learning success message is not received, but a learning start message is received, pairing is successful based on the learning start message, the other party's new ID carried in the learning start message is stored, a learning success message is broadcast, and learning mode is exited.

[0111] In some embodiments, after the pairing between the first switch, the second switch, and the third switch is completed, any one of the first switch, the second switch, and the third switch generates and sends a wireless control signal in response to a control operation; any one of the first switch, the second switch, and the third switch that receives the wireless control signal controls the corresponding operating state to match the control result indicated by the wireless control signal in response to the wireless control signal.

[0112] The wireless control signal carries network identification information, i.e., a network ID, stored when the first switch, the second switch, and the third switch are paired; and any of the first switch, the second switch, and the third switch that receives the wireless control signal controls a corresponding operating state to match a control result indicated by the wireless control signal in response to the wireless control signal, including:

[0113] The switch that receives the wireless control signal confirms whether the network identification information in the wireless control signal matches its stored network identification information. If so, the switch switches its operating state in response to the wireless control signal; if not, the switch does not respond to the wireless control signal. For example, after confirming that the network ID carried in the wireless control signal matches its stored network ID, the switch directly responds to the wireless control signal to flip the on / off state of the corresponding relay channel.

[0114] Furthermore, the wireless control signal also includes a working state identifier; the working state identifier is used to indicate the working state corresponding to the switch that issued the wireless control signal. For example, the working state identifier can use different bits in a byte to represent the working state of each button in the switch that issued the wireless control signal. For example, 0 and 1 can be used to represent the on / off state of the relay channel corresponding to the button, respectively. Any switch among the first switch, the second switch, and the third switch that receives the wireless control signal controls the corresponding working state in response to the wireless control signal to match the control result indicated by the wireless control signal, including:

[0115] After the switch that receives the wireless control signal confirms that the network identification information in the wireless control signal matches the network identification information stored therein, the switch controls the working state of the switch that receives the wireless control signal to be consistent with the working state of the switch that sends the wireless control signal according to the working state identification in the wireless control signal.

[0116] For example, Figure 10 As shown, after button A on the first switch is paired with button B on the second switch, click button A. Before the first switch broadcasts a wireless control signal, it first determines whether there is a button within the first switch with the same network ID as button A (because other buttons on the same switch cannot receive the broadcasted wireless control signal). If so, synchronization is performed. The first switch then broadcasts a control message (containing the network ID, the first event type, and the on / off status of button A). After receiving the control message, button B first determines whether the network ID is the same. If so, it synchronizes with button A's status. After synchronization, button B broadcasts a status message containing the network ID and the second event type.

[0117] It should be noted that in this embodiment, when a control message broadcast by a first switch carries a first event type, all other switches in the same control network as the first switch, i.e., switches storing the same network identification information, will synchronize their corresponding operating states, such as the operating state of the relay channel corresponding to the paired button. The first event type may include, but is not limited to, power-on events, button events, app events, remote control events, and the like.

[0118] After the other switches synchronize their working states, they send out a status message carrying a second event type. For example, the second event type includes a mutual control event. Then, the first switch or the switch that receives the status message will not respond to the status message to avoid causing an endless message sending cycle.

[0119] In this embodiment, when a button in the first switch is manipulated, a custom message is exchanged with the second switch based on a custom communication protocol to achieve direct connection and mutual control between the first and second switches. For example, the message format for the interaction between the first and second switches based on the custom communication protocol in this embodiment is shown in Table 1 below. The custom message exchanged between the first and second switches includes a message type indication field for indicating the type of message, such as a pairing message or a control message (e.g., a wireless signal sent by the first switch to the second switch in response to a control operation, or a wireless control signal sent by the second switch to the first switch in response to a control operation). The learning (0x00) type in Table 1 indicates that the message is a pairing message, and the status (0x01) type indicates that the message is a control message. The message also includes a network identification field for indicating the network identification information of the switch, which can be, for example, a 4-byte network ID. The device type field is used to indicate the switch type, such as a single-button switch, a double-button switch, or a triple-button switch. The key value field is used to indicate the currently controlled button. The attribute field is used to indicate the message attribute, wherein the message attribute of the pairing message is different from the message attribute of the control message. The message attribute of the pairing message is used to indicate the pairing message type, and the message attribute of the control message is used to indicate the control event type. For example, in the pairing message, the attribute field can indicate whether the pairing message belongs to a learning start message, a learning success message, or a learning end message, so that the switch receiving the pairing message performs corresponding processing according to the message attribute. In the control message, the attribute field can indicate the event type of the control message, such as the first event type power-on event, key event, APP event, remote control event, or the second event type mutual control event, so that the switch receiving the control message performs corresponding control according to the event type. The working status identification field is used to indicate the working status information corresponding to the switch. For example, when the switch has multiple relay channels, each bit in 1 byte represents the on / off state of the relay channel corresponding to a button.

[0120] Table 1

[0121]

[0122] For example, let's take the example of button A1 of double-button switch A controlling button B2 of triple-button switch B. The double-button switch device type is 0x52, the double-button switch device type is 0x53, and the device key values ​​are 0x01, 0x02, and 0x04, respectively:

[0123] First, press and hold A1 for 3 seconds to enter pairing mode, also known as learning mode, and broadcast the learning start message ①: 0x000x110x220x220x440x520x010x00.

[0124] After B receives the learning start message ①, it temporarily stores the network ID: 0x110x220x220x44. Then B2 presses and holds for 3 seconds to enter the learning mode. Since there is a temporarily stored network ID, it broadcasts the learning success message ②: 0x000x110x220x220x440x530x020x02.

[0125] At this point, B2 stores the network ID "0x110x220x220x44" in its flash memory, indicating that B2 has joined the network. When B2 is subsequently clicked, it first checks whether it has a network ID. If so, it broadcasts a message with the network ID. Otherwise, it does not.

[0126] After receiving the learning success message ② from B, A sends a learning completion message ③: 0x000x110x220x220x440x520x010x01.

[0127] When the other device receives message ② or ③, it cancels the temporarily stored network ID. Meanwhile, A1 stores the network ID in its memory unit. Afterwards, when A1 is pressed and sends a message carrying the network ID, B2 can interpret this message. For example, when A1 is pressed, it sends control message ④: 0x01 0x11 0x22 0x22 0x44 0x52 0x01 0x01 0x02 (i.e., A1 is off and A2 is on).

[0128] After receiving the message, B2 determines whether the current state of B2 is off. If so, no operation is performed; otherwise, B2 completes the off operation to be consistent with the state switch of A1.

[0129] like Figure 11 As shown, this embodiment further discloses a processing method for a smart wall switch, which is used for pairing control of a first switch; the first switch is electrically connected to a power supply circuit of a first electrical appliance and is configured to control the connection or disconnection of the power supply circuit in response to a control operation; the processing method includes:

[0130] S1101: The first switch enters a pairing mode in response to a pairing operation and sends a pairing message; the pairing message is used to enable a second switch to receive and store the pairing message, and complete the pairing according to the stored pairing message after entering the pairing mode of the second switch;

[0131] S1102: After pairing is completed, the first switch wirelessly interacts with the second switch in a direct connection manner, receives and responds to a wireless control signal sent from the second switch to control the working state of the first electrical appliance.

[0132] In some embodiments, the pairing message carries network identification information;

[0133] The pairing message is used to enable the second switch to receive and store the network identification information in the pairing message before entering the pairing mode, and to complete pairing with the first switch according to the network identification information after entering the pairing mode.

[0134] In some embodiments, further comprising:

[0135] The pairing message is used to enable the second switch to receive the pairing message before entering the pairing mode and store the network identification information in the second memory, and to store the network identification information in the second memory into the first memory after entering the pairing mode; wherein the first memory and the second memory are different memories, and the first memory is a memory that does not lose data after power failure.

[0136] In some embodiments, the network identification information is randomly generated by the first switch.

[0137] In some embodiments, after the first switch sends a pairing message, the processing method further includes:

[0138] The first switch receives a pairing success message sent by the second switch; the pairing success message is sent by the second switch after pairing is completed;

[0139] The first switch stores the network identification information to complete pairing with the second switch.

[0140] In some embodiments, the pairing message is further used to enable a third switch to receive and store the network identification information in the pairing message;

[0141] The pairing success message is further used to trigger the third switch to clear the stored network identification information after receiving the pairing success message.

[0142] In some embodiments, the pairing message is further used to enable a third switch to receive and store the network identification information in the pairing message;

[0143] The processing method further comprises:

[0144] After storing the network identification information, the first switch sends a pairing completion message; the pairing completion message is used to enable the third switch to clear the stored network identification information in response to the pairing completion message.

[0145] In some embodiments, after the first switch completes pairing with the second switch, the processing method further includes:

[0146] The first switch enters a pairing mode in response to a pairing operation and sends a pairing message, so that: a third switch receives the pairing message and, within a specified time after the first switch enters the pairing mode, responds to a pairing operation and enters the pairing mode of the third switch, thereby completing pairing among the first switch, the second switch, and the third switch; or

[0147] Within a specified time after a third switch enters pairing mode in response to a pairing operation, the first switch enters pairing mode in response to a pairing operation and sends a pairing message to complete pairing among the first switch, the second switch, and the third switch.

[0148] In some embodiments, the processing method specifically includes:

[0149] After the first switch enters pairing mode in response to a pairing operation, the first switch broadcasts a pairing message carrying the network identification information, so that the third switch stores the network identification information in response to the pairing message, and completes pairing with the first switch and the second switch after the third switch enters pairing mode.

[0150] In some embodiments, within a specified time after a third switch enters a pairing mode in response to a pairing operation, the first switch enters a pairing mode in response to a pairing operation and sends a pairing message to complete pairing among the first switch, the second switch, and the third switch, specifically including:

[0151] The first switch receives a first pairing message carrying random identification information sent by the third switch; the first pairing message is sent after the third switch enters pairing mode;

[0152] The first switch enters a pairing mode in response to a pairing operation and broadcasts a second pairing message carrying the network identification information; the second pairing message is used to enable the third switch to receive and store the network identification information in the second pairing message, so as to complete pairing among the first switch, the second switch, and the third switch based on the network identification information.

[0153] In some embodiments, the processing method further comprises:

[0154] The first switch receives a pairing success message sent by the third switch; the pairing success message is sent by the third switch after receiving and storing the network identification information in the second pairing message; the pairing success message is used to indicate that the pairing of the third switch is successful;

[0155] The first switch exits the pairing mode in response to the pairing success message.

[0156] In some embodiments, the processing method further comprises:

[0157] If the first switch receives a pairing completion message sent by the third switch, the first switch exits the pairing mode in response to the pairing completion message; wherein the pairing completion message is sent after the third switch receives a pairing success message sent by a fourth switch and stores the random identification information to complete pairing with the fourth switch.

[0158] In some embodiments, the processing method further comprises:

[0159] If the first switch receives a specified trigger operation for any button of the first switch within a specified time after entering the pairing mode, the first switch exits the pairing mode and broadcasts a second specified message externally; or

[0160] If the first switch does not receive the first designated message within a specified time after entering the pairing mode, the first switch exits the pairing mode after the specified time and broadcasts a second designated message externally; the second designated message indicates that the first switch has exited the pairing mode.

[0161] In some embodiments, the second designated message is used to trigger another switch that has received the pairing message to clear the stored network identification information, wherein the other switch has not completed pairing with the first switch.

[0162] In some embodiments, the processing method further comprises:

[0163] After the first switch completes pairing with the second switch and the third switch, the first switch generates and sends a wireless control signal in response to a control operation, so that the second switch and the third switch perform corresponding control actions in response to the wireless control signal.

[0164] In some embodiments, the wireless control signal carries network identification information; the wireless control signal is also used to enable: after the second switch and the third switch receive the wireless control signal, they confirm whether the network identification information in the wireless control signal matches the locally stored network identification information. If they match, the working state of the switch is switched in response to the wireless control signal; if they do not match, the wireless control signal is not responded to.

[0165] In some embodiments, the wireless control signal also carries a working status identifier; the working status identifier is used to indicate the working status corresponding to the first switch; the wireless control signal is also used to enable: the second switch and the third switch to respond to the wireless control signal to switch the working status to match the working status indicated by the wireless control signal.

[0166] An embodiment of the present invention further provides a smart wall switch, comprising any one of the first switch, the second switch or the third switch for executing the above-mentioned processing method of the smart wall switch.

[0167] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned method when executed by a processor.

[0168] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A processing method for an intelligent wall switch, used in a first switch; characterized in that , the processing method includes: The first switch enters a pairing mode in response to a pairing operation; the first switch is configured to send a wireless signal to the outside in response to a control operation; After pairing is completed, the first switch wirelessly interacts with the second switch in a direct connection manner, receives and responds to the wireless control signal sent from the second switch to control the working state of the first electrical appliance.

2. The processing method according to claim 1, characterized in that The method further comprises: After entering the pairing mode, a pairing message is sent out; the pairing message is used to enable a second switch to receive and store the pairing message, and complete the pairing according to the stored pairing message after entering the pairing mode of the second switch.

3. The processing method according to claim 2, characterized in that The pairing message carries network identification information; The pairing message is used to enable the second switch to receive and store the network identification information in the pairing message before entering the pairing mode, and to complete pairing with the first switch according to the network identification information after entering the pairing mode.

4. The processing method according to claim 3, characterized in that The processing method further comprises: If the first switch receives a designated trigger operation for any button of the first switch within a designated time after entering the pairing mode, the first switch exits the pairing mode.

5. The processing method according to claim 3, characterized in that: The processing method further comprises: If the first switch does not receive the first designated message within a specified time after entering the pairing mode, the first switch exits the pairing mode after the specified time.

6. The processing method according to claim 1, characterized in that When the first switch is manipulated to control the working state of the first electrical appliance connected thereto, the first switch can also simultaneously send a wireless signal to the second switch to wirelessly control the working state of the second electrical appliance connected thereto.

7. The processing method according to claim 1, characterized in that The first switch or the second switch may further include a plurality of sub-indication units, each button corresponding to a sub-indication unit, and when a button is manipulated, the indication state of the sub-indication unit corresponding to the button also changes synchronously.

8. The processing method according to claim 1, characterized in that Pairing can be completed only when both the first switch and the second switch enter pairing mode.

9. An intelligent wall switch, characterized in that: The smart wall switch is used to execute the processing method described in any one of claims 1-8.

10. A control system for an intelligent wall switch, characterized in that: include: A first switch for implementing the processing method according to any one of claims 1 to 8.