Smart wall switch
By designing a smart wall switch with multiple working modes, including a first mode that allows forced switching back to relay control and physical operation switching, the problem of device malfunction caused by network failures is solved, enabling convenient power-off restart and safe mode switching.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN LINPTECH
- Filing Date
- 2024-01-18
- Publication Date
- 2026-06-26
AI Technical Summary
Existing smart wall switches cannot effectively control smart devices when the network fails, leading to device malfunction. Furthermore, mode switching relies on the network and lacks convenient physical operation methods.
Design an intelligent wall switch with multiple working modes, including a first mode that forces a switch back to relay control, a mode switch that allows for convenient switching via a physical operation mode switch, and ensures that the controlled device can be restarted after a power outage in case of network failure. The switch can also switch modes during a power outage via a DIP switch.
This enables convenient physical power-off restart of intelligent controlled devices in the event of network failure, improving system stability and security, avoiding the inconvenience of tripping the circuit breaker, and enhancing the convenience and security of mode switching.
Smart Images

Figure CN120652850B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to a smart wall switch. Background Technology
[0002] With the development of smart homes, smart wall switches are gradually replacing traditional wall switches. As a triggering device for smart homes, smart wall switches play a crucial role in the entire system.
[0003] A wall switch, as the name suggests, is a switching device that can be embedded in a wall for use, such as a wall switch that is compatible with the domestically common 86-type junction box.
[0004] Therefore, the present invention aims to provide a new smart wall switch. Summary of the Invention
[0005] One objective of this invention is to provide a smart wall switch, wherein the smart wall switch has multiple operating modes, and the multiple operating modes can be switched.
[0006] Another objective of this invention is to provide a smart wall switch, wherein among multiple operating modes, at least a first mode is provided, in which the smart wall switch can forcibly switch back to the state of the control relay, so as to solve the problem of smart controlled devices that draw power from the smart wall switch losing control due to network failure.
[0007] Another objective of this invention is to provide a smart wall switch in which multiple operating modes can be conveniently switched by physical operation of the mode switching unit. Regardless of the operating mode of the smart wall switch, when a smart controlled device powered by the smart wall switch malfunctions, it can be switched back to the first mode to cut off power to the smart controlled device and restart it by operating the relay.
[0008] Another objective of this invention is to provide a smart wall switch in which the mode switching unit operates physically to address mode switching issues in the event of a network failure.
[0009] Another objective of this invention is to provide a smart wall switch, wherein the switching between multiple gears of the mode switching unit can be performed by the user, and the multiple working modes of the processing module are all preset working modes, allowing the user to conveniently switch the working modes of the smart wall switch by switching the gears of the mode switching unit.
[0010] Another objective of this invention is to provide a smart wall switch, wherein the mode switching unit switches gears when the processing module is powered off.
[0011] Another objective of this invention is to provide a smart wall switch, wherein when the DIP switch is operated to switch gears, the control board is in a power-off state. After the gear switching is completed, when the control board is powered on again, it only needs to read the current gear of the DIP switch to complete the switching of the working mode. Compared with the method of switching gears while the control board is powered on, this embodiment is obviously safer and more stable.
[0012] Another objective of this invention is to provide an intelligent wall switch in which multiple positions of the mode switching unit are intuitively displayed to the user, allowing the user to quickly lock the position corresponding to the desired working mode and switch quickly. This enables the processing module to directly jump from the current working mode to the user's desired working mode based on the position indication of the mode switching unit after switching, without having to switch each working mode one by one, thus improving the efficiency of working mode switching.
[0013] Another objective of this invention is to provide a smart wall switch, wherein in a first mode, the first button and the relay are strongly associated, that is, the first button is always in the first function to control the corresponding relay action, and the first button cannot be set to the second function by a switching command; in a second mode, the first button and the relay are weakly associated, that is, the triggering function of the first button is not fixed, but can be changed, and it is only associated with the relay when the first button is configured to the first function. If the first button is configured to the second function, it is not directly associated with the relay.
[0014] Another objective of this invention is to provide an intelligent wall switch, wherein in a first mode, the function of the first button used to control the on / off state of the relay is always in the first function and cannot be changed by external button function configuration data.
[0015] Another objective of this invention is to provide a smart wall switch, wherein in a third mode, all the first buttons of the smart wall switch are in the second function and cannot be changed through external button function configuration data. That is, at this time, the smart wall switch is equivalent to a wireless controller and does not have the direct control capability of a relay, so as to facilitate usage scenarios that do not require the control of a relay.
[0016] Another objective of this invention is to provide a smart wall switch in which users can freely combine "AND", "OR", and "NOT" operations and trigger results through a terminal to form complex associated control scenarios, thereby enriching the control functions of buttons set as secondary functions.
[0017] Another objective of this invention is to provide a smart wall switch, wherein the smart wall switch has a message function, that is, the user can edit some prompts and send them to the smart wall switch for display, so as to serve as a reminder.
[0018] Another objective of this invention is to provide a smart wall switch, wherein the smart wall switch displays different content at different demand times, and the first state and the second state of the processing module can be switched to display different content on the display screen respectively. In the first state, frequently used first content is displayed, and in the second state, infrequently used and occasional second content is displayed, so that the first content and the second content can be displayed in a time-sharing manner when the display screen size is limited, thereby satisfying the message function.
[0019] Another objective of this invention is to provide a smart wall switch, wherein when the smart wall switch displays a second content, the second content will be continuously displayed on the screen before the user operates the operating component to serve as a prompt; after the user operates the operating component, the screen will re-display the first content to identify the operating component.
[0020] Another objective of this invention is to provide a smart wall switch, wherein after a user leaves a message, the processing module of the smart wall switch can switch to a second state to refresh the display content of the screen. In the second state, the message text will cover the button name, so that the screen only displays the message text, thereby improving the utilization rate of the screen and enhancing the prompting effect of the message text.
[0021] Another object of the present invention is to provide a smart wall switch, wherein the smart wall switch is capable of defining a second content remotely and / or locally directly connected.
[0022] Another object of the present invention is to provide a smart wall switch, wherein the data corresponding to the second content of the smart wall switch is stored in the cloud and / or on the terminal so that it can be reused.
[0023] Another objective of this invention is to provide a smart wall switch, wherein the smart wall switch has multiple sub-states in a first state, and the text size displayed on the screen is different between different sub-states to suit different groups of people.
[0024] Another objective of this invention is to provide a smart wall switch, wherein the font on the display screen in the second sub-state is larger than the font on the display screen in the first sub-state, so that the font size on the display screen can be conveniently switched via a terminal to adapt to different scenarios.
[0025] Another objective of this invention is to provide a smart wall switch, wherein the smart wall switch, when communicating with the outside world based on a Bluetooth communication unit, has the ability to modify the content displayed on the display screen in the cloud.
[0026] Another objective of this invention is to provide a smart wall switch, wherein the terminal can send the first text configuration message to the Bluetooth gateway to which the smart wall switch is connected via the cloud, and then the Bluetooth gateway forwards it to the smart wall switch.
[0027] Another objective of this invention is to provide a smart wall switch in which data corresponding to multiple characters are distributed and loaded into at least two first text configuration messages and sent to the smart wall switch, thereby reducing the capacity required for a single first text configuration message.
[0028] Another objective of this invention is to provide a smart wall switch, wherein the smart wall switch can send multiple text-corresponding data to the smart wall switch separately in multiple batches, and the smart wall switch can correctly concatenate the multiple scattered first text configuration messages after receiving them to restore the order in which the multiple texts were defined on the terminal, thereby reducing the carrying capacity of a single first text configuration message, so that the smart wall switch can access more third-party platforms.
[0029] Another objective of this invention is to provide a smart wall switch, wherein each first text configuration message carries only one piece of data corresponding to a single character, so as to facilitate retransmission in the event of transmission anomalies (e.g., packet loss).
[0030] Another objective of this invention is to provide a smart wall switch in which the text is sent in the order it is defined on the terminal.
[0031] Another objective of this invention is to provide a smart wall switch, wherein if the first text configuration message corresponding to the preceding text fails to be sent, it will be resent.
[0032] Another objective of this invention is to provide a smart wall switch, wherein after the first text configuration message corresponding to the preceding text is successfully sent, the smart wall switch will send a success message to the terminal to inform the terminal that the current text has been successfully sent, so that the terminal can continue to send the next text.
[0033] Another objective of this invention is to provide a smart wall switch, wherein each first text configuration message obtained through the cloud has the same length, and the length is 4 to 8 bytes; wherein the data corresponding to the text it carries occupies less than or equal to 4 bytes, so as to improve communication efficiency and reduce network overhead.
[0034] Another objective of this invention is to provide a smart wall switch that switches to a direct connection mode to improve the success rate in the event of a failure to communicate via the cloud.
[0035] Another objective of this invention is to provide a smart wall switch, wherein each second text configuration message corresponding to text data obtained via Bluetooth direct connection can carry data corresponding to multiple characters, thereby improving efficiency.
[0036] To achieve at least one of the above objectives, the present invention provides an intelligent wall switch, comprising: an operating element including a first button; at least one relay; and a processing module electrically connected to at least one mode switching unit to indicate a current operating mode via the mode switching unit; wherein the processing module has multiple operating modes, and the multiple operating modes are switchable; the processing module is configured to switch to the corresponding operating mode according to the indication of the mode switching unit; the multiple operating modes of the processing module include at least a first mode, wherein in the first mode, the processing module is configured to: configure the triggering function of at least one first button as a first function to control the relay associated with the first button to operate after detecting that the first button has been subjected to external operation.
[0037] According to an embodiment of the present invention, the mode switching unit has multiple gears for indicating multiple operating modes of the processing module; the multiple gears of the mode switching unit are switchable, and the processing module switches to the corresponding operating mode according to the current gear of the mode switching unit after power-on.
[0038] According to an embodiment of the present invention, the smart wall switch further includes a communication module; the processing module is electrically connected to the communication module to enable external communication through the communication module; the processing module also has a second mode among its multiple operating modes, wherein in the second mode, the triggering function of at least one first button is switchable, and the processing module can switch the triggering function of the first button to the second function or the first function according to a switching instruction; wherein when the triggering function of the first button is switched to the second function, the processing module can communicate externally through the communication module in response to an external operation applied to the first button, and the associated relay remains constantly connected.
[0039] According to an embodiment of the present invention, the switching instruction includes key function configuration data received from an external source; in the second mode, the processing module is further configured to default the trigger function of the first key to a first function, and in the second mode, the processing module can receive external key function configuration data through the communication module and switch the trigger function of the first key according to the key function configuration data.
[0040] According to an embodiment of the present invention, in the first mode, the processing module is further configured to configure the first button as the first function after receiving button function configuration data for configuring the first button as the second function.
[0041] According to an embodiment of the present invention, the processing module further includes a third mode among its multiple operating modes, and in the third mode, the processing module is configured to configure at least one first button as a second function, and will not respond to external button function configuration data to change the trigger function of the first button.
[0042] According to an embodiment of the present invention, the operating element further includes a second button; the processing module is further configured to: configure the triggering function of at least one second button as a second function, and maintain the second button in the second function when the operating mode of the processing module is switched to any operating mode; under the second function, the processing module is able to communicate externally through the communication module in response to the second button being subjected to an external operation.
[0043] According to an embodiment of the present invention, the processing module is capable of communicating with the cloud via the communication module; wherein, when the first button or the second button is configured as a second function, the processing module is capable of communicating externally via the communication module in response to an external operation being applied to the first button or the second button, specifically for: sending a preset signal externally in response to an operation being applied to the first button or the second button, so that the cloud receives the preset signal, and controls the execution of a trigger result defined by the target scenario based on the preset signal and a target scenario matching the preset signal; wherein the target scenario is generated by the user freely defining the mapping relationship between at least one operation event and at least one trigger result on a terminal, each preset signal represents an operation event of a first button or the second button being operated and set as a second function, and each trigger result is at least one executable function of at least one controlled device belonging to the user of the smart wall switch.
[0044] According to an embodiment of the present invention, the device further includes a bottom shell, a base shell, and a control board. The operating element and the control board are both disposed on the base shell to form a control assembly. The mode switching unit is disposed on the control assembly and electrically connected to a processing module disposed on the control board via the control board. The mode switching unit is disposed on the side of the control board facing the bottom shell for concealed installation. The control assembly is detachably connected to the bottom shell via the base shell, so that the mode switching unit can be detached from the bottom shell along with the control assembly.
[0045] According to an embodiment of the present invention, the mode switching unit includes a DIP switch, which includes a plurality of toggle positions, each toggle position representing a gear position, thereby enabling the processing module to switch between different operating modes by switching between the toggle positions; the base shell is used to house the relay, and there is a detachable connection between the base shell and the base shell; the DIP switch is disposed on the side of the control board facing the base shell for concealed installation; when the control component is mounted on the base shell, the DIP switch is obscured and cannot be operated; when the control component is detached from the base shell, the DIP switch is exposed and can be operated.
[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. The foregoing inventive concepts can be combined in any way, and these and other objectives of the invention will be fully realized through the following detailed description and accompanying drawings.
[0047] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. These drawings are incorporated in and constitute a part of this specification, illustrating embodiments consistent with this application and serving together with the specification to explain the principles of this application. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0049] Figure 1 This is a block diagram of a control system according to an embodiment of the present invention;
[0050] Figure 2 This is a block diagram illustrating a smart wall switch according to an embodiment of the present invention. Figure 1 ;
[0051] Figure 3 This is a partial circuit diagram of a DIP switch in one embodiment of the present invention;
[0052] Figure 4 This is a block diagram of a smart wall switch with a communication module introduced in one embodiment of the present invention;
[0053] Figure 5 This is a block diagram illustrating a smart wall switch according to an embodiment of the present invention. Figure 2 ;
[0054] Figure 6 This is a block diagram of a smart wall switch integrated into a display screen according to one embodiment of the present invention;
[0055] Figure 7 This is a schematic diagram of the interface of a smart wall switch displaying the first content in one embodiment of the present invention;
[0056] Figure 8 This is a schematic diagram of the interface of a smart wall switch displaying second content in one embodiment of the present invention;
[0057] Figure 9 This is a schematic diagram of the interface for setting second content via a mobile phone in one embodiment of the present invention;
[0058] Figure 10 This is a schematic diagram of the display state of the smart wall switch in the second sub-state according to an embodiment of the present invention;
[0059] Figure 11 This is a block diagram of a smart wall switch after incorporating a character chip in one embodiment of the present invention;
[0060] Figure 12 This is a block diagram of a smart wall switch with a radar module incorporated in one embodiment of the present invention;
[0061] Figure 13 This is a partial circuit diagram of an embodiment of the present invention for automatically identifying the style of a smart wall switch;
[0062] Figure 14 This is a schematic diagram of a partial control circuit for RGB colored lights in one embodiment of the present invention;
[0063] Figure 15 This is a schematic diagram of the structure of an existing smart switch;
[0064] Figure 16 This is a cross-sectional view of the button and the flexible arm of an existing smart switch;
[0065] Figure 17 This is a schematic diagram of the deformation of the elastic arm of an existing smart switch;
[0066] Figure 18 This is a schematic diagram of an elastic support structure according to an embodiment of the present invention;
[0067] Figure 19 This is a cross-sectional view of a button and an elastic support member according to an embodiment of the present invention;
[0068] Figure 20a This is a top view of the elastic support member of the smart wall switch in one embodiment of the present invention after it is pressed when the button is not connected;
[0069] Figure 20bThis is a top view of the elastic support member of the smart wall switch in one embodiment of the present invention after it is connected to the button and pressed by the button;
[0070] Figure 21a This is a top view of the elastic support member of the smart wall switch in one embodiment of the present invention;
[0071] Figure 21b This is a top view of the elastic support member of the smart wall switch in one embodiment of the present invention;
[0072] Figure 21c This is a top view of the elastic support member of the smart wall switch in one embodiment of the present invention;
[0073] Figure 22 This is a schematic diagram of the intelligent wall switch structure in one embodiment of the present invention;
[0074] Figure 23 This is an exploded view of the intelligent wall switch structure according to an embodiment of the present invention;
[0075] Figure 24 This is a schematic diagram of the button assembly of a smart wall switch in one embodiment of the present invention;
[0076] Figure 25 This is a schematic diagram of the installation of the display screen and the base shell of the smart wall switch in one embodiment of the present invention;
[0077] Figure 26 This is a schematic diagram of the control board structure of an intelligent wall switch according to an embodiment of the present invention;
[0078] Figure 27 This is a perspective sectional view of a smart wall switch according to an embodiment of the present invention;
[0079] Figure 28 This is a schematic diagram of the light guide structure of a smart wall switch in one embodiment of the present invention;
[0080] Figure 29 This is a schematic diagram of the light guide structure of a smart wall switch in one embodiment of the present invention;
[0081] Figure 30 This is an assembly diagram of the base shell, control board, and limiting shell of an intelligent wall switch according to one embodiment of the present invention;
[0082] Figure 31 This is a schematic diagram of the base shell and control board of an intelligent wall switch in one embodiment of the present invention;
[0083] Figure 32 This is a schematic diagram of the assembly of the base shell and bottom shell of the smart wall switch in one embodiment of the present invention;
[0084] Figure 33This is a schematic diagram of the structure of the bottom shell, power board and isolation cover of the smart wall switch in one embodiment of the present invention;
[0085] Figure 34 This is a schematic diagram of the structure of a smart wall switch after the button is removed from the base shell in one embodiment of the present invention;
[0086] Figure 35 This is a schematic diagram of the button assembly of a four-button version of the smart wall switch according to an embodiment of the present invention.
[0087] Figure 36 This is a schematic diagram of the button assembly of a two-button version of the smart wall switch according to an embodiment of the present invention.
[0088] Figure 37 This is a block diagram illustrating a smart wall switch according to an embodiment of the present invention. Figure 3 ;
[0089] Figure 38 This is a block diagram illustrating a smart wall switch according to an embodiment of the present invention. Figure 4 ;
[0090] Figure 39 yes Figure 38 A block diagram of a smart wall switch after the introduction of an operating component. Detailed Implementation
[0091] The embodiments of the present invention will now be described in detail. When the description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention. It should be understood that in the description of all embodiments of the present invention, the terms "upper," "lower," "left," "right," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "coupled" and "connected" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections, electrical connections, or connections that allow for communication; they can refer to direct connections or indirect connections through an intermediate medium to form a linkage relationship; they can refer to the internal connection of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances. In the various embodiments of this invention, the symbol " / " indicates that it has two functions simultaneously. The symbol "A and / or B" indicates that the combination between the preceding and following objects connected by this symbol includes three cases: "A", "B", and "A and B". Features with the same reference numerals in the various embodiments of this invention can be understood by referring to each other unless there is contradiction.
[0092] Please refer to Figure 1 The control system provided in this embodiment of the invention may include a smart wall switch 100 and a controlled device 200. Figure 1 The diagram illustrates a smart wall switch 100 and a controlled device 200. In an actual control system, there can be multiple smart wall switches 100 and controlled devices 200. At the same time, wired and / or wireless signal transmission can be achieved between the smart wall switch 100 and the controlled device 200.
[0093] The smart wall switch 100 is used to implement the control methods applied to the smart wall switch described below. Therefore, the relevant descriptions of each control method below can be understood as descriptions of the working process, functions, and specific implementation methods of the software and / or hardware in the smart wall switch 100.
[0094] Furthermore, the smart wall switch 100 has network connectivity, and after network configuration is completed, it can communicate with the cloud 400 and the terminal 500 via the gateway 300 (e.g., Figure 1 (As shown). The smart wall switch 100 can communicate with the outside world using at least one of the following methods: radio frequency, Bluetooth, WIFI, PLC (power line carrier communication), ZIGBEE, etc.
[0095] The terminal 500 can be any device or combination of devices with data processing and external communication capabilities, such as a mobile phone, computer, tablet, computer, or vehicle-mounted system. An application (e.g., a mobile app) corresponding to the smart wall switch 100 can be pre-installed on the terminal 500. This application provides a user interface for viewing the smart wall switch's status, configuring the smart wall switch, controlling its operation, and configuring it for network connection.
[0096] The gateway 300 can be a gateway to any network, such as a Wi-Fi network, Zigbee network, Bluetooth network, or PLC network. In a further embodiment, the gateway 300 can access the Internet, thereby exchanging data with other Internet-connected devices (e.g., terminal 500). Furthermore, the gateway 300 can be a dedicated gateway device or another device with gateway functionality (e.g., a speaker, display, computer, host, etc.). The smart wall switch 100 can access the Internet through the gateway 300. Both the gateway 300 and terminal 500 can interact with the cloud 400. Data interaction between the gateway 300 and terminal 500 can be achieved through the cloud 400 or through point-to-point direct communication (e.g., Bluetooth direct connection). In this embodiment, the cloud 400 primarily functions as a data forwarder; in some examples, it can also serve as a data storage and processing center.
[0097] In one embodiment, the gateway 300 is a Bluetooth gateway 300, and the corresponding network is a Bluetooth network (e.g., a Bluetooth Mesh network). The smart wall switch 100 communicates externally based on its Bluetooth communication unit. Therefore, the smart wall switch 100 can join the Bluetooth network after network configuration and communicate with the gateway 300 (or a speaker device with gateway 300 functionality) via Bluetooth signals. Furthermore, the smart wall switch 100 can send messages to the gateway 300 via Bluetooth signals, and can also send messages to the terminal 500 or the controlled device 200 via Bluetooth signals.
[0098] The controlled device 200 can be any controlled device that can be operated by the smart wall switch 100, or a device connected to the controlled device. Specifically, the controlled device 200 can be, for example, an electronic doorbell, a light fixture, an automatic curtain, a fan, etc. The control it receives can include, but is not limited to: controlling the controlled device 200 or its connected device to enter a certain state; for example, turning a light on or off, ringing a doorbell, controlling a fan to start or stop rotating, opening or closing an automatic curtain, opening or closing a specified function of the receiving end, etc.; controlling the controlled device 200 or its connected device to switch between two states; for example, flipping (switching) the on / off state of a light, flipping (switching) the on / off state of a fan, flipping (switching) the on / off state of an automatic curtain, flipping (switching) the on / off state of a specified function of the controlled device 200, etc.; controlling the controlled device 200 or its connected device to change operating parameters; for example, adjusting the brightness of a light, adjusting the fan speed, adjusting the degree of curtain opening, etc. Depending on the application field of the smart wall switch 100, the specific content of the control and being controlled can be arbitrarily changed, without departing from the scope of this embodiment of the invention.
[0099] Furthermore, the descriptions of the triggering results and corresponding executable functions in the following text can be understood with reference to the above content. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0100] The following will provide a detailed description of the smart wall switch 100 in some embodiments of the present invention, but the scope of the embodiments of the present invention may not be limited thereto.
[0101] Please refer to Figures 2 to 14 ,based on Figures 2 to 14 The smart wall switch 100 provided in one embodiment of the present invention is specifically illustrated. (Refer to...) Figure 2 The smart wall switch 100 includes an operating element 20, a processing module 101, and at least one relay 111. The relay 111 is capable of controllably switching between on and off states and is used to connect to and control a circuit (e.g., ...). Figure 2(The circuit where the controlled device 200 is located is shown). Furthermore, the smart wall switch 100 can control the on / off state of the circuit based on the relay 111. For example, if the relay 111 is connected to the power supply circuit of a lamp, then the power on and off of the lamp can be controlled by turning the relay 111 on and off. The processing module 101 can be understood as any circuit with data processing capabilities. It can be a circuit with data processing capabilities built from discrete components, or it can be an integrated circuit embodied in the form of a chip or module. In some examples, the processing module 101 can be, for example, a microcontroller or a module with data processing and external communication capabilities (e.g., a Bluetooth module). Based on this, the processing module 101 can be supplemented with other circuits or circuit combinations with arbitrary functions.
[0102] like Figure 2 As shown, the processing module 101 is electrically connected to at least one mode switching unit 102 to indicate the current working mode through the mode switching unit 102; wherein the processing module 101 has multiple working modes, and the multiple working modes are switchable; the processing module 101 is used to switch to the corresponding working mode according to the indication of the mode switching unit 102.
[0103] It is understood that the multiple operating modes of the processing module 101 are reflected in the multiple operating modes of the smart wall switch 100, and at least one executable function of the smart wall switch 100 is different between the multiple operating modes. Compared with the single and fixed operating modes of smart wall switches in the prior art, the switching between the multiple operating modes of the smart wall switch 100 provided in this embodiment can bring about at least some or all changes in functions, with richer and more diversified functions, which can meet more complex usage needs and be applicable to a wider range of control scenarios.
[0104] Furthermore, with the development of the smart home industry, the focus has expanded beyond just wall switches to include intelligent devices. For example, smart lighting fixtures with built-in network capabilities are increasingly appearing on the market. These intelligent controlled devices, similar to smart lights, require continuous power to maintain signal monitoring during operation. The traditional method of using relays to simply control the power supply circuit via wall switches is no longer suitable for such devices. Therefore, smart wall switches with a wireless switching function have emerged to accommodate these devices. This ensures that devices powered by the wall switch's relay are continuously powered and controlled via wireless signals emitted from the wireless switch button. However, this also means that in the event of a network failure, these devices may become uncontrollable due to signal loss. Since the wall switch button is set to wireless mode, the relay cannot be used to cut off power to the device. This necessitates a complete circuit breaker to disconnect the power, causing considerable inconvenience. Based on this, among the multiple operating modes of the smart wall switch 100 provided in the embodiments of the present invention, at least a first mode is provided. In the first mode, the smart wall switch 100 can forcibly switch back to the state of the control relay to solve the above-mentioned problem. Specifically:
[0105] According to an embodiment of the present invention, the operating element 20 includes a first button, and the processing module 101 has at least a first mode among a plurality of operating modes, wherein in the first mode, the processing module 101 is configured to: configure the triggering function of at least one first button as a first function, so as to control the relay 111 associated with the first button to operate after detecting that the first button has been subjected to an external operation.
[0106] It should be noted that the first button arranged on the operating component 20 can be any component or combination of components used to receive external operations. Specifically, the first button can be a virtual button (e.g., a virtual control on a touchscreen) or a physical button (e.g., a mechanical button capable of displacement in response to external operations). Figures 18-36 The mechanical buttons formed by the pressing areas of the button panel where button 2 is located in the illustrated embodiment can also be touch buttons based on the capacitive touch principle.
[0107] Any operation occurring on the first button can be detected by the processing module 101. The processing module 101 can indirectly detect the operation occurring on the first button. For example, if the first button is a mechanical button, the processing module 101 can detect whether the electronic switch 106 corresponding to the mechanical button is triggered to indirectly identify the operation occurring on the mechanical button. The processing module 101 can also directly detect the operation occurring on the first button. For example, if the first button is a touch button, the processing module 101 can directly connect to the touch electrode of the touch button to directly detect the touch and / or proximity operation occurring on the touch button.
[0108] Taking the first button as a mechanical button as an example: the external operation applied by the user can be, for example, a pressing action or a releasing action, and the first button can respond to the external operation by performing a pressing action or a rebound action. When the first button is pressed, the electronic switch 106 corresponding to the first button is triggered, so that the electronic switch 106 transmits a triggered electrical signal (trigger signal) to the processing module, so that the processing module can detect the external operation that occurred on the first button and execute the corresponding trigger result accordingly. Furthermore, the trigger function of the first button can be understood as the trigger result pointed to when the first button is operated. For example, when the trigger function of the first button is configured as the first function, the first button will be associated with a relay. At this time, the trigger result pointed to when the first button is operated is to control the relay to act. Therefore, when the operation of the first button is detected, the processing module will switch the action of the associated relay (from on to off, or from off to on). In addition, the implementation principle and trigger function of the second button discussed later can also be understood in the same way.
[0109] Furthermore, among the multiple operating modes of the processing module 101, at least one first mode is used to configure the first button of the smart wall switch 100 as a first function. Under the first function, the first button is defined as controlling the corresponding relay 111 to operate when it is pressed, i.e., forcibly switching to relay mode. Therefore, when the smart controlled device connected to the relay 111 experiences a network failure and becomes uncontrollable, at least one first button can be forcibly switched back to the first function of controlling the relay 111 by switching the smart wall switch 100 to the first mode. This allows the smart controlled device to be powered back on by operating the first button to disconnect the relay 111. In this way, restarting the smart controlled device no longer requires tripping the circuit breaker, making it more convenient.
[0110] It is worth noting that there can be only one first button or multiple first buttons. When there are multiple first buttons, they can be arranged on the same button panel or on different button panels, for example... Figure 7In the smart wall switch 100, two of the three first buttons are located on the button panel of one operating element 20, while the other first button is located on the button panel of the other operating element 20. Any changes made by those skilled in the art to the arrangement of the first buttons based on the technical concept provided in this embodiment and in combination with specific needs should not depart from the protection scope of this invention, and this embodiment does not specifically limit such changes.
[0111] It should also be noted that when there are multiple first buttons, the first button configured as the first function in the first mode can be all the first buttons or only some of the first buttons.
[0112] Furthermore, based on the above solution, the multiple operating modes of the smart wall switch 100 in this embodiment can be conveniently switched by physically operating the gear position of the mode switching unit 102. Moreover, regardless of the operating mode of the smart wall switch 100, when the smart controlled device 200 powered by the smart wall switch 100 malfunctions, it can switch back to the first mode to power off and restart the smart controlled device 200 by operating the relay 111.
[0113] It is particularly important to emphasize that, in this embodiment, the mode switching unit 102 operates locally and does not depend on the network, thereby addressing the mode switching of the smart wall switch 100 in the event of a network failure.
[0114] Furthermore, the following embodiments will provide several exemplary implementations of the mode switching unit 102, specifically:
[0115] In one specific implementation of the mode switching unit 102, a micro switch may be included. The micro switch can be triggered by external operation and is electrically connected to the processing module 101 to transmit a corresponding trigger signal to the processing module 101. After detecting the trigger signal transmitted by the mode switching unit 102, the processing module 101 switches the current working mode according to a preset working mode switching sequence.
[0116] In a specific example, the smart wall switch 100 has three operating modes: a first mode, a second mode, and a third mode. The processing module 101 operates in the first mode by default and continuously monitors whether the microswitch used to switch operating modes is triggered after power-on. Each time it receives a trigger signal from the microswitch, it sequentially switches to the next operating mode. For example, if the user presses the microswitch once, the current operating mode is switched from the first mode to the second mode. If the user does not press the microswitch again, the smart wall switch 100 remains in the second mode. If the user presses the microswitch again, the current operating mode switches from the second mode to the third mode. If the user presses the microswitch again, the current operating mode switches back from the third mode to the first mode, and so on, in a cyclical manner.
[0117] In this embodiment, if the first button is a mechanical button, then each first button is provided with a corresponding electronic switch 106. The micro switch used to switch the working mode can be replaced by the electronic switch 106 corresponding to any of the first buttons, allowing the user to directly trigger the switching of the working mode via the corresponding first button. Of course, the micro switch used to switch the working mode can also be set separately.
[0118] If the micro switch used to switch the working mode is triggered by one of the first buttons, the first button can be put into the working mode switching state through a specific operation. For example, under normal circumstances, the first button with the micro switch performs the predetermined function according to the trigger function assigned to it by the working mode of the smart wall switch 100. If the first button is pressed three times (i.e., a specific operation), the first button enters the working mode switching state. After that, applying an operation to the first button will be able to switch the working mode of the smart wall switch 100.
[0119] If the microswitch used for switching operating modes is a separate device, it can be hidden beneath the operating element 20 to prevent accidental activation during daily operation. For example, the button panel corresponding to the operating element 20 can be detachable. When the button panel is installed, it can cover the microswitch, making it invisible and inoperable during daily operation. When the microswitch panel is removed, the microswitch is exposed and can be operated by the user.
[0120] In summary, in this embodiment, the switching of the working mode is performed when the processing module 101 is powered on, meaning that the user can observe the switching changes of the working mode of the processing module 101 in a timely manner.
[0121] In another implementation of the mode switching unit 102, the mode switching unit 102 has multiple gears for indicating multiple working modes of the processing module 101; the multiple gears of the mode switching unit 102 are switchable, and the processing module 101 switches to the corresponding working mode according to the current gear of the mode switching unit 102 after power-on.
[0122] It should be noted that the switching between the multiple gears of the mode switching unit 102 can be performed by the user. The multiple operating modes of the processing module 101 are all preset operating modes. The user can conveniently switch the operating mode of the smart wall switch 100 by switching the gears of the mode switching unit 102. In other words, the multiple gears of the mode switching unit 102 are intuitively displayed to the user, and based on the differences between the gears of the mode switching unit 102, the user can directly switch to the gear corresponding to the desired operating mode. Specifically, for example, corresponding labels can be set at the positions of each gear of the mode switching unit 102 to facilitate user identification of the operating mode corresponding to each gear.
[0123] Furthermore, the smart wall switch 100 also includes a bottom shell 4, a base shell 1, and a control board 10. The bottom shell 4 is used to house the relay 111. In specific use, the bottom shell 4 is used to embed a mounting box, such as an 86mm×86mm wall mounting box. The mounting box contains a high-voltage power line (e.g., 220V / 50Hz AC power). The high-voltage power line passes through the bottom shell 4 to connect the relay 111 and the power board 11 located on the bottom shell 4. The power board 11 is equipped with a power conversion circuit 112 (e.g., converting 220V AC power to 5V DC power output through a buck converter, and then converting 5V to 3.3V through an LM1117-3.3 power chip). This circuit converts the high-voltage power into low-voltage power (e.g., 5V and / or 3.3V power) used by the control board 10 and then transmits it to the control board 10 to power the processing module 101, communication module 103, and other circuits on the control board 10. The bottom shell 4 and the base shell 1 are electrically connected via a pin connector, with other parts insulated to ensure safety when the base shell 1 is detached from the bottom shell 4 and the DIP switch 1021 is operated. Secondly, this embodiment also includes a zero-crossing detection circuit to transmit a zero-crossing signal of the power frequency AC current to the processing module 101. This allows the processing module 101 to control the contacts of the relay 111 to operate near the zero-crossing point of the power frequency AC current, thereby reducing the surge impact when the relay 111 operates. The relay 111 can be, for example, an ultra-miniature high-power relay of model HF32FV-16, which has a 16A contact switching capability, a coil and contact cutoff voltage of 4kV, a set of normally open contacts, and a sensitive type of approximately 400mW and an ultra-sensitive type of approximately 200mW. In the specific circuit, a transistor circuit can be used to drive the relay 111. The control signal for the processing module 101 to control the operation of the relay 111 can be transmitted through the pin header and nut header between the power board and the control board. The specific structural connection relationship between the control component and the bottom shell 4 can be referred to as follows: Figures 18-36 The description of the illustrated embodiment is for reference only.
[0124] Furthermore, the operating component 20 and the control board 10 are both disposed on the base shell 1 to form a control assembly. The mode switching unit 102 is disposed on the control assembly and electrically connected to the processing module 101 disposed on the control board 10. Thus, the operating component 20, the base shell 1, the control board 10, and the mode switching unit 102 are integrated and assembled and disassembled externally as a modular control assembly, making the assembly and disassembly process of the equipment more efficient and convenient.
[0125] Specifically, the mode switching unit 102 is disposed on the side of the control panel 10 facing the bottom shell 4 for concealed installation. The control component is detachably connected to the bottom shell 4 via the base shell 1, so that the mode switching unit 102 can be detached from the bottom shell 4 along with the control component.
[0126] The hidden installation of the mode switching unit 102 can be understood as meaning that during the daily use of the smart wall switch 100, the mode switching unit 102 is not easily observed and / or not easily operated, in order to prevent accidental activation.
[0127] In other words, the mode switching unit 102 is hidden during the daily use of the smart wall switch 100, and when it is necessary to switch the working mode, the mode switching unit 102 can be exposed by removing the control component from the bottom shell 4 to switch the gear of the mode switching unit 102. When the processing module 101 is powered on again, it will read the current gear of the mode switching unit 102 and then switch to the corresponding working mode.
[0128] In summary, in this embodiment, the mode switching unit 102 switches gears when the processing module 101 is powered off. The mode switching unit 102 can be easily detached from the bottom shell 4 along with the control component. At the same time, the processing module 101 on the control board 10 of the control component is also powered off. At this time, the user switches the gear of the mode switching unit 102 and then installs the control component on the bottom shell 4. Subsequently, the processing module 101 will be powered on again. After the processing module 101 is powered on, it will read the current gear of the mode switching unit 102 and switch to the corresponding working mode according to the indication of the current gear.
[0129] In one example, the mode switching unit 102 includes a DIP switch 1021, which includes multiple toggle positions, each toggle position representing a gear position. The switching between the toggle positions can instruct the processing module 101 to switch between different working modes.
[0130] Specifically, the DIP switch 1021 is electrically connected to the processing module 101. After the processing module 101 is powered on, it reads the current position of the DIP switch 1021. If the current position of the DIP switch 1021 is the first position, it switches to the first mode; if the current position is the second position, it switches to the second mode; and if the current position is the third position, it switches to the third mode.
[0131] In a further example, the DIP switch 1021 can be, for instance, a toggle switch (DIP switch 1021) of model SS-1400S-L3, whose circuit principle is as follows: Figure 3As shown, the SS-1400S-L3 has eight electrodes, with electrodes 1-4 and 5-8 symmetrically arranged. Electrodes 2 and 3 are connected to port SG6-0 of the processing module 101 after being turned on. Electrodes 1 and 5 are connected to port K1 of the processing module 101 via diode DJ3 after being turned on. Electrodes 4 and 8 are connected to port K2 of the processing module 101 via diode DJ4 after being turned on. Ports K1 and K2 are two I / O ports of the processing module 101 used to read the positions of the mode switch 102. The processing module 101 outputs a high level through port SG6-0, and electrodes 2 and 3 can move left and right following the toggle handle 1022 of the DIP switch 1021. The specific principle is as follows: When the toggle handle 1022 moves to the left, electrodes 1 and 2 are connected while electrodes 3 and 4 are disconnected. At this time, SG6-0 and K1 are connected, and SG6-0 and K2 are disconnected. The processing module 101 recognizes "10" in K1 and K2, which is considered the first gear position; when the toggle handle 1022 is in the middle (i.e., when...), Figure 3 (As shown in the position), when electrodes 1 and 2 are disconnected and electrodes 3 and 4 are disconnected, SG6-0 and K1, K2 are both disconnected. Processing module 101's K1 and K2 recognize "00", which is considered the second gear. When the toggle handle 1022 moves to the right, electrodes 1 and 2 are disconnected and electrodes 3 and 4 are connected. At this time, SG6-0 and K1 are disconnected, and SG6-0 and K2 are connected. Processing module 101's K1 and K2 recognize "01", which is considered the third gear.
[0132] Furthermore, according to an embodiment of the present invention, the base shell 1 and the bottom shell 4 are detachably connected (e.g., connected by a snap-fit mechanism). The DIP switch 1021 is disposed on the side of the control panel 10 facing the bottom shell 4 for concealed installation. When the control component is mounted on the bottom shell 4 based on the base shell 1, the DIP switch 1021 is obscured and cannot be operated. When the control component is detached from the bottom shell 4 based on the base shell 1, the DIP switch 1021 is exposed and can be operated.
[0133] Specifically, the base shell 1 is provided with a DIP switch hole 52, the control board 10 is disposed inside the base shell 1, the DIP switch 1021 is disposed on the control board 10, and its toggle handle 1022 passes through the DIP switch hole 52 of the base shell 1 and is exposed outside the base shell 1. When the control component is installed on the bottom shell 4, the toggle handle 1022 is hidden between the base shell 1 and the bottom shell 4 to achieve a concealed installation effect. When the control component is removed from the bottom shell 4, the toggle handle 1022 is exposed and can be operated. A more detailed assembly relationship can be referred to as follows. Figures 18-36 The description of the illustrated embodiment is for reference only.
[0134] Therefore, in this embodiment, when the DIP switch 1021 is operated to switch gears, the control board 10 (e.g., PCB board) is in a power-off state. After the gear switching is completed, when the control board 10 is powered on again, it only needs to read the current gear of the DIP switch 1021 to complete the switching of the working mode. Compared with the method of switching gears when the control board 10 is powered on, this embodiment is obviously safer and more stable.
[0135] In addition, the multiple gears of the mode switching unit 102 are displayed intuitively to the user, allowing the user to quickly lock the gear corresponding to the expected working mode and switch quickly. This enables the processing module 101 to jump directly from the current working mode to the user's expected working mode based on the gear indication of the mode switching unit 102 after the gear is switched, without having to switch each working mode one by one, thus improving the efficiency of working mode switching.
[0136] In some embodiments, such as Figure 4 As shown, the smart wall switch 100 also includes a communication module 103; the communication module 103 can be understood as any circuit with external communication capability. It can be a separate communication unit, such as a Bluetooth communication unit, a WIFI communication unit, a ZIGBEE communication unit, a PLC communication unit, etc., or it can be a module (such as a Bluetooth module, a WIFI module, etc.) integrated with the processing module 101 and having data processing capability and external communication capability.
[0137] According to an embodiment of the present invention, the processing module 101 is electrically connected to the communication module 103 so as to be able to communicate externally through the communication module 103; wherein the processing module 101 has a second mode among its multiple operating modes, in which the triggering function of at least one first button is switchable, and the processing module 101 can switch the triggering function of the first button to the second function or the first function according to the switching instruction; and when the triggering function of the first button is switched to the second function, the processing module 101 can communicate externally through the communication module 103 in response to the first button being subjected to an external operation, and the associated relay 111 remains constantly connected (i.e., it will not be disconnected in response to the operation of the associated first button).
[0138] The processing module 101 communicates externally in response to the first button being operated externally. For example, it can send a control message through the communication module 103. The control message can be sent wirelessly. The first button, which is set to a second function, will have the ability to send wireless control messages (i.e., switch to wireless function) and will no longer be used to directly control the relay 111. The relay 111 associated with it will remain constantly connected. If the relay 111 is connected to a smart controlled device, it can ensure that the smart controlled device is constantly powered. The smart controlled device can then be controlled through the wireless control message of the first button.
[0139] Furthermore, based on this embodiment, changes in the operating mode of the processing module 101 can cause changes in the association state between the first button and at least one relay 111. In the first mode, the first button and the relay 111 are strongly associated, meaning the first button is always in its first function to control the corresponding relay 111, and cannot be set to a second function by a switching command. In the second mode, the first button and the relay 111 are weakly associated, meaning the triggering function of the first button is not fixed but can be changed, and it is only associated with the relay 111 when the first button is configured for the first function. If the first button is configured for the second function, it is not directly associated with the relay 111 (of course, in the second function, the first button can be indirectly associated with the relay through the cloud).
[0140] Furthermore, the existence of both the first and second modes facilitates the installation and debugging work of the smart wall switch 100 by the installer. For example, when installing the circuit of the smart wall switch 100, the installer can switch the smart wall switch 100 to the first mode to test the circuit connection by switching the corresponding relays 111 on and off using each first button. After the test is completed, the smart wall switch 100 can be switched to the second mode so that the user can freely configure the triggering function of each first button according to their needs.
[0141] Furthermore, the switching instruction includes key function configuration data received from an external source; in the second mode, the processing module 101 is also used to configure the trigger function of the first key as the first function by default, and in the second mode, the processing module 101 can receive external key function configuration data through the communication module 103, and switch the trigger function of the first key according to the key function configuration data.
[0142] In a specific example, the button function configuration data may come from the user's terminal 500 (e.g., a mobile phone), and this data may be message data compiled based on the Bluetooth communication protocol. Therefore, in the second mode, the user can conveniently configure the trigger function of each first button through the terminal 500. That is, in the second mode, the first button is defaulted to controlling relay 111, but the user can also change the button's trigger function, allowing the user to freely set the function of the first button according to their needs.
[0143] In a further example, the number of the first buttons can be the same as the number of relays 111, and each relay 111 is correspondingly provided with a first button. In the first mode, each first button is used to control the action of the relay 111 associated with it, and the trigger function of each first button cannot be changed through the terminal 500. In the second mode, each first button is used by default to control the action of the relay 111 associated with it, but the user can configure the function of the first button through the terminal 500. For example, some first buttons can be configured as second functions, while the remaining first buttons retain the default first function, or all first buttons can be configured as second functions. After being configured as second functions, the relay 111 corresponding to the first button will remain in a constantly on state to ensure that the circuit controlled by the relay 111 is continuously powered, so that the intelligent controlled device powered by the circuit can remain online.
[0144] According to an embodiment of the present invention, in the first mode, the processing module 101 is further configured to configure the first button as the first function after receiving button function configuration data for configuring the first button as the second function, so that in the first mode, the first button is forced to the first function and cannot be changed by external button function configuration data.
[0145] In some embodiments, the processing module 101 has a third mode among its multiple operating modes. In the third mode, the processing module 101 configures at least one first button as a second function and does not respond to external button function configuration data to change the trigger function of the first button. This ensures that in the third mode, all first buttons of the smart wall switch 100 are in the second function and cannot be changed by external button function configuration data. In other words, the smart wall switch 100 is equivalent to a wireless controller and does not have direct control capability over the relays 111, making it suitable for use cases where control of the relays 111 is not required. For example, if all relays 111 of the smart wall switch 100 are not connected to any controlled device 200, then the first buttons are not needed to control the relays 111. In this case, the smart wall switch 100 can be switched to the third mode, causing all first buttons of the smart wall switch 100 to switch to wireless function. The control target of each first button can be freely defined by the user on the terminal 500.
[0146] Specifically, whenever the processing module 101 receives key function configuration data for setting the trigger function of the first key, it reads the current gear of the mode switching unit 102: if the current gear indicates the first mode, the first function of each first key is maintained and will not be changed in response to external key function configuration data; if the current gear indicates the second mode, the trigger function of the corresponding first key is configured in response to the corresponding key function configuration data; if the current gear indicates the third mode, the second function of each first key is maintained and will not be changed in response to external key function configuration data.
[0147] In some embodiments, such as Figure 5 As shown, the operating element 20 also includes a second button; the processing module 101 is further configured to: configure the trigger function of at least one second button as a second function, and keep the second button working in the second function when the working mode of the processing module 101 is switched to any working mode; under the second function, the processing module 101 can communicate externally through the communication module 103 in response to the second button being subjected to an external operation.
[0148] Furthermore, the first button is associated with relay 111, and the second button is not associated with relay 111. Therefore, the switching of the working mode of the processing module 101 only affects the first button associated with relay 111, while having no effect on the second button not associated with relay 111.
[0149] In one example, such as Figure 7As shown, the smart wall switch 100 has four buttons, respectively arranged on the button panels corresponding to the two operating components 20, and three relays 111. In this case, the number of buttons is one more than the number of relays 111, meaning one button does not control a relay 111. In this situation, setting the function of this button to the first function is meaningless. For user convenience, in this case, the three buttons corresponding to relays 111 are used as the first buttons, and their triggering function changes according to the switching of the operating mode of the processing module 101. The buttons without corresponding relays 111 are used as the second buttons and are always in the second function, unaffected by the switching of the operating mode of the processing module 101.
[0150] In a further example, the smart wall switch 100 has eight buttons and three relays 111. Three of the buttons are designated as first buttons and each has a corresponding relay 111. The remaining five buttons are designated as second buttons and do not have corresponding relays 111. In this mode, the smart wall switch 100 operates as follows: in the first mode, the three first buttons control the relays 111, and the five second buttons are for switching to wireless functionality (second function); in the second mode, the five second buttons are for switching to wireless functionality (second function), and the three first buttons are for variable triggering; in the third mode, all eight buttons (both first and second buttons) are for switching to wireless functionality (second function). Therefore, regardless of the operating mode of the smart wall switch 100, the triggering function of the five second buttons remains the second function and is unaffected.
[0151] Furthermore, the switching of the working mode of the processing module 101 can only affect the triggering function of the first button corresponding to each relay 111. When the processing module 101 switches to the first mode, the first button corresponding to each relay 111 is forcibly switched to control the on / off state of the relay 111 (first function); when the processing module 101 switches to the second mode, the first button corresponding to each relay 111 is defaulted to control the on / off state of the relay 111 (first function), but the user can change its function according to needs (for example, change it to the second function); when the processing module 101 switches to the third mode, the first button corresponding to each relay 111 is forcibly switched to the second function, that is, each first button is switched to wireless and is no longer used to directly control the on / off state of the relay 111.
[0152] In some embodiments, the processing module 101 can communicate with the cloud 400 through the communication module 103 (e.g., Figure 1 (as shown);
[0153] When either the first button or the second button is configured with a second function, the processing module 101 can communicate externally through the communication module 103 in response to an external operation applied to the first button or the second button, specifically for:
[0154] In response to the operation of the first button or the second button, a preset signal is sent out, so that the cloud 400 receives the preset signal and controls the execution of the trigger result defined by the target scene according to the preset signal and the target scene that matches the preset signal; wherein the target scene is generated by the user freely defining the mapping relationship between at least one operation event and at least one trigger result on a terminal 500, each preset signal represents an operation event of the first button or the second button being operated and set as a second function, and each trigger result is at least one executable function of at least one controlled device 200 belonging to the user to which the smart wall switch 100 belongs.
[0155] Specifically, each user has a unique account and password on the corresponding application of the terminal 500. After logging into the application with this account and password, they can add smart devices. These smart devices can be controlled devices (such as lamps) or controlling devices (such as smart wall switches 100). Adding a smart device to this account can be understood as adding the user's device. Furthermore, after network configuration, the smart wall switch 100 is added to the user's account, and the configured smart wall switch 100 has network connectivity, enabling communication with the cloud 400. It then indirectly communicates with the terminal 500 through the cloud 400 to achieve remote control and configuration.
[0156] Furthermore, users can freely combine "AND", "OR", and "NOT" operations and trigger results through the terminal 500 to form complex associated control scenarios, thereby enriching the control functions of the buttons set as secondary functions.
[0157] In some embodiments, such as Figure 6 As shown, the smart wall switch 100 also includes a display screen 30 for displaying information. Based on the display function of the display screen 30, the smart wall switch 100 provided by the present invention has a message function, that is, the user can edit a custom text (such as a prompt message) and send it to the smart wall switch 100 for display, so as to leave a message through the display screen 30 of the smart wall switch 100.
[0158] It is worth noting that for smart wall switches 100 with a relatively large display screen 30, a portion of the display screen 30 can be used to display messages, while another portion can display button names and other information. However, for smart wall switches 100 with a limited (smaller) display screen 30, if the display screen 30 is mainly used to display button names and other information in daily operation, there may not be enough display area to display large amounts of message text, thus rendering the message function unavailable. Therefore, for smart wall switches 100 with a limited display screen 30 that cannot display a lot of content simultaneously, this invention provides a corresponding solution to enable such smart wall switches 100 to also have a message function.
[0159] Specifically, according to an embodiment of the present invention, the processing module 101 can switch between a first state and a second state. In the first state, the processing module 101 instructs the display screen 30 to display first content; in the second state, the processing module 101 instructs the display screen 30 to display second content. The first content is used to identify the operating element 20 (e.g., the button name corresponding to the buttons arranged on the operating element 20). Furthermore, in the first state, weather, temperature, etc., can also be displayed (e.g., weather information). Figure 7 The first content is the main content displayed in daily operations, i.e., the normally displayed content. The second content is obtained by the processing module 101 from the outside through the communication module 103, and can be understood as other content obtained from the outside that is different from the first content, such as message information sent by the user through the terminal 500 (e.g., Figure 8 (As shown).
[0160] Furthermore, in the solution provided in this embodiment, the display screen 30 displays different content at different demand periods. The first state and the second state of the processing module 101 can be switched to display different content through the display screen 30 respectively. In the first state, the frequently used first content is displayed, and in the second state, the less frequently used and occasional second content is displayed, so that the first content and the second content can be displayed on demand in a time-sharing manner when the size of the display screen 30 is limited.
[0161] Furthermore, the processing module 101 can switch to the first state in response to an external operation being applied to the operating element 20 in the second state. The external operation applied to the operating element 20 may be, for example, a pressing action on a button (first button or second button) of the operating element 20. If the operating element 20 has multiple buttons, the external operation can be applied to certain specific buttons, or it can be applied to any button; this embodiment does not impose any specific limitations.
[0162] In a specific example, the first content includes first text used to identify the operation element 20, and the second content includes second text customized by the user on a terminal 500; wherein the processing module 101 is further configured to: in the second state, instruct the display screen 30 to display only the second text, and when exiting the second state and entering the first state, instruct the display screen 30 to no longer display the second text but to display the first text. In other words, in this embodiment, the first text and the second text are not displayed on the display screen 30 simultaneously; the second state is entered to display the second text when a message is needed, and the second state is exited to display the first text when no message is needed.
[0163] Therefore, in this embodiment, when displaying the second content, the second content will remain displayed on the display screen 30 until the user operates the operation component 20 (e.g., ...). Figure 8 As shown), this serves as a prompt; after the user operates the operating component 20, the display screen 30 will redisplay the first content to identify the operating component 20 (e.g., ...). Figure 7 (As shown).
[0164] In a specific example, the display screen 30 uses a 1.47-inch TFT screen with a resolution of 172RGB*320. The LCD screen uses an FPC interface and is electrically connected to the control board via an FPC plug-in method. It is controlled by a serial interface, with the backlight pin as the positive terminal and controlled by PMOS. A 22R resistor is connected in series with the backlight for current limiting. The backlight brightness can be adjusted by hardware. The TFT screen backlight brightness can also be adjusted by software PWM duty cycle.
[0165] like Figure 7 and Figure 8 As shown, the first text includes the button name (first button or second button) on the operating component 20, and the second text includes user-defined text, which can be regarded as message information. When the user does not leave a message, the processing module 101 operates in the first state to display the button name on the display screen 30. However, since the display size of the display screen 30 is limited, there is no extra area to display a large message after the display screen 30 displays the button name. Therefore, after the user leaves a message, the processing module 101 can switch to the second state to refresh the display content of the display screen 30. That is, in the second state, the user-defined text will cover the button name, so that the display screen 30 temporarily only displays the message information. Before the user operates the button, the message information stays on the display screen 30, which improves the utilization rate of the display screen 30 and enhances the message prompting effect.
[0166] In some embodiments, the processing module 101 can communicate with a terminal 500 via the communication module 103 (e.g., ...). Figure 1(as shown); the second content is defined by the user on a terminal 500; the processing module 101 is further configured to: after receiving the second content defined by the user on the terminal 500 in the first state, enter the second state to instruct the display screen 30 to display the second content.
[0167] The terminal 500 may be, for example, a mobile phone, allowing the user to define corresponding second content (e.g., message information, etc.) on the mobile phone. Figure 9 (As shown) The data is then sent to the smart wall switch 100 for display. After receiving the second content in the first state, the processing module 101 switches to the second state to control the display screen 30 to change from displaying the first content to displaying the second content.
[0168] Furthermore, the processing module 101 can communicate with a cloud 400 through the communication module 103, and then communicate with the terminal 500 through the cloud 400. In this communication environment, the processing module 101 can receive the second content defined by the user on the terminal 500 in various ways. This embodiment will elaborate on three of these methods:
[0169] Method 1: The second content is sent from the terminal 500 to the smart wall switch 100 via the cloud. Specifically, the processing module 101 receives first data through the communication module 103; the first data is sent by the terminal 500 via the cloud 400; the first data carries data representing the second content. After receiving the first data, the processing module 101 instructs the display screen 30 to display the second content in response to the first data.
[0170] In Method 1, the first data is forwarded from the terminal 500 to the smart wall switch 100 via the cloud 400, so as to remotely define the second content to the smart wall switch 100.
[0171] In a specific example, the communication module 103 may include a Bluetooth communication unit; the processing module 101 is electrically connected to the Bluetooth communication unit for external communication via Bluetooth. In another specific example, the processing module 101 and the Bluetooth communication unit can be integrated, for example, using Xiaomi's MHCB05P-B Bluetooth module, which integrates data processing and Bluetooth communication capabilities. When the number of button and indicator light data is large and the required number of IO pins is large, the processing module may also include an IO expansion unit, such as the Tianwei TM1628. The TM1628 is a dedicated LED driver control IC with a keyboard scanning interface, integrating an MCU digital interface, data latch, LED driver, keyboard scanning circuit, etc. Furthermore, the MHCB05P-B Bluetooth module expands its IO ports through the Tianwei TM1628 to control more buttons and indicator lights. In addition, in circuit design, the control IO pins for buttons and indicator lights can be multiplexed, and time-division control of buttons and indicator lights can be implemented in software to save on the number of IO ports occupied.
[0172] It should be noted that in existing technologies, modifications to the display content of Bluetooth-based smart wall switches are all performed locally, such as via direct Bluetooth connection, and cannot be remotely modified via the cloud. This limits the application scenarios of the display screens of Bluetooth-based smart wall switches. Therefore, the smart wall switch 100 provided in this embodiment, while communicating externally via Bluetooth, has the ability to define second content in the cloud 400, enabling users to remotely modify the display content of the display screen 30.
[0173] Specifically, the smart wall switch 100 has network connectivity, and the processing module 101 is used to: before network distribution, join a specified network in response to a specified network distribution operation to complete the network distribution.
[0174] The specified network configuration operation can be, for example, by pressing and holding a button (the first button or the second button mentioned above) on the smart wall switch 100 for more than 5 seconds to trigger the processing module 101 to enter the network configuration mode.
[0175] The network configuration mode can be understood as a mode in which the smart wall switch 100 is adapted to configure itself with the target network (i.e., the designated network) and thus join the target network. In the network configuration mode, the message sent by the smart wall switch 100 when the button is pressed can be a network configuration message. In contrast, in a different working mode, the message sent by the smart wall switch 100 when the button is pressed can be a control message. Both the network configuration message and the control message can be sent directly to the gateway 300, or forwarded to the gateway 300 via the terminal 500 in the target network.
[0176] Specifically, in the network configuration mode, the processing module 101 broadcasts a preset network configuration message to the outside world through the Bluetooth communication unit, so that the terminal 500 or the Bluetooth gateway 300 can search for the smart wall switch 100 based on the network configuration message, and then connect the smart wall switch 100 to the Internet.
[0177] Furthermore, after network configuration is completed, the smart wall switch 100 can connect to a third-party platform, and the cloud 400 can be, for example, a cloud server provided by the third-party platform. This third-party platform can be understood as an IoT platform with linkage and management capabilities, such as Mijia, HarmonyOS, or Tuya. For example, if the third-party platform is Mijia, the corresponding cloud server could be, for example, Xiaomi's IoT cloud platform. Because the business model of such IoT platforms dictates that merchants connecting to the platform must adhere to the platform's communication regulations, and because the data carrying capacity of Bluetooth-based communication messages is limited, while text data is generally large, some third-party platforms do not support the smart wall switch 100 using Bluetooth communication to remotely modify the text on the display screen 30 via the cloud 400. Connecting to a third-party platform is a basic requirement for the smart wall switch to achieve intelligence. Therefore, in the existing technology, most smart wall switches based on Bluetooth communication, connected to a third-party platform, and equipped with a display screen modify the display content locally via direct connection, and cannot achieve remote modification via the cloud.
[0178] Based on this, the smart wall switch 100 provided in this embodiment can remotely define second content via cloud 400 when based on Bluetooth communication. Specifically: after network configuration is completed, the smart wall switch 100 can communicate with cloud 400 through the designated network, and the processing module 101 can obtain first data sent by a terminal 500 through cloud 400 via Bluetooth, and in response to the first data, instruct the display screen 30 to display the corresponding second content; wherein the second content is defined by the user on the terminal 500.
[0179] Specifically, the terminal 500 can send the first data to the Bluetooth gateway connected to the smart wall switch 100 via the cloud 400, and then the Bluetooth gateway processes the first data and forwards it to the smart wall switch 100.
[0180] It is understandable that in existing technologies, smart wall switches 100 based on Bluetooth communication set the display content of the display screen 30 via direct Bluetooth connection. This method has limited range and cannot be used in applications requiring remote operation, such as message functionality. Therefore, based on this method, this embodiment provides an implementation method for remotely setting the display content of the display screen 30 using a smart wall switch 100 via Bluetooth communication. The second content is sent by the terminal 500 and transmitted to the smart wall switch 100 via the cloud 400, enabling the display content of the smart wall switch 100's display screen 30 to be remotely modified via the cloud.
[0181] Furthermore, to enable the smart wall switch 100 to connect to a third-party platform and remotely modify the display screen content via the cloud, this embodiment further provides a corresponding data transmission method: Specifically, the first content includes text; the corresponding first data includes a first text configuration message carrying at least some of the text. Each first text configuration message carries two or fewer characters. If the user defines more than two characters on the terminal 500, the data corresponding to multiple characters is distributed across at least two first text configuration messages and sent to the smart wall switch 100 to reduce the capacity required for a single first text configuration message. Each first text configuration message also carries a sequence identifier, which is used to determine the arrangement order of the characters corresponding to each first text configuration message. This allows the smart wall switch 100 to combine the obtained characters in the expected order based on the sequence identifier after receiving multiple distributed first text configuration messages, thereby achieving the purpose of remotely defining multiple characters to the smart wall switch 100.
[0182] Furthermore, given the limited carrying capacity of Bluetooth communication messages defined by the third-party platform accessed by the smart wall switch 100, multiple text data can be sent to the smart wall switch 100 separately in multiple transmissions. The smart wall switch 100 can then correctly concatenate these multiple separate first text configuration messages to restore the original order of the text as defined on the terminal. Therefore, based on the text data transmission method described in this embodiment, the smart wall switch 100, even with Bluetooth communication, can remotely set (edit, modify, add, etc.) the text on the display screen using a third-party platform.
[0183] Further, to prevent the problem that all texts need to be retransmitted due to the failure of a single text among multiple texts, in this embodiment, the data corresponding to each text is carried in each first text configuration message. If the user defines multiple texts on the terminal 500, the data corresponding to each text is separately loaded into the corresponding first text configuration message and sent to the smart wall switch 100.
[0184] Furthermore, in this embodiment, each first text configuration message only carries the data corresponding to one text, so as to facilitate retransmission in case of abnormal transmission (such as packet loss). That is, when the first text configuration message corresponding to a single text among multiple texts fails to be sent, only this text needs to be retransmitted, and the texts that have been successfully sent before do not need to be retransmitted.
[0185] In addition to carrying the data corresponding to the text, each first text configuration message corresponding to each text also carries the sequence identifier corresponding to this text. This sequence identifier is used to indicate the sorting position of the text corresponding to the first text configuration message it belongs to among all texts, so as to facilitate the smart wall switch 100 to correctly sort and display the multiple texts received.
[0186] In a specific example, the data corresponding to the text can be, for example, the encoding data based on GB2312 corresponding to the text. After the user defines multiple texts on the terminal 500, the terminal 500 is used to generate the corresponding first text configuration message according to the encoding data corresponding to each text and the sorting position of each text, and send it to the smart wall switch 100 through the cloud. Taking "guest" as an example, the hexadecimal string representation of the corresponding GB2312 encoding is "BFCD". Then the encoding data corresponding to the text carried in the first text configuration message of the corresponding text data is "BFCD". Of course, in other embodiments, the data corresponding to the text can also be obtained based on other standard encodings, and this embodiment does not make specific limitations.
[0187] In addition, in this embodiment, the text used to identify the button name of the button (the first button and / or the second button) on the operating member 20 in the first content also supports the user to remotely modify it through the cloud on the mobile phone. When modifying the button name, the user edits the corresponding button name through the terminal 500. The terminal 500 generates the corresponding first text configuration message. The first text configuration message carries the button name, the sequence identifier, and the key value identifier. The key value identifier is used to indicate the target button, and the target button is at least one of the multiple buttons arranged on the operating member 20 of the smart wall switch 100, so as to facilitate the smart wall switch 100 to modify the button name of the target button according to the text carried in the first text configuration message after receiving the first text configuration message.
[0188] Furthermore, to further improve communication efficiency, in this embodiment, if the user defines multiple texts on the terminal 500, the texts are sent in the order they were defined on the terminal 500. That is, the first text configuration message corresponding to a later text is sent after the first text configuration message corresponding to an earlier text is successfully sent. If the first text configuration message corresponding to an earlier text fails to send, it will be retransmitted.
[0189] Specifically, there is a specified time interval between the first text configuration messages corresponding to two adjacent characters, which is used for the smart wall switch 100 to send a success message to the terminal 500 after successfully receiving the first text configuration message corresponding to the preceding character. The success message is used to trigger the terminal 500 to send the first text configuration message corresponding to the next character.
[0190] In other words, after the first text configuration message corresponding to the first character is successfully sent, the smart wall switch 100 will send a success message to the terminal 500 to inform the terminal 500 that the current text has been successfully sent, so that the terminal 500 can continue to send the next character. Each time the terminal 500 sends a first text configuration message corresponding to a character, it will wait for a specified time. If it receives a success message from the smart wall switch 100 within this specified time, it will immediately send the first text configuration message corresponding to the next character. If it still does not receive a success message from the smart wall switch 100 after the specified time, it will resend the message once, and wait for the specified time again after the resend. This process continues until N times. If no success message is received from the smart wall switch 100 after N resends, it is considered a sending failure, meaning that communication between the cloud and the smart wall switch 100 has failed, and a corresponding prompt message will be displayed to inform the user. Here, N is an integer greater than or equal to 1. In this example, N can be 3, meaning that if the message fails after 3 resends, the cloud communication is considered unreachable.
[0191] Taking "living room headlight" as an example, the corresponding GB2312 encoded hexadecimal string is "BFCDCCFCB4F3B5C6". The corresponding first data consists of four first text configuration messages that carry "BFCD", "CCFC", "B4F3", and "B5C6" in sequence. After "BFCD" is sent, terminal 500 will wait for a specified time. If a success message is received from smart wall switch 100 within the specified time, "CCFC" will be sent again, and so on, until "BFCD", "CCFC", "B4F3", and "B5C6" have all been sent. If no success message is received from smart wall switch 100 within the specified time, "BFCD" will be resent and the specified time will be waited again. If no success message is received from smart wall switch 100 within the second specified time, the first text configuration message corresponding to "BFCD" will be resent (i.e., the third time) and the specified time will be waited again. If no success message is received from smart wall switch 100 within the third specified time, the message will not be resent, and it will be considered that communication with smart wall switch 100 via the cloud has failed. If sending "BFCD" and "CCFC" fails, and sending "B4F3" fails (i.e., no success message is received from smart wall switch 100), only "B4F3" will be resent, and "BFCD" and "CCFC" will not be resent. In addition, in order to improve communication efficiency and reduce network overhead, in this embodiment, each first text configuration message has the same length, which is 4 to 8 bytes; the data corresponding to the text carried in each frame of text data occupies less than or equal to 4 bytes.
[0192] In a specific example, the first text configuration message consists of 4 bytes (32 bits), where the data corresponding to the text occupies the first two bytes, and other data occupies the last two bytes. Other data may include, for example, key-value identifiers, sequence identifiers, etc.
[0193] Method 2: The second content is sent from the terminal 500 to the smart wall switch 100 via a point-to-point direct connection. Specifically, the processing module 101 receives the second data through the communication module 103; the second data carries data representing the second content, and the second data is sent directly from the terminal to the smart wall switch; in response to the second data, the display screen is instructed to display the second content.
[0194] Specifically, in method two, the smart wall switch 100 and the terminal 500 interact with each other via a direct connection (e.g., Bluetooth direct connection). The second content includes text, and the second data includes a second text configuration message. A single second text configuration message can carry data corresponding to multiple characters to improve efficiency.
[0195] Furthermore, the length of the second text configuration message is less than or equal to 32 bytes; if the data space occupied by the text defined by the user on the terminal 500 is less than 32 bytes, then the corresponding second text configuration message carries the encoded data used to represent the text and the character count data used to indicate the number of characters; otherwise, the corresponding second text configuration message only carries the encoded data used to represent the text.
[0196] In one example, taking "living room light" as an example, the corresponding GB2312 encoded hexadecimal string representation is "BFCDCCFCB4F3B5C6". Since it is less than 32 bytes, the second text configuration message of the corresponding text data will carry "character count data" + "encoded data", that is, "4BFCDCCFCB4F3B5C6". Here, "4" indicates that there are a total of four characters. "BFCDCCFCB4F3B5C6" represents the specific content of these four characters.
[0197] In another example, taking "living room" as an example, the corresponding GB2312 encoded hexadecimal string is "BFCDCCFC". Since it is less than 32 bytes, the second text configuration message of the corresponding text data will carry "character count data" + "encoded data", that is, "2BFCDCCFC".
[0198] In another example, taking "11111111" as an example, the corresponding GB2312 encoded hexadecimal string representation is "A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0". Since it is equal to 32 bytes, the second text configuration message of the corresponding text data will only carry the "encoded data", that is, "A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0".
[0199] In some solutions, if the communication module 103 adopts a Bluetooth communication unit, the processing module 101 is electrically connected to the Bluetooth communication unit to communicate externally based on Bluetooth; then the above-mentioned method one and method two can be used in combination to improve the communication success rate. Specifically, the terminal 500 can preferentially choose to establish interaction with the smart wall switch 100 through method one. If communication with the smart wall switch 100 through the cloud 400 fails, then method two is further selected to establish data interaction with the smart wall switch 100 based on Bluetooth direct connection.
[0200] Method 3: The second content is saved to the cloud by the terminal 500 and retrieved from the cloud by the smart wall switch 100. Specifically, the processing module 101 receives the data receiving instruction sent by the terminal 500 through the cloud 400 through the communication module 103, retrieves the data corresponding to the second content from the cloud 400 according to the data receiving instruction, and instructs the display screen 30 to display the second content.
[0201] Furthermore, in method three, the smart wall switch 100 directly obtains the corresponding second content from the cloud 400, so the terminal 500 does not need to directly send a message carrying the second content (first text configuration message or second text configuration message) to the smart wall switch 100, and is not limited by the carrying capacity of the communication message of the third-party platform.
[0202] In a specific example, the communication module 103 may include a WIFI communication unit, and the processing module 101 is electrically connected to the WIFI communication unit to communicate externally based on the WIFI protocol.
[0203] At this time, the terminal 500 can send the corresponding data receiving instruction to the smart wall switch 100 via WIFI, so that the smart wall switch 100 can directly obtain the corresponding second content from the cloud 400.
[0204] Furthermore, the text data corresponding to the second content involved in the above three methods is stored in the cloud 400 and / or the terminal 500 for reuse. For example, if a user defines a message on their mobile phone and sends it to the smart wall switch 100, and later accidentally operates the control device 20 causing the message to disappear from the display screen 30, the message is still stored in the cloud 400 and / or the terminal 500. The user can still see the previously defined message on the corresponding interface of their mobile phone and simply click to send it again, without needing to edit it repeatedly.
[0205] Furthermore, the text data is obtained by the terminal 500 from the user-defined text, saved to the cloud 400, and then retrieved from the cloud 400 before being sent to the smart wall switch 100.
[0206] Specifically, the cloud 400 presents an interactive interface to the user through the terminal 500. Any text entered by the user based on this interactive interface will be directly saved to the cloud 400. When the user sends defined text to the smart wall switch 100 based on an interactive interface (which may be the same as or different from the aforementioned interactive interface for inputting text), the terminal 500 will first retrieve the corresponding defined text data from the cloud 400, then load it into the corresponding first text configuration message and send it to the smart wall switch 100 through the cloud 400.
[0207] In some embodiments, the first content includes first text for identifying the operation element 20; the processing module 101 in the first state also has a first sub-state and a second sub-state; wherein the size of the first text displayed on the display screen 30 in the first sub-state is different from the size of the first text displayed on the display screen 30 in the second sub-state, so as to adapt to the font size needs of people of different ages.
[0208] Furthermore, the processing module 101 can also switch between the first sub-state and the second sub-state based on the terminal 500.
[0209] The terminal 500 may be, for example, a mobile phone, on which an application (APP) corresponding to the smart wall switch 100 is installed. After the user enters the interactive interface provided by the application, the interactive interface provides multiple options for the user to choose from. The user can switch between the first sub-state and the second sub-state by selecting the corresponding option, so as to conveniently switch the font size on the display screen 30 of the smart wall switch 100 through the mobile phone.
[0210] For specific examples, such as Figure 7 and Figure 10 As shown, in the first sub-state, the first text is displayed on the display screen 30 at a size of 24×24 (e.g., ...). Figure 7 In the second sub-state, the first text is displayed on the display screen 30 at a size of 32×32 (e.g., ...). Figure 10 ).like Figure 11 As shown, the smart wall switch 100 also includes a character library chip 104, which supports two text sizes: 24×24 and 32×32. When the processing module 101 switches between the first sub-state and the second sub-state based on the terminal 500, it obtains the dot matrix data of the first text of the corresponding size through the character library chip 104 and sends it to the display screen 30 for display.
[0211] Furthermore, in the second sub-state, the font on the display screen 30 will be larger than the font on the display screen 30 in the first sub-state, so that the font size on the display screen 30 can be easily switched via the terminal 500 to adapt to different scenarios. For example, switching to the second sub-state is suitable for use by the elderly, while switching to the first sub-state is suitable for use by the young.
[0212] In a specific example, the font chip 104 can be, for instance, the GT32L32S0140 font chip. The GT32L32S0140 is a Chinese character font chip 104 containing 12×12, 16×16, 24×24, and 32×32 dot matrix characters, supporting GB2312 simplified Chinese characters (with legal authorization from the National Information Technology Standardization Committee) and ASCII characters, arranged in a horizontal format. The dot matrix information of the character's internal code can be directly read using the function interface within the library file provided by the GT32L32S0140. In addition to the aforementioned font, the GT32L32S0140 also provides 512KB of freely writable space, including 128 sectors, each sector being 4KB or 16 pages, with each page being 256 bytes. The freely writable space address range is 0x000000~0x07FFFF, and it can be repeatedly erased and rewritten more than 100,000 times. The GT32L32S0140 uses an SPI serial bus interface to interact with the processing module 101. The clock frequency is 45MHz, the operating voltage is 2.7V to 3.6V, the read current is 20mA, the write current is 30mA, the sleep current is 8uA, and the operating temperature is -40℃ to 85℃.
[0213] Of course, in other embodiments, if the local memory of the smart wall switch 100 is sufficient, a software font library can also be used. This embodiment does not impose specific limitations.
[0214] In some embodiments, such as Figure 12 As shown, the smart wall switch 100 has a human presence sensing function. The smart wall switch 100 can control the display status of the display screen 30 according to whether someone is detected, and the sensing distance is adjustable.
[0215] Specifically, the control board 10 of the smart wall switch 100 also carries a radar module 105. The radar module 105 is electrically connected to the processing module 101, enabling the processing module 101 to write distance parameters to the radar module 105 based on a distance adjustment command. These distance parameters are used to adjust the detection range of the radar module 105, for example, as a judgment threshold. The adjustment command can be, for example, a control message sent by the user through a terminal 500, allowing the user to conveniently adjust the human presence sensing range of the smart wall switch 100 through the terminal 500.
[0216] Furthermore, the working principle of the radar module 105 for human presence detection can be as follows: the radar module 105 is used to emit a microwave beam into the target space and receive an echo beam formed by the microwave beam being reflected by at least one object in the target space. The frequency difference between the emitted microwave beam and the received echo beam is detected using the Doppler principle to determine whether a human body exists in the target space. The target space can be, for example, a space that the user can approach, extending outwards from the smart wall switch 100.
[0217] Furthermore, smart wall switches 100 generally come in various styles, and these styles may differ in materials. For example, smart wall switches 100 with the same structure may have glass, plastic, and metal versions. The difference between glass, plastic, and metal versions may lie in the material of the operating element 20. For instance, the operating element 20 of the glass version is made of glass, while the operating element 20 of the metal version is made of metal (e.g., aluminum alloy). Since the radar module 105 is generally located internally, its emitted microwave beam and received echo beam may pass through the operating element 20. Therefore, the difference in the material of the operating element 20 will directly affect the beam transmission and reception effect, resulting in significant differences in the human body sensing distance between different styles of smart wall switches 100 with the same distance parameter. Therefore, to accommodate smart wall switches 100 with different operating element 20 materials, this embodiment provides a solution that can automatically identify the style of the smart wall switch 100 and write the corresponding distance parameter to the radar module 105. The distance parameters are different between different styles to ensure that the human body sensing distance between different styles is consistent.
[0218] For example Figure 13 As shown, different models are distinguished by whether or not diodes DJ1 and DJ2 are soldered. When SG5-0 outputs a high level, if both DJ1 and DJ2 are soldered, the processing module 101 will read "11" from ports K1 and K2. If DJ1 is soldered but DJ2 is not, it will read "10". If DJ1 is not soldered but DJ2 is soldered, it will read "01". If neither DJ1 nor DJ2 is soldered, it will read "00". The different models are then distinguished by the readings of the K1 and K2 levels. For example, if "00" is read, it represents a metal model, and the processing module 101 will write a first distance parameter to the radar module 105. If "10" is read, it represents a glass model, and the processing module 101 will write a second distance parameter to the radar module 105. Because the metal material of the metal version has a certain weakening effect on the microwave beam, the radar module 105 can detect a greater distance under the first distance parameter than under the second distance parameter. This makes the detection distance of the radar module 105 under the first distance parameter, weakened by the metal operating component 20, more consistent with the detection distance of the glass version.
[0219] In a further example, the radar module 105 may employ the MS58-2020S9M4 miniaturized 5.8G radar sensor module from MiSense Technology. This module uses a high-performance radar sensor paired with a miniaturized planar antenna, achieving optimal sensor performance while maintaining a size of 20×20mm. The radar module 105 operates in the 5.8G ISM band (e.g., 5.725GHz~5.875GHz), detecting the presence of humans based on the Doppler effect. Both the sensing distance and delay time are flexibly adjustable. The chip incorporates an LDO, supports wide voltage supply, has ultra-low power consumption (overall current less than 9mA), and can be powered by a resistor-capacitor step-down circuit. It supports a standard IIC interface and can be electrically connected to the processing module 101 via the IIC interface for data exchange. The transmit power is -4dBm, and the operating voltage is 2.7V~4.8V. After receiving the adjustment command from the terminal 500, the processing module 101 performs software parameter tuning on the MS58-2020S9M4 radar module 105 via the IIC interface to adjust its detection range. The MS58-2020S9M4 radar sensor module features a pre-defined software parameter adjustment protocol. Users can adjust the distance parameters by creating corresponding data frames according to this protocol. The MS58-2020S9M4 radar sensor module uses an I / O port level signal interface. It outputs a high level when proximity sensing is present and a low level when no proximity sensing is present. Its TX / RX pins need to be connected to the processing module 101 to meet the software requirements for setting the sensing sensitivity (i.e., adjusting the distance parameters), which can be configured by the user through the APP interface.
[0220] In a further example, the app on the terminal 500 can provide multiple distance settings for the user to choose from, such as a long distance setting, a short distance setting, and an off setting. The distance parameters corresponding to the long distance setting and the short distance setting are different. For example, the long distance setting is 80cm and the short distance setting is 30cm. When switching to the long distance setting, it can sense a person in the target space within 80cm and trigger the display screen 30 to turn on after sensing the person.
[0221] In some embodiments, the smart wall switch 100 further includes indicator lights, which include RGB LEDs, each capable of emitting light in three colors: R, G, and B. Specifically, each RGB LED has four control terminals: a first control terminal, a second control terminal, a third control terminal, and a fourth control terminal. The first to third control terminals are used to control the R, G, and B diodes of the RGB LEDs, respectively. These terminals are connected to the first to third control pins of the processing module 101. The processing module 101 controls the R, G, and B colors of the RGB LEDs using PWM signals output from the first to third control terminals, thereby achieving different lighting effects by mixing the R, G, and B colors.
[0222] In specific examples, the different lighting effects could include: breathing light effect, flowing light effect, gradient light effect, etc. Users can switch the lighting effects of the RGB lights via the terminal 500.
[0223] The fourth control terminal is used to control the power supply voltage of the RGB lights. The higher the power supply voltage, the brighter the RGB lights, and vice versa. The processing module 101 directly or indirectly connects to the fourth control terminal of the RGB lights through the fourth control pin to adjust the power supply voltage of the RGB lights, thereby adjusting the brightness of the RGB lights.
[0224] Based on this, the indicator light provided in this embodiment has the ability to dim and adjust color, and can switch between different lighting effects.
[0225] Furthermore, the indicator light in this embodiment may include two RGB LEDs, and the specific arrangement of the two RGB LEDs can be referred to as follows: Figures 18-36 The description of the illustrated embodiment is for reference only. The first to fourth control terminals of the two RGB lights are multiplexed and synchronously controlled by the processing module 101 to achieve synchronized light effects between the two RGB lights.
[0226] In a specific example, the control circuit of the indicator light is as follows: Figure 14 As shown, LED1 and LED2 are two RGB LEDs, and RGB-R, RGB-G, RGB-B, and RGB-P are the first to fourth control pins of the processing module 101, used to control the first to fourth control terminals of LED1 and LED2 respectively. Furthermore, the processing module 101 uses three PWM ports (RGB-R, RGB-G, RGB-B) to achieve the color mixing effect of the RGB LEDs, and one IO port (RGB-P) to control the total power supply of the RGB LEDs, adjusting the brightness to achieve gradient and breathing effects.
[0227] Taking the control principle of RGB-R as an example Figure 14 The control and working principle of the three light-emitting diodes R, G, and B are explained in detail:
[0228] As can be seen, the cathodes of the LEDs R inside LED1 and LED2 serve as the first control terminals of LED1 and LED2, and are connected to the collector of transistor Q1 via current-limiting resistors R11 and R12. The emitter of Q1 is grounded, and the base of Q1 is controlled by the first control pin RGB-R of the processing module 101 through a resistor R15. Specifically, when RGB-R outputs a high level, Q1 conducts, causing the cathode level of the LED R to be pulled low and emit light; when RGB-R outputs a low level, Q1 is cut off, causing the LED R to turn off. The processing module 101 then controls Q1 by outputting a PWM signal with varying high and low levels through RGB-R, thereby controlling whether the LED R emits light. Similarly, the control and working principle of the LEDs G and B in LED1 and LED2 can be understood by referring to the LED R principle, and will not be elaborated further.
[0229] Taking LED1 as an example Figure 14 The principle of brightness adjustment is explained in detail below: As can be seen, the anodes of the three light-emitting diodes (R, G, and B) of LED1 are all connected to a 5V power supply through PMOS transistor Q6. The gate (G) of the PMOS transistor is grounded through a resistor R54 and a transistor Q7. The base of transistor Q7 is controlled by the fourth control pin RGB-P of the processing module 101. Therefore, RGB-P can indirectly control the conduction and cutoff of Q6 by controlling Q7, thereby controlling the power supply of LED1. Specifically, when RGB-P outputs a high level, Q7 conducts, causing Q6 to conduct and powering LED1. When RGB-P outputs a low level, Q7 is cut off, causing Q6 to turn off and powering LED1 to be de-energized. The processing module 101 then controls the power supply of LED1 by outputting a PWM signal with varying high and low levels through RGB-P, thus adjusting the brightness of LED1. Similarly, the brightness adjustment of LED2 can be understood in the same way and will not be elaborated further.
[0230] Based on the smart wall switch 100 provided in the above embodiments, in an embodiment not shown, the present invention also provides a control method for a smart wall switch, the smart wall switch having a mode switching unit, the control method comprising: detecting an indication of the mode switching unit; switching to a corresponding operating mode in response to the indication of the mode switching unit; wherein the smart wall switch has at least a first mode among a plurality of operating modes, wherein in the first mode, the smart wall switch configures the triggering function of at least one first button as a first function, so as to control the operation of a relay associated with the first button after detecting that an external operation is applied to the first button.
[0231] Furthermore, the mode switching unit has multiple gears, and the multiple gears of the mode switching unit are switchable.
[0232] The control method further includes: detecting the current gear of the mode switching unit after power-on; and switching to the corresponding working mode based on the indication given by the current gear of the mode switching unit.
[0233] Furthermore, the processing module also has a second mode among its multiple operating modes, wherein in the second mode, the triggering function of at least one first button is switchable.
[0234] The control method further includes: acquiring a switching command; if in the second mode, switching the trigger function of the first button to the second function or the first function according to the switching command; wherein when the trigger function of the first button is switched to the second function, the smart wall switch can communicate externally in response to the first button being subjected to an external operation, and its associated relay remains constantly connected.
[0235] Furthermore, the switching instruction includes key function configuration data received from an external source.
[0236] The control method further includes: after entering the second mode, configuring the trigger function of the first button as the first function by default;
[0237] If external key function configuration data is received, the trigger function of the first key is switched according to the key function configuration data.
[0238] Furthermore, after receiving external button function configuration data, the control method further includes: determining the configuration result pointed to by the button function configuration data; if the configuration result is to configure the first button as a second function; then determining the current working mode; if the current mode is the first mode, then the first button is still configured as the first function.
[0239] Furthermore, the smart wall switch also has a third mode among its multiple operating modes, and the control method further includes: in the third mode, configuring at least one first button as a second function; if external button function configuration data for configuring the first button as the first function is received in the third mode, then no response is made.
[0240] Furthermore, the control method further includes: configuring the triggering function of at least one second button as a second function, and keeping the second button working in the second function when switching to any working mode; wherein in the second function, external communication is initiated in response to an external operation being applied to the second button.
[0241] Furthermore, the smart wall switch is capable of communicating with the cloud; wherein, when the first button or the second button is configured for a second function, the smart wall switch communicates externally in response to an external operation applied to the first button or the second button, specifically including: sending a preset signal externally in response to an operation applied to the first button or the second button, so that the cloud receives the preset signal, and controls the execution of a trigger result defined by the target scenario based on the preset signal and a target scenario matching the preset signal; wherein the target scenario is generated by the user freely defining the mapping relationship between at least one operation event and at least one trigger result on a terminal, each preset signal represents an operation event of the first button or the second button being operated and set to the second function, and each trigger result is at least one executable function of at least one controlled device belonging to the user to which the smart wall switch belongs.
[0242] Regarding the aforementioned control component, one embodiment of the present invention also provides a control component suitable for the smart wall switch 100. Please refer to [link / reference]. Figures 18-36 The present invention provides a control component that is specifically illustrated. The control component includes: a base housing 1; and at least one button 2, the button 2 being movably connected to the base housing 1. The button 2 can be understood as a subordinate component of the operating element 20 described in the above embodiments; that is, in this embodiment, each button in the operating element 20 is subordinated to a mechanical button 2. Furthermore, each pressing area of the button 2 can form the first button and / or the second button in the above embodiments.
[0243] Specifically, in this embodiment, the base shell 1 is provided with an elastic support 3 within the coverage area of each button 2, and the elastic support 3 is used to provide a restoring force. The button 2 can be movably connected to the base shell 1 via a pivot connection, a snap-fit connection, or a connection through the elastic support 3, or other movable connection methods. In one embodiment, the button 2 is movably connected to the base shell 1 via a connecting hook 23, the specific structure of which is described in detail below. The control component provided by this invention is not only applicable to smart wall switches, but also to wireless switches and various product structures related to buttons. Any product using this control component is within the protection scope of this invention.
[0244] Figures 15-17This paper illustrates a conventional four-button smart switch structure. Conventional smart switches typically have an elastic arm 33 integrally formed on the housing. The elastic arm 33 abuts against the bottom of the button 2, providing a reset force for the button 2. The end of the elastic arm 33 is positioned to the button 2 through a positioning post 221 and a positioning hole 3211. This improves the positional accuracy of the button 2 under the positioning action of the elastic arm 33, thereby triggering the electronic switch 106 more accurately and making the gaps between the buttons 2 more uniform.
[0245] like Figure 15 As shown, existing smart switches generally use a straight-arm elastic arm 33, meaning the projection of the elastic arm 33 onto the upper surface of the button 2 is a straight arm. For example... Figure 16 and Figure 17 As shown, Figure 17 The dashed line shows the shape of the elastic arm 33 before it is pressed, and the solid line shows the shape of the elastic arm 33 after it is pressed. When button 2 is pressed, the elastic arm 33 is pressed down by button 2 and deforms downward. At the same time, the end of the elastic arm 33 will also undergo horizontal displacement (from...). Figure 17 It can be seen that the positioning hole 3211 at the end of the elastic arm 33 has shifted in the fourth direction. Since the horizontal displacement of button 2 during the pressing process is extremely small, button 2 and elastic arm 33 will have a relative horizontal displacement at the positioning connection. However, since the straight-arm elastic arm 33 extends in the same direction as the fourth direction, it is difficult to eliminate this relative displacement by deformation. This causes the elastic arm 33 to interfere with the pressing motion of button 2, resulting in a stuck pressing feel of button 2 and easy damage to the positioning connection. In the prior art, to compensate for this relative displacement, the gap between button 2 and elastic arm 33 can only be increased. However, this will result in poor positioning accuracy of button 2, causing button 2 to be loose, the gap between each button 2 to become uneven, and the accuracy of button 2 triggering the electronic switch to deteriorate.
[0246] Therefore, in order to improve the positioning accuracy of button 2, while avoiding button 2 from getting stuck and avoiding damage to the positioning connection of button 2, the control component provided by the invention, such as Figures 18-21c As shown, the elastic support 3 includes a fixed end 31 connected to the base shell 1 and a positioning bend 32 extending from the fixed end 31. A connecting structure 321 is provided on the positioning bend 32, and the positioning bend 32 is positioned and connected to the button 2 through the connecting structure 321. The projection of the positioning bend 32 onto the first plane 21 is curved, allowing the positioning bend 32 to deform in a third direction, which is the direction from the connecting structure 321 toward the fixed end 31. Figures 19-21cThe first plane 21 is parallel to the pressing surface of the button 2. When the pressing surface of the button 2 is planar, the first plane 21 can be considered equivalent to the pressing surface. When the pressing surface is curved, the first plane 21 can be understood as a plane perpendicular to the normal to the center position of the pressing surface. The fixed end 31 can be integrally formed on the base shell 1 or fixedly connected to the base shell 1. The positioning connection between the button 2 and the connecting structure 321 can be understood as a connection method that mutually restricts their positional relationship in the horizontal direction. The button 2 and the connecting structure 321 can be relatively movable or fixed in the vertical direction. The positioning connection includes pin-hole positioning connection, fixed connection, etc. The connecting structure 321 can be a positioning hole, positioning pin, or other structure with positioning function. In a preferred embodiment, the connecting structure 321 includes a positioning hole 3211, and the button 2 is provided with a positioning post 221. The positioning post 221 is inserted into the positioning hole 3211 to achieve the positioning connection.
[0247] The control component provided by the present invention has a positioning bending portion 32 of the elastic support member 3 that can deform in the third direction. This deformation eliminates the horizontal displacement of the end of the positioning bending portion 32 during the pressing process, thereby making the positioning fit between the button 2 and the positioning bending portion 32 tighter and improving the positioning accuracy of the button 2. Furthermore, since the positioning bending portion 32 can deform in the third direction, it will not interfere with the pressing movement of the button 2, resulting in a smoother pressing feel for the button 2. At the same time, it makes the part where the button 2 is positioned and connected to the elastic support member 3 less prone to damage.
[0248] It is worth noting that, such as Figure 19 As shown, the positioning bend 32 is capable of deformation in a third direction, including deformation toward the third direction and deformation in the opposite direction. Specifically, when the initial state of the positioning bend 32 is an upward-curved state ( Figure 19 As shown, when the positioning bend 32 is pressed by the button 2, the connecting structure 321 tends to shift to the right. At this time, the positioning bend 32 needs to deform to the left to eliminate the displacement. When the initial state of the positioning bend 32 is horizontal (not shown in the figure), when the positioning bend 32 is pressed by the button 2 and bends downward, the connecting structure 321 tends to shift to the left. At this time, the positioning bend 32 needs to deform to the right to eliminate the displacement.
[0249] In some exemplary embodiments, Figures 18-20b A semi-circular elastic support member 3 is provided, wherein, Figure 18 This is a perspective view of the elastic support member 3. Figure 19 This is a cross-sectional view of the elastic support 3 and button 2 after assembly. Figure 18 and Figure 19As shown, the elastic support 3 is tilted upward so that the connecting structure 321 abuts against the lower surface of the button 2. When the button 2 is pressed down, the elastic support 3 is pressed into a horizontal state by the button 2, and the connecting structure 321 has a tendency to shift to the right. Figure 20a This is a top view of the elastic support 3 after it has been pressed down without being connected to button 2. Figure 20b The image shows a top view of the elastic support 3 connected to the button 2 and pressed against by the button 2. Comparing the two images, it can be seen that when the elastic support 3 is pressed against by the button 2, the connecting structure 321 is subjected to a leftward positioning force F from the button 2. The positioning bending part 32 of the elastic support 3 deforms under the action of the positioning force F. The positioning bending part 32 eliminates the horizontal displacement of the connecting structure 321 through deformation, thereby eliminating the relative displacement between it and the button 2.
[0250] Figure 21a An "L"-shaped elastic support member 3 is provided, with its fixed end 31 integrally formed on the base shell 1. The middle position of the positioning bending part 32 is curved. The connecting structure 321 is located at the end of the positioning bending part 32 away from the fixed end 31. The positioning bending part 32 is tilted towards the button 2. Its connecting structure 321 abuts against the button 2. When the button 2 presses against the elastic support member 3, the connecting structure 321 tends to move to the right. The positioning bending part 32 eliminates the horizontal displacement generated during the pressing process by deformation, thereby eliminating the relative displacement between it and the button 2.
[0251] Figure 21b A mosquito coil-shaped elastic support 3 is provided, with its fixed end 31 integrally formed into the base shell 1. The positioning bending portion 32 is also mosquito coil-shaped. The connecting structure 321 is located at the end of the positioning bending portion 32 furthest from the fixed end 31. The positioning bending portion 32 curves upwards towards the button 2, and its connecting structure 321 abuts against the button 2. The positioning bending portion 32 can eliminate horizontal displacement generated during pressing through deformation, thereby eliminating relative displacement with the button 2. Figure 21a Compared to the previous embodiment, the positioning bending portion 32 provided in this embodiment is more likely to deform in multiple directions to eliminate horizontal displacement in multiple directions during the pressing process, and is more suitable for the button 2 with multi-area pressing function.
[0252] Figure 21cAn M-shaped elastic support member 3 is provided, whose fixed end 31 includes a first end 311 and a second end 312, which are integrally formed on the base shell 1. A positioning bend 32 is formed between the first end 311 and the second end 312. The positioning bend 32 is M-shaped. The connecting structure 321 is located in the middle of the positioning bend 32. The positioning bend 32 is tilted towards the button 2, and its connecting structure 321 abuts against the button 2. The positioning bend 32 can eliminate the horizontal displacement generated during the pressing process through deformation, thereby eliminating the relative displacement between it and the button 2. Compared with the embodiment of FIG20, the positioning bend 32 of this embodiment is more likely to deform in the third direction.
[0253] In some embodiments, such as Figures 20a-21c As shown, the projection of the positioning curved portion 32 onto the first plane 21 is an arc-shaped curve, wherein the arc-shaped curve includes a circular arc curve, an elliptical arc curve, a similar circular arc curve, or a combination of multiple arc-shaped curves. Figure 24 As shown, all areas of the button 2 can be pressed, and at least two elastic support members 3 are provided within the coverage area of each button 2 to support the button 2 in a balanced manner. The fact that all areas of the button 2 can be pressed can be understood as at least one electronic switch 106 being provided within the coverage area of the button 2, and pressing any area of the button 2 triggers the electronic switch 106. In this embodiment, the positioning bending portion 32 is arc-shaped, allowing it to deform not only in the third direction but also in other directions, thus adapting to the characteristic that all areas of the button 2 can be pressed, resulting in a more consistent restoring force when each area of the button 2 is pressed.
[0254] In some embodiments, such as Figures 20a-21c As shown, the bending angle of the projection of the positioning bending portion 32 onto the first plane 21 is greater than 60°, thereby enhancing the deformation capability of the positioning bending portion 32 in the third direction. The bending angle can be understood as the sum of the bending angles of all bending locations of the positioning bending portion 32 on the first plane 21, for example... Figure 20b The bending angle of the central positioning bending part 32 is 180°. Figure 21a The bending angle of the central positioning bending part 32 is 90°. Figure 21b The bending angle of the central positioning bending part 32 is 360°. Figure 21c The bending angle of the centrally positioned curved section 32 is 540°. Figure 21aIn the illustrated embodiment, the bending angle, β angle, is such that, since the positioning bending portion 32 is tilted towards the button 2, when the button 2 presses against the positioning bending portion 32, the connecting structure 321 tends to move to the right. The connecting structure 321 will be subjected to a positioning force F from the button 2 to the left. At the same time, the positioning bending portion 32 is also subjected to a supporting force from the fixed end 31 to the right. The positioning bending portion 32 bends under the combined action of the positioning force and the supporting force. Through force analysis and experimental verification, the inventors found that when the bending angle is greater than 60°, under the same positioning force F, the positioning bending portion 32 is more likely to bend and deform, and it is less likely to break when the deformation is large. Therefore, the bending angle in this embodiment is set to be greater than 60°, making the button 2 feel smoother to press and extending the service life of the positioning bending portion 32.
[0255] In some embodiments, such as Figure 20a and Figure 21c As shown, the elastic support 3 abuts against the button 2. The fixed end 31 of the elastic support 3 includes a first end 311 and a second end 312. The first end 311 and the second end 312 are respectively connected to the base shell 1. The elastic support 3 forms a positioning bend 32 between the first end 311 and the second end 312, so that the elastic support 3 forms a closed elastic support structure. Since the movement of the button 2 is a pressing movement, the elastic support 3 in this embodiment provides a restoring force to the button 2 through abutment. Compared with other force transmission methods, the elastic support 3 in this embodiment will not disengage from the button 2, resulting in higher reliability. The closed elastic support structure provided in this embodiment has higher support stability and can more evenly support the button 2 to accommodate the characteristic that all areas of the button 2 can be pressed. Furthermore, compared to... Figure 21a and Figure 21b The open elastic support structure of this embodiment has a longer service life and better elasticity retention compared to the closed elastic support structure of the other embodiment.
[0256] Furthermore, such as Figures 18-20b and Figure 24 As shown, the positioning bending portion 32 is constructed in a semi-circular ring shape; the first end 311 and the second end 312 of the elastic support member 3 are integrally formed on the base shell 1, and the positioning bending portion 32 is tilted toward the button 2 so that the connecting structure 321 abuts against the button 2; two elastic support members 3 are provided in the coverage area of each button 2, the two elastic support members 3 are symmetrically arranged and the opening directions are opposite, so that the two elastic support members 3 can support the button 2 in a balanced manner, which is adapted to the characteristic that each area of the button 2 can be pressed.
[0257] Existing smart switches, such as Figure 15As shown, each button 2 has four elastic arms 33 corresponding to its coverage area, and each elastic arm 33 is positioned and connected to the button 2. This causes over-positioning, resulting in conflicting positioning relationships among the four elastic arms 33, and some elastic arms 33 failing to engage with the button 2. To avoid this, the existing technology often increases the gap between the positioning hole 3211 and the positioning post 221. However, this leads to a decrease in the positioning accuracy of the button 2 and uneven gaps between the buttons 2. To solve this problem, in some embodiments, such as... Figure 19 and Figure 24 As shown, the button 2 is provided with a positioning structure 22, which is used for positioning and connecting with the connecting structure 321 of the positioning bend 32. Each button 2 has only two corresponding positioning structures 22, thus avoiding over-positioning and improving the matching accuracy between the positioning structure 22 and the connecting structure 321. This enhances the positioning accuracy of the button 2 and ensures that each positioning structure 22 can cooperate with its corresponding connecting structure 321. The positioning structure 22 includes a positioning post 221, and the connecting structure 321 of the positioning bend 32 includes a positioning hole 3211. The positioning post 221 is inserted into the positioning hole 3211 to achieve the positioning connection between the positioning structure 22 and the connecting structure 321.
[0258] In some embodiments, such as Figure 24 As shown, the button 2 has multiple connecting hooks 23 facing the base shell 1. The base shell 1 has corresponding locking positions 18 for each connecting hook 23. The side of the locking position 18 facing away from the button 2 has a movable space. The connecting hooks 23 engage with the locking positions 18 to achieve a movable connection between the button 2 and the base shell 1. The connecting hooks 23 can move within the movable space, allowing each connecting hook 23 to move in a mutually supporting manner, ensuring that all areas of the button 2 can be pressed. This mutually supporting movement can be understood as follows: when the end of the button 2 biased towards a certain connecting hook 23 is pressed downwards, the other connecting hooks 23 become the fulcrums for the movement of the button 2. Further, as... Figure 26 As shown, the control board 10 has clearance through holes 1071 at the corresponding positions of each connecting hook 23. The clearance through holes 1071 are used to avoid the downward movement of the connecting hook 23, so that the control board 10 can be installed close to the base shell 1, thereby reducing the thickness of the switch panel.
[0259] In some embodiments, such as Figure 24As shown, the control component also includes a control board 10, which is disposed on the base shell 1. The control board 10 is provided with a plurality of electronic switches 106, and the button 2 includes a plurality of trigger protrusions 24, each corresponding to one of the electronic switches 106. The trigger protrusions 24 are used to trigger the electronic switches 106. Each button 2 has at least two trigger protrusions 24 at each end, and each button 2 has four connecting hooks 23 located inside the trigger protrusions 24 to prevent accidental triggering of another electronic switch 106 located at the same end when one electronic switch 106 is triggered by the button 2. The electronic switches 106 can be tactile switches, micro switches, detection switches, membrane switches, etc. In one specific embodiment, the electronic switch 106 is a tactile switch. The trigger protrusions 24 can be trigger posts, trigger strips, trigger bosses, etc., to improve the accuracy of triggering the electronic switches 106. The base shell 1 has a switch trigger hole 12 at the corresponding position of each electronic switch 106, and the trigger part of the electronic switch 106 is exposed to the switch trigger hole 12.
[0260] Furthermore, such as Figure 24 As shown, each button 2 has four electronic switches 106 within its coverage area. The four electronic switches 106 are located at the four corners of the corresponding button 2 to form a pressing area at the four corners of the button 2. The user can press any pressing area to trigger the corresponding electronic switch 106.
[0261] Based on the control components provided in the above embodiments, an embodiment of the present invention further provides a smart wall switch 100, including the above-mentioned control components, such as... Figures 22-36 As shown, the smart wall switch further includes: a base shell 4, on which the control component is disposed; a display screen 30, disposed on the base shell 1; the control component further includes a control board 10, disposed on the base shell 1, and the display screen 30 is electrically connected to the control board 10; as shown Figure 22 , Figure 24 and Figure 26 As shown, the control component has two buttons 2 arranged side by side, and the display screen 30 is positioned between and surrounded by the two buttons 2. Each button 2 has multiple trigger protrusions 24, and the control board 10 has an electronic switch 106 at the corresponding position of each trigger protrusion 24. When the button 2 receives a press operation, it triggers the corresponding electronic switch 106 through the trigger protrusion 24 to realize the button 2 function. The display screen 30 is surrounded by each trigger protrusion 24 so as to display the function corresponding to each electronic switch 106 through the display screen 30.
[0262] Furthermore, such as Figure 25 As shown, the base shell 1 has a mounting groove 13 at a corresponding position to the display screen 30 for accommodating the display screen 30. A transparent cover plate 14 is provided on top of the display screen 30. The display screen 30 has a display area 302, which displays content through the transparent cover plate 14. The transparent cover plate 14 is racetrack-shaped, and the display area 302 is rectangular, located at the center of the transparent cover plate 14. The transparent cover plate 14 is attached to the base shell 1 to confine the display screen 30 within the mounting groove 13. The control board 10 is located on the side of the base shell 1 opposite to the display screen 30. The mounting groove 13 has a first ribbon cable through hole 131, through which the ribbon cable 301 of the display screen 30 passes and connects to the control board 10. Figure 31 and Figure 26 As shown, a ribbon cable connector 70 is provided on the side of the control board 10 opposite to the display screen 30. The control board 10 has a second ribbon cable through hole 1072, through which the ribbon cable 301 passes and connects to the ribbon cable connector 70. Furthermore, the display screen 30 is a 1.47-inch TFT screen with a resolution of 172×320.
[0263] Furthermore, such as Figure 26 , Figure 24 and Figure 22 As shown, the control board 10 has a second light-emitting element 50 near each electronic switch 106. The second light-emitting element 50 is an LED light. The base shell 1 has a first light-transmitting hole 15 at the corresponding position of the second light-emitting element 50. The button 2 has a second light-transmitting hole 261 at the corresponding position of the second light-emitting element 50. The light emitted by the second light-emitting element 50 passes through the first light-transmitting hole 15 and the second light-transmitting hole 261 to indicate the location of the electronic switch 106, so that the user can accurately press the pressing area of the button 2.
[0264] In some embodiments, such as Figure 34 As shown, this embodiment is similar to Figure 24 The difference in this embodiment is that the display screen 30 is not used to display button names, but rather to display information such as weather, temperature, and humidity. The button names are displayed by laser engraving. Specifically, a light-diffusing film 151 covers the first light-transmitting hole 15, and the button 2 has light-transmitting text 262 laser-engraved in the corresponding area of the light-diffusing film 151. The light-transmitting text 262 hollows out the button 2, and the light emitted by the second light-emitting element 50 is diffused by the light-diffusing film 151 and then shines through the light-transmitting text 262 to indicate the function corresponding to each electronic switch 106.
[0265] In some embodiments, such as Figures 30-32As shown, the control panel 10 is provided with at least one mode switching part 102. The mode switching part 102 has multiple positions for indicating multiple preset working modes of the smart wall switch 100. The multiple positions of the mode switching part 102 are switchable. After power-on, the smart wall switch 100 switches to the corresponding working mode according to the current position of the mode switching part 102. The control component is detachably connected to the bottom shell 4 through the base shell 1. The mode switching part 102 is located on the side of the control panel 10 facing the bottom shell 4 for concealed installation. When the base shell 1 is installed on the bottom shell 4, the mode switching part 102 is covered and cannot be operated. When the control panel 10 is detached from the bottom shell 4 along with the base shell 1, the mode switching part 102 is exposed for operation. The multiple preset working modes (for an understanding of the characteristics of the multiple working modes, please refer to...) Figures 1 to 14 Between the embodiments described herein, at least one executable function of the smart wall switch 100 is different. Compared to smart wall switches with a single and fixed working mode in the prior art, the switching between multiple working modes of the smart wall switch 100 provided in this embodiment can bring about at least some or all changes in functions, with richer and more diverse functions, which can meet more complex usage needs and be applicable to a wider range of control scenarios. The detachable connection includes snap-fit, screw connection, etc. The mode switching part 102 can be a DIP switch 1021, a push-button electronic switch 106, or other electronic components capable of switching on and off states. In one embodiment, the mode switching part 102 is set as a DIP switch 1021. The multiple gear positions can be 2 gear positions, 3 gear positions, or more. The concealed installation can be understood as the mode switching part 102 being concealed inside the smart wall switch 100. In one embodiment, the control plate 10 covers the opening side of the bottom shell 4, and the mode switching part 102 is surrounded between the bottom shell 4 and the control plate 10.
[0266] Furthermore, such as Figure 32 As shown, mounting holes 43 are provided on both sides of the bottom shell 4. The mounting holes 43 are used to fix the bottom shell 4 to the wall by mounting screws. When the base shell 1 is installed on the bottom shell 4, the mounting holes 43 are blocked by the base shell 1.
[0267] Furthermore, such as Figure 32 and Figure 31 As shown, multiple snap-fit protrusions 16 are provided on the inner sidewalls of both ends of the base shell 1, and snap-fit steps 41 are provided on the bottom shell 4 at the corresponding positions of the snap-fit protrusions 16. The snap-fit protrusions 16 snap into the snap-fit steps 41 to achieve a detachable connection between the base shell 1 and the bottom shell 4.
[0268] The smart wall switch 100 provided by this invention allows users to configure the function of its electronic switch 106 via a mobile app. Users can set the electronic switch 106 to directly control the relay 111, or to control the controlled device by sending signals through the communication module 103. The electronic switch 106 corresponding to the relay 111 can also be set to no longer control the relay 111. When the network is disconnected, the smart wall switch 100 cannot send signals through the communication module 103, and users cannot change the function of the electronic switch 106 via the mobile app. If the function of the electronic switch 106 corresponding to the relay 111 has been changed, the smart wall switch 100 will be unable to control the relay 111, causing inconvenience.
[0269] Based on the above problems, in order to enable the smart wall switch 100 to switch the function corresponding to the electronic switch 106 to control the relay 111 even when the network is disconnected, in this embodiment, as follows: Figures 31-33 As shown, the smart wall switch 100 further includes: at least one relay 111; a processing module 101 electrically connected to the mode switching unit 102, wherein the processing module 101 switches to the corresponding working mode according to the current position of the mode switching unit 102 after power-on; and a communication module 103; wherein the processing module 101 is electrically connected to the communication module 103 to enable external communication; and the processing module 101 has at least a first mode for controlling the on / off state of the relay 111 and a second mode for external communication via the communication module 103 among its multiple working modes. Thus, the smart wall switch 100 can both physically control the on / off state of the controlled device via the relay 111 and transmit communication signals to control the controlled device via the communication module 103. When the network is disconnected, the user can switch the smart wall switch 100 to the first mode through the mode switching unit 102. At this time, some functions of the electronic switch 106 will be forcibly changed to control the corresponding relay 111. The user can operate the electronic switch 106 to control the relay 111 to power on the smart controlled device. In this way, restarting the smart controlled device no longer requires pulling the switch, which is more convenient.
[0270] Furthermore, the communication module 103 can be a wireless communication module (e.g., a Bluetooth communication module, a WIFI communication module, a Zigbee communication module, etc.) or a power line carrier communication module. The communication signal can be a wireless signal or an electrical signal. The processing module 101 can be understood as any circuit with data processing capabilities. It can be a circuit with data processing capabilities built from discrete components, or it can be an integrated circuit embodied in the form of a chip or module. In a specific embodiment, such as... Figure 31As shown, the communication module 103 adopts a Bluetooth communication module, and the communication module 103 and the processing module 101 are integrated on the same circuit board. Further, the button 2 includes a button housing 25 and a metal cover plate 26 covering the upper surface of the button housing 25. The communication module 103 is connected to an external antenna 1031, which is attached to the base shell 1 near its edge to reduce the signal shielding effect of the metal cover plate 26 on the communication module 103.
[0271] Furthermore, such as Figure 33 As shown, a power board 11 is housed inside the base shell 4. Three relays 111 are mounted on the lower surface of the power board 11, and a header 112 is mounted on the upper surface of the power board 11. An isolation cover 42 is provided on the open side of the base shell 4. The isolation cover 42 is snapped onto the base shell 4, enclosing the power board 11 inside the base shell 4. The isolation cover 42 has a header 112 through-hole 421 through which the header 112 is exposed to the outside. A pin header 108 is provided on the lower surface of the control board 10. When the base shell 1 is installed on the base shell 4, the pin header 108 is inserted into the header 112 to achieve electrical connection between the control board 10 and the power board 11.
[0272] Furthermore, such as Figure 26 As shown, the upper surface of the control panel 10 is provided with eight electronic switches 106. The eight electronic switches 106 are arranged in groups of four at both ends of the control panel 10. Three electronic switches 106 located at the upper left, upper right, and lower left corners of the switch panel control their respective relays 111. The other electronic switches 106 cannot directly control the relays 111. The switch panel can be understood as the part of the smart wall switch 100 located on the outside of the wall. Figure 35 A four-button version of the smart wall switch 100 is provided, which has four electronic switches 106 distributed at the four corners of the switch panel. It also has three relays 111, and the electronic switches 106 corresponding to the relays 111 are also located at the upper left, upper right and lower left corners of the switch panel.
[0273] Furthermore, such as Figure 30 , Figure 32 and Figure 27As shown, the smart wall switch 100 also includes a limiting housing 5, which is fixedly connected to the base housing 1. The control board 10 is clamped between the limiting housing 5 and the base housing 1. The mode switching unit 102 includes a DIP switch 1021, which includes multiple toggle positions. Each toggle position represents a gear position, and the switching between the toggle positions can instruct the smart wall switch 100 to switch between different operating modes. The DIP switch 1021 has a function for switching toggle positions. The toggle handle 1022 is provided, and the limiting housing 5 has a dial hole 52 at the corresponding position of the toggle handle 1022, through which the toggle handle 1022 passes. The side of the limiting housing 5 facing away from the button 2 is designated as a second surface 56, and the second surface 56 has a recess 53 at the corresponding position of the dial hole 52. The toggle handle 1022 is accommodated in the recess 53. When the control component is detached from the bottom housing 4, the toggle handle 1022 is exposed to the outside for easy operation by the user. The toggle handle 1022 is accommodated in the recess 53 so that it does not protrude from the second surface 56. Furthermore, the limiting housing 5 is fixedly connected to the base housing 1 by four connecting screws 54. Further, as... Figure 26 As shown, the control board 10 has two circuit board positioning holes 1073, and the base shell 1 is provided with a positioning rib, which is inserted into the circuit board positioning holes 1073 to position the control board 10. Further, as... Figure 30 As shown, the limiting housing 5 has a pin header through hole 51 at the corresponding position of the pin header 108, through which the pin header 108 passes and connects to the female connector 112. The ribbon cable connector 70 has a locking wrench, which can lock / unlock the ribbon cable 301 by moving the locking wrench. The limiting housing 5 has a locking rib 55 protruding at the corresponding position of the locking wrench, as shown. Figure 27 As shown, when the limiting housing 5 is installed on the base housing 1, the locking rib 55 abuts against the locking wrench, so that the locking wrench remains locked to prevent the ribbon cable 301 from accidentally falling off.
[0274] Existing smart switches with luminous strips have light-emitting elements that point towards the light guide in the same direction as the light guide's outward light. This results in the light emitted by the light-emitting element passing directly through the light guide, causing excessively high light intensity at the position directly opposite the light-emitting element, leading to glare. Furthermore, the vertical stacking of the light-emitting element and light guide occupies a significant amount of vertical space on the switch panel. Additionally, a certain distance is needed between the light-emitting element and the light guide to improve light distribution, which further occupies vertical space, resulting in a thicker switch panel. Therefore, in some embodiments, such as... Figures 26-29As shown, the smart wall switch 100 further includes a first light-emitting element 60 for emitting light; a light guide 6, wherein the first light-emitting element 60 is disposed on the side of the light guide 6, and the side of the light guide 6 for receiving illumination from the first light-emitting element 60 is designated as a light-receiving surface 611; the light guide 6 is provided with a light-emitting surface 621 in a first direction, which is opposite to the direction in which the button 2 is pressed; the light-emitting surface 621 is exposed on the outer surface of the smart wall switch 100 for emitting light from the light guide 6 outward; the direction of the first light-emitting element 60 facing the light-receiving surface 611 is designated as a second direction, which is opposite to the first direction. The first light-emitting element 60 can be an LED or other light-emitting electronic component. In one embodiment, the first light-emitting element 60 is configured as an RGB LED (i.e.,...). Figure 14 The RGB colored lights LED1 and LED2 in the illustrated embodiment. The light-receiving surface 611 can be a plane or a curved surface. The direction of the first light-emitting element 60 facing the light-receiving surface 611 can be understood as a direction from the center of the first light-emitting element 60 towards a position near the center of the light-receiving surface 611 and perpendicular to the light-receiving surface 611. In one embodiment, such as Figure 28 As shown, the second direction is a horizontal direction to the right. The first light-emitting element 60 is disposed on the side of the light guide element 6, including the side corresponding to the end of the light guide element 6. Figure 28 (The embodiment shown) or located on the side corresponding to the middle position of the light guide 6 ( Figure 29 (Example shown).
[0275] In this embodiment of the invention, the first light-emitting element 60 is disposed to the side of the light guide element 6, avoiding the stacking of the first light-emitting element 60 and the light guide element 6 in the longitudinal direction, reducing the occupation of the longitudinal space of the switch panel, and allowing the switch panel to be thinner. In addition, the direction in which light enters the light guide element 6 (i.e., the second direction) is different from the direction in which light exits the light guide element 6 (i.e., the first direction), avoiding the light from passing through the light guide element 6 in a direct manner, which would cause the light intensity emitted by the light guide element 6 at the position directly opposite the first light-emitting element 60 to be too high, thereby making the light uniformity effect of the light guide element 6 better.
[0276] Furthermore, the light guide 6 is made of a semi-transparent material, which improves the light uniformity of the light guide 6 and makes the light intensity of the light emitting surface 621 more uniform. In a specific embodiment, the light guide 6 is made of PC material mixed with a light diffusing agent and then injection molded.
[0277] In some embodiments, such as Figure 28 and Figure 29As shown, the second direction and the first direction have a specified angle, which is set to 60° to 90° or 90° to 120°, to better prevent light from passing through the light guide 6 in a direct manner and to make the light more evenly distributed within the light guide 6. In a preferred embodiment, the specified angle is set to 90°.
[0278] In some embodiments, such as Figure 28 As shown, the end of the light guide 6 away from the first light-emitting element 60 is provided with a first inclined surface 64. The first inclined surface 64 is used to gradually reduce the thickness of the light guide 6 in the first direction, so that the light-emitting surface 621 gradually reduces the light intensity in the direction away from the first light-emitting element 60.
[0279] In some embodiments, such as Figure 27 and Figure 22 As shown, the light-emitting surface 621 of the light guide 6 is parallel to the third surface 27 of the button 2. The third surface 27 is set as the side of the button 2 that is pressed. The light-emitting surface 621 of the light guide 6 is elongated. There are two buttons 2. The light-emitting surface 621 is sandwiched between the two buttons 2. The height difference between the light-emitting surface 621 and the third surface 27 is less than 1.5mm, so that the light-emitting surface 621 is closer to the outside, ensuring that the user can see the light-emitting surface 621 even from an oblique angle.
[0280] In some embodiments, such as Figure 27 and Figure 22 As shown, there are two light guides 6, which are symmetrically arranged on both sides of the display screen 30. The light-emitting surfaces 621 of both light guides 6 are sandwiched between the two buttons 2. Furthermore, the distance between the end of the light guide 6 furthest from the first light-emitting element 60 and the side of the button 2 is less than 1.5mm, so that the light emitted from the side of the light guide 6 can be displayed externally from the side of the button 2.
[0281] In some embodiments, such as Figure 27 As shown, the smart wall switch 100 also includes a control board 10, which is disposed on the side of the base shell 1 opposite to the button 2. The first light-emitting element 60 is disposed on the control board 10. The light guide 6 is jointly limited by the base shell 1 and the control board 10. The fact that the light guide 6 is jointly limited by the base shell 1 and the control board 10 can be understood as follows: after the base shell 1 and the control board 10 are assembled, the base shell 1 and the control board 10 fix the light guide 6 by clamping or other means to facilitate the assembly of the light guide 6.
[0282] In one embodiment, such as Figure 28As shown, the light guide 6 includes a light guide base 61, a light guide plate 62 disposed on the light guide base 61, and a limiting protrusion 63. The first light-emitting element 60 is disposed on the side corresponding to the end of the light guide base 61. The light guide plate 62 is perpendicular to the light guide base 61. The light-receiving surface 611 is disposed on the side of the light guide base 61, with the light-receiving surface 611 facing the first light-emitting element 60. The light-emitting surface 621 is disposed on the side of the light guide plate 62 away from the light guide base 61. The first inclined surface 64 is disposed on the side of the light guide plate 62 away from the light-emitting surface 621. The bottom surface of the light guide base 61 is attached to the control plate 10, and the first light-emitting element 60 is disposed on the control plate 10. Figure 27 and Figure 25 As shown, the base shell 1 is provided with a light guide hole 17 adapted to the light guide plate 62, and a limiting groove adapted to the limiting protrusion 63; wherein, the light guide hole 17 is elongated, and the gap of the light guide hole 17 is slightly larger than the thickness of the light guide plate 62, so that the light guide plate 62 can just pass through the light guide hole 17; the length of the light guide hole 17 is adapted to the length of the light guide plate 62, so that one end of the light guide hole 17 abuts against the first inclined surface 64, and the other end abuts against the side of the light guide plate 62; the assembly process of the light guide component 6 is as follows: the light guide plate The light guide 62 passes through the light guide hole 17 from the side of the base shell 1 facing the control plate 10. The width of the light guide seat 61 is greater than the light guide hole 17 so that it is restricted from passing through by the light guide hole 17. The limiting protrusion 63 is engaged in the limiting groove. The control plate 10 abuts against the light guide seat 61 so that the light guide seat 61 is clamped and fixed by the base shell 1 and the control plate 10. Based on the above assembly process, it can be seen that the light guide 6 provided in this embodiment can be quickly and conveniently assembled to the smart wall switch 100, improving assembly efficiency. It is worth noting that the light guide 6 provided in this embodiment can be installed symmetrically from left to right. When assembling this part, the operator does not need to distinguish between left and right, thereby further improving assembly efficiency.
[0283] In some embodiments, such as Figure 27 As shown, the first light-emitting element 60 is covered inside the base shell 1. This prevents the light emitted by the first light-emitting element 60 from passing directly through the light guide 6, thus ensuring more even light distribution within the light guide 6.
[0284] In another embodiment, such as Figure 29As shown, this embodiment provides another light guide component 6 structure. The light guide component 6 includes a light guide base 61 and a light guide plate 62 disposed on the light guide base 61. The light guide plate 62 is perpendicular to the light guide base 61. The first light-emitting element 60 is disposed on the side corresponding to the middle position of the light guide component 6. The light-receiving surface 611 is disposed on the side of the light guide base 61 facing the first light-emitting element 60. The light-emitting surface 621 is disposed on the side of the light guide plate 62 away from the light guide base 61. The bottom surface of the light guide base 61 is attached to the control plate 10, and the first light-emitting element 60 is disposed on the control plate 10. Further, the light guide base 61 has a light-reducing through hole 612 at the position directly opposite the first light-emitting element 60. The light-reducing through hole 612 is used to reduce the light transmission of the light guide base 61 in the direction directly opposite the first light-emitting element 60, thereby reducing the light intensity emitted by the light-emitting surface 621 at the position directly opposite the first light-emitting element 60, making the light emitted by the light-emitting surface 621 more uniform. Furthermore, a light-shielding plate can be inserted into the light-reducing through-hole 612 to block the light transmission of the light guide seat 61 in the direction directly opposite the first light-emitting element 60, thereby further reducing the light intensity emitted by the light-emitting surface 621 at the position directly opposite the first light-emitting element 60.
[0285] In some embodiments, such as Figure 28 and Figure 29 As shown, the light-receiving surface 611 of the light guide 6 is a concave arc surface, and the side of the first light-emitting element 60 facing the light-receiving surface 611 is a convex arc surface, so as to increase the area of the light-receiving surface 611 that receives light and allow more light to enter the light guide 6.
[0286] In some embodiments, such as Figure 31 As shown, a radar module 105 is provided on the side of the control board 10 opposite to the button 2. This module emits microwaves to detect the presence of a human body. In one specific embodiment, the radar module 105 uses the MS58-2020S9M4 miniaturized 5.8G radar sensor module from MiSense Technology. Please refer to the relevant circuit structure of the radar module 105, as shown below. Figure 26 As shown, the control board 10 has a shielding hole 1074 at the corresponding position of the radar module 105 to prevent the microwave signal emitted by the radar module 105 from being shielded by the control board 10.
[0287] like Figure 35 A four-button version of the smart wall switch 100 is provided, with Figure 24The difference between the eight-button version of the smart wall switch 100 shown is that the eight-button version has eight electronic switches 106, while the four-button version of the smart wall switch 100 provided in this embodiment has only four electronic switches 106. The four electronic switches 106 are distributed at the four corners of the control board 10. The control board 10 has a second light-emitting element 50 near each electronic switch 106. The base shell 1 has a first light-transmitting hole 15 at the corresponding position of the second light-emitting element 50. The button 2 has a second light-transmitting hole 261 at the corresponding position of the second light-emitting element 50. The light emitted by the second light-emitting element 50 passes through the first light-transmitting hole 15 and the second light-transmitting hole 261 to indicate the location of the electronic switch 106. In this embodiment, the number of buttons 2 is still two, and each button 2 has two second light-transmitting holes 261. The button 2 has a trigger protrusion 24 directly opposite the electronic switch 106, and the trigger protrusion 24 is used to trigger the electronic switch 106. The base shell 1 has a switch trigger hole 12 at the corresponding position of each electronic switch 106, and the trigger part of the electronic switch 106 is exposed to the switch trigger hole 12.
[0288] like Figure 36 A two-button version of the smart wall switch 100 is provided, with Figure 24 The difference in the illustrated embodiment is that this embodiment has two electronic switches 106, each located at the center of one of the two buttons 2. Second light-emitting elements 50 are respectively positioned at the center of both ends of the control board 10, and these second light-emitting elements 50 and the two electronic switches 106 are aligned on the same straight line. The base shell 1 has a first light-transmitting hole 15 at the position corresponding to the second light-emitting element 50. The number of buttons 2 remains the same, each button 2 comprising a button housing 25 and a metal cover plate 26 covering the upper surface of the button housing 25. The metal cover plate 26 has a second light-transmitting hole 261 at the position corresponding to the second light-emitting element 50, and the button housing 25 has a light-transmitting position 251 at the position corresponding to the first light-transmitting hole 15, which penetrates the button housing 25. The light emitted by the second light-emitting element 50 passes through the first light-transmitting hole 15, the light-transmitting position 251, and the second light-transmitting hole 261 to indicate the location of the electronic switches 106. The button housing 25 has a trigger protrusion 24 located directly opposite the electronic switch 106, and the trigger protrusion 24 is used to trigger the electronic switch 106. The base housing 1 has a switch trigger hole 12 at the corresponding position of each electronic switch 106, and the trigger part of the electronic switch 106 is exposed to the switch trigger hole 12.
[0289] It is worth noting that, in Figure 36In the illustrated embodiment, the base shell 1 is provided with the first light-transmitting hole 15 and the switch trigger hole 12 required by the four-button and eight-button versions of the smart wall switch 100, that is, the base shell 1 has 5 first light-transmitting holes 15 and 5 switch trigger holes 12; the button shell 25 is provided with the light-transmitting position 251 and the trigger protrusion 24 required by the four-button and eight-button versions of the smart wall switch 100, that is, the button shell 25 is provided with 5 light-transmitting positions 251 and 5 trigger protrusions 24, so that the base shell 1 and the button shell 25 of this embodiment can be adapted to the two-button, four-button and eight-button versions of the smart wall switch 100.
[0290] like Figure 37 As shown, an embodiment of the present invention also provides a smart wall switch 100.
[0291] Reference Figure 37 The smart wall switch 100 includes at least an operating element 20, a display screen 30, a communication module 103, and a processing module 101. Features identical to those in the above embodiments can be understood by referring to the descriptions in the above embodiments, and identical parts may not be repeated in this embodiment.
[0292] The display screen 30 is used for display, and the communication module 103 is used for communication; the processing module 101 is electrically connected to the communication module 103 and the display screen 30 so that it can communicate with the outside world through the communication module 103.
[0293] Based on the display function of the display screen 30, the smart wall switch 100 provided by the present invention has a message function, that is, the user can edit the customized text (such as prompt information) and send it to the smart wall switch 100 for display, so as to leave a message through the display screen 30 of the smart wall switch 100.
[0294] It is worth noting that for smart wall switches 100 with a relatively large display screen 30, a portion of the display screen 30 can be used to display messages, while another portion can display button names and other information. However, for smart wall switches 100 with a limited (smaller) display screen 30, if the display screen 30 is mainly used to display button names and other information in daily operation, there may not be enough display area to display large amounts of message text, thus rendering the message function unavailable. Therefore, for smart wall switches 100 with a limited display screen 30 that cannot display a lot of content simultaneously, this invention provides a corresponding solution to enable such smart wall switches 100 to also have a message function.
[0295] Specifically, according to an embodiment of the present invention, the processing module 101 can switch between a first state and a second state. In the first state, the processing module 101 instructs the display screen 30 to display first content; in the second state, the processing module 101 instructs the display screen 30 to display second content.
[0296] The first content is used to identify the operating component 20 (e.g., the button name corresponding to the button arranged on the operating component 20). In addition, in the first state, weather, temperature, etc. can also be displayed (e.g., Figure 7 The first content is the main display content in daily work, i.e., the normally displayed content. The second content is obtained by the processing module 101 from the outside through the communication module 103, and can be understood as content different from the first content obtained from the outside, such as a message sent by the user through the terminal 500 (e.g., Figure 8 (As shown).
[0297] Furthermore, in the solution provided in this embodiment, the display screen 30 displays different content at different demand periods. The first state and the second state of the processing module 101 can be switched to display different content through the display screen 30 respectively. In the first state, the frequently used first content is displayed, and in the second state, the less frequently used and occasional second content is displayed, so that the first content and the second content can be displayed on demand in a time-sharing manner when the size of the display screen 30 is limited.
[0298] Furthermore, the processing module 101 can switch to the first state in response to an external operation being applied to the operating element 20 in the second state. The external operation applied to the operating element 20 may be, for example, a pressing action on a button (first button or second button) of the operating element 20. If the operating element 20 has multiple buttons, the external operation can be applied to certain specific buttons, or it can be applied to any button; this embodiment does not impose any specific limitations.
[0299] In a specific example, the first content includes first text for identifying the operation component 20, and the second content includes second text customized by the user on a terminal 500; wherein the processing module 101 is further configured to:
[0300] In the second state, the display screen 30 is instructed to display only the second text, and when exiting the second state and entering the first state, the display screen 30 is instructed to no longer display the second text but instead display the first text.
[0301] In other words, in this embodiment, the first text and the second text will not be displayed on the display screen 30 at the same time. When a message is needed, the second state is entered to display the second text, and when a message is not needed, the second state is exited to display the first text.
[0302] Therefore, in this embodiment, when displaying the second content, the second content will remain displayed on the display screen 30 until the user operates the operation component 20 (e.g., ...). Figure 8 As shown), this serves as a prompt; after the user operates the operating component 20, the display screen 30 will redisplay the first content to identify the operating component 20 (e.g., ...). Figure 7 As shown). Figure 7 and Figure 8 As shown, the first text includes the button name (first button or second button) on the operating component 20, and the second text includes user-defined text, which can be regarded as message information. When the user does not leave a message, the processing module 101 operates in the first state to display the button name on the display screen 30. However, since the display size of the display screen 30 is limited, there is no extra area to display a large message after the display screen 30 displays the button name. Therefore, after the user leaves a message, the processing module 101 can switch to the second state to refresh the display content of the display screen 30. That is, in the second state, the user-defined text will cover the button name, so that the display screen 30 temporarily only displays the message information. Before the user operates the button, the message information stays on the display screen 30, which improves the utilization rate of the display screen 30 and enhances the message prompting effect.
[0303] In some embodiments, the processing module 101 can communicate with a terminal 500 via the communication module 103 (e.g., ...). Figure 1 (as shown); the second content is defined by the user on a terminal 500; the processing module 101 is further configured to: after receiving the second content defined by the user on the terminal 500 in the first state, enter the second state to instruct the display screen 30 to display the second content.
[0304] The terminal 500 may be, for example, a mobile phone, allowing the user to define corresponding second content (e.g., message information, etc.) on the mobile phone. Figure 9 (As shown) The data is then sent to the smart wall switch 100 for display. After receiving the second content in the first state, the processing module 101 switches to the second state to control the display screen 30 to change from displaying the first content to displaying the second content.
[0305] Furthermore, the processing module 101 can communicate with a cloud 400 through the communication module 103, and then communicate with the terminal 500 through the cloud 400. In this communication environment, the processing module 101 can receive the second content defined by the user on the terminal 500 in various ways. This embodiment will elaborate on three of these methods:
[0306] Method 1: The second content is sent from terminal 500 to smart wall switch 100 via the cloud. Specifically:
[0307] The processing module 101 receives first data via the communication module 103; the first data is sent by the terminal 500 through the cloud 400; the first data carries data representing the second content. After receiving the first data, the processing module 101 instructs the display screen 30 to display the second content in response to the first data.
[0308] In Method 1, the first data is forwarded from the terminal 500 to the smart wall switch 100 via the cloud 400, so as to remotely define the second content to the smart wall switch 100.
[0309] Method 2: The second content is sent from terminal 500 to smart wall switch 100 via a point-to-point direct connection. Specifically:
[0310] The processing module 101 receives second data through the communication module 103; the second data carries data representing the second content, and the second data is sent directly from the terminal to the smart wall switch; in response to the second data, the display screen is instructed to display the second content.
[0311] Specifically, in method two, the smart wall switch 100 and the terminal 500 interact with each other via a direct connection (e.g., Bluetooth direct connection). The second content includes text, and the second data includes a second text configuration message. A single second text configuration message can carry data corresponding to multiple characters to improve efficiency.
[0312] Method 3: The second content is saved to the cloud by terminal 500 and retrieved from the cloud by smart wall switch 100. Specifically:
[0313] The processing module 101 receives a data receiving instruction sent by the terminal 500 through the cloud 400 via the communication module 103, obtains the data corresponding to the second content from the cloud 400 according to the data receiving instruction, and instructs the display screen 30 to display the second content.
[0314] Furthermore, in method three, the smart wall switch 100 directly obtains the corresponding second content from the cloud 400, so the terminal 500 does not need to directly send a message carrying the second content (first text configuration message or second text configuration message) to the smart wall switch 100, and is not limited by the carrying capacity of the communication message of the third-party platform.
[0315] In a specific example, the communication module 103 may include a WIFI communication unit, and the processing module 101 is electrically connected to the WIFI communication unit to communicate externally based on the WIFI protocol.
[0316] At this time, the terminal 500 can send the corresponding data receiving instruction to the smart wall switch 100 via WIFI, so that the smart wall switch 100 can directly obtain the corresponding second content from the cloud 400.
[0317] Furthermore, the text data corresponding to the second content involved in the above three methods is stored in the cloud 400 and / or the terminal 500 for reuse. For example, if a user defines a message and sends it to the smart wall switch 100 via their mobile phone, and later accidentally operates the control device 20 causing the message to disappear from the display screen 30, the message is still stored in the cloud 400 and / or the terminal 500. The user can still see the previously defined message on the corresponding interface of their mobile phone and simply click to send it again, without needing to edit it repeatedly.
[0318] In some embodiments, the first content includes first text for identifying the operation element 20; the processing module 101 in the first state also has a first sub-state and a second sub-state; wherein the size of the first text displayed on the display screen 30 in the first sub-state is different from the size of the first text displayed on the display screen 30 in the second sub-state, so as to adapt to the font size needs of people of different ages.
[0319] Furthermore, the processing module 101 can also switch between the first sub-state and the second sub-state based on the terminal 500.
[0320] The terminal 500 may be, for example, a mobile phone, on which an application (APP) corresponding to the smart wall switch 100 is installed. After the user enters the interactive interface provided by the application, the interactive interface provides multiple options for the user to choose from. The user can switch between the first sub-state and the second sub-state by selecting the corresponding option, so as to conveniently switch the font size on the display screen 30 of the smart wall switch 100 through the mobile phone.
[0321] For specific examples, such as Figure 7 and Figure 10 As shown, in the first sub-state, the first text is displayed on the display screen 30 at a size of 24×24 (e.g., ...). Figure 7 In the second sub-state, the first text is displayed on the display screen 30 at a size of 32×32 (e.g., ...). Figure 10 ).
[0322] like Figure 11 As shown, the smart wall switch 100 also includes a character library chip 104, which supports two types of text: 24×24 and 32×32.
[0323] When the processing module 101 switches between the first sub-state and the second sub-state based on the terminal 500, it obtains the dot matrix data of the first text of the corresponding size through the font chip 104 and sends it to the display screen 30 for display.
[0324] Furthermore, in the second sub-state, the font on the display screen 30 will be larger than the font on the display screen 30 in the first sub-state, so that the font size on the display screen 30 can be easily switched via the terminal 500 to adapt to different scenarios. For example, switching to the second sub-state is suitable for use by the elderly, while switching to the first sub-state is suitable for use by the young.
[0325] Based on the smart wall switch 100 provided in the above embodiments, in an embodiment not shown, the present invention also provides a control method for the smart wall switch, the control method comprising:
[0326] It can switch between operating in the first state and the second state;
[0327] If an external operation is received in the second state;
[0328] Then, in response to the external operation, it switches to the first state;
[0329] In the first state, the display screen shows first content, and in the second state, the display screen shows second content; the first content is used to identify the smart wall switch, and the second content is obtained from an external source.
[0330] Furthermore, the second content is defined by the user on a terminal; the control method further includes:
[0331] After receiving the second content defined by the user on the terminal in the first state, the system enters the second state to instruct the display screen to show the second content.
[0332] Furthermore, the first content includes first text for identifying the smart wall switch; the control method further includes:
[0333] In the first state, it can switch between working in the first sub-state or the second sub-state;
[0334] In the first sub-state, the size of the first text displayed on the screen is different from the size of the first text displayed on the screen in the second sub-state.
[0335] Furthermore, the control method also includes: switching between the first sub-state and the second sub-state based on the operation of a terminal.
[0336] like Figure 38As shown, an embodiment of the present invention also provides a smart wall switch 100.
[0337] Reference Figure 38 The smart wall switch 100 includes at least a display screen 30, a Bluetooth communication unit, and a processing module 101. The Bluetooth communication unit can be understood as a subordinate component of the communication module 103 in the above embodiments. Features identical to those in the above embodiments can be understood by referring to the descriptions in the above embodiments, and identical parts may not be repeated in this embodiment.
[0338] In existing technologies, modifications to the display content of Bluetooth-based smart wall switches are all performed locally, such as via direct Bluetooth connection, and cannot be remotely modified via the cloud. This limits the application scenarios of Bluetooth-based smart wall switch displays. Therefore, the smart wall switch 100 provided in this embodiment, while communicating externally via Bluetooth, has the ability to modify the display content via the cloud. Specifically:
[0339] The processing module is electrically connected to the Bluetooth communication unit for external communication via Bluetooth; the smart wall switch 100 has network connectivity.
[0340] The processing module is used to: before network distribution, join a specified network in response to a specified network distribution operation to complete network distribution; wherein after network distribution is completed, the smart wall switch can communicate with a cloud through the specified network.
[0341] Furthermore, after network configuration is completed, the smart wall switch 100 can connect to a third-party platform, and the cloud 400 can be, for example, a cloud server provided by the third-party platform. This third-party platform can be understood as an IoT platform with linkage and management capabilities, such as Mijia, HarmonyOS, or Tuya. For example, if the third-party platform is Mijia, the corresponding cloud server could be, for example, Xiaomi's IoT cloud platform. Because the business model of such IoT platforms dictates that merchants connecting to the platform must adhere to the platform's communication regulations, and because the data carrying capacity of Bluetooth-based communication messages is limited, while text data is generally large, some third-party platforms do not support the smart wall switch 100 using Bluetooth communication to remotely modify the text on the display screen 30 via the cloud 400. Connecting to a third-party platform is a basic requirement for the smart wall switch to achieve intelligence. Therefore, in the existing technology, most smart wall switches based on Bluetooth communication, connected to a third-party platform, and equipped with a display screen modify the display content locally via direct connection, and cannot achieve remote modification via the cloud.
[0342] Based on this, the smart wall switch 100 provided in this embodiment can remotely define the display content of the screen via the cloud 400 when based on Bluetooth communication. Specifically: after network configuration is completed, it can obtain a first text configuration message sent by a terminal through the cloud via Bluetooth; in response to the text data carried in the first text configuration message, it instructs the screen to display the corresponding text; wherein the text is defined by the user on the terminal.
[0343] Specifically, the terminal 500 can send the first text configuration message to the Bluetooth gateway to which the smart wall switch 100 is connected via the cloud 400, and then the Bluetooth gateway forwards it to the smart wall switch 100.
[0344] It is understandable that in the prior art, smart wall switches 100 based on Bluetooth communication set the display content of the display screen 30 through direct Bluetooth connection. This method has limited range and cannot be used in application scenarios requiring remote operation, such as message functions. Therefore, this embodiment provides an implementation method for remotely setting the display content of the display screen 30 using a smart wall switch 100 via Bluetooth communication. The first text configuration information is sent by the terminal 500 and transmitted to the smart wall switch 100 via the cloud 400, enabling the display content of the smart wall switch 100's display screen 30 to be remotely modified via the cloud.
[0345] Furthermore, to enable the smart wall switch 100 to connect to a third-party platform and remotely modify the display screen content via the cloud, this embodiment further provides a corresponding data transmission method. Specifically: the text includes characters; each first text configuration message carries two or fewer characters. If the user defines more than two characters on the terminal 500, the data corresponding to multiple characters is distributed and loaded into at least two first text configuration messages and sent to the smart wall switch 100 to reduce the capacity required for a single first text configuration message. Each first text configuration message also carries a sequence identifier, which is used to determine the arrangement order of the characters corresponding to each first text configuration message. This allows the smart wall switch 100 to combine the obtained characters in the expected order based on the sequence identifier after receiving multiple distributed first text configuration messages, thereby achieving the purpose of remotely defining multiple characters to the smart wall switch 100.
[0346] Furthermore, the intelligent wall switch 100 can send the data corresponding to multiple characters separately and multiple times, and the intelligent wall switch 100 can correctly splice after receiving multiple scattered first text configuration messages to restore the order of the multiple characters when they are defined on the terminal, thereby reducing the carrying capacity of a single first text configuration message, so that the intelligent wall switch 100 can access more third-party platforms. Thus, based on the text data transmission method given in this embodiment, the intelligent wall switch 100 can also achieve the purpose of remotely setting (editing, modifying, adding, etc.) the characters on the display screen with the help of a third-party platform in the case of Bluetooth communication.
[0347] Further, to prevent the problem that all characters need to be resent if one of the multiple characters fails to be sent, in this embodiment, each first text configuration message carries one character. If the user defines multiple characters on the terminal 500, the data corresponding to each character is separately loaded into the corresponding first text configuration message and sent to the intelligent wall switch 100.
[0348] Furthermore, in this embodiment, each first text configuration message only carries the data corresponding to one character, so as to facilitate retransmission in case of abnormal transmission (such as packet loss). That is, when the first text configuration message corresponding to one of the multiple characters fails to be sent, only this character needs to be resent, and the characters that have been successfully sent before do not need to be resent.
[0349] In addition to carrying the data corresponding to the character, each first text configuration message corresponding to one character also carries the sequence identifier corresponding to this character. This sequence identifier is used to indicate the sorting position of the character corresponding to the first text configuration message it is in among all characters, so as to facilitate the intelligent wall switch 100 to correctly sort and display the multiple characters received.
[0350] In a specific example, the data corresponding to the character can be, for example, the encoding data based on GB2312 corresponding to the character. After the user defines multiple characters on the terminal 500, the terminal 500 is used to generate the corresponding first text configuration message according to the encoding data corresponding to each character and the sorting position of each character, and send it to the intelligent wall switch 100 through the cloud. Taking "guest" as an example, the hexadecimal string representation of the corresponding GB2312 encoding is "BFCD". Then the encoding data corresponding to the character carried in the first text configuration message of the corresponding text data is "BFCD". Of course, in other embodiments, the data corresponding to the character can also be obtained based on other standard encodings, and this embodiment does not make specific limitations.
[0351] Furthermore, to further improve communication efficiency, in this embodiment, if the user defines multiple characters on the terminal, the first text configuration messages corresponding to each character are sent sequentially according to the order in which the characters were defined on the terminal. That is, the first text configuration message corresponding to a later character is sent after the first text configuration message corresponding to an earlier character has been successfully sent. If the first text configuration message corresponding to an earlier character fails to be sent, it will be retransmitted.
[0352] Specifically, there is a specified time interval between the first text configuration messages corresponding to two adjacent characters, which is used for the smart wall switch 100 to send a success message to the terminal 500 after successfully receiving the first text configuration message corresponding to the preceding character. The success message is used to trigger the terminal 500 to send the first text configuration message corresponding to the next character.
[0353] In other words, after the first text configuration message corresponding to the first character is successfully sent, the smart wall switch 100 will send a success message to the terminal 500 to inform the terminal 500 that the current text has been successfully sent, so that the terminal 500 can continue to send the next character. Each time the terminal 500 sends a first text configuration message corresponding to a character, it will wait for a specified time. If it receives a success message from the smart wall switch 100 within this specified time, it will immediately send the first text configuration message corresponding to the next character. If it still does not receive a success message from the smart wall switch 100 after the specified time, it will resend the message once, and wait for the specified time again after the resend. This process continues until N times. If no success message is received from the smart wall switch 100 after N resends, it is considered a sending failure, meaning that communication between the cloud and the smart wall switch 100 has failed, and a corresponding prompt message will be displayed to inform the user. Here, N is an integer greater than or equal to 1. In this example, N can be 3, meaning that if the message fails after 3 resends, the cloud communication is considered unreachable.
[0354] Taking "living room headlight" as an example, the corresponding GB2312 encoded hexadecimal string representation is "BFCDCCFCB4F3B5C6". The corresponding first data consists of four first text configuration messages carrying "BFCD", "CCFC", "B4F3", and "B5C6" sequentially. After "BFCD" is sent, terminal 500 will wait for a specified time:
[0355] If a success message is received from the smart wall switch 100 within the specified time, then continue to send "CCFC", and so on, until "BFCD", "CCFC", "B4F3" and "B5C6" have all been sent.
[0356] If no success message is received from the smart wall switch 100 within the specified time, "BFCD" will be resent and the specified time will be waited again. If no success message is received from the smart wall switch 100 within the second specified time, the first text configuration message corresponding to "BFCD" will be resent (i.e., the third time) and the specified time will be waited. If no success message is received from the smart wall switch 100 within the third specified time, the message will not be resent and it will be considered that the communication with the smart wall switch 100 through the cloud has failed.
[0357] If sending "B4F3" fails after sending "BFCD" and "CCFC" (i.e. no success message is received from the smart wall switch 100), then only "B4F3" will be resent, and "BFCD" and "CCFC" will not be resent.
[0358] In addition, in order to improve communication efficiency and reduce network overhead, in this embodiment, each first text configuration message has the same length, which is 4 to 8 bytes; the data corresponding to the text carried in each first text configuration message occupies less than or equal to 4 bytes.
[0359] In a specific example, the first text configuration message consists of 4 bytes (32 bits), where the data corresponding to the text occupies the first two bytes, and other data occupies the last two bytes. Other data may include, for example, key-value identifiers, sequence identifiers, etc.
[0360] In some embodiments, the processing module is further configured to:
[0361] The system acquires a second text configuration message sent directly by a terminal after failing to establish communication with the smart wall switch via the cloud using a Bluetooth direct connection method; and in response to the second text configuration message, instructs the display screen to display the corresponding text; wherein the second text configuration message is different from the first text configuration message; each second text configuration message can carry data corresponding to multiple characters.
[0362] Furthermore, the smart wall switch 100 and the terminal 500 interact with each other via a direct connection (e.g., Bluetooth direct connection), and a single second text configuration message can carry data corresponding to multiple characters to improve efficiency.
[0363] In some embodiments, the length of the second text configuration message is less than or equal to 32 bytes; if the data space occupied by the text defined by the user on the terminal is less than 32 bytes, then the corresponding second text configuration message carries encoded data for representing the text and character count data for indicating the number of characters; otherwise, a second text configuration message only carries encoded data for representing the text.
[0364] In one example, taking "living room light" as an example, the corresponding GB2312 encoded hexadecimal string representation is "BFCDCCFCB4F3B5C6". Since it is less than 32 bytes, the second text configuration message of the corresponding text data will carry "character count data" + "encoded data", that is, "4BFCDCCFCB4F3B5C6". Here, "4" indicates that there are a total of four characters. "BFCDCCFCB4F3B5C6" represents the specific content of these four characters.
[0365] In another example, taking "living room" as an example, the corresponding GB2312 encoded hexadecimal string is "BFCDCCFC". Since it is less than 32 bytes, the second text configuration message of the corresponding text data will carry "character count data" + "encoded data", that is, "2BFCDCCFC".
[0366] In another example, taking "11111111" as an example, the corresponding GB2312 encoded hexadecimal string representation is "A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0". Since it is equal to 32 bytes, the second text configuration message of the corresponding text data will only carry the "encoded data", that is, "A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0A3B0".
[0367] In some embodiments, the text data is obtained by the terminal after acquiring user-defined text, saving it to the cloud, and then acquiring it from the cloud before sending it to the smart wall switch.
[0368] Specifically, the cloud 400 presents an interactive interface to the user through the terminal 500. Any text entered by the user based on this interactive interface will be directly saved to the cloud 400. When the user sends defined text to the smart wall switch 100 based on an interactive interface (which may be the same as or different from the aforementioned interactive interface for inputting text), the terminal 500 will first retrieve the corresponding defined text data from the cloud 400, then load it into the corresponding first text configuration message and send it to the smart wall switch 100 through the cloud 400.
[0369] In some embodiments, such as Figure 39 As shown, the smart wall switch also includes at least one operating element 20 for accepting external operation.
[0370] The text includes a button name edited by the user on a terminal; the first text configuration message is used to modify the button name, which is the button name of the first button and / or the second button arranged on the operating component 20.
[0371] Each first text configuration message carries a sequence identifier and a key value identifier. The sequence identifier is used to determine the order of the text corresponding to each first text configuration message, so that the smart wall switch 100 can combine the obtained text in the expected order based on the sequence identifier to obtain the first text. The key value identifier is used to indicate the target button, which is at least one of the multiple buttons arranged on the operating component 20, so that the smart wall switch 100 can modify the button name of the target button to the user-defined button name according to the key value identifier.
[0372] In some embodiments, the text includes a message edited by a user on a terminal (the message here can be understood with reference to the second content in the above embodiments);
[0373] Each first text configuration message carries a sequence identifier, which is used to determine the order of the text corresponding to each first text configuration message. This allows the smart wall switch to combine the text corresponding to the multiple scattered first configuration text messages in the expected order based on the sequence identifier to obtain the message information and display it.
[0374] Based on the smart wall switch 100 provided in the above embodiments, in an embodiment not shown, the present invention also provides a control method for the smart wall switch, the control method comprising:
[0375] Before network configuration, the smart wall switch joins a designated network in response to a specified network configuration operation to complete the network configuration; after the network configuration is completed, the smart wall switch can communicate with a cloud through the designated network.
[0376] After network configuration is completed, it can obtain the first text configuration message sent by a terminal through the cloud via Bluetooth.
[0377] The display screen is instructed to display corresponding text in response to the text data carried in the first text configuration message; wherein the text is defined by the user on the terminal.
[0378] In some embodiments, the text includes text;
[0379] Each of the first text configuration messages carries two or fewer characters. If the number of characters defined by the user on the terminal is greater than two, the data corresponding to the multiple characters are distributed and loaded into at least two first text configuration messages and sent to the smart wall switch.
[0380] In some embodiments, each first text configuration message carries one character. If the user defines multiple characters on the terminal, the data corresponding to each character is loaded into the corresponding first text configuration message and sent to the smart wall switch.
[0381] In some embodiments, if a user defines multiple characters on the terminal, the first text configuration messages corresponding to each character are sent in the order in which the multiple characters are defined on the terminal.
[0382] In some embodiments, there is a specified time interval between the first text configuration messages corresponding to two adjacent characters, which is used for the smart wall switch to send a success message to the terminal after successfully receiving the first text configuration message corresponding to the preceding character. The success message is used to trigger the terminal to send the next first text configuration message corresponding to the next character.
[0383] In some embodiments, each first text configuration message has the same length, which is 4 to 8 bytes; the data corresponding to the text carried in each first text configuration message occupies less than or equal to 4 bytes.
[0384] In some embodiments, the control method further includes:
[0385] The second text configuration message sent directly by a terminal after failing to establish communication with the smart wall switch through the cloud is obtained based on a Bluetooth direct connection method.
[0386] In response to the second text configuration message instructing the display screen to display the corresponding text; wherein the second text configuration message is different from the first text configuration message; each second text configuration message can carry data corresponding to multiple characters.
[0387] In some embodiments, the length of the second text configuration message is less than or equal to 32 bytes; if the data space occupied by the text defined by the user on the terminal is less than 32 bytes, then the corresponding second text configuration message carries encoded data for representing the text and character count data for indicating the number of characters; otherwise, a second text configuration message only carries encoded data for representing the text.
[0388] In some embodiments, the text data is obtained by the terminal after acquiring user-defined text, saving it to the cloud, and then acquiring it from the cloud before sending it to the smart wall switch.
[0389] In some embodiments, the smart wall switch further includes at least one actuating element for accepting external operation;
[0390] The text includes key names that the user edits on a terminal;
[0391] Each first text configuration message carries a sequence identifier and a key-value identifier. The sequence identifier is used to determine the order of the text corresponding to each first text configuration message, so that the smart wall switch can combine the obtained text in the expected order based on the sequence identifier to obtain the first text. The key-value identifier is used to indicate the target button, which is at least one of multiple buttons on the operating device, so that the smart wall switch can modify the button name of the target button to the user-defined button name according to the key-value identifier.
[0392] In some embodiments, the text message is edited by the user on a terminal;
[0393] Each first text configuration message carries a sequence identifier, which is used to determine the order of the text corresponding to each first text configuration message. This allows the smart wall switch to combine the text corresponding to the multiple scattered first configuration text messages in the expected order based on the sequence identifier to obtain the message information and display it.
[0394] In the description of this specification, the references to terms such as "some embodiments," "a specific implementation method," "a specific implementation process," and "an example" indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms correspond to specific features, structures, materials, or characteristics that can be combined in any suitable manner in one or more embodiments or examples.
[0395] It should also be noted that the above embodiments can be combined with each other. For the same or similar concepts or processes, they may not be described again in some embodiments. That is, the technical solutions disclosed in the later (in the order of the text) embodiments should include the technical solutions described in this embodiment and the technical solutions described in all embodiments before this embodiment.
[0396] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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 smart wall switch, characterized in that, include: The control unit comprises an operating component, a bottom shell, a base shell, and a control board; the operating component and the control board are both disposed on the base shell to form a control assembly. A processing module electrically connected to at least one mode switching unit; the mode switching unit is disposed on the control component and electrically connected to the processing module disposed on the control board through the control board; wherein the control component is detachably connected to the bottom shell through the base shell, so that the mode switching unit can be detached from the bottom shell along with the control component. A communication module, wherein the processing module is electrically connected to the communication module so as to enable external communication through the communication module; The processing module has multiple operating modes, and these operating modes are switchable; the processing module is used to switch to the corresponding operating mode according to the instruction of the mode switching unit. The operating component includes a first button; the processing module has a third mode among its multiple operating modes, which allows the smart wall switch to be switched to the third mode, and the control target of each first button can be freely defined by the user on the terminal; the processing module also has a second mode among its multiple operating modes, in which the user can configure the trigger function of each first button through the terminal. It also includes at least one relay; in the second mode, the triggering function of at least one first button is switchable, and the processing module can switch the triggering function of the first button to the second function or the first function according to the switching instruction; the switching instruction includes button function configuration data received from the outside; In the third mode, all the first buttons of the smart wall switch are in the second function; In the first function, the first button is defined as controlling the corresponding relay action when it is operated; when the trigger function of the first button is switched to the second function, the processing module can communicate externally through the communication module in response to the external operation applied to the first button.
2. The smart wall switch according to claim 1, characterized in that, The operating component includes a mechanical button; the button is movably connected to the base shell, and the base shell is provided with an elastic support in the coverage area of each button, the elastic support being used to provide a restoring force; The button is provided with multiple connecting hooks facing the base shell. The base shell is provided with a locking position at the corresponding position of the connecting hook. The side of the locking position away from the button is provided with a movable space. The connecting hook is locked into the locking position to realize the movable connection between the button and the base shell. The connecting hooks can move within the active space, so that each of the connecting hooks can press with each other as fulcrums, so that each area of the button can be pressed. Each pressing area of the button can form the first button; there are multiple first buttons, and multiple first buttons are arranged on the same button panel.
3. The smart wall switch according to claim 1, characterized in that, The processing module can communicate with the cloud through the communication module; When the first button is configured with a second function, the processing module can communicate externally through the communication module in response to an external operation applied to the first button, specifically for: In response to the first button being operated, a preset signal is sent out so that the cloud receives the preset signal and controls the execution of the trigger result defined by the target scenario according to the preset signal and the target scenario matching the preset signal; wherein the target scenario is generated by the user freely defining the mapping relationship between at least one operation event and at least one trigger result on a terminal, each preset signal represents an operation event of the first button being operated with a second function, and each trigger result is at least one executable function of at least one controlled device belonging to the user of the smart wall switch.
4. The intelligent wall switch according to claim 3, characterized in that, If cloud communication fails, it will switch to direct connection mode to reconnect.
5. The smart wall switch according to claim 1 or 2, characterized in that, In the second mode, the processing module is also configured to default the trigger function of the first button to the first function. In the second mode, the processing module can receive external button function configuration data through the communication module and switch the trigger function of the first button according to the button function configuration data. The button function configuration data can be message data compiled based on the Bluetooth communication protocol.
6. The smart wall switch according to claim 5, characterized in that, In the third mode, all the first buttons of the smart wall switch are in the second function and cannot be changed through external button function configuration data.
7. The smart wall switch according to any one of claims 1-4, characterized in that, It also includes at least one relay capable of controllably switching on and off states, which is used to connect to and control a circuit; the bottom housing is used to house the relay; The bottom shell houses a power board with a socket on its upper surface. An isolation cover is provided on the open side of the bottom shell, snapping into the bottom shell and enclosing the power board inside. The isolation cover has a socket through-hole, through which the socket is exposed to the outside. A pin header is provided on the lower surface of the control board. When the base shell is installed on the bottom shell, the pin header is inserted into the socket to achieve electrical connection between the control board and the power board. The number of the first buttons is the same as the number of the relays, and each relay is provided with a corresponding first button.
8. The smart wall switch according to any one of claims 1-4 and 6, characterized in that, The gear shifting of the mode switching unit is a physical operation; the gear shifting of the mode switching unit is a local operation and does not depend on the network.
9. The smart wall switch according to claim 1, characterized in that, The mode switching unit includes a micro switch, which can be triggered by external operation. The micro switch is electrically connected to the processing module to transmit a corresponding trigger signal to the processing module. After detecting the trigger signal transmitted by the mode switching unit, the processing module switches the current working mode according to the preset working mode switching sequence.
10. The smart wall switch according to claim 9, characterized in that, If the first button is a mechanical button, then each first button is equipped with a corresponding electronic switch; the electronic switch can be a micro switch. If the micro switch used to switch the working mode is triggered by one of the first buttons, then the first button can be put into the working mode switching state through a specific operation.
11. The smart wall switch according to claim 10, characterized in that, The micro switch used to switch operating modes can be replaced by the electronic switch corresponding to the first button, so that the user can directly trigger the switching of operating modes by pressing the corresponding first button.