Control system and processing method of intelligent wall switch and intelligent wall switch
By adopting the technology of strong power supply and direct wireless interaction in the intelligent wall switch system, the problem of single control method of smart wall switch is solved, diversified control needs are achieved, and user costs are reduced.
Patent Information
- Application Number
- CN202211152247.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-21
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-09-21
AI Technical Summary
The existing intelligent wall switch has a single control method and is difficult to meet the diverse control needs.
The intelligent wall switching system powered by a strong power supply is realized through direct wireless interaction between the first switch and the second switch. The first switch controls the connected electrical appliance state in response to a wireless control signal, and the second switch generates and transmits the wireless control signal in response to a control operation.
The control methods of smart wall switches are expanded, diversified control needs are achieved, and the battery replacement and poor feel of traditional wireless switches are avoided, while reducing user application costs.
Smart Images

Figure CN115494769B_ABST
Abstract
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 switch of electrical appliances.
[0003] With the development of intelligence, 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 for data processing and a wireless communication module for external wireless communication.
[0004] However, the 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 and a processing method of an intelligent wall switch and 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, a control system for an intelligent wall switch is provided, comprising:
[0007] The first switch is powered by strong electricity 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 a 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 of an intelligent wall switch system is provided, wherein the intelligent wall switch system comprises at least a first switch and a second switch; the first switch and the second switch are both powered by strong electricity; the processing method comprises: the first switch enters a pairing mode in response to a pairing operation, and sends a pairing message to the outside;
[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, there is provided an intelligent wall switch, which is used to execute the processing method described above.
[0012] The control system, processing method and smart wall switch of the 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 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 drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative labor.
[0014] Figure 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 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 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 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 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 is a schematic diagram of a pairing process of a button A of a first switch and a button B of a second switch in one embodiment of the present invention;
[0021] Figure 8It is a schematic diagram of a flow chart of adding a button C of a third switch to a control network of a button A of a first switch and a button B of a second switch in one embodiment of the present invention;
[0022] Fig. 9 It is a schematic diagram of the process of the button A of the first switch in one embodiment of the present invention after entering the learning mode;
[0023] Fig.10 is a schematic diagram of the mutual control process of the button A of the first switch and the button B of the second switch in one embodiment of the present invention;
[0024] Fig.11 It is a flowchart of a processing method of an intelligent wall switch system in one embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 creative work are within the scope of protection of the present invention.
[0026] The terms "first", "second", "third", "fourth", etc. (if any) in the specification 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order 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 device 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 devices.
[0027] The technical solution of the present invention is described in detail with specific embodiments below. 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 through the user's pressure and thus control the on and off of the electrical appliances. With the application of intelligence, intelligent controllers such as smart wall switches have gradually replaced traditional switches. The smart wall switch is equipped with a wireless communication circuit, which can not only directly control the on and off of the line according to the user's pressure, 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 inventor of the present application found that since the intelligent wall switch needs to send or receive wireless signals in real time, when the intelligent wall switch is used to control the on and off of the power supply line of the electrical appliance, the intelligent wall switch also needs to perform specific control on the power supply line to draw power from the power supply line to maintain the operation of the wireless communication circuit, thereby realizing real-time reception of wireless signals. When two intelligent wall switches are linked to control electrical appliances by wiring, it is difficult to coordinate the two intelligent wall switches to draw power from the wiring line at the same time, thereby failing to ensure the real-time power supply of the wireless communication circuit in each intelligent wall switch, making the intelligent wall switch unable to work normally. For example, in the existing dual control of electric lights, single-pole double-throw switches respectively arranged at the door and the bedside are usually used to control the on and off of the electric light power supply line. When any of the single-pole double-throw switches at the door and the bedside is operated, the power supply line of the electric light is directly connected or disconnected, thereby realizing dual control of the electric light. However, the modules that control the on and off of the power supply line in the smart wall switch, such as relays, only support two control states of on and off, and cannot realize the control characteristics of a single-pole double-throw switch. If any single-pole double-throw switch is operated, the line will change on and off; and if two smart wall switches are used to control the light, when one of the smart wall switches disconnects the power supply line, the other smart wall switch cannot achieve normal power supply, and then the wireless communication circuit in the smart wall switch cannot work normally and receive wireless signals, and intelligent control cannot be achieved. It can be seen that it is impossible to use two smart wall switches to replace the traditional two single-pole double-throw switches to achieve linkage control.
[0030] Therefore, in the existing wireless control of the smart wall switch, it is usually achieved by adapting a wireless switch for it. For example, when using the smart wall switch to perform dual control of lamps, 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 then control the on and off of the lamp.
[0031] However, the inventor of the present application also found that using a wireless switch to control an intelligent wall switch has the following disadvantages: There are two main types of existing wireless switches, one is a battery-powered wireless switch, and the other is a self-powered wireless switch. For a battery-powered wireless switch, the battery needs to be replaced frequently, which brings inconvenience to the user; for a self-powered wireless switch, since it needs to obtain electrical energy by pressing, its pressing stroke is larger than that of a battery switch and a strong power switch, resulting in a poor feel for the user to use. In addition, since both the self-powered switch and the battery switch need to save power, the status indicator light is generally not provided. The constant light indication, therefore, the user cannot know the switch status of the controlled device by observing the status indicator light. In short, the existing wireless switch control scheme of the intelligent wall switch cannot fully achieve the user experience of the traditional dual-control switch. And both the battery wireless switch and the self-powered switch are control devices specially configured for the intelligent wall switch. For example, if the user needs to realize the dual control of the lamp through the intelligent wall switch, a wireless switch needs to be specially configured for the intelligent wall switch, which increases the application cost of the intelligent wall switch.
[0032] Based on this, the embodiment provides a control system for solving the above technical problems, such as Figure 1 As shown, the control system at least includes 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 that can be controlled to achieve on-off control, and are provided with a processing module and other circuits with data processing capabilities, and also provided with a wireless communication module and other circuits with wireless communication capabilities. In one example, it can be a smart wall switch. The external communication method of the smart wall switch can include at least one of the following: radio frequency, Bluetooth, Wifi, mobile network, etc.
[0033] Among them, the first switch 1 is powered by strong electricity and is configured to be able to control the working state of a first electrical appliance in response to an actuation, or to control the working state of a first electrical appliance in response to a wireless control signal. The second switch 2 is powered by strong electricity and wirelessly interacts with the first switch in a direct connection manner, and is configured to be able to generate and send the wireless control signal in response to a control operation. Among them, the direct connection method can be understood as the first switch and the second switch directly interacting and controlling each other without forwarding through an intermediary device such as a gateway or a router, thereby reducing the delay time of the entire interaction process, and is not subject to the performance and working state of intermediary devices such as gateways and routers, which can improve the stability of the mutual control between the first switch and the second switch.
[0034] In the 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 working state of a first electrical appliance, and the first switch 1 includes a power supply module 101 that takes power from the circuit to convert strong alternating current into direct current; the first switch 1 also includes a processing module 102 that is powered by the direct current and 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 working state of the circuit. The first switch 1 can control the working state of a first electrical appliance in response to an action. For example, the first switch 1 can trigger and control the working state of the first electrical appliance in response to a local action, for example, the processing module 102 controls the working state of the first execution module 103 to match the control operation in response to the control operation on the first switch 1, so as to control the working 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 strong power source, such as a strong power input terminal P, and the strong power 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 neutral live wire. In some examples, the strong power 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 strong alternating current into the required direct current, and transmit the required direct current to the processing module 102, so that the processing module 102 can work 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, so as to control the on and off of the circuit where the first electrical appliance is located. For example, the first execution module 103 can control the on and 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, and 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 and 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 units or 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 indication unit 104 for indicating the working state of the first switch 1. The first indication unit 104 can be implemented as any element or combination of elements that can realize the light-emitting indication function, such as an LED lamp. The first indication 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, including but not limited to voice prompts, light signal prompts (such as the on and off of LED lights), display interface prompts (such as display screen prompts), specific structure prompts (such as laser engraving with specific text or patterns for prompts) and other prompting methods or a combination of multiple prompting methods to indicate the working state of the first execution module 103 to the outside, such as the on and off state of the relay. So that the user can know the current working state of the associated electrical appliance according to the prompt of the first indication unit 104, which is convenient for 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), the button recognition module is electrically connected to the processing module; the button 105 can trigger the corresponding button recognition module when pressed; 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. Then, the first switch 1 is triggered and controls the working state of the first electrical appliance in response to local actuation. Among them, the button recognition module in the first switch can be a switch 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 a plurality of 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, so as to control the on and off of the first execution module 103 according to the wireless signal, thereby controlling the working 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 by direct connection, and when the second switch 2 responds to a control operation (for example, a pressing operation of a button in the second switch), a wireless control signal is generated and broadcasted to the outside. The first switch 1 receives the wireless control signal by directly receiving and broadcasting based on the wireless interaction relationship established between it and the second switch 2, and can control the working state of the first electrical appliance in response to the wireless control signal.
[0041] The second switch 2 establishes a wireless interactive relationship with the first switch 1 by direct connection. In some embodiments, the second switch 2 can be directly connected to the first switch 1 through 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 through the non-standard Bluetooth communication protocol. When the second switch 2 and the first switch 1 communicate directly, the wireless control signal exchanged is a non-standard Bluetooth data signal. Exemplarily, the first switch 1 and the second switch 2 both store a custom communication protocol, such as a non-standard dental communication protocol. After the first switch 1 and the second switch 2 complete the code pairing, a direct wireless interactive relationship can be established. When the second switch 2 responds to a control operation, the processing module inside the second switch 2 encodes and generates a wireless control signal based on the custom communication protocol, and broadcasts the wireless control signal to the outside through the wireless communication unit inside the second switch 2, for example, the wireless control signal is repeatedly transmitted multiple times continuously or intermittently on the 37 broadcast channel, the 38 broadcast channel, or the 39 broadcast channel within the dental communication frequency band. After the first switch 1 directly receives the wireless control signal broadcasted by the second switch 2, it decodes the wireless control signal based on the custom communication protocol, and controls the working state of the first switch 1 according to the control instruction obtained by decoding the wireless control signal, so as to control the working state of the first electrical appliance connected to the first switch 1, so that the first switch 1 and the second switch 2 can be directly connected and controlled. Wherein, 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, verification information, etc. In addition, in other embodiments, the second switch 2 can also be directly connected to the first switch 1 through a standard communication protocol such as a standard Bluetooth communication protocol, a WIFI communication protocol, a ZIGBEE communication protocol, etc. As long as a direct wireless interactive relationship can be established between the first switch 1 and the second switch 2, the wireless signal generated by the second switch 2 can be directly sent to the first switch 1, then no matter which communication protocol is used, it does not deviate from 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 must rely on the forwarding of the 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 another smart wall switch to realize the 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 parse and forward the signal through the gateway. This method depends 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 forwarding through other intermediate devices such as gateways. This avoids the problem that if the network is interrupted when using a gateway forwarding, the first switch 1 and the second switch 2 cannot communicate and cannot achieve linkage control. Moreover, compared with the influence of network delay on information forwarding through a 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 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 thereto to match the control result indicated by the wireless control signal, thereby realizing mutual control between the intelligent wall switches powered by strong electricity, so that the intelligent wall switch can not only be the controlled party, but also be the controlling party to realize linkage control with other intelligent wall switches, effectively expanding the control mode of the intelligent wall switch, and facilitating meeting more diverse control requirements. At the same time, in the embodiment, the first switch 1 and the second switch 2 are both intelligent wall switches powered by strong electricity. Compared with controlling the intelligent wall switch by a wireless switch, the defects of frequent battery replacement or poor hand feel of the wireless switch are overcome. In addition, in this embodiment, by realizing mutual control between the intelligent wall switches powered by strong electricity, linkage control can be performed between the intelligent wall switches installed in the user's home, without the need to configure a wireless switch specifically for the intelligent wall switch for control, thereby reducing the application cost of the user to realize intelligence.
[0044] In some embodiments, the second switch includes a second indication unit and a second execution module; wherein the functions and principles of the second indication unit, the second execution module and other modules and units of the second switch are similar to the above description of the first switch, and can refer to the above description of the first switch, which will not be repeated here. Wherein, the second execution module is configured not to be directly or indirectly electrically connected to the electrical appliance; the first switch is also configured to: before, after or at the same time as controlling the working state of a first electrical appliance in response to a wireless control signal, control the first indication unit to switch to the corresponding indication state; the second switch is 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 second indication unit to generate a preset indication signal; 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 is used to remind 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 flash, a slow flash or a normally open signal. As long as the embodiment in which the preset indication signal can have a reminder function is within the protection scope of this embodiment.
[0045] In this embodiment, after the second switch establishes a wireless interactive relationship with the first switch by direct connection, when the second switch responds to a control operation such as a user pressing a button of the second switch, a wireless control signal is generated and sent outward, so that the first switch directly receives the wireless control signal and controls the working state of the first execution module to match the control result indicated by the wireless control signal, so as to control the working 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 of the strong power supply. 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, which effectively expands the control method of the smart wall switch and is convenient to meet more diverse control needs.
[0047] In some embodiments, the first switch is further configured to: before, after, or while controlling the working state of a first electrical appliance in response to a wireless control signal, control the first indication unit to switch to a corresponding indication state; the second switch is configured to: after generating and sending the wireless control signal in response to a control operation, control the indication state of the second indication unit to switch to be consistent with the indication state of the first indication unit.
[0048] In this embodiment, when the first switch controls the working state of the first execution module in response to the wireless control signal, the first indicator unit thereof is controlled to switch the indicator state. For example, when the first execution module is controlled to switch from on to off, the first indicator unit corresponding to the first execution module is controlled to switch from the indicator light on to off. At the same time, the second switch controls the indicator state of the second indicator unit thereof to switch to the same as the indicator state of the first indicator unit. For example, when the first indicator unit is switched to the indicator light off state, the second switch controls the indicator light of the second indicator unit to switch to the off state as well, so as to be synchronized with the state of the first indicator unit.
[0049] The inventor of the present application has found that in the existing scheme of wireless switch controlling wall switch, since the wireless switch needs to save power to extend its service life, the indicator light of the wireless switch as the remote control party is not synchronized with the indicator light state of the controlled wall switch when the controlled device (such as a light bulb) is in the on state. For example, for a self-generated wireless switch, since the power generated each time is limited, it is not enough to support the long-term synchronization of its indicator light state with the indicator light state of the wall switch; and in order to save battery power, the indicator light of the battery version of the wireless switch is generally set to flash only once when the wireless switch is controlled and then remain off. The indicator light state of the wireless switch and the wall switch it controls is not synchronized, which makes it impossible for the user to know the working state of the electrical appliance it controls through the indicator light state of the wireless switch, which is easy to cause user misoperation. For example, when the switch includes multiple buttons, and the multiple buttons correspond to different electrical appliances, the user cannot determine which electrical appliance it controls based on the indication state of each button. For example, 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 the embodiment, the two intelligent wall switches are powered by strong electricity, so there is no need to worry about the power supply. Therefore, when performing linkage control, after controlling the working state of the electrical appliance in response to the control operation, the indication states of the indication units of the first switch and the second switch can be switched synchronously, that is, the indication states of the indication units of the first switch and the second switch are consistent. This allows the user to determine the working state of the electrical appliance according to the indication state of either the first switch or the second switch, or to determine the switch to be linked with the electrical appliance according to the working state of the electrical appliance, so that the user can perform accurate intelligent control to improve 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 also 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, but when the wireless control signal is generated and sent in response to a control operation, the working state of the second execution module is also synchronously controlled to match the control result indicated by the wireless control signal, so that the working state of the second execution module is synchronized with the working state of the first execution module, wherein the working state of the first execution module is controlled by the first switch according to the control result indicated by the wireless control signal after receiving the wireless control signal. The processor (such as 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 working state) of the second execution module, so that the first switch and the second switch can control the indication state of the corresponding indication unit according to the working state of their respective execution modules, so as to realize that when responding to a control operation, the indication state of the second indication unit is switched to be consistent with the indication state of the first indication unit.
[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 the embodiment, when the second switch responds to a control operation, it controls its second execution module to maintain a preset working state, for example, it controls the second execution module such as a relay to maintain a normally open or normally closed working state, wherein the second execution module of the second switch can be configured not to be directly or indirectly electrically connected to any electrical appliance, that is, the second switch is not connected to a load. In addition, after the second switch generates and sends the wireless control signal in response to a control operation, the first switch controls the working state of a first electrical appliance in response to the wireless control signal, and controls the first indication unit to switch to a corresponding indication state. The second switch controls the indication state of the second indication unit to switch to the same as the indication state of the first indication unit. That is, in this embodiment, while the second switch remotely controls the first switch, even if the second execution module maintains a preset working state, for example, the second execution module does not connect to a load and maintains a normally open state, the second switch will still control the indication state of its second indication unit to switch to the same as the indication state of the first indication unit when responding to the control operation. At this time, the indication state of the second indication unit is not used to indicate the working state of the second execution module, but synchronously indicates the working state of the first execution module, that is, indicates the working state of the first electrical appliance connected to the first switch. Therefore, the indication states of the indication units of the first switch and the second switch can be switched synchronously, that is, the indication states of the indication units of the first switch and the second switch are consistent, 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.
[0055] In some embodiments, the second execution module of the second switch is used to disconnect or connect a power supply circuit of a second electrical appliance, such as a live wire or a neutral wire in a circuit where the second electrical appliance is located; 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 switch the working state to control the working state of the second electrical appliance. The first switch controls the working state of a first electrical appliance in response to the wireless control signal.
[0056] In this embodiment, the first switch and the second switch control different electrical appliances respectively, the first execution module of the first switch controls the working state of the first electrical appliance, and the second execution module of the second switch controls the working state of the second electrical appliance. When the second switch responds to a control operation applied to its button, it can control the local second execution module to switch the working state to control the working state of the second electrical appliance. At the same time, the second switch also generates and sends a wireless control signal to the outside. The first switch directly receives the wireless control signal, responds to the wireless control signal to control the working state of the first electrical appliance, so as to realize the linkage control of the first electrical appliance and the second electrical appliance through the wireless interaction between the first switch and the second switch. Among them, when the first switch controls the working state of the first electrical appliance in response to the wireless control signal, it controls the working state of its first execution module to match the control result indicated by the wireless control signal to control the working state of the first electrical appliance. For example, in an optional embodiment, after the second switch adjusts the working state of the second electrical appliance in response to a control operation, it sends the wireless control signal, so that the first switch controls the working state of the first electrical appliance in response to the wireless control signal to be consistent with the working state of the second electrical appliance. 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 a working parameter of the first electrical appliance is increased and a working parameter of the second electrical appliance is synchronously decreased, etc. The working parameters may include but are not limited to the color temperature and brightness of the lamp, the temperature of the air conditioner, the opening and closing degree of the curtain motor, etc. As long as the first switch and the second switch interact through the wireless control signal 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: when controlling the second execution module to switch the working state, control the indication state of the second indication unit to switch to match the current working state of the second execution module. The first switch is also configured to: before, after, or simultaneously with controlling the working state of a first electrical appliance in response to the wireless control signal, control the first indication unit to switch to a corresponding indication state.
[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, so as 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 to be consistent with the working state of the second electrical appliance in response to the wireless control signal, and 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, the indication state of the second indication unit is consistent with the indication state of the first indication unit, and when the linkage control of the first electrical appliance and the second electrical appliance is realized, the indication state of the indicator light is synchronously controlled, so that the user can perform accurate intelligent control according to the indication state of any one of the first switch and the second switch to improve the user experience.
[0059] like Figure 3 As shown, in some embodiments, when the second switch controls the second execution module to switch the working state, it sends the wireless control signal to the outside in response to the control operation applied to its key. That is, when the key in the second switch is manipulated, it can control the second execution module corresponding to the manipulated key to switch the working state and send the wireless control signal to the outside. In this way, the second switch can not only locally control the working state of the second electrical appliance, but also wirelessly remotely control the first electrical appliance connected to the first switch to switch the working state.
[0060] Furthermore, the first switch can also respond to a control operation and send a wireless signal to the outside; the second switch can receive and respond to the wireless signal to control the working state of the second electrical appliance. In this embodiment, on the basis of realizing the wireless remote control of the first switch by the second switch, the first switch can also send a wireless signal to the second switch when receiving a control operation to wirelessly control the working state of the second electrical appliance connected to the second switch, thereby realizing the wireless remote control of the second switch by the first switch.
[0061] Furthermore, the first switch sends the wireless signal to the outside 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 working state of the first electrical appliance connected thereto, it can also simultaneously send a wireless signal to the second switch to wirelessly control the working state of the second electrical appliance connected to the second switch, thereby realizing mutual control of the first switch and the second switch, and further realizing linkage control of the first electrical appliance and the second electrical appliance.
[0062] In some embodiments, the first switch or the second switch may include multiple buttons, such as single-button, double-button, triple-button switches, etc. The first switch or the second switch also includes multiple sub-executable modules; different sub-executable modules correspond to buttons one by one, and the buttons in the first switch can establish a pairing relationship with the buttons in the second switch, so as to establish a wireless interaction relationship between the first switch and the second switch by direct connection, thereby controlling the working state of the corresponding sub-executable module. Exemplarily, the execution modules in the first switch and the second switch can use relays, then a corresponding sub-executable module can be a relay channel, each button corresponds to a relay channel, and when the 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 button paired with it through the established wireless interaction relationship.
[0063] In addition, the first switch or the second switch may also include a plurality of sub-indicator units (such as LED indicator lights), each button corresponding to a sub-indicator 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 indicating state of the sub-indicator unit corresponding to the button also changes synchronously (such as the LED indicator light on, 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 a smart wall switch is manipulated and the working state of the corresponding sub-executable module changes, the indicating state of the sub-indicator unit corresponding to the button will also change, and correspondingly, the working state of the sub-executable module corresponding to the button of another smart wall switch paired with the button will also change synchronously, and at the same time, the indicating state of the sub-indicator unit corresponding to the button of the other smart wall switch will also change synchronously, so that when the smart wall switches are linked and controlled, the sub-executable modules and sub-indicator 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] Among them, the first execution module is used to disconnect or connect the live wire or neutral wire in the circuit where the first electrical appliance is located, and the first button k1 can respond to an action to control the working state of the first sub-execution module and thus control the working state of the first electrical appliance. The fourth execution module is used to disconnect or connect the live wire or neutral wire in the circuit where the second electrical appliance is located, and the fourth button k4 can respond to an action to control the working state of the fourth sub-execution module and thus control the working state of the second electrical appliance.
[0067] The first switch and the second switch establish a wireless interactive relationship by 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 respond to an action on the second button k2 and send a wireless control signal to the outside, so that the second switch receives and responds to the wireless control signal to control the working state of the fourth sub-executing module and then controls the working state of the second electrical appliance; the second switch can respond to an action on the third button k3 and send a wireless control signal to the outside, so that the first switch receives and responds to the wireless control signal to control the working state of the first sub-executing module and then controls the working state of the first electrical appliance.
[0068] In this embodiment, through mutual control between smart wall switches, the smart wall switch can not only directly respond to local control as a controlled party to control the working state of an electrical appliance, but also control the working state of another electrical appliance connected to another smart wall switch as a controlling party through a direct wireless interaction, which effectively expands the control mode of the smart wall switch and facilitates meeting more diverse control needs. For example, the first switch in this embodiment can be installed at the door of the bedroom, and the second switch can be installed at the head of the bedroom bed. The user can realize dual control of the first electrical appliance by manipulating the first button k1 in the first switch and the third button k3 in the second switch, and can also realize dual control of the second electrical appliance by manipulating the second button k2 in the first switch and the fourth button k4 in the second switch. The first electrical appliance and the second electrical appliance can be different controlled devices in the bedroom, such as ceiling lights, downlights, etc., so as to realize dual control of multiple electrical appliances only through two smart wall switches, enriching the control mode of the smart wall switch. Moreover, there is no need to configure a wireless switch specifically for each smart wall switch to realize dual control of the electrical appliances connected to the smart wall switch, which greatly reduces the application cost of the user to realize intelligence.
[0069] In some embodiments, when the first switch establishes a wireless interactive relationship with the second switch by direct connection, it is necessary to pair the first switch with the second switch. After pairing, the first switch and the second switch can subsequently perform wireless signal interaction. 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:
[0071] Before controlling the working state of a first electrical appliance in response to a wireless control signal, it is also possible to enter a pairing mode, also called a learning mode, in response to a pairing operation (e.g., long pressing any button or a designated button in the first switch);
[0072] The first switch receives a pairing message sent by a second switch in pairing mode, for example, by clicking any button or a designated button in the second switch to be paired to send out a pairing message; the pairing message includes information for identifying the second switch, namely, a source identifier. The information for identifying the second switch represents at least one of the following: the second switch; the button that the second switch receives manipulation during pairing; the manipulation action received by the button in the second switch during pairing. For example, the information for identifying the second switch may include, but is not limited to, the manufacturer ID, MAC address, key value, etc. 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 sends the wireless control signal in response to a control operation, wherein the wireless control signal includes information for identifying the second switch. After receiving a wireless control signal, the first switch confirms that the information for identifying the second switch in the wireless control signal matches the information for identifying the second switch stored by the first switch when pairing, for example, confirms that the information for identifying the second switch in the wireless control signal is the same as the information for identifying the second switch stored by the first switch when pairing, then determines that the received wireless control signal has been verified, and controls the working state of a first electrical appliance in response to the wireless control signal; otherwise, does not respond to the wireless control signal.
[0075] In some embodiments, after receiving a wireless control signal, the first switch confirms that 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, and can control the working state of a first electrical appliance in response to the wireless control signal. For example, after the first switch confirms that the information used to identify the second switch matches, it controls the first execution module, such as the switching state of the relay channel, to flip, thereby realizing the remote control of the first switch by the second switch.
[0076] Furthermore, in some embodiments, in addition to the information for identifying the second switch, the wireless control signal also includes a working state identifier, and the working state identifier is used to indicate the working state of the second switch. After receiving a wireless control signal, the first switch first verifies whether the information for identifying the second switch in the wireless control signal matches the information for identifying the second switch stored in the first switch. If the match is confirmed, the working state of the first switch is controlled to be synchronized with the working state of the second switch according to the working state identifier obtained by parsing the wireless control signal, so as to control the working state of a first electrical appliance. In this embodiment, when the second switch remotely controls the first switch, it can also carry its own state information through the wireless control signal, so that the first switch synchronizes its own state after receiving the wireless control signal to be consistent with the state of the second switch.
[0077] Furthermore, based on the above-mentioned realization of remote control of the first switch by the second switch, the first switch and the second switch can be paired with each other to realize mutual control between the first switch and the second switch. For example, after the first switch enters the learning mode, the second switch is clicked for pairing, and the first switch stores information used to identify the second switch to complete the pairing; after the second switch enters the learning mode, the first switch is clicked for pairing, and the second switch stores information used to identify the first switch to complete the pairing. In this way, after mutual learning to complete the pairing, the first switch and the second switch can realize synchronization of working states through the interaction of wireless control signals to realize mutual control between the first switch and the second switch.
[0078] Specifically, in an optional implementation, you can first short-press and then long-press any button of the first switch, and release it after the indicator light flashes; short-press and then long-press any button of the second switch, and the indicator light of the first switch goes out, then the pairing is successful. After the pairing is completed, click any one of the first switch and 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 through the network, after clicking any one of the first switch and the second switch, the status of the first switch and the second switch after clicking will also be synchronized in the terminal APP.
[0079] The inventor of the present application has found that when the above pairing method is used to pair more than two smart wall switches for mutual control, the pairing is relatively cumbersome. 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 first switch is paired with 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, so the second switch and the third switch cannot be mutually controlled. If you want to achieve mutual control between the first switch, the second switch, and the third switch, you also need to complete the pairing between the second switch and the third switch. In this way, if you want to achieve any mutual control between the first switch, the second switch, and the third switch through the above pairing method, you need to pair 6 times, and as the number of switches increases, the number of pairings will also increase exponentially. When there are a large number of 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 between smart wall switches to greatly reduce the number of pairing times when there are a large number of switches. In this pairing method, both the first switch and the second switch enter the pairing mode to complete the pairing, so as to realize the direct connection and mutual control between the first switch and the second switch; specifically: the first switch enters the pairing mode in response to a pairing operation, and sends a pairing message to the outside; 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 the pairing mode, the second switch responds to a pairing operation and enters the pairing mode, thereby completing the pairing with the first switch, so as to realize the direct connection and mutual control between the first switch and the second switch.
[0082] In this embodiment, the first switch and the second switch complete pairing by storing the same network identification information when 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 the wireless control signal.
[0083] In this way, after other switches are paired with any one of the first switch and the second switch, network identification information is also stored in other switches. Since the first switch and the second switch store the same network identification information when pairing, mutual control between 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), only two pairings are required to achieve pairing and mutual control between three smart wall switches in this embodiment, which greatly simplifies the pairing process when mutual control between smart wall switches is achieved, especially when mutual control between multiple smart wall switches is achieved, which can effectively reduce the user's pairing operations and improve the user experience.
[0084] For example, Figure 6 As shown, the control system also includes a third switch, and the third switch is powered by strong electricity; 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 the pairing operation between the second switch and the third switch, and the mutual control between the first switch, the second switch, and the third switch can be achieved.
[0085] Moreover, through the pairing method in which the first switch and the second switch store the same network identification information when pairing, when the third switch joins the control network of the first switch and the second switch, there is no requirement for the order of operating the third switch to enter the pairing mode and operating the first switch or the second switch to enter the pairing mode. That is, whether the third switch pairing mode is operated first to pair with the first switch or the second switch, or the first switch or the second switch is operated first to enter the pairing mode to pair with the third switch, pairing of the first switch, the second switch, and the third switch 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 the first switch is paired with the 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, so that it can be ensured that the randomly generated network identification information is brand new each time the pairing is re-done and will not conflict with the previous one. For example, after the first switch clears the network that has been joined, when re-pairing is performed, a new network identification information is randomly generated, and the new network identification information will 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 through a random algorithm of software 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 according to the network identification information. Wherein, 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 according to 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; 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, such as a flash memory. The second memory can be a memory that loses data after power failure, such as a RAM memory, or a memory that does not lose data after power failure, but it is different from the second memory in type or storage address.
[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, stores the randomly generated network identification information in its first memory such as a flash memory, to complete pairing with the second switch.
[0089] In addition, the pairing message carrying the network identification information sent by the first switch in the pairing mode can be received by other switches. For example, after receiving the pairing message, the third switch stores the network identification information in the pairing message, for example, temporarily stores the network identification information in the second memory of the third switch, such as a RAM memory. After the third switch receives the pairing success message, it is confirmed that the third switch is not a pairing target object, and the third switch automatically clears the network identification information stored in the RAM memory to avoid the third switch from mistakenly learning the network identification information during subsequent pairing.
[0090] In another optional implementation, after receiving the pairing success message fed back by 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 implementation, when the installation position of the smart wall switch is fixed, the pairing message sent by the first switch can be received by the third switch, and after completing the pairing with the second switch, the first switch sends a pairing completion message, then the third switch is likely to also receive the pairing completion message, and then can clear the temporarily stored network identification information according to the pairing completion message.
[0091] In this embodiment, the first switch sends a pairing message carrying network identification information in the pairing mode, and all other switches that receive the pairing message can temporarily store the network identification information, and then store the network identification information in response to the user's operation on the second switch to be paired to complete the pairing of the first switch and the second switch, and instruct other switches to clear the temporarily stored network identification through the message fed back after the pairing is successful. This pairing method can flexibly realize the pairing between smart wall switches, and is more suitable for pairing between multiple smart wall switches.
[0092] In one example, Figure 7 As shown, the pairing of the button A of the first switch and the 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 the learning mode, i.e. pairing mode. The pairing message, i.e. the learning start message, is broadcast, and a network identification information, such as a network ID, is randomly generated, which can also be called a random ID. Among them, each smart wall switch can only temporarily store one network ID and can only add 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., a learning success message) is broadcast, and B exits the learning mode. After receiving the learning success message, the other buttons (C) that temporarily store IDs clear 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 a pairing completion message, i.e., a learning completion message, and stores the network ID at the same time.
[0097] (5) After receiving the learning completion message, the other buttons (C) for temporarily storing IDs clear the temporary network IDs.
[0098] After the second switch completes pairing with the first switch, if the third switch is to join the control network of the first switch and the second switch, any one of the first switch and the second switch responds to a pairing operation to enter the pairing mode, and within a specified time after entering the pairing mode, the third switch responds to a pairing operation to enter the pairing mode, thereby completing the pairing of the first switch, the second switch and the third switch; or,
[0099] The third switch enters 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 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 any of the first switch and the second switch by direct connection, the first switch, the second switch, and the third switch can wirelessly interact with each other. And whether the third switch is operated to enter the pairing mode first to pair with the first switch or the second switch, or the first switch or the second switch is operated to enter the pairing mode first to pair with the third switch, the pairing of the first switch, the second switch, and the third switch can be achieved.
[0101] In one embodiment, if the first switch or the second switch is operated first, after any one of the first switch and the second switch enters pairing mode in response to a pairing operation, a pairing message carrying the network identification information is broadcast, so that the third switch stores 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, after the third switch enters the pairing mode, it broadcasts a first pairing message carrying a random identification information; wherein the random identification information is randomly generated by the third switch.
[0103] After any one of the first switch and the second switch enters the pairing mode in response to a pairing operation, a second pairing message carrying the network identification information is broadcasted. The third switch receives the second pairing message, confirms that the priority of the network identification information in the second pairing message is higher than the random identification information generated by itself, and then stores the network identification information in the second pairing message to complete the pairing with the first switch and the second switch. For example, after the third switch receives the second pairing message, it confirms that the network identification information is an existing network identification information, indicating that other switches such as the first switch and the second switch have completed the pairing with the network identification information and have formed a control network, then the third switch confirms that the priority of the network identification information is higher than the random identification information generated by itself. After the third switch completes the pairing, the third switch broadcasts a pairing success message to the outside, and the pairing success message is used to indicate that the third switch is paired successfully, so that other switches that receive the first pairing message and temporarily store the random identification information clear the temporarily stored random identification information. In addition, after the third switch completes the pairing, the third switch clears the generated random identification information.
[0104] In addition, if the third switch receives a pairing success message sent by other switches before receiving the second pairing message, and the pairing success message is used to indicate that the pairing of other switches is successful, the random identification information is stored to complete the pairing between the third switch and the other switches. After the third switch stores the random identification information, it also includes: the third switch broadcasts a pairing end message to the outside, so that the first switch and / or the second switch that receive the pairing end message clear the stored random identification information. In this embodiment, after the third switch broadcasts a first pairing message carrying a random identification information, if the third switch receives a pairing success message sent by other switches, it means that after the other switches receive the first pairing message, they store the random identification information in their first memory, such as a flash memory, to complete the pairing, and the third switch also stores the random identification information to complete the pairing with other switches.
[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, Figure 7 As shown in method 1, if you long press A (or B) first, and then long press C, the process is the same as the above-mentioned steps of pairing A and B.
[0106] In another embodiment, if Figure 7 As shown in the second method, if you long press C first, C will broadcast a learning start message, which carries a random ID randomly generated by C. Then long press A (or B), A will broadcast a learning start message, which carries an existing network ID (the network ID stored when A and B are paired), then C will receive the learning start message broadcast by A, store the network ID in the learning start message broadcast by A (the existing network ID sent by A has a higher priority than the random ID generated by C itself, so C chooses to store A's network ID and abandons the random ID generated by itself), C sends a learning success message, and A sends a learning end message after receiving it. 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) for any button in 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, 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 the pairing mode, the first switch exits the pairing mode after the specified time has passed and broadcasts a second specified message (e.g., a learning end message) externally; the second specified message indicates that the first switch exits the pairing mode. The second specified message is used to trigger other switches that receive 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, Fig. 9 The figure shows a flow chart of the button A of the first switch after entering the learning mode. Among them, A is pressed for 3s 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 broadcasts the learning start message (with network ID + learning start event) to the outside. At this time, other switches that have not joined the network within the broadcast range will temporarily store the temporary network ID after receiving the learning start message. The first switch will exit the learning mode if it determines that the broadcast has timed out for 30s, or it will exit the learning mode if it determines that the button is pressed shortly, and it will exit the learning mode if it determines that the learning success message is received; when exiting the learning mode, the 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 a flash memory, but has stored a temporary ID in its second memory such as a 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 this 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 the network ID nor stored a temporary ID, a random network ID will be generated and a learning start message (with a random network ID + learning start event) will be broadcast. If the first switch determines that the broadcast has timed out for 30 seconds, the learning mode will be exited, or if the key is short pressed, the learning mode will be exited. If a learning success message is received, the generated random network ID will be stored and the learning mode will be exited. When exiting the learning mode, a learning end message will be broadcasted. If a learning success message is not received, but a learning start message is received, pairing will be successful according to the learning start message and the new ID of the other party carried in the learning start message will be stored. A learning success message will be broadcasted and the learning mode will be exited.
[0111] In some embodiments, after completing the pairing between the first switch, the second switch and the third switch, 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 switch among the first switch, the second switch and the third switch that receives the wireless control signal controls the corresponding working 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; any switch among the first switch, the second switch, and the third switch that receives the wireless control signal controls the corresponding working state to match the 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 the network identification information stored in it. If they match, the switch switches the working state of the switch in response to the wireless control signal; if they do not match, the switch does not respond to the wireless control signal. For example, after confirming that the network ID carried in the wireless control signal is the same as the network ID stored in itself, the switch directly responds to the wireless control signal to flip the on / off state of the relay channel corresponding to the switch.
[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 sends 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 sends the wireless control signal. For example, 0 and 1 can be used to represent the on and off state of the relay channel corresponding to the button. Any switch among the first switch, the second switch and the third switch that receives the wireless control signal responds to the wireless control signal and controls the corresponding working state 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 according to the working state identification in the wireless control signal to be consistent with the working state of the switch that sends the wireless control signal.
[0116] For example, Fig.10 As shown, after the button A of the first switch is paired with the button B of the second switch, click button A. Before the first switch broadcasts the wireless control signal, it will first determine whether there is a button in the first switch with the same network ID as button A (because the broadcasted wireless control signal cannot be received by other buttons of the same switch). If so, synchronization is performed. Then the first switch broadcasts the control message (with network ID + first event type + on / off status of button A). After B receives the control message, it first determines whether the network ID is the same. If the same, it synchronizes with the state of A. After synchronization, B broadcasts the status message, and the status message carries the network ID + second event type.
[0117] It should be noted that, in this embodiment, when the control message broadcast by the first switch carries the first event type, other switches in the same control network as the first switch, i.e., switches storing the same network identification information, will synchronize the corresponding working states, such as the working state of the relay channel corresponding to the synchronization pairing button. The first event type may include, but is not limited to, power-on events, button events, APP events, remote control events, etc.
[0118] After the other switches synchronize their working states, a status message carrying a second event type is sent out, 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 the button in the first switch is manipulated, the first switch interacts with the second switch through a custom message based on a custom communication protocol to achieve direct connection and mutual control between the first switch and the second switch. Exemplarily, the message format of the first switch and the second switch interacting based on the custom communication protocol in this embodiment is shown in Table 1 below, and the custom message interacting between the first switch and the second switch includes a message type indication field for indicating the type of the message, such as a pairing message or a control message (such as 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, and the message also includes a network identification field for indicating the network identification information of the switch, 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 three-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 that 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 state identification field is used to indicate the working state 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, the button A1 of the double-key switch A controls the button B2 of the three-key switch B. The double-key switch device type is 0x52, the double-key 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 ①: 0x00 0x11 0x22 0x22 0x44 0x52 0x01 0x00.
[0124] After B receives the learning start message ①, it temporarily stores the network ID: 0x11 0x22 0x22 0x44. 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 ②: 0x00 0x11 0x22 0x22 0x440x53 0x02 0x02.
[0125] At this time, B2 stores the network ID "0x11 0x22 0x22 0x44" in the flash storage unit of B2, indicating that B2 has joined the network ID. When B2 is clicked later, it first determines whether there is a network ID. If there is, it broadcasts a message with the network ID, otherwise it does not send it.
[0126] After A receives the learning success message ② sent by B, it sends the learning completion message ③: 0x00 0x11 0x22 0x22 0x44 0x52 0x01 0x01.
[0127] Other devices receive message ② or ③ and cancel the temporary storage of network ID. At the same time, A1 stores the network ID in A1's storage unit. After that, when A1 is pressed to send a message carrying the network ID, B2 can parse this message. For example, when A1 is pressed, it sends control message ④: 0x01 0x11 0x22 0x22 0x44 0x52 0x01 0x01 0x02 (that is, 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 switching of A1.
[0129] like Fig.11 As shown, this embodiment also discloses a processing method of an intelligent 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 externally; 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 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 store the network identification information in the second memory in 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 also 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 also includes:
[0144] After storing the network identification information, the first switch sends a pairing completion message externally; 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 to the outside, so that: a third switch receives the pairing message and enters the pairing mode of the third switch in response to a pairing operation within a specified time after the first switch enters the pairing mode, so as to complete the pairing among the first switch, the second switch and the third switch; or,
[0147] 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.
[0148] In some embodiments, the processing method specifically includes:
[0149] After the first switch enters the 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 the 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 the pairing between 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 a pairing mode;
[0152] The first switch enters 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 the pairing between 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 after the third switch receives and stores the network identification information in the second pairing message; the pairing success message is used to indicate that the third switch is paired successfully;
[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 end message sent by the third switch, the first switch exits the pairing mode in response to the pairing end message; wherein the pairing end 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 designated time after entering the pairing mode, the first switch exits the pairing mode after the designated time and broadcasts a second designated message externally; the second designated message indicates that the first switch exits the pairing mode.
[0161] In some embodiments, the second designated 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.
[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: after the second switch and the third switch receive the wireless control signal, confirm whether the network identification information in the wireless control signal matches the locally stored network identification information, and if so, switch the working state of the switch in response to the wireless control signal; if not, do not respond to the wireless control signal.
[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 an intelligent wall switch, comprising any one of a first switch, a second switch or a third switch for executing the processing method of the intelligent wall switch.
[0167] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method is implemented.
[0168] A person skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned 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 control system for an intelligent wall switch, characterized in that: include: A first switch, electrically connected to a power supply circuit of a first electrical appliance, and configured to control the connection or disconnection of the power supply circuit in response to a control operation; The second switch comprises: At least one button for receiving a control operation; and, A signal transmitting unit, the signal transmitting unit is operably coupled to the button and is configured to send a wireless control signal to the outside in response to a control operation applied to the button; Wherein, the first switch and the second switch each include at least one power supply port for connecting to a live wire to connect to a strong power source, and the second switch wirelessly interacts with the first switch in a direct connection manner; The first switch further includes: a signal receiving unit, configured to receive and control the working state of the first electrical appliance in response to the wireless control signal; A first execution module, used to disconnect or connect the power supply circuit of the first electrical appliance; The first switch controls the connection or disconnection of the power supply circuit in response to a control operation, and is specifically configured as follows: The first switch controls the first execution module to act in response to the control operation on the first switch, so as to control the connection or disconnection of the power supply circuit; The first execution module is controlled by the signal receiving unit; the signal receiving unit receives and controls the working state of the first electrical appliance in response to the wireless control signal, specifically for: In response to the wireless control signal, the working state of the first execution module is controlled to match the control result indicated by the wireless control signal, so as to control the working state of the first electrical appliance.
2. The control system according to claim 1, characterized in that: The first switch includes a first indication unit for indicating the working state of the first switch; the second switch includes a second indication unit; The first switch is further configured to: before, after, or simultaneously with controlling the working state of the first electrical appliance in response to the wireless control signal, control the first indication unit to switch to a corresponding indication state; The second switch is further configured to control the indication state of the second indication unit to be consistent with the indication state of the first indication unit after sending a wireless control signal to the outside in response to the control operation applied to the button.
3. The control system according to claim 2, characterized in that: The second switch includes a second execution module; the second execution module is configured to be in a no-load state; the second switch is further configured to: when the wireless control signal is generated and sent 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; The second switch controls the indication state of the second indication unit to be switched to be consistent with the indication state of the first indication unit, specifically for: The second switch controls the indication state of the second indication unit according to the working state of the second execution module, so that the indication state of the second indication unit is switched to be consistent with the indication state of the first indication unit.
4. The control system according to claim 2, characterized in that: The second switch includes a second execution module, and the second execution module is configured to maintain a preset working state.
5. The control system according to claim 1 or 2, characterized in that: The second switch includes a second execution module, which is used to disconnect or connect a power supply circuit of a second electrical appliance; 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 button, so as to control the working state of the second electrical appliance.
6. The control system according to claim 5, characterized in that: The second switch is further configured to send the wireless control signal to the outside in response to the control operation applied to the button when controlling the second execution module to switch the working state.
7. The control system according to claim 6, characterized in that: The first switch is further configured to send a wireless signal in response to a control operation; the second switch is configured to receive and control the working state of the second electrical appliance in response to the wireless signal.
8. The control system according to claim 7, characterized in that: The first switch is also configured to send the wireless signal externally when controlling the connection or disconnection of the power supply circuit of the first electrical appliance in response to a control operation.
9. The control system according to claim 7, characterized in that: The first switch includes a first execution module, 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 further configured to: control the first execution module to switch the working state in response to the control operation applied to the first button; and 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.
10. The control system according to any one of claims 1 to 4, characterized in that: The first switch is further configured to: Before controlling the working state of the first electrical appliance in response to the wireless control signal, the device can also enter a pairing mode in response to a pairing operation; In pairing mode, receiving a pairing message sent by a second switch; the pairing message includes a source identifier of the second switch; The source identifier of the second switch is stored, and pairing with the second switch is completed to establish a wireless interaction relationship with the second switch in a direct connection manner.
11. The control system according to claim 10, characterized in that: The wireless control signal includes the source identifier of the second switch; the first switch controls the working state of the first electrical appliance in response to the wireless control signal, and is specifically configured as follows: After receiving a wireless control signal, it is confirmed that the source identifier carried in the wireless control signal matches the source identifier stored in the first switch, and the first electrical appliance is controlled to switch the working state in response to the wireless control signal.
12. The control system according to claim 10, characterized in that: The wireless control signal includes a working state identifier, and the working state identifier is used to indicate the working state of the second switch; the first switch controls the working state of the first electrical appliance in response to the wireless control signal, and is specifically configured as follows: After receiving a wireless control signal, the wireless control signal is parsed to obtain the working state identifier, and the working state of the first switch is controlled to be synchronized with the working state of the second switch according to the working state identifier, so as to control the first electrical appliance to switch the working state.
13. The control system according to any one of claims 1 to 4, characterized in that: The first switch is further configured to: Before controlling the working state of the first electrical appliance in response to the wireless control signal, the device can also respond to a pairing operation, enter a pairing mode, and send a pairing message externally; The second switch is further configured to receive the pairing message and enter the pairing mode of the second switch in response to a pairing operation within a specified time after the first switch enters the pairing mode, thereby completing pairing with the first switch.
14. The control system according to claim 13, characterized in that: The pairing message carries network identification information; The second switch is further configured to: receive and store the network identification information in the pairing message before entering the pairing mode in response to a pairing operation; and complete pairing with the first switch according to the network identification information after entering the pairing mode.
15. The control system according to claim 14, characterized in that: The second switch is further configured to: after pairing is completed, exit the pairing mode and send 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 is further configured to: receive the pairing success message and store the network identification information to complete pairing with the second switch.
16. The control system according to claim 14 or 15, characterized in that: The control system further includes a third switch, which is powered by strong electricity and is configured as follows: If the third switch is paired with any one of the first switch and the second switch, the first switch, the second switch and the third switch can wirelessly interact with each other.
17. The control system according to claim 16, characterized in that: After the second switch completes pairing with the first switch, any one of the first switch and the second switch enters pairing mode in response to a pairing operation and sends a pairing message externally, and within a specified time after entering the pairing mode, the third switch enters the pairing mode of the third switch in response to a pairing operation, thereby completing the pairing of the first switch, the second switch and the third switch; or, 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 and sends a pairing message to the outside, thereby completing the pairing among the first switch, the second switch and the third switch.
18. The control system according to claim 17, characterized in that: After any one of the first switch and the second switch enters the pairing mode in response to a pairing operation, a pairing message carrying the network identification information is broadcasted, so that the third switch stores the network identification information in response to the pairing message; and after the third switch enters the pairing mode, pairing with the first switch and the second switch is completed.
19. The control system according to claim 17, characterized in that: The third switch is configured to: after entering the pairing mode, broadcast a first pairing message carrying a random identification information; After any one of the first switch and the second switch enters the pairing mode in response to a pairing operation, a second pairing message carrying the network identification information is broadcasted, so that the third switch receives and stores the network identification information in the second pairing message, thereby completing the pairing among the first switch, the second switch and the third switch.
20. The control system according to claim 19, characterized in that: The third switch receives and stores the network identification information in the second pairing message, and is configured to: When the third switch receives the second pairing message, it stores the network identification information in the second pairing message and broadcasts a pairing success message externally, where the pairing success message is used to indicate that the third switch is paired successfully.
21. The control system according to any one of claims 17 to 20, characterized in that: The first switch, the second switch and the third switch are configured together as follows: After completing the pairing between the first switch, the second switch and the third switch, any one of the first switch, the second switch or the third switch generates and sends a wireless control signal in response to a control operation; the other two switches can perform corresponding control actions in response to the wireless control signal.
22. The control system according to claim 21, characterized in that: The wireless control signal carries network identification information; before responding to the wireless control signal, any one of the first switch, the second switch or the third switch is also used to confirm whether the wireless control signal is legal; wherein, if the network identification information in the wireless control signal matches the locally stored network identification information, it is legal, and the working state of the switch is switched in response to the wireless control signal; otherwise, it is illegal, and the wireless control signal is not responded to.
23. The control system according to claim 22, characterized in that: The wireless control signal also carries a working state identifier; the working state identifier is used to indicate the working state corresponding to the switch that sends the wireless control signal; any switch among the first switch, the second switch and the third switch that receives the wireless control signal performs a corresponding control action in response to the wireless control signal, and is configured as follows: After the switch receiving the wireless control signal confirms that the wireless control signal is legitimate, the working state of the switch receiving the wireless control signal is controlled to be consistent with the working state of the switch sending the wireless control signal according to the working state identifier in the wireless control signal.
24. A processing method for an intelligent wall switch, used in a first switch; characterized in that: The first switch includes a first execution module, which is used to disconnect or connect 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: The first switch enters a pairing mode in response to a pairing operation and sends a pairing message externally; 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; 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 by the second switch to control the working state of the first electrical appliance; The processing method also includes: The first switch controls the first execution module to act in response to the control operation on the first switch, so as to control the connection or disconnection of the power supply circuit; In response to the wireless control signal, the working state of the first execution module is controlled to match the control result indicated by the wireless control signal, so as to control the working state of the first electrical appliance.
25. The processing method according to claim 24, 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 complete pairing with the first switch according to the network identification information after entering the pairing mode.
26. The processing method according to claim 25, characterized in that Further including: 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 store the network identification information in the second memory in 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.
27. The processing method according to claim 25, characterized in that: The network identification information is randomly generated by the first switch.
28. The processing method according to claim 25, characterized in that: After the first switch sends a pairing message, the processing method further includes: 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; The first switch stores the network identification information to complete pairing with the second switch.
29. The processing method according to claim 28, characterized in that The pairing message is also used to enable a third switch to receive and store the network identification information in the pairing message; The pairing success message is also used to trigger the third switch to clear the stored network identification information after receiving the pairing success message.
30. The processing method according to claim 28, characterized in that The pairing message is also used to enable a third switch to receive and store the network identification information in the pairing message; The processing method also includes: After storing the network identification information, the first switch sends a pairing completion message externally; 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.
31. The processing method according to any one of claims 25 to 28, characterized in that: After the first switch completes pairing with the second switch, the processing method further includes: The first switch enters a pairing mode in response to a pairing operation and sends a pairing message to the outside, so that: a third switch receives the pairing message and enters the pairing mode of the third switch in response to a pairing operation within a specified time after the first switch enters the pairing mode, so as to complete the pairing among the first switch, the second switch and the third switch; or, 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.
32. The processing method according to claim 31, characterized in that The processing method specifically includes: After the first switch enters the 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 the pairing mode.
33. The processing method according to claim 31, characterized in that The step of: 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 the pairing of the first switch, the second switch, and the third switch, specifically comprising: 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 a pairing mode; The first switch enters 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 the pairing between the first switch, the second switch and the third switch based on the network identification information.
34. The processing method according to claim 33, characterized in that The processing method also includes: The first switch receives a pairing success message sent by the third switch; the pairing success message is sent after the third switch receives and stores the network identification information in the second pairing message; the pairing success message is used to indicate that the third switch is paired successfully; The first switch exits the pairing mode in response to the pairing success message.
35. The processing method according to claim 33, characterized in that The processing method also includes: If the first switch receives a pairing end message sent by the third switch, the first switch exits the pairing mode in response to the pairing end message; wherein the pairing end 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.
36. The processing method according to claim 25, characterized in that The processing method also includes: 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, If the first switch does not receive the first designated message within a designated time after entering the pairing mode, the first switch exits the pairing mode after the designated time and broadcasts a second designated message externally; the second designated message indicates that the first switch exits the pairing mode.
37. The processing method according to claim 36, characterized in that The second designated 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.
38. The processing method according to any one of claims 32 to 35, characterized in that: The processing method also includes: 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.
39. The processing method according to claim 38, characterized in that The wireless control signal carries network identification information; the wireless control signal is also used to: after the second switch and the third switch receive the wireless control signal, confirm whether the network identification information in the wireless control signal matches the locally stored network identification information; if so, switch the working state of the switch in response to the wireless control signal; if not, do not respond to the wireless control signal.
40. The processing method according to claim 39, characterized in that 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.
41. The processing method according to any one of claims 24-30, 32-37, 39 and 40, characterized in that: The processing method also includes: When the button in the first switch is manipulated, a custom message is exchanged with the second switch based on a custom communication protocol; wherein the custom message includes: A message type indication field is used to indicate the message type, including a pairing message or a control message; A network identification field, used to indicate the network identification information of the first switch; A device type field, used to indicate the switch type of the first switch; A key value field, used to indicate the key currently being manipulated by the first switch; An attribute field, used to indicate a message attribute, wherein the message attribute of the paired message is different from the message attribute of the control message, the message attribute of the paired message is used to indicate a paired message type, and the message attribute of the control message is used to indicate a control event type; The working state identification field is used to indicate the working state corresponding to the first switch.
42. An intelligent wall switch, characterized in that: The smart wall switch is used to execute the processing method described in any one of claims 24-41.
Citation Information
Patent Citations
Smart home system and control method thereof
CN104898449A
Intelligent controller, and processing method and control system thereof
CN113300473A
Wireless pairing method and device and storage medium
CN114143908A
Multi-control switch and switching device
CN212570779U