Switching device and control method thereof
By dynamically switching between the user interaction module and the connection control module of the switching device, flexible control of smart load devices is achieved, solving the problem that traditional power control methods cannot adapt to the diverse loads of smart homes, and providing a flexible power control solution that adapts to the characteristics of different load devices.
Patent Information
- Application Number
- CN202510953910.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-18
- Publication Date
- 2025-10-28
AI Technical Summary
Traditional power control methods cannot adapt to the increasingly diverse load types and complex control needs in modern smart homes, especially in terms of flexible control of smart load devices and avoiding the impact of prolonged power outages on the devices.
A switching device is provided that receives a specified operation through a user interaction module, controls the connected control module to switch to the opposite action of the current control action, and restores the original action after a specified time, thereby realizing the temporary reversal of the load circuit, adapting to the working characteristics of different load devices, and adjusting the reversal time by setting instructions.
It enables flexible control of smart load devices, avoids prolonged power outages, adapts to the control needs of different load devices, ensures that devices respond correctly to control commands within a specific time period, and is suitable for diverse load types in smart homes.
Smart Images

Figure CN120848233A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of smart home technology, and in particular to a switching device and its control method. Background Technology
[0002] With the rapid development of smart home technology, more and more smart devices are being widely used in home, commercial and industrial environments.
[0003] Traditional power control methods primarily rely on simple on / off switching, i.e., using switches to completely turn load devices on or off. This simplistic approach is clearly inadequate for the increasingly diverse load types and complex control requirements of modern smart homes. Summary of the Invention
[0004] The purpose of this disclosure is to provide a switching device and its control method, wherein a new power control scheme is adopted to provide a more flexible and efficient control method, thereby realizing flexible control of intelligent load devices.
[0005] Another objective of this disclosure is to provide a switching device and its control method, wherein, according to a specified operation received by a user interaction module, a control connection control module switches to a control action opposite to the current control action, and after maintaining the opposite control action for a specified time, restores to the original control action, so as to achieve a temporary reversal of the control state of the load circuit, and ultimately, while maintaining the original control state unchanged, a special control command can be transmitted to the load device through the temporary reversal.
[0006] Another objective of this disclosure is to provide a switching device and its control method, wherein the specified time is not fixed but variable, meaning that the user or system can adjust it according to needs. This makes the control of the switching device more flexible and can be adjusted according to specific usage scenarios.
[0007] Another objective of this disclosure is to provide a switching device and its control method, wherein after a temporary reversed state lasts for a specified time, the processing module triggers the connection control module to restore the original control action, thereby restoring the control state of the load circuit (i.e., ultimately maintaining the control state of the load circuit unchanged). This process is completed automatically without requiring additional user intervention or operation.
[0008] Another objective of this disclosure is to provide a switching device and its control method, wherein the processing module can intelligently adjust the control state of the load circuit according to the user's operation and a preset specified time, so as to avoid the impact of long-term power outage on the load device.
[0009] Another objective of this disclosure is to provide a switching device and its control method, wherein by freely defining a specified time, the user can adjust the length of the "temporary reversal" time of the load circuit control according to actual needs, adapting to the control requirements of various types of loads.
[0010] Another objective of this disclosure is to provide a switching device and a control method thereof, wherein by dynamically adjusting the reversal cycle according to the type of load device, the switching device can better adapt to the working characteristics of different load devices, ensuring that each device can correctly respond to the control command triggered by the "temporary reversal" within a specific time period.
[0011] Another objective of this disclosure is to provide a switching device and its control method, wherein the corresponding specified time determined by the setting instruction is to be set such that when the connection control module resumes the connection action, the load connected to the control line is still in the power-on state, thereby realizing the instantaneous disconnection and restoration of the load circuit. When the load circuit formed by the control line is connected to an intelligent load device, the corresponding control instruction is generated by the instantaneous disconnection and restoration of the power supply to the load circuit.
[0012] Another objective of this disclosure is to provide a switching device and a control method thereof, wherein the switching device is provided that can freely define the mapping relationship between buttons and on / off switches, thereby realizing flexible mapping between buttons and on / off switches and improving the applicability and flexibility of the switching device.
[0013] To achieve at least one of the above objectives, a first aspect of the present invention provides a switching device, comprising: a user interaction module for receiving user operations; a power input port for connecting a power line; a control output port for connecting a control line; a connection control module disposed between the power input port and the control output port, capable of switching between multiple control actions, wherein different control actions correspond to different connection states between the power input port and the control output port, and each connection state corresponds to a specific control state of the load circuit; and a processing module electrically connected to the user interaction module and the connection control module, and configured to have a first trigger mode, capable of: controlling the connection control module to switch to a control action opposite to the current control action according to a specified operation received by the user interaction module, and restoring the original control action after maintaining the opposite control action for a specified time.
[0014] In some embodiments, the processing module is further configured to: obtain a setting instruction before the control connection control module switches to a control action opposite to the current control action, the setting instruction being used to determine a corresponding specified time, and the setting instruction being manually set and / or automatically set according to the load type.
[0015] In some embodiments, the processing module is further configured to: automatically restore to the original control action after maintaining the opposite control action for a specified time.
[0016] In some embodiments, the user interaction module includes a button, and the specified operation includes a press-down operation and a release operation on the button; wherein: there is an interval time between the press-down operation and the release operation; the specified time is set to be greater than or equal to the interval time, and / or varies proportionally according to the interval time.
[0017] In some embodiments, the processing module controls the connection control module to switch to a control action opposite to the current control action, specifically for: controlling the connection control module to switch to a disconnect action opposite to the current connection action, and maintaining the disconnect action for a specified time before resuming the original connection action; wherein, the specified time is set such that when the connection control module resumes the connection action, the load connected to the control line is still in a powered-on state.
[0018] In some embodiments, the user interaction module includes multiple buttons, and the connection control module includes multiple switches; the processing module is further configured to: detect whether the user interaction module is operated; if an operation is detected, determine a target button; the target button is the button among the multiple buttons to which the operation is applied; based on the determined target button, determine a target mapping relationship matching the target button in the latest multiple mapping relationships; control the switches defined by the target mapping relationship to perform corresponding control actions; wherein, each mapping relationship defines a mapping relationship between at least one button information and at least one switch information; the mapping relationship is predefined by the user through a smart terminal; the button information represents at least one of the following: the button among the multiple buttons to which the operation is applied, and the type of operation applied to the button; the switch information represents at least one of the following: the switch among the multiple switches that needs to perform a control action, and the specific control action performed by the switch.
[0019] To achieve at least one of the above objectives, a second aspect of the present invention provides a switching device control method, comprising: acquiring a user operation; determining that when a specified operation is received, switching to a control action opposite to the current control action; wherein different control actions correspond to different control states of the load circuit of the switching device; maintaining the opposite control action for a specified time, and then restoring to the original control action.
[0020] In some embodiments, before switching to a control action opposite to the current control action, the control method further includes: obtaining a setting instruction; the setting instruction can be manually set and / or automatically set according to the load type; and determining a corresponding specified time according to the setting instruction.
[0021] In some embodiments, the restoration to the original control action specifically includes: automatically restoring to the original control action.
[0022] In some embodiments, the specified operation includes a pressing operation and a releasing operation applied to a switch device button; wherein: there is an interval time between the pressing operation and the releasing operation; the specified time is set to be greater than the interval time, or the specified time varies proportionally according to the interval time.
[0023] In some embodiments, the switching to a control action opposite to the current control action specifically includes: switching to a disconnection action opposite to the current connection action; maintaining the disconnection action for a specified time and then restoring to the original connection action; wherein the specified time is set such that when the connection action is restored, the load connected to the load circuit is still in a powered-on state.
[0024] 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 this disclosure. The foregoing inventive descriptions can be combined in any way, and these and other objectives of this disclosure will be fully realized through the following detailed description and accompanying drawings.
[0025] 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 this disclosure. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this disclosure 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 disclosure and serving together with the description to explain the principles of this disclosure. Obviously, the drawings described below are merely some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0027] Figure 1 This is a schematic diagram of an example network environment of a control system containing switching devices, according to an embodiment of this disclosure;
[0028] Figure 2 This is a block diagram illustrating the principle of a switching device in one embodiment of the present disclosure. Figure 1 ;
[0029] Figure 3 This is a schematic diagram illustrating the relationship between button operations and connection control module control actions in one embodiment of this disclosure. Figure 1 ;
[0030] Figure 4This is a schematic diagram illustrating the relationship between button operations and connection control module control actions in one embodiment of this disclosure. Figure 2 ;
[0031] Figure 5 This is a schematic diagram illustrating the relationship between button operations and connection control module control actions in one embodiment of this disclosure. Figure 3 ;
[0032] Figure 6 This is a schematic diagram illustrating the relationship between button operations and connection control module control actions in one embodiment of this disclosure. Figure 4 ;
[0033] Figure 7 This is a schematic diagram illustrating the relationship between button operations and connection control module control actions in one embodiment of this disclosure. Figure 5 ;
[0034] Figure 8 This is a schematic diagram illustrating the relationship between button operations and connection control module control actions in one embodiment of this disclosure. Figure 6 ;
[0035] Figure 9 This is a block diagram illustrating the principle of a switching device in one embodiment of the present disclosure. Figure 2 ;
[0036] Figure 10 This is a schematic diagram of the interface operation for defining the on / off device mapping relationship in one embodiment of this disclosure;
[0037] Figure 11 This is a schematic flowchart of a switching device control method according to an embodiment of the present disclosure;
[0038] Figure 12 This is a block diagram illustrating the principle of a switching device in one embodiment of the present disclosure. Figure 3 ;
[0039] Figure 13 This is a block diagram illustrating the principle of a switching device in one embodiment of the present disclosure. Figure 4 ;
[0040] Figure 14 This is a schematic diagram of the configuration interface for the fifth trigger mode in one embodiment of this disclosure;
[0041] Figure 15 This is a schematic diagram of the interface operation for selecting a local mode in one embodiment of this disclosure;
[0042] Figure 16 This is a block diagram illustrating the principle of a switching device in one embodiment of the present disclosure. Figure 5 ;
[0043] Figure 17 This is a block diagram illustrating the principle of a switching device in one embodiment of the present disclosure. Figure 6 ;
[0044] Figure 18 This is a schematic diagram of indicator light parameter configuration in one embodiment of this disclosure;
[0045] Figure 19 This is a schematic diagram of the interface operation of the pairing process in one embodiment of the present disclosure;
[0046] Figure 20a This is a schematic diagram of the device power failure restart logic in one embodiment of this disclosure. Figure 1 ;
[0047] Figure 20b This is a schematic diagram of the device power failure restart logic in one embodiment of this disclosure. Figure 2 ;
[0048] Figure 20c This is a schematic diagram of the device power failure restart logic in one embodiment of this disclosure. Figure 3 ;
[0049] Figure 20d This is a schematic diagram of the device power failure restart logic in one embodiment of this disclosure. Figure 4 ;
[0050] Figure 21 This is a hardware schematic diagram of a specific implementation of the switching device in one embodiment of this disclosure;
[0051] Figure 22 This is a schematic flowchart of another switching device control method in one embodiment of the present disclosure;
[0052] Figure 23 This is a schematic flowchart of another switching device control method in one embodiment of the present disclosure. Detailed Implementation
[0053] The embodiments of this disclosure 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 this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0054] It should be understood that in the description of all embodiments of this disclosure, 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. They are used only for the convenience of describing this disclosure and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this disclosure. 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 as "first" or "second" may explicitly or implicitly include one or more of that feature. Terms such as "coupled" and "connected" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication; they can refer to a direct connection or an indirect connection through an intermediate medium to form a linkage relationship; they can refer to the internal communication of two elements or the interaction relationship between two elements. For those skilled in the art, the specific meaning of the above terms in this disclosure can be understood according to the specific circumstances.
[0055] In the various embodiments of this disclosure, the symbol " / " indicates that it has two functions simultaneously. The symbol "A and / or B" indicates that the combination of the preceding and following objects connected by the symbol includes three cases: "A", "B", and "A and B".
[0056] With the rapid development of smart home technology, more and more smart devices are being widely used in network environments such as homes, businesses, and industries.
[0057] See Figure 1 , Figure 1 A schematic diagram of an example network environment 100 of a control system including a switching device 102 according to an embodiment of the present disclosure is shown.
[0058] Example network environment 100 may include switching device 102, load device 106, network access device 101 and one or more terminal devices 103.
[0059] Network access device 101 is used to provide network connectivity for switchgear 102, load device 106, and terminal device 103. Specifically, network access device 101 can receive / route various types of communication from switchgear 102, load device 106, and terminal device 103 and / or transmit / route various types of communication to switchgear 102, load device 106, and terminal device 103.
[0060] In some embodiments, network access device 101 provides only an internal network 104 (e.g., a wired network or a wireless local area network (LAN)) connection. All switching devices 102, load devices 106, and terminal devices 103 connected to network access device 101 are in the same internal network 104 and can communicate directly with each other.
[0061] In a further embodiment, network access device 101 is also connected to external network 105, enabling switch device 102, load device 106, and terminal device 103 to access the external network 105 via it. Network access device 101 can be, for example, a router 107, gateway 108, or other hardware electronic devices. Load device 106 can access external network 105 through network access device 101, thereby communicating with a remote server. The remote server can be, for example, an IoT cloud device of an Internet of Things (IoT) platform (hereinafter referred to as "cloud"), which has the authority to manage and configure the connected electronic devices (e.g., switch device 102, load device 106, etc.). When terminal device 103 accesses the remote server through external network 105, the remote server can display the configuration interface of the electronic devices (e.g., switch device 102, load device 106, etc.) through terminal device 103 to configure the electronic devices. Switch device 102, terminal device 103, and gateway 108 can all communicate with the cloud to achieve remote control. The cloud primarily serves as a data forwarding mechanism; in some examples, it can also be used for data storage and processing.
[0062] When the network access device 101 is a router 107, a gateway 108 can also be set up in the network environment. The gateway 108 and the router 107 can receive data from electronic devices such as load device 106, switch device 102, and terminal device 103 (data can be received through wireless signals, such as Bluetooth, radio frequency, WIFI, etc.), and provide data processing and forwarding services for these electronic devices, such as conversion between different communication protocols, data processing and forwarding, etc.
[0063] Furthermore, in the example network environment 100 where there is a cloud, in order for the switch device 102 to have the ability to connect to the cloud, it is necessary to configure it with a network. After the network configuration is completed, the switch device 102 can connect to the Internet and thus realize communication with the cloud.
[0064] Terminal device 103 can be any electronic device with at least one network interface. For example, terminal device 103 can be: a desktop computer, a laptop computer, a server, a mainframe computer, a cloud-based computer, a tablet computer, a smartphone, a smartwatch, a wearable device, a consumer electronics device, a portable computing device, and / or other electronic devices. Terminal device 103 uses its network interface to communicate with the physical or virtual network interface of network access device 101, thereby accessing the internal network 104 via network access device 101.
[0065] The terminal device 103 can be pre-installed with an application (e.g., a mobile app) corresponding to the corresponding electronic device (e.g., the switchgear 102). This application provides the user with a configuration interface for the switchgear 102, allowing the user to perform at least one operation on the switchgear 102, such as status viewing, parameter configuration, control, and network distribution. The terminal device 103 can also access an external network 105 via a network access device 101 or cellular data, thereby enabling communication with a remote server. This remote server facilitates communication with the switchgear 102 and the load device 106 (e.g., issuing commands, configuring the interface of the switchgear 102), achieving remote control.
[0066] External network 105 may include various types of wired or wireless networks, internal networks, or public networks, such as other local area networks or wide area networks (WANs) (e.g., the Internet). Note that this disclosure does not specifically limit the type of external network 105.
[0067] In this embodiment, the load device 106 can be understood as a device connected to the load circuit of the switching device 102. These load devices 106 can be intelligent load devices or non-intelligent load devices. Specifically, the load device 106 obtains electrical energy through the switching device 102, and changes in the control state of the load circuit of the switching device 102 can directly switch the power supply of the load device 106 on and off.
[0068] like Figure 2 The diagram provided is a block diagram of a switching device 102 according to an embodiment of the present disclosure. As can be seen, the switching device 102 includes at least a user interaction module 1021, a power input port 1022, a control output port 1023, a connection control module 1024, and a processing module 1025.
[0069] The user interaction module 1021 is used to receive user operations.
[0070] Specifically, the user interaction module 1021 is the part of the switch device 102 responsible for direct communication with the user. It provides physical and / or virtual interfaces, allowing the user to express their intentions or needs in an intuitive way. The user can interact with the switch device 102 in some way and send commands to control the behavior of the switch device 102. The user interaction module 1021 can be, for example, but not limited to, physical buttons / knobs (mechanical buttons, rotary encoders, etc.), touch screens (touch displays), voice recognition (voice collection components integrating microphones and voice processing algorithms), etc.
[0071] User operation can be understood as a specific behavior or action taken by a user to achieve a certain goal. In the context of switching device 102, these operations are usually to change the control state of the load circuit. Based on the above examples of possible implementations of user interaction module 1021, correspondingly, user operation can be, for example, but not limited to, triggering different control commands by pressing buttons, sliding or rotating knobs, operating by clicking icons or swiping gestures on the screen, issuing verbal instructions, etc. For ease of description, the following embodiments will mainly be described as user interaction module 1021 including physical buttons / knobs.
[0072] The power input port 1022 is used to connect a power cord to supply external power to the switching device 102. Specifically, the power input port 1022 can be used to connect to a mains power supply circuit, and the connected power cord can be the neutral / live wire of the mains power. In a specific example, the power input port 1022 may include a live wire input port and a neutral wire input port, used to connect the neutral wire (N) and live wire (L) of the mains power supply circuit, respectively. For some single-wire power supply schemes, the power input port 1022 may only include the live wire (L) and not the neutral wire (N), and the switching device 102 is connected to the load device 106 in series.
[0073] The control output port 1023 is used to output control lines to form a load circuit (e.g., a smart drive or other device). By switching the control state of the load circuit, the switching device 102 can adjust the specific operating state of the load device. For example, ... Figure 2 As shown, the switching device 102 is configured to be electrically connected to the load device on the control line via the control output port 1023, so as to control the control state of the load circuit according to the switching of the control action of the connection control module 1024. In a further example, the control output port 1023 may include a live wire output port L1, which is used to connect the load device via a live wire, thereby connecting the switching device 102 in series in the working circuit of the load device 106. The on / off state of the switching device 102 can directly affect the on / off state of the load device 106.
[0074] The connection control module 1024 is located between the power input port 1022 and the control output port 1023. It can switch between multiple control actions, where different control actions correspond to different connection states between the power input port 1022 and the control output port 1023, and each connection state corresponds to a specific control state of the load circuit. Specifically, the connection control module 1024 can switch between multiple control actions as needed, affecting the connection method between the power supply and the load device 106, thereby controlling the control state of the load circuit. For example, one connection state may mean that the load circuit is on (powered on), while another connection state may mean that the load circuit is off (powered off), or there may be other types of control.
[0075] The processing module 1025 is electrically connected to both the user interaction module 1021 and the connection control module 1024, enabling it to detect user operations through the user interaction module 1021 and control the connection control module 1024 to execute corresponding control actions. Specifically, the sensors or detection mechanisms in the user interaction module 1021 capture input signals from the user. For buttons / knobs, this could be detected pressure changes or changes in the state of a tactile switch (e.g., whether an electronic switch corresponding to a physical button is triggered, such as...). Figure 21 For example, SW2 in the context of a touchscreen can be a change in capacitance, while for voice control it can be the received sound waveform. Different types of user-applied operations result in different input electrical signals. Based on the input electrical signals transmitted by the user interaction module 1021, the processing module 1025 can identify the type of user-applied operation (press down, release, long press, etc.) and thus determine whether the user interaction module 1021 has received the specified operation.
[0076] It is worth noting that traditional power control methods mainly rely on simple on / off switching, that is, using switches to completely turn load devices on or off. This simple power control method is clearly no longer suitable for the increasingly diverse load types and complex control needs of modern smart homes.
[0077] With the increasing variety of smart home devices, the load includes not only traditional electrical equipment (such as lamps and sockets), but also increasingly complex devices in smart homes, such as smart temperature control systems, smart security equipment, and smart appliances. These devices often have higher intelligence and automation characteristics, requiring more refined power management.
[0078] Traditional power control methods cannot meet the needs of these intelligent load devices because they only provide simple on / off control and cannot achieve fine-grained control over the devices. Especially in intelligent devices, prolonged power outages are unacceptable, as device status will be lost, network connections may be interrupted, and even normal operation may be disrupted. Therefore, traditional power management methods are not suitable for intelligent load devices, especially those that need to be always online.
[0079] For example, in intelligent lighting control systems, users may want to control the equipment in specific scenarios (such as adjusting brightness, color, or switching to a specific scene mode) without completely powering off or restarting the device. This avoids configuration loss or the time delay required after restarting. Traditional power control methods cannot meet this need because they typically result in a complete shutdown and restart of the equipment.
[0080] Based on this, this disclosure provides a switching device 102, which adopts a new power control scheme, providing a more flexible and efficient control method to achieve flexible control of intelligent load devices. Subsequent embodiments of this disclosure also provide corresponding control method embodiments.
[0081] Specifically, in the switching device 102 provided in this embodiment, the processing module 1025 is configured to have a first trigger mode, so that: according to the specified operation received by the user interaction module 1021, it controls the connection control module 1024 to switch to a control action opposite to the current control action, and after maintaining the opposite control action for a specified time, it restores to the original control action, so as to realize the temporary reversal of the control state of the load circuit. Finally, while keeping the original control state unchanged, a special control command can be transmitted to the load device 106 through the temporary reversal. The control command is transmitted to the load device 106 through the control line to trigger the load device 106 to perform a specific function. In this way, flexible control of the intelligent load device 106 can be realized by switching the control action of the connection control module 1024 while keeping the original control state unchanged.
[0082] It is worth noting that, in this embodiment, the temporary reversal operation is not merely a simple power control; it can transmit regularly changing electrical signals to the load device 106 via a control line through the control module 1024, thereby triggering the load device 106 to execute certain specific function control commands. These regularly changing electrical signals can be transient voltage changes, current fluctuations, or power outage recovery. The intelligent load identifies these changes through its built-in detection circuitry and performs corresponding operations.
[0083] Furthermore, the switching device 102 provided in this embodiment is adapted to connect a control line through the control output port 1023. When the load device 106 connected to the control line is a smart load, a load circuit controlling the load device 106 is formed based on the control line. The control state of the load circuit is switched by the control action of the control connection control module 1024, thereby achieving indirect control of the load device 106 through the load circuit (e.g., indirectly controlling the lamp (one of several selectable smart load devices 106) to turn off by controlling the load circuit to enter a power-off state (one of several control states)). Also, based on the control command generated by the applied specified operation, direct control of the load device 106 can be achieved while ultimately maintaining the control state of the load circuit (the final control state of the load circuit will return to the original control state and remain unchanged). For example, controlling the lamp (one of several selectable load devices 106) to turn off while maintaining the load circuit in a power-on state (one of several control states).
[0084] In some embodiments, before the control connection control module 1024 switches to a control action opposite to the current control action, a setting instruction is obtained. This setting instruction is used to determine a corresponding specified time, which is variable. Different specified times mean different durations of the reversal of the control state of the load circuit, thus allowing the specified time to be changed as needed. The setting instruction can be understood as a general term for instructions, messages, signals, etc., used by the user or system to specify the reversal duration (specified time). This setting instruction is used to specify the time, i.e., the duration of the control reversal state. It is a core parameter for controlling how the switching device 102 switches to the reverse control action and maintains this state for a period of time.
[0085] The duration of the control action reversal is an important characteristic of the switching device 102 in this embodiment, directly affecting the behavior of the load device 106. For example:
[0086] For a scenario where the load device is a smart light, if the specified time is short (e.g., tens of milliseconds), then the short reversal may mean that the smart light will only experience a power outage of tens of milliseconds. This power outage duration is not enough to cause the smart light to lose power. Then, when the original state is restored, the smart light will be powered back on. During the brief reversal process of power supply-power outage-power supply in the control state of the smart light, the smart light is continuously online.
[0087] If the specified time is long (e.g., several seconds), then a longer reversal time may mean that the smart light will turn off for a few seconds and then return to its original state. During this process, the smart light may have gone through a power outage and power-on reset process.
[0088] It is evident that different specified times mean different times when the control state of the load device 106 reverses, which is very important for application scenarios that require precise control of electrical appliance behavior (such as timed switching of lights, triggering specific scenarios in smart homes, etc.).
[0089] In this embodiment, the specified time is not fixed but variable, meaning that the user or system can adjust it according to needs. This makes the control of the switching device 102 more flexible and can be adjusted according to specific usage scenarios. For example, the time for short-term switching off or delayed recovery of the light can be set to adapt to different application requirements.
[0090] Furthermore, the processing module 1025 is also configured to automatically restore the control connection control module 1024 to the original control action after maintaining the opposite control action for a specified time.
[0091] Specifically, after the temporary reversal state lasts for a specified time, the processing module 1025 will trigger the connection control module 1024 to restore the original control action, thereby restoring the control state of the load circuit (i.e., ultimately keeping the control state of the load circuit unchanged). This process is completed automatically without any additional user intervention or operation.
[0092] In a specific example, the processing module 1025 controls the connection control module 1024 to switch to a control action opposite to the current control action. Specifically, this is used to: control the connection control module 1024 to switch to a disconnection action opposite to the current connection action, and automatically restore the original connection action after maintaining the disconnection action for a specified time. The disconnection action of the connection control module 1024 corresponds to the disconnection state between the power input port 1022 and the control output port 1023, and the disconnection state corresponds to the power-off control state of the load circuit. The connection action of the connection control module 1024 corresponds to the connection state between the power input port 1022 and the control output port 1023, and the connection state corresponds to the power-on control state of the load circuit.
[0093] Furthermore, in the switching device 102 solution provided in this embodiment, after the user issues a command (applies a specified operation) through the user interaction module 1021, the switching device 102 will automatically reverse the control action (such as temporarily cutting off power) and automatically restore the original control action after a set time (specified time), realizing the temporary reversal of the load circuit control state to transmit specific control commands to the load device 106. In this way, the load device 106 can be triggered to perform specific functions without prolonged power outages, which is suitable for the special control requirements of some intelligent load devices 106. Among them, the processing module 1025 can intelligently adjust the control state of the load circuit according to the user's operation and the preset specified time, avoiding the impact of prolonged power outages on the load device 106.
[0094] In some embodiments, one implementation of the setting instruction is provided.
[0095] In this embodiment, the setting command can be manually set. Manual setting means that the user can actively participate in setting a specified time, rather than relying on a system preset value. The user may input the command through some interactive method (such as button, touch screen settings, APP control, etc.), or define it through preset control logic.
[0096] Specifically, users can define a specified time using smart devices such as smartphones and tablets. For example, in a companion application (App) on the smart device, the user selects or inputs a specified time, such as through an interactive method (e.g., a button, slider, input box). The application converts the user's input into a setting command. This command can be transmitted wirelessly; for example, the setting command can be based on... Figure 17 The first communication protocol shown, such as Wi-Fi or Bluetooth, is transmitted to the switch device 102. This method makes the setup of the switch device 102 more convenient and intuitive.
[0097] Furthermore, in this embodiment, by freely defining the specified time, the user can adjust the length of the "temporary reversal" time of the load circuit control according to actual needs, adapting to the control requirements of various types of loads.
[0098] Furthermore, the specified time can be set within a range of 10ms to 10s, and the step value can be 100ms. For intelligent load devices 106 (such as intelligent lamps that rely on specific brief power outage signals for state switching), more precise control of the specified time is required. The range can be narrowed to 100ms to 1.6s (e.g., 200ms or 500ms). Thus, the user can set the specified time in 100ms steps within the range of 100ms to 1.6s. The temporary reversal of the control state of the reversing load circuit formed by the specified time within this range can more accurately generate an electrical signal suitable for intelligent load detection without adversely affecting the switching device 102 due to excessively long power outage time (e.g., the intelligent lamp restarts due to excessively long power outage time). For example, for smart lights with a trigger function, the trigger function of smart lights from different brands, manufacturers, or even different models of the same brand may have different requirements for power outage time. Users can determine the power outage time based on the specific manufacturer, brand, and model of the smart light actually connected to the switch device 102, and then set it as the specified time.
[0099] Furthermore, the setting range of the specified time can also change according to the switching of the type of load device 106. The type of load device 106 can be understood as different types of load devices 106 from different manufacturers (e.g., lights from manufacturer A and air conditioners from manufacturer B), the same type of load devices 106 from different manufacturers (e.g., lights from manufacturer A and lights from manufacturer B), different types of load devices 106 from the same manufacturer (e.g., lights from manufacturer A and air conditioners from manufacturer A), and the same type of load devices 106 from the same manufacturer but different models (e.g., L1 model lights from manufacturer A and L2 model lights from manufacturer A).
[0100] In this embodiment, the user can switch to a specified time by selecting the type of load device 106. Selecting the type of load device 106 is a more simplified user experience; the user does not need to directly input a specific time value, but instead completes the setting by selecting the type of load device 106 (such as "smart lighting" or "ordinary lighting"). The system automatically adjusts the setting range of the specified time according to the selected type of load device 106, or directly determines the specified time.
[0101] For example, when selecting "Smart Lighting", the default range may be 70ms to 3s, and users can further set the specified time within this range. When selecting "Standard Lighting", the default range may be 10ms to 10s, and users can further set the specified time within this range.
[0102] For example, when selecting "Smart Light Fixture A," the specified time is directly set to 200ms; when selecting "Smart Light Fixture B," the specified time is directly set to 500ms. This method reduces the technical requirements for users and is suitable for ordinary users.
[0103] In some embodiments, another implementation of the setting command is provided.
[0104] In this embodiment, the setting command is automatically set according to the load type, so that the temporary reversal cycle can be dynamically adjusted according to the different types of load devices 106.
[0105] Here, the reversal period can be understood as the duration of the opposite control action (such as temporary power outage or state reversal) described in the temporary reversal operation.
[0106] In a specific implementation, after the load device 106 is connected to the control line, the switch device 102 can be paired with the load device 106. After pairing, the switch device 102 can actively acquire or passively receive data including its own parameter information sent by the load device 106 to determine the type of the load device 106. Then, it can automatically generate control commands to determine the specified time based on the type of the connected load device 106, without requiring the user to manually input the specific time value.
[0107] For example:
[0108] Smart lighting fixtures rely on short power outage signals to trigger, which may require a short reversal cycle, such as tens of milliseconds to a few seconds.
[0109] Ordinary lighting fixtures rely on a complete power outage to trigger, which may take a long time to control, with a reversal cycle ranging from 1 to 10 seconds.
[0110] Motor-type load equipment: Adjust the working state through a longer reversal cycle (more than 10 seconds).
[0111] In this embodiment, by dynamically adjusting the reversal cycle according to the type of load device 106, the switching device 102 can better adapt to the working characteristics of different load devices 106, ensuring that each device can correctly respond to the control command triggered by "temporary reversal" within a specific time period.
[0112] It is worth mentioning that in some application scenarios, regardless of whether the setting command is set manually or automatically according to the type of load device 106, the specified time determined by the setting command must be set so that when the connection control module 1024 resumes its connection action, the load connected to the control line is still powered on. This achieves instantaneous disconnection and restoration of the load circuit. When the load circuit formed by the control line is connected to an intelligent load device 106, the instantaneous disconnection and restoration of the load circuit generates a corresponding control command. This control command is transmitted to the load device 106 through the control line to control the load device 106 in the load circuit to perform a specific function (for example, for intelligent lighting fixtures, it could be to trigger the intelligent lighting fixture to enter a specific brightness / color temperature lighting state). Thus, it is possible to effectively transmit control commands when the intelligent load is continuously online.
[0113] like Figure 3 As shown, in some embodiments, when the user interaction module 1021 includes a button, the specified operation may include at least one down press operation a1. The processing module 1025 may control the connection control module 1024 to switch to a control action opposite to the current control action before, after, or simultaneously with the button rebound caused by the release of the down press operation a1.
[0114] For example, combining Figure 3 and Figure 21 As shown, after the processing module 1025 detects that the button has been pressed a1, it controls the connection control module 1024 to switch to the disconnection action b2, which is the opposite of the current connection action b1, and automatically restores the original connection action b1 after holding the disconnection action b2 for a specified time T1.
[0115] For example, combining Figure 4 and Figure 21 As shown, after the processing module 1025 detects that the button has been pressed a1, it controls the connection control module 1024 to switch to the connection action b1, which is the opposite of the current disconnection action b2, and automatically restores the original disconnection action b2 after holding the connection action b1 for a specified time T1.
[0116] Of course, the processing module 1025 can also control the connection control module 1024 to switch to the opposite control action after detecting a complete press and release operation. In this case, the specified operation will include consecutive press operations a1 and release operations a2 on the button; wherein: there is an interval time T2 between the press operation a1 and the release operation a2, and the specified time T1 is set to be greater than or equal to the interval time T2.
[0117] Here, after the processing module 1025 maintains the opposite control action for a specified time, the control module 1024 automatically resumes the original control action.
[0118] For example, combining Figure 5 and Figure 21 As shown, after the processing module 1025 detects that the button has been subjected to a continuous pressing operation a1 and a releasing operation a2, it controls the connection control module 1024 to switch to a disconnecting operation b2, which is the opposite of the current connecting operation b1, and automatically restores to the original connecting operation b1 after holding the disconnecting operation b2 for a specified time T1.
[0119] For example, combining Figure 6 and Figure 21As shown, after detecting that the button has been pressed continuously (a1) and released (a2), the processing module 1025 controls the connection control module 1024 to switch to an on action (b1), which is the opposite of the current off action (b2). After holding the on action (b1) for a specified time (T1), it automatically returns to the original off action (b2). The off action of the connection control module 1024 corresponds to the disconnection state between the power input port 1022 and the control output port 1023, and the disconnection state corresponds to the power-off control state of the load circuit. The on action of the connection control module 1024 corresponds to the on state between the power input port 1022 and the control output port 1023, and the on state corresponds to the power-on control state of the load circuit. The specified time is set so that when the connection control module 1024 resumes its connection action, the load connected to the control line remains powered on, thereby achieving a momentary disconnection and restoration of the load circuit. When the load circuit is a smart load device 106, this momentary disconnection and restoration of power to the load circuit generates a corresponding control command. This control command is transmitted to the load device 106 via the control line to control the load device 106 to perform a specific function (e.g., for smart lighting fixtures, triggering the smart lighting fixture to enter a specific brightness / color temperature lighting state). This enables the effective transmission of control commands even when the smart load is continuously online.
[0120] In some embodiments, when the user interaction module 1021 includes a button, the specified operation includes a press-down operation and a release operation on the button; wherein:
[0121] There is an interval between the press and release operations, and the specified time varies proportionally (positively, negatively, or equally) according to the interval.
[0122] For example, the specified time can vary only proportionally to the interval time. Taking negative proportional adjustment as an example, for instance, an initial value for the specified time is given, and a corresponding interval time reference is assigned to that initial value. With the initial value of the specified time corresponding to that reference as a reference, when the interval time changes, the specified time is adjusted in a specified negative proportion according to the change in the interval time.
[0123] For example, the specified time can be set to be greater than the interval time and vary proportionally according to the interval time. Taking a direct proportional adjustment as an example, for instance, an initial value for the specified time is given, and a corresponding interval time reference is assigned to this initial value. With the initial value of the specified time corresponding to this reference as a reference, when the interval time changes, the specified time is adjusted in a specified direct proportional manner according to the change of the interval time.
[0124] For example, the specified time can be set to be equal to the interval time and vary proportionally according to the interval time. Taking proportional adjustment as an example, the processing module 1025 controls the connection control module 1024 to switch to a control action opposite to the current control action, specifically for: responding to a press operation, controlling the connection control module 1024 to switch to a control action opposite to the current control action; maintaining the opposite control action during the duration of the press operation; and responding to a release operation, controlling the connection control module 1024 to return to the original control action, thereby achieving the proportional adjustment.
[0125] In further examples, such as Figure 7 As shown, after the processing module 1025 detects that a button has been pressed (a1), it controls the connection control module 1024 to switch to a connection action (b1) opposite to the current disconnection action (b2) in response to the pressing operation (a1). This opposite connection action (b1) is maintained for the duration T2 of the pressing operation (a1). After the processing module 1025 detects that a button has been released (a2), it controls the connection control module 1024 to return to the original disconnection action (b2) in response to the release operation (a2), thereby achieving the proportional adjustment. That is, in this case, the duration T2 of the pressing operation (a1) should be the same as the duration T1 of the connection action (b1).
[0126] In another further example, such as Figure 8 As shown, after the processing module 1025 detects that a button has been pressed (a1), it controls the connection control module 1024 to switch to a disconnection action (b2) that is the opposite of the current connection action (b1) in response to the pressing operation (a1). During the duration T2 of the pressing operation (a1), the opposite disconnection action (b2) is maintained. After the processing module 1025 detects that a button has been released (a2), it controls the connection control module 1024 to return to the original connection action (b1) in response to the release operation (a2), thereby achieving the proportional adjustment. That is, in this embodiment, the connection control module 1024 does not automatically return to the original connection action after maintaining the disconnection action for a specified time T1. Instead, it is controlled by the processing module 1025 to restore the original connection action after the button has been released (a2), and the duration T2 of the pressing operation (a1) should be the same as the specified duration T1 of maintaining the disconnection action (b2).
[0127] In some application scenarios, a specified time can be set so that when the connection control module 1024 resumes its connection action, the load (load device 106) connected to the control line remains powered on. This achieves a momentary disconnection and restoration of the load circuit. When the load circuit formed by the control line is a smart load device 106, this momentary disconnection and restoration of the load circuit generates corresponding control commands. These control commands are transmitted to the load device 106 through the control line to control the load device 106 to perform specific functions (e.g., for smart lamps, triggering the smart lamp to enter a specific brightness / color temperature lighting state). This enables the effective transmission of control commands even when the smart load is continuously online.
[0128] Furthermore, when the specified time changes proportionally to the interval time, the ratio of the change in the specified time to the interval time is dynamically adjusted according to the change in the interval time.
[0129] Specifically, when the interval time exceeds or falls below a first threshold, the adjustment is proportional; when the interval time is greater than or equal to the first threshold and less than a second threshold, the adjustment is equal; when the interval time is greater than or equal to the second threshold and less than a third threshold, the adjustment is negative; and when the interval time is greater than or equal to the third threshold, the adjustment is equal. Therefore, according to this embodiment, the specified time dynamically switches the adjustment ratio based on the length of the interval time.
[0130] In some embodiments, such as Figure 9 As shown, the connection control module 1024 includes a switch 10241, capable of performing connection and disconnection actions. The switch 10241 can be understood as any circuit component or circuit assembly composed of components capable of performing connection / disconnection actions. Examples include thyristors, relays (such as...). Figure 21 (as shown in the image) etc.
[0131] It is worth noting that in existing related technologies, the control relationship between the buttons and circuit breakers of switchgear is generally determined directly at the factory, meaning that the circuit breakers controlled by the user's buttons are fixed. Therefore, the control between the buttons and circuit breakers in existing switchgear is relatively simple and fixed, making it difficult to meet diverse control needs.
[0132] Based on this, one embodiment of this disclosure provides a switching device 102 that can freely define the mapping relationship between buttons and on / off switches 10241, thereby achieving flexible mapping between buttons and on / off switches 10241 and improving the applicability of the switching device 102. Furthermore, subsequent embodiments of this disclosure also provide corresponding control method embodiments.
[0133] Specifically, in this embodiment of the disclosure, the user interaction module 1021 includes multiple buttons, and the on / off switch 10241 also has multiple components. Furthermore, the processing module 1025 is configured to:
[0134] Detect whether the user interaction module 1021 has been operated;
[0135] If a user action is detected, the target key is determined; the target key is the key to which the action was applied among multiple keys.
[0136] Based on the identified target key, determine the target mapping relationship that matches the target key from the latest multiple mapping relationships;
[0137] The on / off switch 10241, defined by the control target mapping relationship, executes the corresponding control action.
[0138] Furthermore, the switch 10241 defined by the control target mapping relationship executes the corresponding control action. For example, the switch 10241 defined by the control target mapping relationship executes the control action opposite to the current control action, and remains in the opposite control action until the button is operated again.
[0139] Each mapping relationship defines a mapping relationship between at least one key information and at least one switch information; the mapping relationship is predefined by the user through a smart terminal; the key information represents at least one of the following: the key to which an operation is applied among multiple keys, the operation type applied by the key; the switch information represents at least one of the following: the switch 10241 among multiple switches 10241 that needs to perform a control action, the specific control action performed by the switch 10241.
[0140] The corresponding control action performed by the switch 10241 can be, for example, a connecting action or a disconnecting action. Each mapping relationship can define either a mapping relationship between a button and the switch 10241, or a mapping relationship between a button and a specific control action of the switch 10241.
[0141] When the mapping relationship defines a mapping relationship between a button and a switch 10241, the switch 10241 will perform a toggle action when the corresponding button is triggered. Furthermore, the processing module 1025 controls the switch 10241 defined by the target mapping relationship to perform a corresponding control action. Specifically, it controls the switch 10241 defined by the target mapping relationship to perform a control action opposite to the current control action, and maintains this opposite control action until the button is operated again (e.g., toggling from the current on action to the off action, or from the current off action to the on action), and maintains this opposite control action until the button is operated again.
[0142] When the mapping relationship defines the mapping relationship between a button and the specific control action of the switch 10241, the switch 10241 will directly execute the defined control action when the corresponding button is triggered, for example... Figure 13 As shown, button A is defined to trigger the on / off action of switch 10241A, and button B is defined to trigger the off / off action of switch 10241A. When the user presses button A, switch 10241A will perform the on / off action, and when the user presses button B, switch 10241A will perform the off / off action.
[0143] Furthermore, in this embodiment, the mapping relationship between the multiple buttons of the switching device 102 and the multiple circuit breakers 10241 can be freely defined according to requirements, and is not fixed or singular, which can meet diverse usage scenarios and application needs.
[0144] In some embodiments, before detecting whether the user interaction module 1021 is operated, the processing module 1025 is further configured to:
[0145] Receive a mapping relationship group, which includes multiple mapping relationships; these multiple mapping relationships are obtained by the user in advance by freely defining the mapping relationship between at least some buttons and the switch 10241 on the smart terminal;
[0146] Based on these multiple mapping relationships, the latest mapping relationship between each button and each switch 10241 is determined.
[0147] In a specific example of defining the mapping relationship, each mapping relationship can define a mapping relationship between a button and a switch 10241. Furthermore, among the multiple mapping relationships in the mapping relationship group, at least one mapping relationship is obtained by the user directly defining the mapping relationship between one button and one switch 10241 through a smart terminal, and at least one mapping relationship is obtained by the smart terminal dynamically adjusting the mapping relationships between other buttons and their corresponding switches 10241 based on the mapping relationship directly defined by the user.
[0148] Based on this, the number of buttons can be equal to the number of switches 10241. During the process of defining the mapping relationship, if the user changes the mapping relationship between any button and the relay, the mapping relationship between other buttons and the corresponding switches 10241 will be dynamically adjusted so that the modified mapping relationship group generally follows a one-to-one and non-repeating mapping relationship between each button and each switch 10241.
[0149] For example Figure 10As shown, taking the on / off switch 10241 as an example implemented as a relay, the user defines the mapping relationship in advance through the configuration interface provided by the mobile application. Figure 10 As shown, the switching device 102 includes three buttons (left, middle, and right) and three relays (L1, L2, and L3). When the user does not customize the mapping relationship, the switching device 102 follows the factory default mapping relationship group, i.e., the left button triggers L1, the middle button triggers L2, and the right button triggers L3. Figure 10 As shown, after entering the relay setting interface B, the settings for the left button, middle button, and right button are displayed respectively. For example, if the left button setting is clicked, the left button definition interface C will be entered. If relay L2 is selected in this interface, the left button will be mapped to relay L2, and the mapping relationship of the middle button will be automatically changed to relay L1. That is to say, the user only needs to change the mapping relationship between one button and the relay, and the mapping relationship between other buttons and the corresponding relays will be adjusted adaptively, so that the changed mapping relationship generally follows a one-to-one and non-repeating mapping relationship between buttons and relays.
[0150] Subsequently, when the user presses the left button on the switch device 102, relay L2 will be triggered to perform the relevant control action; when the user presses the middle button, relay L1 will be triggered to perform the relevant control action. That is, at this time, the mapping relationship between each button and each relay on the switch device 102 is left button triggers L2, middle button triggers L1, and right button triggers L3, which is different from the factory default mapping relationship.
[0151] Furthermore, in another example of the mapping relationship (not shown), each mapping relationship can define a mapping relationship between one or more buttons and one switch 10241. Based on this, the number of buttons can be greater than the number of switches 10241, such that each switch 10241 can be triggered by one or more buttons.
[0152] Furthermore, in another example of the mapping relationship (not shown), each mapping relationship can define a mapping relationship between a button and one or more switches 10241. Based on this, the number of buttons can be less than the number of switches 10241, such that each button can trigger one or more switches 10241.
[0153] Correspondingly, in some embodiments, such as Figure 11 As shown, a control method 300 for a switchgear 102 is also provided, which is applied to a terminal device and includes steps S10 to S11.
[0154] In step S10, a mapping relationship group is defined, which includes multiple mapping relationships. Each mapping relationship defines a mapping relationship between at least one key information and at least one switch information.
[0155] The mapping relationship group is predefined by the user on the smart terminal; wherein, the key information represents at least one of the following: the key to which an operation is applied among multiple keys, and the operation type applied to the key; the switch information represents at least one of the following: the switch 10241 among multiple switches 10241 that needs to perform a control action, and the specific control action performed by the switch 10241.
[0156] In step S11, the mapping relationship group is sent to the switching device 102, such that: after the switching device 102 obtains the mapping relationship group, it controls the on / off switch 10241 defined by the target mapping relationship to perform a corresponding control action based on the target key to be operated among multiple keys and the matching target mapping relationship in the mapping relationship group. The control action performed by the on / off switch 10241 may be, for example, a connecting action or a disconnecting action.
[0157] Furthermore, it is worth noting that with the rapid development of the smart home industry, the control functions of the switch device 102 are becoming increasingly diverse, moving beyond simple power control of local load circuits to more sophisticated network control. Traditional power control methods primarily rely on simple on / off switching, where the load device is completely turned on or off via a switch. This simple power control method is clearly no longer adequate for the increasingly diverse load types and complex network control needs of modern smart homes.
[0158] Based on this, one embodiment of the present disclosure provides a switching device 102 that supports the combination of network control and local control to improve the flexibility of switching device control.
[0159] Specifically, the block diagram of the switching device 102 in this embodiment of the present disclosure can be as follows: Figure 12As shown. In this embodiment of the disclosure, the processing module 1025 is configured to have a second trigger mode, adapted to immediately send out corresponding first event information after detecting a first operation applied to the user interaction module 1021. "Immediately send out" means that when the processing module 1025 detects the user's first operation (such as pressing a key), it immediately triggers and sends a signal or information without delay or complex processing. This process emphasizes rapid response and reduces latency. Specifically, the processing module 1025 sends at least two frames of the first event information to the outside through a communication module 1026 within 100ms after detecting the first operation to achieve the immediate outward transmission. In some schemes, after detecting the first operation in the second trigger mode, the indicator light of the corresponding light-emitting unit emits a first indication signal (e.g., flashes once) to serve as a prompt.
[0160] The first event information represents at least one of the following: the key that was operated, the type of operation applied to the key, and is used to trigger a network function. Here, the first event information is a type of information generated by the processing module 1025 for communication with external systems (such as the cloud, other devices). In this example, the function of the first event information is to trigger a network function. A network function refers to the interaction between the switching device 102 and other devices (such as the cloud, smart devices, load devices, etc.) through a network. Such functions may include device networking, remote control, device status synchronization, etc.
[0161] Therefore, it can be understood that the first event information does not directly control the local load circuit, but is used to interact with other systems (such as network services or devices). For example, when switch device 102 is pressed, the first event information may notify the network device to start a certain function or operation. For instance, after a user presses a button, a first event information is sent to the cloud. Upon receiving it, the cloud may initiate an automated scene, such as "turning on the lights and adjusting the brightness".
[0162] Furthermore, the processing module 1025 is also configured to generate a control signal if it detects that the first operation has been withdrawn within a first time period after the user interaction module 1021 has applied the first operation.
[0163] In this embodiment, the control signal is specifically generated by the processing module 1025 and executed by the connected control module 1024 with corresponding control actions (such as switching the power switch, adjusting the brightness of the lights, etc.). The control signal directly affects the operating state of the switching device 102, such as switching on and off, dimming, and other actions. For example, if a user presses a button on the switching device 102 (first operation) and then releases it within a certain period of time (removal of operation), the processing module 1025 will generate a control signal to trigger a state change in the load circuit, such as turning the lights on or off.
[0164] The connection control module 1024 is electrically connected to the processing module 1025, which is adapted to: acquire the control signal; and execute corresponding control actions according to the control signal to trigger local functions and realize the switching of the load circuit control state.
[0165] In this embodiment, local function refers to the interaction and control between the switching device 102 and the load device 106 directly connected to it or other smart devices in the same local area network. This function does not rely on external networks, such as the switching of control actions of the connected control module.
[0166] In this embodiment, it is assumed that the switch device 102 is used in a home smart lighting system. When a user presses a button (first operation), the switch device 102 detects the button press and immediately sends a first event message to trigger the cloud, which may cause a home device (such as a light) to perform a switching action. If the user releases the button shortly after pressing it (within a first duration), the processing module 1025 generates a control signal, thereby triggering a local control action to change the state of the light (such as on / off). At the same time, the connection control module 1024 can control the brightness or on / off state of the light by switching different connection states.
[0167] Furthermore, the second triggering mode provided in this embodiment supports the combination of network control and local control. By operating the same button, both network and local functions can be triggered, which improves the flexibility of device control and enables the switching device 102 to respond intelligently according to the duration and method of user operation. It supports both immediate response and adaptability to different usage scenarios.
[0168] It is also worth mentioning that since network control is mostly implemented through network paths, it is slower than local control. When the switch device 102 performs both local control and network control functions, there will be a problem of poor synchronization between local control and network control, which will greatly affect the user experience.
[0169] In the second triggering mode provided in this embodiment, after the user interaction module 1021 applies the first operation, it immediately sends out first event information, which is reported to the network to trigger remote operation of the corresponding smart device. At this time, local control does not take effect immediately; instead, it is triggered by the local control signal to execute the corresponding control action by the connection control module 1024 when the first operation is withdrawn (released), thereby improving the response speed and accuracy of local control. This solution avoids conflicts between local control and network control by delaying the triggering timing of local control, thus improving the synchronization problem caused by network latency while ensuring the response speed of network control. Ultimately, users can experience a smoother and more consistent operation response, significantly improving the continuity of interaction and user experience.
[0170] Furthermore, the processing module 1025 is also configured to: in the second trigger mode, if it is detected that the user interaction module 1021 has been subjected to the first operation for more than a first time period before it is withdrawn, then no control signal is generated.
[0171] In this embodiment, it is specified that in the second trigger mode, when the user operation (first operation) continues for a certain duration (first duration), the switching device 102 will not trigger a control signal. Based on this, if the user holds the button for a longer than a predetermined range, no control signal will be generated. This design can avoid generating unexpected control signals due to misoperation or the user holding the button for a long time.
[0172] The first duration is 100ms to 3s, for example, 300ms to 1000ms, preferably 500ms. Furthermore, by setting an appropriate time threshold, unnecessary control signals are prevented from being triggered by unintentional long presses by the user, ensuring that the load is controlled as expected during user operation without causing unnecessary reactions due to long presses.
[0173] In some embodiments, the user interaction module 1021 includes a button for receiving user operations; the first operation includes a pressing operation applied to the button; the processing module 1025 is adapted to: immediately send out corresponding first event information after detecting that a pressing operation has been applied to the button, so as to improve the response speed of the network function.
[0174] If a release operation is detected within the first duration after the button is pressed, a control signal is generated to improve the responsiveness of local control.
[0175] Furthermore, when an operation is applied to a button, the solution provided in this embodiment can improve the response speed of the switching device 102 triggering network functions and enhance the intuitiveness of local function operations.
[0176] Based on this, the processing module 1025 is specifically configured as follows:
[0177] In the second trigger mode, if a release operation is detected more than a first time after the initial press operation is detected, the control signal will not be sent.
[0178] For example, each button is provided with a corresponding sensing structure. The button is used to receive user operations. The sensing structure is coupled to the button to provide a sensing signal when the button is operated by the user. The sensing structure is electrically connected to the processing module 1025 to transmit the sensing signal to the processing module 1025. The processing module 1025 identifies the user operation applied to the button based on the sensing signal.
[0179] In a further example, the sensing structure includes an electronic switch disposed below the button and electrically connected to an I / O port of the processing module 1025. The button is configured to undergo a first displacement toward the electronic switch when pressed, which triggers the electronic switch to switch between on and off states, thereby generating an electrical signal (sensing signal) for sensing. This electrical signal is transmitted to the processing module 1025 so that the processing module 1025 can identify the operation currently occurring on the button.
[0180] The switching device 102 has a reset structure corresponding to the position of the button. The reset structure supports the button and accumulates potential energy during the first displacement of the button. When the pressing operation is removed, the potential energy accumulated by the reset structure acts on the button to provide a reset force for the button to move away from the electronic switch in a second displacement direction. This reset force can support the button to return to its initial position so that the user can apply the operation again. During the second displacement, the button can trigger the switching of the electronic switch's on / off state again, thereby generating another electrical signal for sensing (another sensing signal). This electrical signal is also transmitted to the processing module 1025 so that the processing module 1025 can identify the release operation currently occurring on the button.
[0181] Electronic switches can be, for example Figure 21 As shown in SW2, when the electronic switch is triggered, it is turned on and transmits a low-level electrical signal to the corresponding I / O port of the processing module; otherwise, it transmits a high-level electrical signal.
[0182] Furthermore, the processing module 1025 is also adapted to:
[0183] In the second trigger mode, if it is detected that the button is subjected to multiple consecutive pressing and releasing operations within the first duration (where pressing and releasing operations that occur sequentially and adjacently are considered as one), then one of the release operations is selected to trigger the control signal, and other pressing and releasing operations do not trigger the control signal (the control signal is not generated).
[0184] In this embodiment, if the user performs multiple press and release operations consecutively, the switch device 102 will select one release operation to trigger the control signal, while other operations will not be triggered. For example, if the user presses and releases the button rapidly multiple times in a short period of time, the switch device 102 will select one release operation to trigger the control signal (e.g., the "turn on the light" command), while ignoring other operations. For example, the user may press the button multiple times, but only the first release will cause the light to turn on, and other press and release operations will be ignored.
[0185] Furthermore, by selectively triggering control signals, excessive operational interference is avoided, improving the stability of user control and making the device response more precise.
[0186] In this embodiment, when selecting a release operation to trigger a control signal, a release operation can be randomly selected from multiple release operations.
[0187] In this embodiment, when selecting a release operation to trigger the control signal, the release operation can also be selected according to a predetermined rule to trigger the control signal. For example, the predetermined rule defines a pre-determined specified release operation from multiple release operations to trigger the control signal.
[0188] In a further example, the processing module 1025 is further adapted to: within a first time period after the initial press operation of the button is detected, if the button is detected to be released and then pressed at least once more, then except for the initial release operation, other press operations and release operations will not trigger control signals.
[0189] In this embodiment, if a user applies a press operation once, and then applies another press operation or release operation, the subsequent operations will not trigger a control signal. This avoids generating repeated control signals from continuous key presses, ensuring operational accuracy and reducing the risk of misoperation.
[0190] For example, when a user presses and releases the button for the first time, the switch 102 will execute the corresponding control (such as turning on the light). If the user presses and releases the button again within a short period of time, the switch 102 will not trigger the control signal again because it has already recognized and executed the action of the first release.
[0191] For example, if the first duration is 500ms, and the user applies three release operations consecutively within 500ms, the first release operation will be selected to trigger the control signal. Similarly, if the user applies two release operations consecutively within 500ms, the first release operation will still be selected to trigger the control signal. In other words, in this example, regardless of how many release operations are applied within the first duration, the first release operation will always be selected to trigger the control signal.
[0192] In some embodiments, the processing module 1025 is further configured to have a third trigger mode, which is used to set the speed at which the corresponding switch 10241 responds when the button is operated. The processing module 1025 is also configured to receive a switching command and switch between the second and third trigger modes in response to the switching command, the switching command originating from an application program.
[0193] Specifically, the processing module 1025 is configured to: in the third trigger mode, if a continuous press and release operation is detected on a button within a first duration, then after the first duration, send a control signal to the connection control module 1024 and send corresponding first event information outward. This first event information represents at least one of the following: the button to which the operation was applied, and the type of operation applied to the button.
[0194] Specifically, the processing module 1025 can send the first event information only after detecting a release operation, or it can send the first event information simultaneously with detecting the release operation. In general, in the third trigger mode, the processing module 1025 needs to confirm that a complete press and release operation has been applied to the button within a first duration before sending the first event information. Unlike the second trigger mode, where the first event information is sent immediately in response to a press operation, in the third trigger mode, the triggering timing of the first event information is later than in the second trigger mode.
[0195] Furthermore, in the third triggering mode provided in this embodiment, the control signal for triggering the local function and the first event information for triggering the network function are both generated when the release operation is completed. By taking advantage of the delay in the execution of the network function, a scenario in which the local function is executed before the network function can be realized.
[0196] Furthermore, the processing module 1025 is configured to: in the third trigger mode, if it is detected that a button has been subjected to multiple consecutive press and release operations within a first duration, then it will not generate a control signal for controlling the connection control module 1024, and will send corresponding second event information externally; the second event information is different from the first event information. The second event information represents at least one of the following: the button to which the operation was applied, and the type of operation applied to the button.
[0197] Correspondingly, the processing module 1025 is also configured to: in the second trigger mode, if it is detected that the key is subjected to multiple consecutive pressing and releasing operations within a first duration, generate a control signal for controlling the connection control module 1024, and not send any time information (e.g., corresponding second event information) to the outside.
[0198] Furthermore, the processing module 1025 is configured to: in the third trigger mode, if a button is detected to be pressed and the pressed operation is maintained for more than a first duration, then it will not generate a control signal for controlling the connection control module 1024, and will send out third event information; the third event information is different from the first event information. The third event information represents at least one of the following: the button to which the operation was applied, and the type of operation applied to the button.
[0199] Correspondingly, the processing module 1025 is also configured to: in the second trigger mode, if a button is detected to be pressed and the pressing operation is maintained for a first duration or longer, then no control signal for controlling the connection control module 1024 is generated, and no event information (e.g., corresponding third event information) is sent out.
[0200] In some embodiments, such as Figure 13 As shown, the connection control module 1024 has multiple switches 10241. One end of each switch 10241 is directly or indirectly connected to the power input port 1022, and the other end is connected to multiple independent control output ports 1023.
[0201] The user interaction module 1021 has multiple buttons that correspond one-to-one with the on / off switch 10241 of the connection control module 1024, and each button is configured to independently receive user operations. For example... Figure 13 As shown, button A corresponds to switch A, and button B corresponds to switch B. Switch A is used to control load device 106A, and switch B is used to control load device 106B.
[0202] The processing module 1025 is further configured to allow each button to independently set a trigger mode, and to switch the second trigger mode and the third trigger mode corresponding to any button in response to a switching command.
[0203] In this embodiment, these on / off switches 10241 independently control each output port via buttons, and the processing module 1025 supports independent switching of trigger modes via buttons, switching between different modes according to the switching instructions of the application. Therefore, this solution provides flexible button mapping and control mode switching, supports various home automation functions, enhances the expandability and compatibility of the switching device 102, and allows users to customize operation methods and control strategies according to their needs. For example, users can control different home appliances (such as lights, fans, etc.) via different buttons, with each button corresponding one-to-one with the on / off switch 10241 of the control module, and switching control modes (such as timer switching, brightness adjustment, etc.) according to the instructions of the application.
[0204] Furthermore, different buttons can be set to the same trigger mode, such as working simultaneously in the second or third trigger mode; the same button can only be selected to enter one of the trigger modes (such as the second or third trigger mode) at a time. The switching command is issued by the application; for example, the user sets the trigger mode of each button through an application (APP) on the smart terminal, thereby generating the corresponding switching command.
[0205] It is worth mentioning that the event information mentioned in the above embodiments (such as the first event information, the second event information, and the third event information) can be sent directly or indirectly to the corresponding network devices. After receiving these event information, the network devices will control the corresponding smart devices to execute corresponding functions, thereby triggering the network functions.
[0206] Specifically, the network device stores at least one trigger relationship, and each trigger relationship defines the correspondence between at least one trigger condition and at least one control result. The trigger condition defines at least one button or button operation type (such as single click, double click, long press, etc.), and the control result defines the executable function of a smart device (such as a smart light) connected to the same network device as the switch device 102. The network device can be a gateway, router, or server, etc.
[0207] For example, the switch device 102 includes a left button, a middle button, and a right button, and the controlled devices may be, for example, smart light A and smart light B. If the triggering condition defines at least one button, the triggering relationship may be, for example:
[0208] Triggering Relationship A: If the left button is pressed (the operation here can be any operation, such as single click, double click, long press, etc.), then smart light A will light up;
[0209] In the second trigger mode, the specific process of triggering the network function is as follows:
[0210] If a user presses the left button and performs consecutive pressing and releasing operations on the left button within a first time period, the processing module 1025 will send out corresponding first event information in response to the pressing operation. This first event information represents the operated button (i.e., the left button). After receiving the corresponding first event information via a router or gateway, the server (network device) matches the trigger relationship A corresponding to the left button according to the stored trigger relationship, controls the control result defined by trigger relationship A, and the corresponding smart light A will receive the control command to light up, triggering the network function.
[0211] In the third trigger mode, the process is similar, except that the time difference between the event information and the control signal is smaller. The specific process for triggering the network function is as follows:
[0212] If a user operates the left button and performs consecutive pressing and releasing operations on the left button within a first time period, the processing module 1025 will generate a control signal and send the corresponding first event information only after both pressing and releasing operations are completed. This first event information represents the operated button (i.e., the left button). After the server (network device) receives the corresponding first event information via the router or gateway, it matches the trigger relationship A corresponding to the left button according to the stored trigger relationship, and controls the control result defined by trigger relationship A to be executed. The corresponding smart light A will receive the control command to light up, triggering the network function.
[0213] As a further example, if the triggering condition defines at least one type of operation applied to at least one key, then the triggering relationship can be as follows:
[0214] Trigger relationship B: When the left mouse button is pressed down, smart light A lights up;
[0215] Triggering relationship C: When a right-click action is applied, smart light A turns off;
[0216] Triggering relationship D: When a left-click operation is applied (a continuous down-click and release operation), smart light A lights up;
[0217] Trigger relationship E: When a right-click operation (a series of down-click and release operations) is applied, smart light A turns off.
[0218] In the second trigger mode, the specific process of triggering the network function is as follows:
[0219] When a user continuously presses and releases the left button within a first time period, the processing module 1025 will send corresponding first event information in response to the press operation. This first event information indicates that the left button has been pressed. After receiving the corresponding first event information via a router or gateway, the server (network device) matches the stored trigger relationship with the trigger relationship B corresponding to the left button press operation, and controls the control result defined by trigger relationship B to be executed. The corresponding smart light A will receive the control command to light up, thus triggering the network function.
[0220] When a user performs consecutive pressing and releasing operations on the right button within a first time period, the processing module 1025 will send corresponding first event information in response to the pressing operation. This first event information indicates that a pressing operation has been applied to the right button. After receiving the corresponding first event information via a router or gateway, the server (network device) matches the trigger relationship C corresponding to the right button pressing operation according to the stored trigger relationship, and controls the control result defined by trigger relationship C to be executed. The corresponding smart light A will receive a control command to turn off, thereby triggering the network function.
[0221] In the third trigger mode, the specific process of triggering the network function is as follows:
[0222] When a user performs consecutive pressing and releasing operations on the left button within a first time period, the processing module 1025 will only generate a control signal and send the corresponding first event information after both pressing and releasing operations are completed. This first event information indicates that a click operation has been applied to the left button. After receiving the corresponding first event information via a router or gateway, the server (network device) matches the trigger relationship D corresponding to the left button click operation according to the stored trigger relationship, and controls the control result defined by trigger relationship D to be executed. The corresponding smart light A will receive the control command to light up, thus triggering the network function.
[0223] When a user performs consecutive pressing and releasing operations on the right mouse button within a first time period, the processing module 1025 will only generate a control signal and send the corresponding first event information after both pressing and releasing operations are completed. This first event information indicates that a right-click operation has been applied. After receiving the corresponding first event information via a router or gateway, the server (network device) matches the trigger relationship E corresponding to the right-click operation according to multiple pre-stored trigger relationships, and controls the control result defined by trigger relationship E to be executed. The corresponding smart light A will receive a control command to turn off, thereby triggering the network function.
[0224] In the control circuit of smart lamp B, for example, a circuit breaker 10241 of the connection control module 1024 of the switching device 102 is electrically connected to smart lamp B through the control line of the control output port 1023 to control the circuit control state of smart lamp B. When the user operates the left button to perform continuous pressing and releasing operations in the second trigger mode, the processing module 1025 will generate a control signal to switch the control state of smart lamp B (such as from off to on). Through the definition of trigger relationship A or B, the user can realize the lighting operation of smart lamp A by operating the left button in the second trigger mode, and at the same time realize the lighting operation of smart lamp B. Since the first event information is sent immediately when the pressing operation is performed, while the control signal is generated only when the releasing operation is performed, the lighting actions of smart lamp A and smart lamp B can be performed almost synchronously.
[0225] In the third trigger mode, due to the smaller time difference between control signals and event information, the execution of network functions may be slightly slower than local functions. In this mode, the user can use the left mouse button to sequentially light up smart light B and smart light A.
[0226] It is worth mentioning that the switching device 102 is pre-added to the network where the network device resides, such as an IoT platform where a server resides, or a network formed by a gateway. The following embodiments will further describe the process of connecting the switching device 102 to the network. Specifically, the processing module 1025 is also configured to:
[0227] Before, after, or simultaneously with the immediate transmission of the corresponding first event information after detecting the first operation applied to the user interaction module 1021, if the user interaction module 1021 is further subjected to an operation that meets a first specific condition within a first time period after detecting the application of the first operation, the system enters a pre-configuration mode. If, in the pre-configuration mode, it is further detected that the operation applied to the user interaction module 1021 meets a second specific condition, the system enters a configuration mode. In the configuration mode, the processing module 1025 sends predetermined indication information to enable external network devices to search for the indication information and add the switching device 102 to the network, thereby triggering the network function through the first event information. The network device may be, for example, a gateway / router, a server, or a smart terminal. The first specific condition and the second specific condition differ in at least one of the following: the number of consecutive first operations applied and the number of times the first operation is removed, and the interval between adjacent first operations and the removal of the first operation.
[0228] In an embodiment where the user interaction module 1021 includes buttons for receiving user operations, the processing module 1025 is specifically adapted to:
[0229] Before, after, or simultaneously with the immediate transmission of the corresponding first event information after detecting a first operation applied to the button, if the button is subjected to an operation that meets a first specific condition within a first time period after the first operation is detected, the system enters a pre-configuration mode; if, in the pre-configuration mode, the button is subjected to an operation that meets a second specific condition, the system enters a configuration mode; in the configuration mode, the processing module 1025 sends predetermined indication information; the indication information at least characterizes the switching device 102, so that external network devices can search for the indication information and add the switching device 102 to the network according to the indication information; wherein, the network device may be, for example, a gateway / router, a server, or a smart terminal; wherein, there is at least one different feature between the first specific condition and the second specific condition, such as: the number of consecutive first operations applied and the number of times the first operation is withdrawn, or the interval between adjacent first operations applied and withdrawn.
[0230] In this embodiment, the switching device 102 will enter the pre-configuration mode according to the button operation. If an operation that meets the second specific condition is detected, it will enter the configuration mode. In the configuration mode, an instruction message will be sent to the external device for network configuration.
[0231] Regardless of whether it is in the second or third trigger mode, the configuration mode can be entered via button operation. By setting the pre-configuration mode and the configuration mode, the switch device 102 can enter the network configuration stage when the user performs a specific operation, thereby completing the automated networking of the device. This design simplifies the installation and configuration process of the device, making it easier for users to connect the switch device 102 to the home network.
[0232] Furthermore, the processing module 1025 is also adapted to generate a corresponding control signal in response to the first operation being applied to the button for the first time, before, after, or simultaneously with entering the pre-configuration mode in the second trigger mode.
[0233] In this embodiment, after the user presses the button, the switch device 102 immediately performs a control action (such as turning on the light) and then enters a pre-configured mode. This ensures that the user's immediate control needs are met, regardless of mode changes.
[0234] As can be seen, in the second trigger mode, a control signal can also be triggered synchronously. This control signal can be executed by the connected control module 1024 to trigger local functions. In the third trigger mode, however, no control signal will be triggered, and the focus is solely on triggering the configuration mode.
[0235] In other words, in the second trigger mode, the same operation of the same button can trigger multiple functions simultaneously, while in the third trigger mode, the same operation of the same button can only trigger the same function, and different operations of the same button can trigger different functions, thus realizing the reuse of button functions.
[0236] Furthermore, the first operation is a press operation applied to a button, the first specific condition indicates that at least one consecutive press and release operation is applied within a first duration, and the second specific condition indicates that the interval between two adjacent press and release operations conforms to a second duration. The second duration is between 2 seconds and 10 seconds, for example, 5 seconds.
[0237] Then, before, after, or simultaneously with the detection of a press operation applied to the button and the immediate sending of the corresponding first event information, if the button is further subjected to at least one press operation and a corresponding release operation within a first time period after the press operation is detected, it is determined that the first specific condition is met and the device enters the pre-configuration mode. At the same time, the indicator light of the corresponding light-emitting unit of the button emits a second indication signal (e.g., flashes twice, each time lighting up for 100ms and turning off for 200ms) to prompt the switch device 102 to enter the pre-configuration mode.
[0238] In the pre-configuration mode, if it is further detected that the button is subjected to a press operation and a release operation and the press operation lasts for a second duration, it is determined that the second specific condition is met and the configuration mode is entered.
[0239] In this way, the same button can be used to trigger different functions through different operations.
[0240] Furthermore, after entering the pre-configuration mode, if no subsequent operation is detected, the pre-configuration mode will be maintained for at least a certain period of time (e.g., 1 to 3 seconds, preferably 1.2 seconds).
[0241] In some embodiments, the processing module 1025 is configured to have a fourth trigger mode for setting the control action that the switch 10241 should perform when the switching device 102 is powered on again after a power outage. Specifically, the processing module 1025 is configured to: in the fourth trigger mode, set the switch 10241 to one of the following three states when the power is powered on again after a power outage:
[0242] State 1: Switch 10241 performs a disconnect operation;
[0243] State 2: Switch 10241 continues the control action before the power failure;
[0244] State 3: Switch 10241 performs the closing action.
[0245] In some embodiments, the processing module 1025 is configured to have a fifth trigger mode, adapted to: in the fifth trigger mode, in response to an operation applied to a button, switch the corresponding switch 10241 to the on action, and if a switch 10241 was originally in the on action, switch the switch 10241 that was originally in the on action to the off action, so that each user operation can only trigger one of the multiple switches 10241 to perform the on action.
[0246] Furthermore, the processing module 1025 is also configured to: maintain all switches 10241 in an open position when entering the fifth trigger mode from any other trigger mode. If no switch 10241 is controlled to perform an on action during the fifth trigger mode holding period, the open position of all switches 10241 is maintained when exiting the fifth trigger mode.
[0247] Furthermore, the processing module 1025 is also configured to: when it is powered off and powered on again in the fifth trigger mode, if there are circuit breakers 10241 that are in the on action before the power off, then after power is restored, keep all circuit breakers 10241 in the off action.
[0248] For specific examples, such as Figure 14As shown, the user accesses the configuration interface A corresponding to the switch device 102 through the mobile phone APP application. Configuration interface A displays five setting items: "Button Mode," "Indicator Light," "Relay Settings," "Local Inter-control," and "Fifth Trigger Mode." Among these, "Relay Settings" is used to set the mapping relationships involved in the above embodiments. Clicking this setting item will jump to... Figure 10 In interface B shown, users can further define the mapping relationship between buttons and circuit breakers. Clicking the "Fifth Trigger Mode" option will take you to the configuration interface F for the fifth trigger mode. This fifth trigger mode is a global mode, meaning that once activated, all circuit breakers 10241 corresponding to the buttons of the switch device 102 will operate according to the logic of the fifth trigger mode.
[0249] In some embodiments, the processing module 1025 is configured to have a sixth trigger mode, which is suitable for: in the sixth trigger mode, setting the switch 10241 corresponding to the button to remain in the on state with a higher priority. In this mode, the switch 10241 corresponding to the button will remain in the on action and will not perform the disconnect action due to the button operation.
[0250] Furthermore, the processing module 1025 is also configured to switch the corresponding switch 10241 to the on action when entering the sixth trigger mode.
[0251] Furthermore, the trigger mode of each button can be independently set to enter the sixth trigger mode, and the switch 10241 that triggers the on / off action after the button set to the sixth trigger mode is operated is determined according to the mapping relationship described in the above embodiment. For example, when the user defines the mapping relationship as left button triggering relay L2, middle button triggering relay L1, and right button triggering relay L3, if the middle button is set to the sixth trigger mode, the corresponding relay L1 will remain in the on / off action, while the control action of relay L2 is not affected by the switching of the middle button's trigger mode.
[0252] Furthermore, the processing module 1025 is also configured to: if a certain button is set to be in state one in the fourth trigger mode (i.e., the corresponding switch is set to perform a disconnect action when the power is turned off and then on again), and the button is also set to be in the sixth trigger mode, the sixth trigger mode of the button is set to have a higher priority than the fourth trigger mode. That is, when the switching device 102 is turned off and then on again, the corresponding switch 10241 is not controlled to perform a disconnect action because of the fourth trigger mode setting, but the corresponding switch 10241 is kept in the on action according to the rules of the sixth trigger mode.
[0253] Furthermore, the processing module 1025 is also configured to switch the corresponding switch 10241 to the on action when entering the sixth trigger mode. For example, if the switch 10241 corresponding to a certain button is currently in the off action, when the processing module 1025 responds to the user operation and sets the button to the sixth trigger mode, it will switch the control action of the corresponding switch 10241 to the on action.
[0254] In some embodiments, a seventh trigger mode is also provided. The processing module 1025 is configured to have a seventh trigger mode, so that: in the seventh trigger mode, after recognizing an operation applied to the button, it sends out a pre-set wireless signal for controlling the corresponding smart device. Here, the smart device 109 can be understood as other smart home devices connected to the same network access device 101 and / or cloud as the switch device 102 (it can be a smart device connected to the same network as the switch device 102, or it can be a load device 106 directly connected to the switch device 102).
[0255] Furthermore, the wireless signal here can be transmitted through, for example... Figure 17 The first communication protocol shown is sent and forwarded to the smart device 109 via the network access device 101, such as smart lamps, smart curtains, smart window openers, smart thermostats, smart wall switches, etc.
[0256] Furthermore, the processing module 1025 is also configured to switch the corresponding switch 10241 to the on action when entering the seventh trigger mode, or to maintain the original control action of the switch 10241.
[0257] Furthermore, when the fifth trigger mode is activated, the first and / or seventh trigger modes are automatically exited to maintain the high priority of the fifth trigger mode.
[0258] In some embodiments, when the switching device 102 has multiple trigger modes, the processing module 1025 switches to one or more trigger modes indicated by the received switching instruction. This switching instruction is generated by the user selecting a target trigger mode (i.e., the specific trigger mode the switching device 102 is expected to enter) from multiple trigger modes on the terminal device. The processing module 1025 can selectively enter one of the trigger modes, and can also enter multiple trigger modes simultaneously without contradiction. Trigger modes belonging to the global mode (e.g., the fifth trigger mode) will take effect on the switching device 102 as a whole. Trigger modes belonging to the local mode (e.g., other trigger modes besides the fifth trigger mode: first trigger mode, second trigger mode, third trigger mode, fourth trigger mode, sixth trigger mode, seventh trigger mode, virtual output mode, local output mode) can be set to take effect on a per-key basis for the user interaction module 1021. That is, when the user interaction module 1021 has multiple keys, a key can be independently set to enter one or more local modes, thus each key can be set to different trigger modes.
[0259] like Figure 15 As shown, a schematic diagram of the interface operation for local mode selection is provided; the user enters the configuration interface corresponding to the switch device 102 through a mobile APP application (e.g., Figure 14 After accessing interface A), clicking the "Button Mode" option will take you to the partial mode selection interface G, which is the button mode configuration interface D. For example... Figure 15As shown, the button mode configuration interface G displays the corresponding local mode selection areas for each of the three buttons. Taking the left button as an example, the "Button Working Mode" setting provides two working modes: "Wired Switch" and "Wireless Switch." Selecting the "Wired Switch" working mode further displays trigger controls for "First Trigger Mode," "Second Trigger Mode," "Sixth Trigger Mode," and "Fourth Trigger Mode." "First Trigger Mode" sets the first trigger mode for the left button; any switching commands generated after triggering will point to the first trigger mode. "Second Trigger Mode" sets the second and third trigger modes for the left button. When the corresponding trigger control is selected, the left button is in the second trigger mode; when not selected, the left button is in the third trigger mode, and any switching commands generated will point to either the second or third trigger mode. "Sixth Trigger Mode" sets the sixth trigger mode for the left button; any switching commands generated after selecting the corresponding trigger control will point to the sixth trigger mode. The "Fourth Trigger Mode" is used to set the fourth trigger mode for the left mouse button. When the corresponding trigger control is selected, the user will be directed to the specific state selection interface H for the fourth trigger mode of the left mouse button. Interface H lists states one, two, and three for the user to choose from. It should be noted that since the "Fifth Trigger Mode" is a global mode, it is separate from the local mode selection interface.
[0260] Selecting the "Wireless Switch" operating mode will trigger a switching command that points to the seventh trigger mode, setting the switch device 102 into this mode. Furthermore, under the "Wireless Switch" option, trigger controls for "First Trigger Mode," "Second Trigger Mode," "Sixth Trigger Mode," and "Fourth Trigger Mode" are displayed, allowing you to set the left button's first, second, third, sixth, and fourth trigger modes respectively. This means that the first to fourth trigger modes, as well as the sixth trigger mode, can be set under both the "Wired Switch" and "Wireless Switch" options, and the same trigger mode performs slightly different functions under "Wired Switch" and "Wireless Switch." Specifically, switching to "Wired Switch" automatically activates "Second Trigger Mode" and deactivates "Sixth Trigger Mode," while switching to "Wireless Switch" automatically activates both "Second Trigger Mode" and "Sixth Trigger Mode."
[0261] In some embodiments, such as Figure 16 As shown, the switching device 102 also includes an indicator module 1027, which is electrically connected to the processing module 1025 and is configured in correspondence with the user interaction module 1021 to indicate the operation applied by the user interaction module 1021 under the control of the processing module 1025, and / or to indicate the change in the operating state / mode of the switching device 102.
[0262] It is worth noting that with the rapid development of the smart home industry, the control functions of switching devices are becoming increasingly diverse, moving beyond simple power control of local load circuits to more sophisticated network control. These new functions make the control logic of the switching device 102 more complex, and traditional indicator light logic can no longer meet users' needs for intuitive and accurate feedback on device status.
[0263] Specifically, in intelligent switchgear 102 with multiple operating modes and complex functions, the status of indicator lights may not fully and accurately reflect the working status of the device. Especially when it comes to functions such as network control, device pairing, and intelligent linkage, the feedback mechanism of traditional indicator lights often becomes vague and not intuitive enough.
[0264] Based on this, one embodiment of the present disclosure provides a switching device 102, which provides more accurate and intuitive status feedback in different working modes through the combination of an indication module 1027 and a processing module 1025.
[0265] Specifically, in this embodiment of the disclosure, the user interaction module 1021 has buttons, the connection control module 1024 has a switch 10241, and the indicator module 1027 has light-emitting units corresponding to the buttons of the user interaction module 1021, each light-emitting unit having at least two indicator states.
[0266] In this embodiment, the light-emitting unit can be understood as a specific hardware component in the indicator module 1027, such as an LED or a light-emitting diode, used to form different indicator states.
[0267] The indication status can be understood as the visual appearance of the indicator light of the light-emitting unit, such as color, brightness, and flashing frequency. Each light-emitting unit has at least two indication statuses, and changes in the indication status can directly reflect the operation type, the current working status of the switching device, etc.
[0268] In this embodiment, the buttons and the light-emitting units have a one-to-one correspondence. When the user operates the switch device 102 by pressing the buttons, the change in the operation of the buttons will affect the change in the indication state of the light-emitting units, thereby feeding back the current control state or working state of the device to the user.
[0269] In this embodiment, the processing module 1025 is configured to have a virtual output mode, adapted to: before entering the virtual output mode, respond to the operation of the key and change the indication state of the corresponding light-emitting unit, and switch the control action of the corresponding switch 10241, so as to indicate the control action of the switch 10241 corresponding to each key through the indication state of each light-emitting unit. At this time, it can be understood that the processing module 1025 is in a local output mode, wherein the indication state of the light-emitting unit is mainly used to indicate the change of the control action of the local switch.
[0270] After entering the virtual output mode, the indicator state of the corresponding light-emitting unit changes in response to the operation of the button, while keeping the control action of the switch 10241 unchanged, so that the indicator state of the light-emitting unit and the control action of the switch 10241 operate independently of each other.
[0271] In this embodiment, in virtual output mode, the control action of the switch 10241 remains unchanged in terms of control state, but the device's status indication is indirectly represented by changes in the light-emitting unit. In other words, in virtual output mode, the control action of the switch 10241 (such as connecting or disconnecting) is not changed by button operation. Even if the user presses a button, the device's physical switch (e.g., a power switch) remains in its current state. The user can trigger a change in the indicator state of the light-emitting unit through button operation, but the physical switch state of the device (such as the control action of the switch 10241) is unaffected.
[0272] Furthermore, the solution provided in this embodiment, through the intelligent processing module 1025, enables the switching device 102 to switch between multiple operating modes and adjust the state of the indicator lights according to different operating modes, thereby adapting to more complex functional requirements. For example, in some scenarios, it may be desirable not to directly intervene in the power state of the device, but only to provide feedback on the current operating mode or state through the indicator status. This is particularly beneficial for devices that require frequent adjustments to their operating modes, as it avoids physical wear and tear or power waste caused by frequent switching. Through the virtual output mode, users can flexibly operate the device without physically switching it, while the changes in the light-emitting units provide real-time feedback on the device's operating status, enhancing the user experience.
[0273] Furthermore, the processing module 1025 is also configured to:
[0274] In virtual output mode, after the indication state of the corresponding light-emitting unit changes in response to the operation of the button, a control message is generated based on the changed indication state of the light-emitting unit.
[0275] The control message is sent so that: the smart device that has established a pairing relationship with the switching device 102 in advance receives the control message and controls its own working state based on the parsed indication state.
[0276] In this embodiment, a control message refers to a data packet used to transmit device control information, which is typically transmitted between devices via a certain communication protocol. The control message may contain information such as the current state of the switching device 102, operation commands, and control instructions, with the goal of enabling the receiving smart device to adjust its behavior according to the message content.
[0277] In this embodiment, the indication status information carried in the control message not only reflects the changes in the light-emitting unit but also represents the corresponding control information. This enables the smart device to adjust its own operating state according to the changes in the indication status after receiving the control message, thereby ensuring the consistency of behavior between the switching device 102 and the smart device.
[0278] Furthermore, in virtual output mode, changes in the indicator state of the light-emitting unit are directly embedded as control information into the control message, eliminating the need to carry separate additional control information. By merging the indicator state and control information, redundant information in the control message is reduced. This design simplifies message complexity, reduces communication overhead, and ensures efficient communication between devices. Smart devices can perform more complex automated operations based on these concise control messages, such as channel functions or non-channel control functions controlled by the local switch 10241. Non-channel control functions can be understood as functions that operate within the local network (e.g., a home or office LAN), emphasizing direct local communication between devices without relying on an external network. Even without internet access, local functions can still be performed, such as controlling device switching and adjusting light brightness via buttons.
[0279] Furthermore, such as Figure 17 As shown, the processing module 1025 is further configured to:
[0280] In the second or third triggering mode, the processing module 1025 sends the first event information via a first communication protocol. In the virtual output mode, the processing module 1025 sends the control message via a second communication protocol. The first and second communication protocols are different. The first communication protocol is used for network communication to implement preset network functions, while the second communication protocol is used for local communication to trigger local wireless control functions.
[0281] In this embodiment, the network function can be understood as the ability of the switching device 102 to interact with external intelligent devices (such as cloud servers, remote control terminals, and controlled intelligent devices) via network protocols after connecting to the network, thereby realizing functions such as remote control, monitoring, configuration, or status synchronization of the device. The network function is pre-configured, for example, by customizing it through the triggering relationships involved in the above embodiments.
[0282] As can be seen, in this embodiment, the first communication protocol is used for network communication, that is, communication between devices via the Internet or a local area network (LAN). Examples include, but are not limited to, at least one of Wi-Fi, ZigBee, BLE Mesh, and Thread. These protocols support devices connecting to home or office Wi-Fi networks and allow devices to be remotely controlled via the Internet or LAN.
[0283] The second communication protocol is used for local communication, that is, direct wireless communication between devices without relying on the Internet. It is used for control and operation in a local environment and is suitable for applications requiring fast response and low latency. Examples include, but are not limited to, Bluetooth, ZigBee, Thread, or some custom proprietary communication protocols (such as 433 communication). These protocols support communication between devices within a relatively close physical range and can perform control tasks without relying on an external network.
[0284] Custom proprietary communication protocols can be understood as communication protocols designed and implemented by specific device manufacturers or technology providers according to their own needs and application scenarios. Unlike common standard communication protocols (such as Wi-Fi, Bluetooth, ZigBee, etc.), proprietary communication protocols do not have unified international or industry standards. Instead, they are protocols customized according to the specific requirements of specific devices and application scenarios. In this embodiment, the change in the indication state of the light-emitting unit is directly embedded as control information into the control message, eliminating the need to carry additional control information separately. By integrating the indication state and control information, redundant information in the control message is reduced. This design simplifies the message complexity, reduces communication overhead, and is more conducive to the customization of proprietary communication protocols.
[0285] Furthermore, in the second trigger mode, after detecting a press operation applied to the button, the processing module 1025 immediately sends out the corresponding first event information, and the corresponding light-emitting unit forms a first indication state (for example, the indicator light of the corresponding light-emitting unit emits a first indication signal, such as flashing once). Alternatively, in the third trigger mode, if a continuous press and release operation is detected on the button within a first duration, the corresponding first event information is sent out after the first duration, and the corresponding light-emitting unit forms a first indication state (for example, the indicator light of the corresponding light-emitting unit emits a first indication signal, such as flashing once).
[0286] In virtual output mode, when the processing module 1025 detects a press operation or a series of press and release operations applied to the button, it maintains the original control action of the corresponding switch 10241 unchanged, instructs the corresponding light-emitting unit to form a second indication state, and sends a control message carrying the second indication state to the outside through the second communication protocol to trigger the pre-paired smart device to switch its working state.
[0287] Among them, at least one of the following is different between the first indication state and the second indication state: indicator light color, indicator light flashing count / frequency, and indicator light on / off state.
[0288] In virtual output mode, the switch device 102 can maintain the original control action, and at the same time trigger the state switching of the paired smart device through the second indication state carried in the control message.
[0289] Furthermore, in virtual output mode, when a press operation or a series of press and release operations are detected on the button, the indicator lights of the corresponding light-emitting units do not emit the first indicator signal, but instead flip the indicator light state (e.g., the indicator light flips from on to off), and send a control message carrying the flipped indicator light state information to the outside via the second communication protocol, so as to trigger the pre-paired smart device to flip its working state (e.g., the light flips from on to off) through the indicator light state information.
[0290] Furthermore, each light-emitting unit includes two-color indicator lights to enable different light colors or frequencies for different indication states. For example, such as... Figure 18 As shown, each light-emitting unit includes indicator lights in both white and orange colors (e.g., ...). Figure 21 (See LED2). The illumination parameters of the indicator lights in the light-emitting unit can be customized and adjusted by the user, specifically through visual adjustments on the application interface of the terminal device. For example... Figure 18 As shown, after the user accesses the configuration interface A corresponding to the switch device 102 via a mobile app, configuration interface A also displays an "Indicator Light" option. This option leads to the indicator light settings interface I, where the "Indicator Light" option is used to set the status parameters of the indicator lights of each light-emitting unit of the indicator module 1027, such as indicator light on / off status and brightness parameters. Figure 18 As shown, after entering the indicator configuration interface I, an indicator light switch control, a white light brightness adjustment control, and an orange light brightness adjustment control are provided. Users can turn the indicator light off / on using the indicator light switch control, and can adjust the brightness of the white indicator light and the orange indicator light using the white / orange light brightness adjustment controls.
[0291] In some embodiments, the processing module 1025 is further configured to automatically enter a virtual output mode after pairing with the corresponding smart device after entering the sixth trigger mode and / or the seventh trigger mode.
[0292] Specifically, when the processing module 1025 only has a sixth trigger mode, it can be set to virtual output mode after entering the sixth trigger mode and completing pairing with the corresponding smart device.
[0293] When the processing module 1025 only has the seventh trigger mode, it can be set to virtual output mode after entering the seventh trigger mode and completing pairing with the corresponding smart device.
[0294] When the processing module 1025 has both a sixth trigger mode and a seventh trigger mode, it can be set to virtual output mode after entering both the sixth and seventh trigger modes and completing pairing with the corresponding smart device.
[0295] Of course, in some embodiments, when the processing module 1025 has both a sixth trigger mode and a seventh trigger mode, it can still choose to enter one of the trigger modes and then trigger the virtual output mode in conjunction with the pairing operation with the corresponding smart device.
[0296] In this embodiment, the activation of the virtual output mode is combined with the sixth and seventh trigger modes, so that the virtual output mode can be automatically triggered after entering the sixth and / or seventh trigger modes and completing the corresponding device pairing operation, without the need for manual setting by the user.
[0297] This design greatly simplifies the user operation process, enabling more flexible and efficient seamless integration between the switch device 102 and smart devices, significantly improving the automation level and ease of operation. Through this automatic triggering mechanism, users no longer need to perform cumbersome configuration steps; they only need to complete device pairing to achieve quick and intuitive control, enhancing the overall intelligent experience of the smart home system.
[0298] Furthermore, if the user interaction module 1021 includes multiple buttons, the trigger mode (sixth trigger mode, seventh trigger mode, virtual trigger mode, etc.) of each button can be set independently, thereby assigning different control functions to different buttons. Specifically, each button can be independently configured with a pairing relationship to be paired with different smart devices. Users can configure each button individually as the sixth trigger mode and / or the seventh trigger mode according to their needs. When the corresponding button is also configured with a pairing relationship, the corresponding light-emitting unit will be automatically triggered to enter the virtual output mode. At this time, the indicator state of the light-emitting unit corresponding to the button is no longer used to directly indicate the control action of the switch 10241, but is used to reflect the working status of the smart device paired with the button. This makes each button not only control the switch 10241, but also realize the independent control of multiple smart devices and provide real-time feedback on the status of the corresponding devices. As a result, users can control smart devices in the home more accurately and conveniently, improving the system's intelligent linkage capability and the user's operating experience.
[0299] The following is a feasible implementation of the pairing operation involved in the above embodiments:
[0300] Specifically, when the processing module 1025 receives a pairing command, it enters a pairing mode. In the pairing mode, the processing module 1025 is in a pairing state that continuously listens for pairing signals. When it receives a pairing signal from a target smart device (e.g., a smart light), it stores the identification information (e.g., product ID, MAC address, etc.) carried in the pairing signal to uniquely identify the target smart device, so as to establish pairing with the target smart device.
[0301] In addition, in another embodiment, in pairing mode, the processing module 1025 can also actively send a pairing signal, which carries identification information (such as the ID, MAC address, etc. of the switch device 102) to uniquely identify the switch device 102, so that the target smart device that has entered the pairing state through the pairing operation can receive the pairing signal sent by the switch device 102, store the ID of the switch device 102, and complete the pairing.
[0302] After pairing is completed, the control signal issued by the switch device 102 will carry the identification information of itself or the target smart device, so that the target smart device can confirm whether the control signal is a legitimate signal. It will only respond if it is legitimate, and will not respond if it is illegitimate, so that the switch device 102 can legally control and / or be controlled by the smart device that has established a pairing relationship.
[0303] in:
[0304] Intelligent devices capable of establishing a legitimate control pairing relationship with switchgear 102 may include, but are not limited to, intelligent curtain motors, intelligent lights, and intelligent window openers. The control exerted by switchgear 102 on these devices may include, but is not limited to, the following:
[0305] Control the smart curtain motor to open, close, or pause the curtains at a certain degree of opening or closing;
[0306] Controls smart lights to turn on / off, adjust brightness, and adjust color temperature, etc.
[0307] Control the smart window opener to open, close, or pause the window at a certain degree of opening.
[0308] Intelligent devices capable of establishing a legitimate and controlled pairing relationship with switchgear 102 may include, but are not limited to, self-powered wireless switches, battery-powered wireless switches, human presence sensors, infrared sensors, etc. The functions performed by switchgear 102 under control may include, but are not limited to:
[0309] The control action of a certain circuit breaker 10241 is switched in response to a click operation signal sent by the self-generated wireless switch / battery wireless switch;
[0310] The control action of a certain circuit breaker 10241 is switched in response to double-click / triple-click / long-press operation signals sent by the battery wireless switch;
[0311] The control action of a certain circuit breaker 10241 is switched in response to the sensing signal sent by the human body / infrared sensor.
[0312] Furthermore, these smart devices need to communicate with the switch device 102 based on the same set of custom proprietary communication protocols to achieve local communication. For example, they could be devices from the same manufacturer as the switch device 102, thus following the same set of custom proprietary communication protocols. Alternatively, they could be devices from different manufacturers than the switch device 102 but following the same set of custom proprietary communication protocols.
[0313] Furthermore, the pairing command originates from a network device in the network added by the switch device 102 through configuration mode. For example, a mobile phone; the user can trigger the pairing command through controls on the relevant page of the mobile phone. This pairing command is sent to the switch device 102 via the network to remotely trigger the switch device 102 to enter the pairing state.
[0314] In a specific example, the user interaction module 1021 has one or more buttons, and the processing module 1025 can independently pair each button. For example... Figure 19 The image shown is a schematic diagram of the interface operation. Specific operations can be performed as follows:
[0315] The switchgear 102 has three buttons: left, middle, and right. For example, if a user needs to pair the left button, the user can access the corresponding configuration interface A of the switchgear 102 through a mobile app. The "Local Interoperability" feature is used for pairing the buttons. Figure 19 As shown, after clicking the "Local Inter-Control" option, the user enters the button selection interface D. After selecting "Left Button" in the button selection interface, the user enters the left button pairing interface E. It can be seen that the left button pairing interface displays two display items and three operation items.
[0316] The two display items are "Local Interconnection ID" and "Number of Wireless Switches". "Local Interconnection ID" is used to display the identification information (i.e. ID) of the target smart device that has established a pairing relationship, and "Number of Wireless Switches" is used to display the number of wireless switches that have established a pairing relationship with the switching device 102.
[0317] The three operation directions are "Add Remote Control / Interoperability", "Clear Interoperability", and "Clear Wireless". "Add Remote Control / Interoperability" generates the pairing command to trigger the switch device 102 to enter pairing mode. In this mode, the switch device 102 can pair with other smart devices or wireless switches, including multiple wireless switches. Multiple paired wireless switches can then control the switch device 102. The specific number of paired wireless switches will be displayed in the "Number of Wireless Switches" item. "Clear Interoperability" generates a clear interoperability command, which is sent to the switch device 102. The processing module 1025 clears the ID information of locally paired target smart devices according to the clear interoperability command, resetting the pairing of the switch device 102. "Clear Wireless" generates a clear curve command, which is sent to the switch device 102. The processing module 1025 clears the ID information of locally paired wireless switches according to the clear wireless command, resetting the pairing of the switch device 102. After clearing the wireless, the "Number of Wireless Switches" will display 0.
[0318] Furthermore, once two switching devices establish a mutual control relationship through pairing, the on / off switches, indicator lights of the light-emitting units, and the display status of the configuration interface of the connection control module between the two switching devices will be completely synchronized. When a switching device establishes a local mutual control relationship with another switching device and a wireless switch, this wireless switch will act as a remote control, enabling wireless remote control of two other switching devices in the same paired mutual control relationship.
[0319] In some embodiments, the processing module 1025 is further configured to not set the indicator module 1027 to virtual output mode after entering the first trigger mode. That is, after entering the first trigger mode, the corresponding light-emitting unit will not be automatically triggered to enter the virtual output mode, and the state change of the indicator light of the light-emitting unit is still used to indicate the change of the control action of the corresponding switch 10241.
[0320] In some embodiments, such as Figures 20a-20d As shown, the processing module 1025 is further configured to:
[0321] like Figure 20a As shown, when the switchgear 102 is restarted without power interruption, each switch 10241 connected to the control module 1024 is restored to its default state.
[0322] When it is determined that the switchgear 102 is restarted due to a power outage and then power restoration, it is further determined whether it is in the fifth trigger mode;
[0323] If so, then switch all on / off switches 10241 connected to the control module 1024 to the off action (i.e., disconnect the output, such as...). Figure 20a (as shown); or,
[0324] The control actions of each switch 10241 connected to the control module 1024 are further determined based on the specific state of the fourth trigger mode (e.g., Figure 20b As shown). Specifically, as Figure 20d As shown, if the fourth trigger mode is in state two, the corresponding switch 10241 continues the control action before the power failure; otherwise, each switch 10241 connected to the control module 1024 is switched to the disconnect action.
[0325] If not, then the switch 10241 corresponding to the button in the first trigger mode and / or the seventh trigger mode will be switched to the on action (i.e., the output will be turned on, such as...). Figure 20a , Figure 20b As shown), and determines the control actions of the remaining switches 10241 (i.e., switches corresponding to buttons that are not in the first or seventh trigger modes) according to the specific state of the fourth trigger mode. Specifically, as shown... Figure 20d As shown, if the fourth trigger mode is in state one, the corresponding switch 10241 will perform a disconnection action; if the fourth trigger mode is in state two, the corresponding switch 10241 will continue the control action before the power outage; if the fourth trigger mode is in state three, the corresponding switch 10241 will perform a connection action.
[0326] Furthermore, such as Figure 20c As shown, before switching the switch 10241 corresponding to the button in the first trigger mode and / or the seventh trigger mode to the on action, it is also necessary to determine whether the button in the first trigger mode and / or the seventh trigger mode is in the sixth trigger mode.
[0327] If so, the corresponding switch 10241 will be switched to the on action (i.e., the output will be turned on);
[0328] Otherwise, the control action of the corresponding switch 10241 is determined according to the specific state of the fourth trigger mode. Specifically, such as... Figure 20d As shown, if the fourth trigger mode is in state one, the corresponding switch 10241 will perform a disconnection action; if the fourth trigger mode is in state two, the corresponding switch 10241 will continue the control action before the power outage; if the fourth trigger mode is in state three, the corresponding switch 10241 will perform a connection action.
[0329] As can be seen, in this embodiment, the priority relationship of each trigger mode when the switching device 102 is powered off and restarted is given, so as to ensure that when the switching device 102 has multiple trigger modes at the same time, the switch 10241 can perform the control action as expected when the power is off and then powered on.
[0330] It is also worth mentioning that although the first and third states of the fourth trigger mode require all switches 10241 to perform disconnect and connect actions respectively, their priority is low. When the switch 102 simultaneously activates other trigger modes, other trigger modes will be given priority, especially the fifth trigger mode, which will be considered first.
[0331] In addition, after the processing module 1025 determines the specific control action of each switch 10241, it will send an inter-control message to the outside. The inter-control message carries at least the current working state of the switch equipment 102 (such as the on / off action state of each switch 10241, the state of each indicator light, etc.), so that the switch equipment 102, which has established an inter-control relationship with the switch equipment 102 through pairing in advance, can synchronize its working state.
[0332] Furthermore, the processing module 1025 involved in the above embodiments controls the general operation of the switching device 102 and performs management functions related to other devices in the network (such as load device 106, smart devices). The processing module 1025 may include, but is not limited to, a CPU, hardware microprocessor, hardware processor, multi-core processor, single-core processor, microcontroller, application-specific integrated circuit (ASIC), DSP, or other similar processing devices, capable of executing any type of commands, instructions, algorithms, or software for controlling the operation and functions of the switching device 102 according to the embodiments described in this disclosure. The module may be various implementations of digital circuit systems, analog circuit systems, or mixed-signal (analog and digital combination) circuit systems that perform functions in a computing system. The module may include, for example, portions or circuits of an integrated circuit (IC), a single processor core, an entire processor core, a single processor, programmable hardware devices such as a field-programmable gate array (FPGA), and / or a system including multiple processors.
[0333] like Figure 21 As shown, a hardware schematic diagram of a specific implementation of a switching device 102 is given. In this embodiment, the processing module 1025 adopts a Bluetooth module MHCB12G-B that integrates a Bluetooth communication module 1026. Figure 21 In this circuit, J3 serves as the control output port 1023, used to connect the control line. J1 and J2 serve as the power input ports 1022, for connecting 220V AC power. The AC power is rectified by a rectifier circuit (e.g., a rectifier bridge) and then output as 5V through a power conversion circuit (e.g., a 220V to 5V transformer). This 5V power is further output as 3.3V through a step-down circuit (e.g., a BL1117 power converter) to power other circuits.
[0334] Relay K1 serves as a switch 10241 connecting to control module 1024. K1 is powered by a 5V power supply. Pin 2 of switch 10241 is connected to the live wire terminal J1 of power input port 1022, and pin 5 is connected to control output port 1023J3. Pins 2 and 5 of K1 can be controlled to switch on and off. When connected, switch 10241 is switched on; when disconnected, switch 10241 is switched off. D4 is connected across the coil of relay K1 as its discharge diode. Transistor Q3 and resistors R8 and R11 form a drive circuit to drive switch 10241. Bluetooth module MHCB12G-B controls this circuit via I / O4 to control the switching on and off actions of switch K1 in switch 10241. Two LEDs of the dual-color LED2 serve as indicator lights for the light-emitting unit. The Bluetooth module MHCB12G-B controls their illumination state via I / O1 and I / O2 to change the indicator state of the light-emitting unit. One end of the electronic switch SW2 is grounded, and the other end is connected to the 3.3V power supply and the I / O3 port of the Bluetooth module MHCB12G-B. SW2 is configured to correspond to the buttons of the user interaction module 1021. Pressing a button triggers SW2 to turn on, and releasing a button triggers SW2 to turn off. When SW2 is on, it transmits a low-level electrical signal to the I / O3 port of the Bluetooth module MHCB12G-B; when SW2 is off, it transmits a high-level electrical signal to the I / O3 port of the Bluetooth module MHCB12G-B. The Bluetooth module MHCB12G-B identifies the operation applied by the button by observing the changes in the electrical signal at the I / O3 port.
[0335] like Figure 22 As shown, one embodiment of this disclosure also provides a switching device control method 400, including steps S20 to S22.
[0336] In step S20, user actions are obtained.
[0337] In step S21, when a specified operation is received, the control action is switched to the opposite of the current control action; wherein different control actions correspond to different control states of the load circuit of the switching device.
[0338] In step S22, after maintaining the opposite control action for a specified time, the original control action is restored.
[0339] In some embodiments, before switching to a control action opposite to the current control action, the control method further includes:
[0340] Obtain the configuration command; this configuration command can be set manually and / or automatically according to the load type.
[0341] The corresponding specified time is determined according to the setting instruction;
[0342] In some embodiments, the restoration to the original control action specifically includes: automatically restoring to the original control action.
[0343] In some embodiments, the specified operation includes a press operation and a release operation applied to a switch button; wherein:
[0344] There is an interval between the press and release operations; the specified time is set to be greater than or equal to the interval, or the specified time varies proportionally to the interval.
[0345] In some embodiments, when the specified time varies proportionally to the interval time, the specified time is adjusted proportionally according to the length of the interval time.
[0346] In some embodiments, the switching to a control action opposite to the current control action specifically includes:
[0347] Switch to the disconnect action that is the opposite of the current connection action;
[0348] After maintaining the disconnection action for a specified time, the original connection action is restored; wherein, the specified time is set such that when the connection action is restored, the load connected to the load circuit is still in a powered-on state.
[0349] In some embodiments, the method further comprises:
[0350] Detect whether an operation has been applied;
[0351] If a user action is detected, the target key is determined; the target key is the key to which the action was applied among multiple keys.
[0352] Based on the identified target key, determine the target mapping relationship that matches the target key from the latest multiple mapping relationships;
[0353] The on / off switches defined by the control target mapping relationship execute corresponding control actions.
[0354] Each mapping relationship defines a mapping relationship between at least one key information and at least one switch information; the mapping relationship is predefined by the user through a smart terminal; the key information represents at least one of the following: the key to which an operation is applied among multiple keys, the type of operation applied by the key; the switch information represents at least one of the following: the switch that needs to perform a control action among multiple switches, the specific control action performed by the switch.
[0355] like Figure 23As shown, one embodiment of this disclosure also provides a switching device control method 500, including steps S30 to S31.
[0356] In step S30, in response to the first operation applied by the user in the second trigger mode, the corresponding first event information is immediately sent out to trigger the network function.
[0357] In step S31, if an operation to remove the first operation is detected within a first time period after the first operation is applied, a control signal is generated to trigger the local function.
[0358] In some embodiments, the method further comprises:
[0359] If the button is removed after a first duration following the initial application of the first operation, no control signal is generated; wherein the first duration is 100ms to 3 seconds, for example 300ms to 1000ms, preferably 500ms.
[0360] In some embodiments, the first operation includes a down press operation applied to a switch button; the method specifically includes:
[0361] In response to a button press, the corresponding first event information is immediately sent out.
[0362] If a release operation is detected within the first time interval after a press, a control signal is generated.
[0363] In some embodiments, the method further comprises:
[0364] In response to multiple consecutive press and release operations applied within a first duration, the release operation is selected to trigger a control signal, while other press and release operations do not trigger a control signal.
[0365] In some embodiments, the method further comprises:
[0366] If a button release operation is detected and a button press operation is applied at least once more within the first time period after the initial button press operation is detected, then no control signal will be triggered for any other button press or release operation except for the initial release operation.
[0367] In some embodiments, the method further comprises:
[0368] In the third trigger mode, in response to a continuous press and release operation applied within the first duration, the control signal is generated again after the first duration, and the corresponding first event information is sent out.
[0369] In the third trigger mode, in response to multiple consecutive press and release operations within the first duration, the corresponding second event information is sent out without generating a control signal;
[0370] And / or,
[0371] In the third trigger mode, in response to a pressed operation that is applied and held for more than a first duration, a third event information is sent out without generating a control signal;
[0372] The second trigger mode and the third trigger mode are switched in response to a switching command, which originates from an application.
[0373] In some embodiments, the method further comprises:
[0374] If, before, after, or simultaneously with the detection of the first operation and the immediate sending of the corresponding first event information, an operation that meets the first specific condition is applied within the first time period after the detection of the first operation, then the pre-configuration mode is entered.
[0375] In pre-configuration mode, it checks whether an operation that meets the second specific condition has been applied; if so, it enters configuration mode.
[0376] In configuration mode, a predetermined instruction message is sent out, at least representing the switching device, so that external network devices can search for the instruction message and add the switching device to the network.
[0377] In some embodiments, the method further comprises:
[0378] In the second trigger mode, before, after, or simultaneously with entering the pre-configuration mode, a corresponding control signal is also generated in response to the first operation being applied for the first time.
[0379] In some embodiments, the method further comprises:
[0380] Allows for independent setting of trigger modes for each button on the switching device; and,
[0381] In response to a switching command, switch between the second and third trigger modes corresponding to any key.
[0382] In some embodiments, the method further comprises:
[0383] Detect whether an operation has been applied;
[0384] If a user action is detected, the target key is determined; the target key is the key to which the action was applied among multiple keys.
[0385] Based on the identified target key, determine the target mapping relationship that matches the target key from the latest multiple mapping relationships;
[0386] The on / off switches defined by the control target mapping relationship execute corresponding control actions.
[0387] Each mapping relationship defines a mapping relationship between at least one key information and at least one switch information; the mapping relationship is predefined by the user through a smart terminal; the key information represents at least one of the following: the key to which an operation is applied among multiple keys, the type of operation applied by the key; the switch information represents at least one of the following: the switch that needs to perform a control action among multiple switches, the specific control action performed by the switch.
[0388] In the description of this specification, the references to terms such as "some embodiments," "a specific implementation," "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 this disclosure. In this specification, the illustrative expressions of the above terms corresponding to the described specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0389] 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.
[0390] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure 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 therein. Such 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 this disclosure.
Claims
1. A switching device, characterized in that, include: The user interaction module is used to receive user actions; Power input port, used to connect the power cord; Control output port, used to connect control lines; The connection control module is located between the power input port and the control output port, and can switch between multiple control actions. Different control actions correspond to different connection states between the power input port and the control output port, and each connection state corresponds to a specific control state of the load circuit. The processing module, electrically connected to both the user interaction module and the connection control module, is configured to have a first trigger mode, enabling it to: Obtain a setting instruction, which is used to determine the corresponding specified time, and the setting instruction can be set manually and / or automatically according to the load type; Based on the specified operation received by the user interaction module, the control connection control module switches to the opposite control action of the current control action, and after maintaining the opposite control action for a specified time, it returns to the original control action.
2. The switching device according to claim 1, characterized in that, The user interaction module includes multiple buttons, and the connection control module includes multiple switches; the processing module is also configured to: Detect whether the user interaction module has been activated; If a user action is detected, the target key is determined; the target key is the key to which the action was applied among multiple keys. Based on the identified target key, determine the target mapping relationship that matches the target key from the latest multiple mapping relationships; The on / off switches defined by the control target mapping relationship execute corresponding control actions; Each mapping relationship defines a mapping relationship between at least one key information and at least one on / off switch information; the mapping relationship is predefined by the user through the smart terminal; the key information represents at least one of the following: The key that is being operated on among multiple keys; The type of operation applied to the key; The switch information represents at least one of the following: The switch that needs to perform control actions among multiple switches; The specific control actions performed by the switch.
3. The switching device according to claim 2, characterized in that, The number of buttons is equal to the number of switches. During the definition of the mapping relationship, the user can change the mapping relationship between any button and a switch. The changed mapping relationship group generally follows a one-to-one and non-repeating mapping relationship between each button and each switch.
4. The switching device according to any one of claims 1 to 3, characterized in that, The processing module is also used to: automatically restore the original control action after maintaining the opposite control action for a specified time.
5. The switching device according to any one of claims 1 to 3, characterized in that, The user interaction module includes buttons; Each button is equipped with a corresponding sensing structure. The button is used to receive user operations. The sensing structure is coupled to the button to provide a sensing signal when the button is operated by the user. The sensing structure is electrically connected to the processing module to transmit the sensing signal to the processing module. The processing module identifies the user operation applied to the button based on the sensing signal. The sensing structure includes an electronic switch located below a button. The button is configured to undergo a first displacement toward the electronic switch when pressed in response to a receiving operation. This first displacement triggers the electronic switch to switch between on and off states, thereby generating an electrical signal for sensing. The electrical signal is transmitted to the processing module so that the processing module can identify the operation currently occurring on the key. The switching device has a reset structure corresponding to the button's position. This reset structure supports the button and accumulates potential energy during the button's first displacement. When the press operation is removed, the potential energy accumulated by the reset structure acts on the button to provide a reset force that allows the button to move away from the electronic switch in a second displacement direction. This reset force can support the button to return to its initial position for the user to apply the operation again. During the second displacement, the button can trigger the electronic switch to switch between on and off states again, thereby generating another electrical signal for sensing. This electrical signal is also transmitted to the processing module so that the processing module can identify the release operation currently occurring on the button. The specified operation includes consecutive pressing and releasing operations on a key; wherein: after detecting a complete pressing and releasing operation, the processing module controls the connection control module to switch to the control action opposite to the current control action; After maintaining the opposite control action for a specified time, the control connection control module automatically reverts to the original control action.
6. The switching device according to any one of claims 1 to 3, characterized in that, The processing module controls the connection control module to switch to a control action opposite to the current control action, specifically for: The control connection module switches to a disconnection action that is the opposite of the current connection action, and restores the original connection action after maintaining the disconnection action for a specified time; wherein, the specified time is set so that when the connection control module restores the connection action, the load connected to the control line is still in a powered-on state.
7. The switching device according to any one of claims 1 to 3, characterized in that, The specified time is set within the range of 10ms to 10s.
8. The switching device according to any one of claims 1 to 3, characterized in that, The switching device has multiple trigger modes. The processing module switches to one or more trigger modes indicated by the received switching instruction. The switching instruction is generated by the user selecting the target trigger mode from multiple trigger modes on the terminal device. The processing module is configured to have a seventh trigger mode, so that after recognizing the operation applied to the button in the seventh trigger mode, it can send out a pre-set wireless signal, which is used to control the corresponding smart device. Among them, the first trigger mode and the seventh trigger mode are both local mode trigger modes. When the user interaction module has multiple buttons, a certain button can be independently set to enter one or more local modes.
9. The switching device according to claim 8, characterized in that, The processing module is also configured to switch the corresponding switch to the on action when entering the seventh trigger mode, or to maintain the original control action of the switch.
10. A method for controlling a switchgear, characterized in that, include: Obtain the setting command; this setting command can be set manually and / or automatically according to the load type; The corresponding specified time is determined according to the setting instruction; Obtain user actions; When a specified operation is received, switch to a control action that is the opposite of the current control action; where different control actions correspond to different control states of the load circuit of the switching equipment. After maintaining the opposite control action for a specified time, revert to the original control action.
11. The control method according to claim 10, characterized in that, The method further includes: If a user action is detected, the target key is determined; the target key is the key to which the action was applied among multiple keys. Based on the identified target key, determine the target mapping relationship that matches the target key from the latest multiple mapping relationships; The on / off switches defined by the control target mapping relationship execute corresponding control actions; Each mapping relationship defines a mapping relationship between at least one key information and at least one on / off switch information; the mapping relationship is predefined by the user through the smart terminal; the key information represents at least one of the following: The key that is being operated on among multiple keys; The type of operation applied to the key; The switch information represents at least one of the following: The switch that needs to perform control actions among multiple switches; The specific control actions performed by the switch.
Citation Information
Patent Citations
Load equipment control method, device and system, electronic equipment and storage medium
CN114253141A
Self-generating switch and control system thereof
CN115421401A
Information output apparatus and method
EP0619190A1