Control Method and Device of Electric Control Switch, and Switch Control Equipment

The method allows for flexible control of electrocontrol switches by mapping trigger actions to switches dynamically, reducing hardware complexity and enhancing control effectiveness.

CN115295357BActive Publication Date: 2025-07-15SHENZHEN LUMIUNITED TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing electrically controlled switches have fixed connection methods, and are not flexible enough to meet the control needs of diversity and flexibility.

Method used

By obtaining the electronic control switch configuration mapping relationship, based on this relationship, find the target electronic control switch and sending control instructions to perform the opening and closing operation, the flexible control of the electronic control switch is realized, and hardware replacement and cumbersome operations are avoided.

Benefits of technology

It improves the flexibility and effectiveness of electronic switch control, reduces the consumption of hardware configuration resources, meets diverse needs, and avoids the cumbersomeness of hardware replacement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115295357B_ABST
    Figure CN115295357B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a control method and device for an electric control switch, and a switch control device, which relate to the field of control technologies and are used to solve the problems of poor control effectiveness and inflexibility of electric control switches in the prior art. The method includes: the switch control device obtains an electric control switch configuration mapping relationship configured in the client, where the electric control switch configuration mapping relationship is used to represent the binding relationship between any electric control switch in the switch device and the trigger action information for controlling the electric control switch to perform an opening / closing operation; if a first control instruction for controlling the switch device is received, the target electric control switch that matches the target trigger action information in the first control instruction is found based on the electric control switch configuration mapping relationship; and a second control instruction is sent to the target electric control switch to control the target electric control switch to perform an opening / closing operation. It is mainly used for the control method of electric control switches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control technologies, and in particular, to a control method and device for an electric control switch, and a switch control device. Background Art

[0002] With the rapid development of intelligent devices, in order to ensure the intelligent switch function of the devices, an electric control switch is usually used as a control element for hardware devices such as household devices. In particular, a plurality of electric control switches and trigger elements can be arranged in a switch device serving as a junction box, and used as switch control elements for a plurality of hardware devices. At this time, the electric control switch is controlled to turn on and off the corresponding hardware device by controlling the trigger element.

[0003] Currently, a plurality of electric control switches arranged in existing switch devices are usually directly connected to a uniquely bound trigger element through a wire connection method to trigger the opening and closing of the hardware device. For example, after an electric control switch is wire-connected and bound to a single-click button, the electric control switch is touched by the single-click button to open and close the hardware device corresponding to the electric control switch. The connection method between the existing trigger element and the electric control switch is fixed, and the flexibility is insufficient. Summary of the Invention

[0004] The present invention provides a control method and device for an electric control switch, and a switch control device, which are used to solve the problem that the connection method of the electric control switch in the prior art is fixed and inflexible.

[0005] To achieve one or part or all of the above purposes or other purposes, the present invention proposes a control method for an electric control switch, including:

[0006] Obtain an electric control switch configuration mapping relationship, where the electric control switch configuration mapping relationship is used to represent the binding relationship between any electric control switch in the switch device and the trigger action information for controlling the electric control switch to perform an opening and closing operation;

[0007] If a first control instruction for controlling the switch device is received, based on the electric control switch configuration mapping relationship, find a target electric control switch that matches the target trigger action information in the first control instruction;

[0008] Send a second control instruction to the target electric control switch to control the target electric control switch to perform an opening and closing operation.

[0009] To achieve one or part or all of the above purposes or other purposes, the present invention proposes another control method for an electric control switch, including:

[0010] Obtain the trigger action information expected to be used to control each electric control switch in the switch device to perform an opening and closing operation;

[0011] Obtain at least one of the electric control switches expected to be bound to the trigger action information, and establish an electric control switch configuration mapping relationship;

[0012] Send the electric control switch configuration mapping relationship to determine a target electric control switch matching the target trigger action information based on the electric control switch configuration mapping relationship, and control the target electric control switch to perform an opening and closing operation.

[0013] To achieve one or part or all of the above purposes or other purposes, the present invention provides a control device for an electric control switch, including:

[0014] An acquisition module, configured to acquire an electric control switch configuration mapping relationship, where the electric control switch configuration mapping relationship is used to represent the binding relationship between any electric control switch in a switch device and trigger action information for controlling the electric control switch to perform an opening and closing operation;

[0015] A search module, configured to, when receiving a first control instruction for controlling the switch device, search for a target electric control switch that matches the target trigger action information in the first control instruction based on the electric control switch configuration mapping relationship;

[0016] A sending module, configured to send a second control instruction to the target electric control switch to control the target electric control switch to perform an opening and closing operation.

[0017] In an exemplary embodiment, a trigger element is provided in the switch device, where the trigger element can be triggered by different trigger actions, and the search module includes:

[0018] An analysis unit, configured to analyze a message or a pulse signal in the first control instruction, where the message is generated by the trigger element generating a pulse signal under a target trigger action;

[0019] A determination unit, configured to determine the target trigger action information of the target trigger action according to the message or the pulse signal.

[0020] In an exemplary embodiment, the device further includes:

[0021] A receiving module, configured to receive and store the electric control switch configuration mapping relationship established by a client, where the same trigger action information in the electric control switch configuration mapping relationship is bound to one or more electric control switches, or the same electric control switch is bound to one or more trigger action information.

[0022] In an exemplary embodiment,

[0023] The acquisition module is further configured to, if the target trigger action information matches at least two target electric control switches, acquire the opening and closing states of each of the target electric control switches;

[0024] The sending module is further configured to, if the on / off states of at least two of the target electric control switches are different, send a status synchronization instruction to the target electric control switches to control the on / off states of the target electric control switches to be the same and then synchronously perform the on / off operation.

[0025] In an exemplary embodiment, the triggering element includes any one of a knob, a button, and a knob-button combination.

[0026] To achieve one or part or all of the above purposes or other purposes, the present invention provides another control device for an electric control switch, including:

[0027] An acquisition module, configured to acquire triggering action information expected to be used to control each electric control switch in the switch device to perform on / off operations;

[0028] A establishing module, configured to acquire at least one of the electric control switches expected to be bound to the triggering action information, and establish an electric control switch configuration mapping relationship;

[0029] A sending module, configured to send the electric control switch configuration mapping relationship to determine a target electric control switch matching the target triggering action information based on the electric control switch configuration mapping relationship, and control the target electric control switch to perform on / off operations.

[0030] In an exemplary embodiment, a triggering element is provided in the switch device, wherein the triggering element can be triggered by different triggering actions. The acquisition module is specifically configured to display each triggering action information of the triggering element; acquire a triggering action selection operation instruction, where the triggering action selection operation instruction is used to indicate the selected content of the triggering action information; and determine the triggering action information to be bound according to the selected content of the triggering action information.

[0031] In an exemplary embodiment, the establishing module includes:

[0032] A display unit, configured to display the identification information of each electric control switch, where the identification information is used to represent the identity of the corresponding electric control switch;

[0033] An acquisition unit, configured to acquire an identification selection operation instruction, where the identification selection operation instruction is used to indicate the selected content of the identification information;

[0034] A first establishing unit, configured to determine the identification information to be bound based on the selected content of the identification information, bind the electric control switch corresponding to the identification information to the triggering action information, and establish an electric control switch configuration mapping relationship; or,

[0035] A second establishing unit, configured to bind the electronic control switch corresponding to the identification information and the trigger action information based on a preset sorting rule, and establish an electronic control switch configuration mapping relationship;

[0036] Wherein, in the electronic control switch configuration mapping relationship, the same trigger action information has a binding relationship with one or more electronic control switches, or the same electronic control switch has a binding relationship with one or more trigger action information.

[0037] In an exemplary embodiment, the obtaining module is further configured to obtain an association configuration instruction, where the association configuration instruction is used to indicate the combined synchronization state of at least two electronic control switches bound to the same trigger action information, so that when the corresponding trigger action information is triggered and the on-off states of at least two electronic control switches are not synchronized, the at least two electronic control switches are first synchronized to the combined synchronization state; and mark the association configuration instruction in the electronic control switch configuration mapping relationship.

[0038] To achieve one or part or all of the above purposes or other purposes, the present invention provides a storage medium in which at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the control method of the electronic control switch as described above.

[0039] To achieve one or part or all of the above purposes or other purposes, the present invention provides a switch control device, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete mutual communication through the communication bus;

[0040] The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the control method of the electronic control switch as described above.

[0041] Implementing the embodiments of the present invention will have the following beneficial effects:

[0042] After adopting the control method and device of the electronic control switch and the switch control device as described above, the present invention obtains an electronic control switch configuration mapping relationship including the binding relationship between the electronic control switch and the trigger action information configured in the client through the switch control device; when receiving a first control instruction for controlling the switch device, based on the electronic control switch configuration mapping relationship, search for a target electronic control switch that matches the target trigger action information, and send a second control instruction to the target electronic control switch to achieve the purpose of controlling the target electronic control switch to perform an on-off operation. If it is necessary to change the control method of the electronic control switch, it can be achieved by changing the electronic control switch configuration mapping relationship, without disassembling and changing the wires connected to the electronic control switch, reducing the resource consumption of complex hardware configuration of the device, avoiding the tediousness of hardware replacement in the switch device, meeting the flexibility and diversity requirements for controlling the electronic control switch, and greatly improving the effectiveness of electronic control switch control. Brief Description of the Drawings

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0044] Among them:

[0045] Figure 1 It is a schematic structural diagram of an intelligent control system in an embodiment;

[0046] Figure 2 It shows a flowchart of a control method for an electric control switch provided by an embodiment of the present invention;

[0047] Figure 3 It shows a split side view of a switch device provided by an embodiment of the present invention;

[0048] Figure 4 It shows an integrated side view of a switch device provided by an embodiment of the present invention;

[0049] Figure 5 It shows a rear split view of a switch device provided by an embodiment of the present invention;

[0050] Figure 6 It shows a flowchart of another control method for an electric control switch provided by an embodiment of the present invention;

[0051] Figure 7 It shows a schematic diagram of data interaction for the control of an electric control switch provided by an embodiment of the present invention;

[0052] Figure 8 It shows a schematic diagram of the corresponding relationship between an electric control switch and a triggering action provided by an embodiment of the present invention;

[0053] Figure 9 It shows a flowchart of yet another control method for an electric control switch provided by an embodiment of the present invention;

[0054] Figure 10 It shows a schematic diagram of the binding operation between an electric control switch and a triggering action provided by an embodiment of the present invention;

[0055] Figure 11 It shows a flowchart of still another control method for an electric control switch provided by an embodiment of the present invention;

[0056] Figure 12 It shows a schematic structural diagram of a control device for an electric control switch provided by an embodiment of the present invention;

[0057] Figure 13 Shows a schematic structural diagram of another control device for an electric control switch provided by an embodiment of the present invention;

[0058] Figure 14 Shows a schematic structural diagram of a switch control device provided by an embodiment of the present invention. Specific embodiments

[0059] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0060] The control method of the electric control switch provided by this application can be applied to, for example, Figure 1 the application environment shown. Among them, Figure 1 An intelligent control system is provided. The intelligent control system includes an intelligent switch device 001, a gateway 002 communicatively connected to the intelligent switch device 001, a router 003, a server 004, and a terminal 005. Among them, the intelligent switch device 001 can be a device such as a wall-mounted switch in a smart home, which is not limited here.

[0061] The intelligent switch device 001 accesses the gateway 002 in the intelligent control system and communicates with the gateway 001 through its own configured communication module, and is thus controlled by the gateway 002. In one embodiment, the intelligent switch device 001 accesses the gateway 002 through a local area network path or a wide area network path, and is thus deployed in the gateway 002. Among them, the local area network can include ZIGBEE or Bluetooth, and the wide area network can include 2G / 3G / 4G / 5G / WIFI, etc.

[0062] The gateway 002 establishes a network connection with the terminal 005 or the server 004 through the router 004. In one embodiment, the gateway 002 and the terminal 005 can establish a network connection through a local area network or a wide area network path. Through this network connection, it interacts with the terminal 005, so that the user can control the intelligent switch device accessing the gateway 002 through this terminal 005 to perform corresponding actions.

[0063] In one embodiment, the intelligent switch device 001 and the terminal 005 can also perform data communication through a local area network. Among them, the local area network can include ZIGBEE or Bluetooth.

[0064] Among them, the terminal 005 can be a smart phone, a laptop computer, a personal computer, a tablet computer, a smart control panel or other electronic devices capable of implementing network connection, which is not limited herein. The server 004 can be implemented by an independent server or a server cluster composed of multiple servers. Specifically, by obtaining the mapping relationship of the electrical control switch configuration between any electrical control switch in the switch device and the trigger action information for controlling the opening and closing operation of the electrical control switch, when receiving a first control instruction for controlling the switch device, based on the electrical control switch configuration mapping relationship, search for the target electrical control switch that matches the target trigger action information in the first control instruction, and send a second control instruction to the target electrical control switch, so as to control the target electrical control switch to perform the opening and closing operation. Specifically, the electrical control switch can be an electrical component such as a relay or a circuit breaker.

[0065] In the case of the switch device, if it is necessary to change the binding relationship between the electrical control switch and the trigger element, it is necessary to disassemble and change the wire connected to the electrical control switch, which will generate a large amount of hardware operation work, cannot meet the diversity and flexibility requirements of the electrical control switch control, and reduces the effectiveness of the electrical control switch control.

[0066] Based on the above problems, the embodiment of the present invention provides a control method for an electrical control switch. Taking the application of this method to a switch control device as an example, the processing end as the current execution end is the switch control device. Specifically, the switch control device can be an APP, a cloud server, a gateway, or a control module in the switch device as a smart switch, or the smart switch device itself with smart control functions, etc., which is not limited in this application. As Figure 2 shown, the method includes the following steps:

[0067] 101. Obtain the mapping relationship of the electrical control switch configuration.

[0068] In the embodiments of the present invention, the current execution end can obtain the configured electric control switch configuration mapping relationship by loading or downloading. Among them, the electric control switch can be a switch element with electronic control functions, including but not limited to relays, circuit breakers, etc. The electric control switch configuration mapping relationship is used to represent the binding relationship between any electric control switch in the switch device and the trigger action information for controlling the electric control switch to perform opening and closing operations. Among them, "controlling the electric control switch to perform opening and closing operations" means controlling the electric control switch to perform a disconnection operation or a closing operation. Different electric control switches in the switch device can be bound to different trigger actions, which can include the binding between one electric control switch and multiple trigger actions, or the binding between multiple electric control switches and one trigger action. Thus, based on the trigger action corresponding to the trigger element of the switch device, the target electric control switch corresponding to this trigger action is determined from the electric control switch configuration mapping relationship. For example, in the electric control switch configuration mapping relationship, there is a binding relationship between the single-click trigger action information and the first-way electric control switch, and a binding relationship between the double-click trigger action information and the second-way electric control switch. The embodiments of the present invention do not make specific limitations.

[0069] In the embodiments of the present invention, the current execution end can be an APP, a cloud server, a gateway, or the switch device itself as an intelligent control device, or a control module in the switch device. That is, when the terminal device as the client cannot communicate with the switch device itself or the control module in the switch device, the current execution end acts as a cloud server or a gateway to obtain the electric control switch configuration mapping relationship for judgment when receiving a control instruction for the switch device. When the terminal device as the client communicates with the current execution end through Bluetooth, ZigBee, or WIFI, the current execution end can be the switch device itself with intelligent control functions, or a control module in the switch device can load the electric control switch configuration mapping relationship for judgment when receiving a control instruction for the switch device, so as to achieve the purpose of intelligent switch control.

[0070] 102. If a first control instruction for controlling the switch device is received, search for a target electric control switch that matches the target trigger action information in the first control instruction based on the electric control switch configuration mapping relationship.

[0071] In the embodiments of the present invention, trigger elements and each electric control switch are provided in the switch device, and different hardware devices, including but not limited to smart home devices, etc., are controlled to open and close through the switch circuit connected to the electric control switch. In a specific implementation scenario, such as Figure 3The separated side view of the switch device shown, i.e., part a is a separable knob serving as a trigger element, part b is a wall-mounted housing containing a control module and at least one electrically controlled switch. Part a and part b can be completely separated, and in the separated state, the switch device can be used as a wireless switch, and the signal between part a and part b can be transmitted wirelessly. As Figure 4 The integrated side view of the switch device shown, that is, part a and part b are fixedly combined to obtain a switch device in the form of a black box, and the embodiments of the present invention do not make specific limitations. The switch device is provided with a trigger element, an electrically controlled switch, and a switch circuit connected to the electrically controlled switch, so that the user can trigger the switch control through the trigger element. For example, in a scenario where the load is an intelligent lamp, such as Figure 5 The rear split view of the switch device shown. Multiple electrically controlled switches in the switch device are connected to the load lamp wire R, the live wire L, and the neutral wire N, so as to form a wall recessed box to control the power on and off of the intelligent lamp. In addition, the trigger element includes any one of a knob, a button, and a knob-button combination. At this time, when the trigger element is a knob, the knob can determine the corresponding trigger action information by rotating the corresponding gear; when the trigger element is a button, the button can determine the corresponding trigger action information by a click event; when the trigger element is a knob-button combination, the corresponding trigger action information can be determined by both rotation and clicking, and the embodiments of the present invention do not make specific limitations.

[0072] It should be noted that when the user triggers the first control instruction for controlling the switch device, this control instruction carries the target trigger action information for clicking, rotating, or pressing and rotating the trigger element, including but not limited to single-click, double-click, long-press action, rotating the first gear, rotating the second gear, pressing and rotating clockwise, etc. At this time, after determining the target trigger action information, the target electrically controlled switch matching the target trigger action information can be found according to the mapping relationship configured for the electrically controlled switch.

[0073] 103. Send a second control instruction to the target electrically controlled switch.

[0074] In the embodiments of the present invention, after determining the target electrically controlled switch in step 102, the current execution end sends a second control instruction to the target electrically controlled switch to control the target electrically controlled switch to perform an on / off operation based on the second control instruction. In addition, in the embodiments of the present invention, the initial on / off state of the electrically controlled switch in the switch device can be pre-configured, so as to change the switch state of the electrically controlled switch, that is, the on state or the off state, through the second control instruction.

[0075] In an embodiment of the present invention, a control method for an electric control switch is provided. The switch control device obtains an electric control switch configuration mapping relationship configured in the client, which includes the binding relationship between the electric control switch and the trigger action information. When receiving a first control instruction for controlling the switch device, based on the electric control switch configuration mapping relationship, a target electric control switch matching the target trigger action information is found, and a second control instruction is sent to the target electric control switch to achieve the purpose of controlling the target electric control switch to perform opening and closing operations, reducing the resource consumption of complex hardware configuration of the device. If you want to change the control method of the electric control switch, it can be achieved by modifying the electric control switch configuration mapping relationship, without disassembling and replacing the wires between the trigger element and the electric control switch, etc., avoiding the cumbersome process of replacing the hardware of the switch device, meeting the flexibility and diversity requirements for controlling the electric control switch, and greatly improving the effectiveness of electric control switch control.

[0076] In an exemplary embodiment, for further limitation and illustration, as Figure 6 shown, the step of finding a target electric control switch that matches the target trigger action information in the first control instruction based on the electric control switch configuration mapping relationship includes:

[0077] 201. Analyze the message or pulse signal in the first control instruction;

[0078] 202. Determine the target trigger action information of the target trigger action according to the message or the pulse signal.

[0079] In a specific application scenario, the trigger element includes any one of a knob, a button, and a knob-button combination element. After the trigger element is triggered, a corresponding pulse signal is generated. When performing wireless transmission between the trigger element and the current cloud server, such as based on WIFI, ZigBee, or Bluetooth, the pulse signal generated by the trigger element is converted into a message, and the message in the first control instruction received by the cloud server is used to determine the target trigger action information. When performing wireless transmission, if it is necessary to transfer through a gateway, this message is the gateway message, and the embodiments of the present invention do not make specific limitations.

[0080] When performing wired transmission between the trigger element and the current switch device itself or the control module, that is, when part a and part b are in a combined state, the pulse signal of the trigger element is directly sent to the control module or the switch device itself, so that the control module or the switch device itself determines the target trigger action information. In addition, when performing wireless transmission between the trigger element and the current switch device itself or the control module, after the trigger element is triggered, a corresponding pulse signal is generated, and the first control instruction received by the current switch device itself or the control module includes the message converted from this pulse signal.

[0081] Therefore, in order to accurately determine the target electronic control switch based on the target trigger action information carried in the first control instruction, in the application scenario corresponding to the solid line process shown in Figure 7 When the electronic control switch is a relay, in the current application scenario corresponding to the solid line process shown in Figure 7 , the current cloud server communicates wirelessly with the knob. After the current execution end receives the first control instruction, it first parses the message carried in the first control instruction. The message is generated by the trigger element generating a pulse signal under the target trigger action. That is, after the trigger element is triggered, the pulse signal generated by the trigger element is converted into a message for wireless transmission, and then transmitted, so that the current execution end determines the target action trigger information triggered by the target action according to the message. For example, after clicking the trigger element, a short pulse is generated. When the cloud and the knob communicate wirelessly, the knob converts the short pulse into a message, generates a first control instruction containing this message, and the gateway forwards the first control instruction carrying this message to the current cloud server. In the cloud server, the target action trigger information determined according to the message is a click.

[0082] In another specific application scenario, in the application scenario corresponding to the dotted line process shown in Figure 7 When the electronic control switch is a relay, the client APP directly sends the electronic control switch configuration mapping relationship to the current control module through Bluetooth, wifi, etc. The trigger element knob can be connected to the control module by wire or wirelessly. At this time, if it is a wired connection, after the trigger element knob is triggered, the knob generates a corresponding pulse signal. The current control module, as the execution end, receives the pulse signal of the trigger element through the wired connection method and directly parses the target trigger action information for determining the target trigger action based on this pulse signal. For example, after double-clicking the trigger element, a double short pulse signal is generated. The current control module determines that the target trigger action information corresponding to the target trigger action is a double click according to the double short pulse signal.

[0083] It should be noted that different pulse signals or messages corresponding to the target trigger action can be pre-configured in the current execution end, so as to match the trigger action with the trigger action information. The embodiments of the present invention do not make specific limitations.

[0084] In an exemplary embodiment, for further limitation and illustration, before the step of obtaining the electronic control switch configuration mapping relationship, the method further includes:

[0085] Receiving and storing the electronic control switch configuration mapping relationship established by the client, where the same trigger action information has a binding relationship with one or more electronic control switches, or the same electronic control switch has a binding relationship with one or more trigger action information.

[0086] In an embodiment of the present invention, in order to pre-store the mapping relationship of the electric control switch configuration in the current execution end, so that when the first control instruction is received, the target electric control switch can be directly found based on the mapping relationship of the electric control switch configuration. Specifically, the mapping relationship of the electric control switch configuration established by the client is received and stored. At this time, as Figure 8 shown, the same trigger action information can be bound to one or more electric control switches, and the same electric control switch can be bound by one or more trigger action information.

[0087] In an exemplary embodiment, for further limitation and illustration, the steps further include:

[0088] If the target trigger action information matches at least two target electric control switches, and the target electric control switches are associated electric control switches, then obtain the on-off states of each target electric control switch;

[0089] If the on-off states of at least two of the target electric control switches are different, then send a status synchronization instruction to the target electric control switches to control the on-off states of the target electric control switches to be the same and then perform the on-off operation synchronously.

[0090] In order to achieve flexible control of the electric control switch and meet the effective cooperative control requirements of the electric control switch, after determining the target trigger action information, if it is determined based on the mapping relationship of the electric control switch configuration that this target trigger action information matches at least two target electric control switches, then the current execution end further determines whether these at least two target electric control switches are associated electric control switches. Specifically, it can be determined based on the mapping relationship of the electric control switch configuration, and the embodiment of the present invention does not make specific limitations. If the target trigger action information matches at least two target electric control switches, and the target electric control switches are associated electric control switches, in order to achieve the control of the on-off state of the combined electric control switches, obtain the on-off states of all the target electric control switches serving as the combined electric control switches. If the on-off states of each target electric control switch are different, in order to achieve the combined control of the on-off state, then the current execution end sends a status synchronization instruction to all the target electric control switches serving as the combined electric control switches to control the on-off states of all the target electric control switches to be adjusted to the same. Then, send a second control instruction to all the target electric control switches to perform the synchronous on-off operation.

[0091] It should be noted that in the embodiments of the present invention, sending a status synchronization instruction to the target electric control switch to adjust the opening and closing state of the target electric control switch may be sending a specified all-opening control instruction or all-closing control instruction to the electric control switch to unify the opening and closing state. It may also be based on the real-time opening and closing state fed back by each electric control switch after responding to the status synchronization instruction, screening the electric control switches to be synchronized whose opening and closing states need to be adjusted, and sending a specified control switching instruction to adjust the opening and closing state of the electric control switches to be synchronized to be the same as that of other electric control switches. The embodiments of the present invention do not make specific limitations.

[0092] Another control method for an electric control switch is provided in the embodiments of the present invention. The switch control device obtains an electric control switch configuration mapping relationship including the binding relationship between the electric control switch and the trigger action information configured in the client. When receiving a first control instruction for controlling the switch device, based on the electric control switch configuration mapping relationship, the target electric control switch matching the target trigger action information is found, and a second control instruction is sent to the target electric control switch to achieve the purpose of controlling the target electric control switch to perform opening and closing operations, reducing the resource consumption of complex hardware configuration of the device, avoiding the tediousness of hardware replacement of the switch device, meeting the requirements of flexibility and diversity for controlling the electric control switch, and greatly improving the effectiveness of electric control switch control.

[0093] Based on the above problems, another control method for an electric control switch is provided in the embodiments of the present invention. Taking the application of this method to an electronic device as an example for illustration, the electronic device may be a client or the like, and the present application does not make limitations in this regard. As Figure 9 shown, the method includes the following steps:

[0094] 301. Obtain trigger action information expected to be used to control each electric control switch in the switch device to perform opening and closing operations.

[0095] In an embodiment of the present invention, the current client is used to execute the electric control switch control method in steps 301-303 of the current embodiment. During the process of electric control switch control or configuration, the current client first obtains trigger action information based on the current client to establish an electric control switch configuration mapping relationship. Among them, the obtained trigger action information is the action content that the user expects to use to control one or more electric control switches in the switch device to perform opening and closing operations. Among them, "the trigger action information expected to be used to control each electric control switch in the switch device to perform opening and closing operations" means the trigger action information for which the user plans to establish an electric control switch configuration mapping relationship. For example, there are multiple trigger action information available for the user to select, and the user can select one or more trigger action information that he plans to use from the multiple trigger action information and establish an electric control switch configuration mapping relationship for it. A trigger element is provided in the switch device, and the trigger element includes any one of a knob, a button, and a knob-button combination. By triggering the trigger element, the corresponding trigger action information is obtained. The trigger action information includes, but is not limited to, single-click, double-click, long-press action, rotate the first gear, rotate the second gear, press and rotate, etc. The embodiments of the present invention do not make specific limitations.

[0096] It should be noted that in the embodiments of the present invention, when the current client can communicate with the control module or the switch device itself in the switch device through Bluetooth or WIFI, it can directly perform data communication with the control module or the switch device itself. If it cannot directly communicate through Bluetooth or WIFI, it can perform data communication with the cloud server through the Internet connection method, so as to communicate with the current client through the cloud server.

[0097] 302. Obtain at least one of the electric control switches expected to be bound to the trigger action information, and establish an electric control switch configuration mapping relationship.

[0098] As Figure 10 shown, the obtained trigger action information can be displayed in the current client. The user selects and binds through at least one trigger action information displayed in the application APP and multiple electric control switches in the switch device, or the current client adaptively binds the trigger action information to each electric control switch to establish an electric control switch configuration mapping relationship. For example, in the electric control switch configuration mapping relationship, the binding relationship between the click trigger action information and the first-way electric control switch, and the binding relationship between the double-click trigger action information and the second-way electric control switch are configured. The embodiments of the present invention do not make specific limitations.

[0099] In an embodiment of the present invention, in order to bind the trigger action information to each electronic control switch, after or before the user selects the expected trigger action information, the user can select the electronic control switch that the user expects to bind to the trigger action information, so as to bind the selected electronic control switch to the selected trigger action information, forming an electronic control switch configuration mapping relationship.

[0100] It should be noted that since different switch devices are provided with different numbers and different models of electronic control switches, before binding the electronic control switches in the current client, the user selects from the displayed multiple electronic control switches the electronic control switches in the switch device that are expected to be bound to the trigger action information, so as to accurately bind the corresponding trigger action information to each electronic control switch in different switch devices.

[0101] 303. Send the electronic control switch configuration mapping relationship to determine the target electronic control switch matching the target trigger action information based on the electronic control switch configuration mapping relationship, and control the target electronic control switch to perform an opening / closing operation.

[0102] In an embodiment of the present invention, after the current client establishes the electronic control switch configuration mapping relationship, this electronic control switch configuration mapping relationship is sent out, so that after obtaining the first control instruction, the target electronic control switch is determined according to the carried target trigger action information, so as to control the target electronic control switch to perform an opening or closing control. In one embodiment, the configuration mapping relationship can be sent to the execution end (such as a cloud server, a gateway) that controls the opening and closing of the electronic control switch or the switch device (the switch device itself or the control module in the switch device), so that the execution end or the switch device determines the target electronic control switch based on the first control instruction and the electronic control switch configuration mapping relationship, and controls the disconnection or closing of the electronic control switch.

[0103] The embodiment of the present invention provides another control method for an electronic control switch. The present invention obtains, through a client, trigger action information for controlling each electronic control switch in a switch device to perform an expected opening / closing operation; obtains at least one of the electronic control switches bound to the trigger action information, and establishes an electronic control switch configuration mapping relationship; sends the electronic control switch configuration mapping relationship, so that a processing end or the switch device determines a target electronic control switch matching the target trigger action information based on the electronic control switch configuration mapping relationship, and controls the target electronic control switch to perform an opening / closing operation, achieving the purpose of controlling the target electronic control switch to perform an opening / closing operation, reducing the resource consumption of complex configuration of device hardware, avoiding the cumbersome process of replacing the hardware of the switch device, meeting the flexibility and diversity requirements for controlling the electronic control switch, and greatly improving the effectiveness of controlling the electronic control switch.

[0104] In an exemplary embodiment, for further limitation and illustration, the step of obtaining trigger action information expected to be used to control the opening and closing operations of each electric control switch in the switch device includes:

[0105] Displaying each trigger action information of the trigger element;

[0106] Obtaining a trigger action selection operation instruction, where the trigger action selection operation instruction is used to indicate the selected content of the trigger action information;

[0107] Determining the trigger action information to be bound according to the selected content of the trigger action information.

[0108] In the embodiment of the present invention, to facilitate the user to configure the electric control switch configuration mapping relationship according to their own needs in the current client, specifically, first, each trigger action information of the trigger element is displayed on the front-end page of the client, including but not limited to click, double-click, long-press action, rotate the first gear, rotate the second gear, press and rotate and other trigger action information, so as to instruct the user to make a selection. After the current client obtains the trigger action selection operation instruction, it determines the trigger action information to be bound according to the selected content used to indicate the trigger action information. At this time, the trigger action information can be one or more, and the embodiment of the present invention does not make a specific limitation. As Figure 10 shown, each trigger action information that can trigger the trigger element 1 is displayed in the left trigger action information bar, and each electric control switch that can be matched is displayed in the right electric control switch information bar. Among them, the left trigger action information bar and the right electric control switch information bar can be displayed on the same front-end page or on different pages. In the left trigger action information bar, the user can select different trigger action information. Correspondingly, the display form of the candidate electric control switches in the right electric control switch information bar can be the same or different, so that the user can select the trigger action information in the current client, and the current client establishes an electric control switch configuration mapping relationship through binding.

[0109] In a specific scenario, the current client displays the trigger action information of the trigger element a in the left trigger action information bar on the front-end page, including actions such as click, double-click, long-press, rotate, press and rotate, etc. At the same time, the current client can display multiple electric control switches to be bound in the right electric control switch information bar on the front-end page, or not display them. When the user clicks the click trigger action information in the left trigger action information bar on the front-end page, the current client obtains the trigger action selection operation instruction generated after clicking the click trigger action information, and determines the trigger action information to be bound as click according to the selection of the click trigger action information, so as to select the electric control switch corresponding to the click.

[0110] In addition, the user can also determine the trigger elements that match each electronic control switch through an independent selection method. For example, after selecting a knob, the trigger gear information corresponding to each gear of the trigger gear of the knob is loaded and displayed, and the user makes a selection based on the displayed trigger gear information. For example, 3 trigger gear information of the knob is obtained.

[0111] In a specific scenario, the current execution end can randomly or determine the trigger element for binding the electronic control switch according to the order of the trigger elements. For example, if button a and knob button assembly b are configured in the current execution end, then button a can be determined first in order and the trigger action information for button a to perform single-click and double-click operations is loaded. Then, the knob button assembly is determined, and the trigger action information for the knob button assembly b to perform rotation gear 1 and single-click operations is loaded.

[0112] In an exemplary embodiment, for further limitation and illustration, as Figure 11 shown, the step of obtaining at least one of the electronic control switches bound with the trigger action information and establishing an electronic control switch configuration mapping relationship includes:

[0113] 401. Display the identification information of each of the electronic control switches;

[0114] 402. Obtain an identification selection operation instruction;

[0115] 403a. Determine the identification information to be bound based on the selection content of the identification information, and bind the electronic control switch corresponding to the identification information with the trigger action information to establish an electronic control switch configuration mapping relationship; or,

[0116] 403b. Bind the electronic control switch corresponding to the identification information with the trigger action information based on a preset sorting rule to establish an electronic control switch configuration mapping relationship.

[0117] In the embodiment of the present invention, in order to accurately establish an electronic control switch configuration mapping relationship, so as to intelligently and flexibly control the corresponding electronic control switch based on the configuration method. When establishing the electronic control switch configuration mapping relationship, specifically, first, the identification information of the electronic control switch to be bound with the trigger action information is displayed on the front-end page for the user to select. As Figure 10In the right - hand electric control switch information bar shown, the identification information of multiple electric control switches is displayed. Users can select the electric control switch to be bound by clicking. Among them, the identification information is used to represent the identity of the electric control switch. There are multiple electric control switches set in the switch device. Therefore, for differentiation, each electric control switch has a corresponding unique identification information. When the current client obtains the generated identification selection operation instruction when the user selects the identification information, at this time, the identification selection operation instruction is used to indicate the selected content of the identification information, and then the electric control switch for which the user selects the trigger action information to be bound is determined according to the selected content.

[0118] In a specific application scenario, in the current client, after the user selects through the identification information of each displayed electric control switch, the selected electric control switch is bound to the selected trigger action information, thereby establishing an electric control switch mapping relationship. At this time, the user can simultaneously select the identification information of each electric control switch and the trigger action information expected to be bound in the left - hand trigger action information bar and the right - hand electric control switch information bar of a front - end page, so that the current client binds the trigger action information to the electric control switch and establishes an electric control switch configuration mapping relationship. For example, the current client binds the identified electric control switch s of the selected identification information to the selected single - click trigger action information. Therefore, in the established electric control switch configuration mapping relationship, the electric control switch s is bound to the single - click trigger action.

[0119] In a specific application scenario, the current execution end pre - sets a sorting rule in advance, and thus binds the identification information of each electric control switch to the trigger action information of the trigger element according to the sorting rule. At this time, the preset sorting rule can be a random rule, a sequential sorting rule, etc., and the embodiments of the present invention do not make specific limitations. For example, after determining that the identification information of the electric control switch is J - a, J - b, J - c, in sequence, J - a, J - b, J - c are bound to single - click, double - click, and rotate one gear in the trigger action information to obtain an electric control switch configuration mapping relationship.

[0120] It should be noted that since a switch device can include multiple electric control switches and the trigger element can be triggered by multiple trigger actions, in the electric control switch configuration mapping relationship, the same trigger action information can be bound to one or more electric control switches, or the same electric control switch can be bound to one or more trigger action information, and the embodiments of the present invention do not make specific limitations.

[0121] In an exemplary embodiment, for further limitation and illustration, after the step of obtaining at least one of the electric control switches that bind the trigger action information and establishing an electric control switch configuration mapping relationship, the method further includes:

[0122] Display multiple electrical control switches in the electrical control switch configuration mapping relationship, and obtain an associated configuration instruction, where the associated configuration instruction is used to indicate the combined synchronization state of at least two electrical control switches bound to the same trigger action information; so that when at least two of the electrical control switches are triggered by the corresponding trigger action information and the on-off states of at least two electrical control switches are not synchronized, they are first synchronized to the combined synchronization state;

[0123] Mark the associated configuration instruction in the electrical control switch configuration mapping relationship.

[0124] In order to meet the flexible control of electrical control switches, the current client can also provide users with the configuration of associated electrical control switches, so that after the execution end or switch device determines that the target electrical control switch is multiple associated electrical control switches, it can synchronously control the on-off states of multiple associated electrical control switches. Specifically, after the current client establishes the electrical control switch configuration mapping relationship, it first displays multiple electrical control switches already bound in this electrical control switch configuration mapping relationship for the user to make associated selections. When the user triggers the associated configuration instruction, this associated configuration instruction is used to indicate the combined synchronization state of at least two electrical control switches (i.e., associated power savers) bound to the same trigger action information. After the configuration of the associated electrical control switches is completed, in order to enable the execution end or switch device to synchronously control the associated electrical control switches, the associated configuration instruction is marked in the electrical control switch configuration mapping relationship and sent to the execution end or switch device. When multiple electrical control switches are bound to the same trigger action information and the execution end obtains this trigger action information, it can first obtain the current states of these multiple target electrical control switches, and the current states of these multiple target electrical control switches may be different. Some target electrical control switches are in the on state, and some target electrical control switches are in the off state. Therefore, the execution end can first unify the states of these multiple target electrical control switches to the combined synchronization state based on the associated configuration instruction in the electrical control switch configuration mapping relationship.

[0125] In a specific application scenario, the user enters the front-end page of the client APP for configuring the switch device to perform control configuration on multiple electrical control switches in the switch device. The switch device includes a control module, a trigger element, and at least three electrical control switches. After entering the front-end page of the APP, such as Figure 10As shown in the figure, the triggering action information of the triggering element is displayed in the triggering action information bar on the left side of the page, including single click, double click, long press, clockwise rotation, counterclockwise rotation, and pressing and clockwise rotation. The identification information of at least four electronic control switches is displayed in the electronic control switch information bar on the right side. After the user selects a single click, the APP selects the operation instruction according to the triggering action corresponding to the single click to determine that the "single click" is the triggering action information. After the user selects the identification information of the second electronic control switch from the electronic control switch information bar on the right side, the single click is bound to the second electronic control switch to establish an electronic control switch configuration mapping relationship, and the electronic control switch configuration mapping relationship is sent to the control module in the switch device. After receiving the electronic control switch configuration mapping relationship, the control module stores it. When the control module receives the first control instruction of the triggering element based on wireless or wired, it analyzes the pulse signal or message in the first control instruction, and searches for the target electronic control switch that matches the target triggering action information of the single click based on the electronic control switch configuration mapping relationship, which is the second electronic control switch. Therefore, the control module sends a second control instruction to the second electronic control switch to enable the second electronic control switch to perform the opening and closing operation.

[0126] An embodiment of the present invention provides another control method for an electronic control switch. The present invention obtains, through a client, the triggering action information expected to be used to control each electronic control switch in the switch device to perform the opening and closing operation; obtains at least one of the electronic control switches expected to be bound to the triggering action information, and establishes an electronic control switch configuration mapping relationship; sends the electronic control switch configuration mapping relationship, so that the processing end or the switch device determines the target electronic control switch that matches the target triggering action information based on the electronic control switch configuration mapping relationship, and controls the target electronic control switch to perform the opening and closing operation, achieving the purpose of controlling the target electronic control switch to perform the opening and closing operation, reducing the resource consumption of the complex configuration of the device hardware, avoiding the tediousness of replacing the switch device hardware, meeting the flexibility and diversity requirements for controlling the electronic control switch, and greatly improving the effectiveness of the electronic control switch control.

[0127] Based on the above problems, an embodiment of the present invention provides a control device for an electronic control switch, as Figure 12 shown, the method includes:

[0128] An obtaining module 51, configured to obtain an electronic control switch configuration mapping relationship, where the electronic control switch configuration mapping relationship is used to represent the binding relationship between any electronic control switch in the switch device and the triggering action information for controlling the electronic control switch to perform the opening and closing operation;

[0129] A searching module 52, configured to, when receiving a first control instruction for controlling the switch device, search for a target electronic control switch that matches the target triggering action information in the first control instruction based on the electronic control switch configuration mapping relationship;

[0130] A sending module 53, configured to send a second control instruction to the target electric control switch to control the target electric control switch to perform an opening and closing operation.

[0131] In an exemplary embodiment, a triggering element is provided in the switch device, wherein the triggering element can be triggered by different triggering actions, and the searching module includes:

[0132] An analysis unit, configured to analyze a message or a pulse signal in the first control instruction, where the message is generated by the triggering element generating a pulse signal under a target triggering action;

[0133] A determining unit, configured to determine target triggering action information of the target triggering action according to the message or the pulse signal.

[0134] In an exemplary embodiment, the device further includes:

[0135] A receiving module, configured to receive and store the electric control switch configuration mapping relationship established by the client, where in the electric control switch configuration mapping relationship, the same triggering action information has a binding relationship with one or more electric control switches, or the same electric control switch has a binding relationship with one or more triggering action information.

[0136] In an exemplary embodiment,

[0137] The obtaining module is further configured to, if the target triggering action information matches at least two target electric control switches and the target electric control switches are associated electric control switches, obtain the opening and closing states of the target electric control switches;

[0138] The sending module is further configured to, if the opening and closing states of at least two of the target electric control switches are different, send a status synchronization instruction to the target electric control switches to control the target electric control switches to perform an opening and closing operation synchronously after the opening and closing states are the same.

[0139] In an exemplary embodiment, the triggering element includes any one of a knob, a button, and a knob-button combination.

[0140] In an embodiment of the present invention, a control device for an electric control switch is provided. The switch control device obtains an electric control switch configuration mapping relationship including the binding relationship between the electric control switch and the trigger action information configured in the client. When receiving a first control instruction for controlling the switch device, the target electric control switch matching the target trigger action information is found based on the electric control switch configuration mapping relationship, so as to send a second control instruction to the target electric control switch, achieving the purpose of controlling the target electric control switch to perform opening and closing operations, reducing the resource consumption of complex hardware configurations of the device, reducing the complexity of hardware operations, meeting the requirements of flexibility and diversity for controlling the electric control switch, and greatly improving the effectiveness of electric control switch control.

[0141] Based on the above problems, another control device for an electric control switch is provided in an embodiment of the present invention, as Figure 13 shown. The method includes:

[0142] An acquisition module 61, configured to acquire trigger action information expected to be used to control each electric control switch in the switch device to perform opening and closing operations;

[0143] A building module 62, configured to acquire at least one of the electric control switches expected to be bound to the trigger action information, and establish an electric control switch configuration mapping relationship;

[0144] A sending module 63, configured to send the electric control switch configuration mapping relationship, so that the processing end or the switch device determines the target electric control switch matching the target trigger action information based on the electric control switch configuration mapping relationship, and controls the target electric control switch to perform opening and closing operations.

[0145] In an exemplary embodiment, a trigger element is provided in the switch device. Among them, the trigger element can be triggered by different trigger actions. The acquisition module is specifically configured to display the trigger action information of the trigger element; acquire a trigger action selection operation instruction, where the trigger action selection operation instruction is used to indicate the selected content of the trigger action information; and determine the trigger action information to be bound according to the selected content of the trigger action information.

[0146] In an exemplary embodiment, the building module includes:

[0147] A display unit, configured to display the identification information of each electric control switch, where the identification information is used to represent the identity of the corresponding electric control switch;

[0148] An acquisition unit, configured to acquire an identification selection operation instruction, where the identification selection operation instruction is used to indicate the selected content of the identification information;

[0149] A first establishing unit, configured to determine the identification information to be bound based on the selected content of the identification information, and bind the identification information to the trigger action information to establish an electric control switch configuration mapping relationship; or,

[0150] A second establishing unit, configured to bind the identification information to the trigger action information based on a preset sorting rule to establish an electric control switch configuration mapping relationship;

[0151] Wherein, in the electric control switch configuration mapping relationship, the same trigger action information has a binding relationship with one or more electric control switches, or the same electric control switch has a binding relationship with one or more trigger action information.

[0152] In an exemplary embodiment, the obtaining module is further configured to display a plurality of electric control switches in the electric control switch configuration mapping relationship, and obtain an association configuration instruction, where the association configuration instruction is used to indicate a combined synchronization state of at least two electric control switches bound to the same trigger action information, so that when the corresponding trigger action information is triggered and the on / off states of at least two electric control switches are not synchronized, the at least two electric control switches are first synchronized to the combined synchronization state; and mark the association configuration instruction in the electric control switch configuration mapping relationship.

[0153] An embodiment of the present invention provides another control device for an electric control switch. The present invention obtains, through a client, trigger action information for controlling the expected on / off operations of each electric control switch in a switch device; obtains at least one electric control switch bound to the trigger action information, and establishes an electric control switch configuration mapping relationship; sends the electric control switch configuration mapping relationship, so that a processing end or the switch device determines a target electric control switch matching the target trigger action information based on the electric control switch configuration mapping relationship, and controls the target electric control switch to perform an on / off operation, achieving the purpose of controlling the target electric control switch to perform an on / off operation, reducing the resource consumption of complex hardware configurations of the device, reducing the complexity of hardware operations, meeting the flexibility and diversity requirements for controlling the electric control switch, and greatly improving the effectiveness of electric control switch control.

[0154] According to an aspect of the present invention, there is provided a storage medium storing at least one executable instruction, and the executable instruction causes a processor to perform operations corresponding to the above control method for an electric control switch.

[0155] In one embodiment, there is provided a computer program product or a computer program, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the above method embodiments.

[0156] Figure 14 Shows a schematic structural diagram of a switch control device provided according to an embodiment of the present invention. The specific implementation of the switch control device is not limited in the specific embodiments of the present invention.

[0157] As Figure 14 shown, the switch control device may include: a processor 702, a communications interface 704, a memory 706, and a communication bus 708.

[0158] Among them: the processor 702, the communications interface 704, and the memory 706 communicate with each other through the communication bus 708.

[0159] The communications interface 704 is used to communicate with network elements of other devices such as clients or other servers.

[0160] The processor 702 is used to execute the program 710, and specifically can execute the relevant steps in the above-mentioned embodiment of the emotion recognition processing method.

[0161] Specifically, the program 710 may include program code, and the program code includes computer operation instructions.

[0162] The processor 702 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the electronic device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.

[0163] The memory 706 is used to store the program 710. The memory 706 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.

[0164] The program 710 is specifically used to cause the processor 702 to execute the control method of the electric control switch in the above-mentioned embodiments.

[0165] In one embodiment, another computer program product or computer program is provided. The computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.

[0166] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the method embodiments as described above. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or an external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0167] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0168] The above-disclosed are only the preferred embodiments of the present invention. Of course, the scope of the rights of the present invention cannot be limited thereby. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope covered by the present invention.

Claims

1. A control method for an electric control switch, characterized in that, Comprising: Obtain an electronic control switch configuration mapping relationship, which is used to characterize the binding relationship between any electronic control switch in a switch device and trigger action information for controlling the electronic control switch to perform opening and closing operations. A trigger element and a plurality of electronic control switches are provided in the switch device; If a first control instruction for controlling the trigger element of the switch device is received, and the first control instruction carries target trigger action information for the trigger element, search for a target electronic control switch that matches the target trigger action information in the first control instruction based on the electronic control switch configuration mapping relationship; Send a second control instruction to the target electronic control switch to control the target electronic control switch to perform opening and closing operations.

2. The method according to claim 1, wherein The trigger element can be triggered by different trigger actions. The searching for a target electronic control switch that matches the target trigger action information in the first control instruction based on the electronic control switch configuration mapping relationship includes: Analyze the message or pulse signal in the first control instruction, where the message is generated by the trigger element generating a pulse signal under a target trigger action; Determine the target trigger action information of the target trigger action according to the message or the pulse signal.

3. The method according to claim 2, characterized in that Before obtaining the electronic control switch configuration mapping relationship, the method further includes: Receive and store the electronic control switch configuration mapping relationship, where the same trigger action information is bound to one or more electronic control switches in the electronic control switch configuration mapping relationship, or the same electronic control switch is bound to one or more trigger action information.

4. The method according to claim 1, characterized in that, The method further includes: If the target trigger action information matches at least two target electronic control switches, obtain the opening and closing states of each of the target electronic control switches; If the opening and closing states of at least two of the target electronic control switches are different, send a status synchronization instruction to the target electronic control switches to control the opening and closing states of all the target electronic control switches to be the same and then synchronously perform opening and closing operations.

5. The method according to any one of claims 2-4, characterized in that, The trigger element includes any one of a knob, a button, and a knob-button combination.

6. A control method for an electric control switch, characterized in that, Comprising: Obtain trigger action information expected to be used to control each electronic control switch in a switch device to perform opening and closing operations. A trigger element and a plurality of electronic control switches are provided in the switch device; Obtain at least one of the electronic control switches expected to be bound to the trigger action information, and establish an electronic control switch configuration mapping relationship; Send the electronic control switch configuration mapping relationship to match a target electronic control switch based on the electronic control switch configuration mapping relationship and the target trigger action information carried in the control instruction, and control the target electronic control switch to perform opening and closing operations.

7. The method according to claim 6, wherein The trigger element can be triggered by different trigger actions. The obtaining of the trigger action information expected to be used to control each electronic control switch in a switch device to perform opening and closing operations includes: Display each trigger action information of the trigger element; Obtain a trigger action selection operation instruction, which is used to indicate the selected content of the trigger action information; Determine the trigger action information to be bound according to the selected content of the trigger action information.

8. The method according to claim 6 or 7, characterized in that Obtain at least one of the electronic control switches bound to the trigger action information, and establishing an electronic control switch configuration mapping relationship includes: Display the identification information of each of the electronic control switches, where the identification information is used to represent the identity of the corresponding electronic control switch; Obtain an identification selection operation instruction, where the identification selection operation instruction is used to indicate the selection content of the identification information; Based on the selection content of the identification information, determine the identification information to be bound, and bind the electronic control switch corresponding to the identification information to the trigger action information to establish an electronic control switch configuration mapping relationship; or, Based on a preset sorting rule, bind the electronic control switch corresponding to the identification information to the trigger action information to establish an electronic control switch configuration mapping relationship; Wherein, in the electronic control switch configuration mapping relationship, the same trigger action information has a binding relationship with one or more electronic control switches, or the same electronic control switch has a binding relationship with one or more trigger action information.

9. The method according to claim 6, characterized in that, After obtaining at least one of the electronic control switches bound to the trigger action information and establishing an electronic control switch configuration mapping relationship, the method further includes: Obtain an association configuration instruction, where the association configuration instruction is used to indicate the combined synchronization state of at least two electronic control switches bound to the same trigger action information, so that when the corresponding trigger action information is triggered and the on / off states of the at least two electronic control switches are not synchronized, they are first synchronized to the combined synchronization state; Mark the association configuration instruction in the electronic control switch configuration mapping relationship.

10. A control device for an electric control switch, characterized in that, Includes: An obtaining module, configured to obtain an electronic control switch configuration mapping relationship, where the electronic control switch configuration mapping relationship is used to represent the binding relationship between any electronic control switch in a switch device and the trigger action information for controlling the electronic control switch to perform an on / off operation, and a trigger element and a plurality of electronic control switches are provided in the switch device; A searching module, configured to, when receiving a first control instruction for controlling the trigger element of the switch device, where the first control instruction carries target trigger action information for the trigger element, search for a target electronic control switch that matches the target trigger action information in the first control instruction based on the electronic control switch configuration mapping relationship; A sending module, configured to send a second control instruction to the target electronic control switch to control the target electronic control switch to perform an on / off operation.

11. A control device for an electric control switch, characterized in that Includes: An obtaining module, configured to obtain trigger action information expected to be used to control each electronic control switch in a switch device to perform an on / off operation, where a trigger element and a plurality of electronic control switches are provided in the switch device; A establishing module, configured to obtain at least one of the electronic control switches bound to the trigger action information and establish an electronic control switch configuration mapping relationship; A sending module, configured to send the electronic control switch configuration mapping relationship to match a target electronic control switch based on the electronic control switch configuration mapping relationship and the target trigger action information carried in the control instruction, and control the target electronic control switch to perform an on / off operation.

12. A storage medium, characterized in that, At least one executable instruction is stored in the storage medium, and the executable instruction causes the processor to perform operations corresponding to the control method of the electronic control switch according to any one of claims 1-9.

13. A switch control device, characterized in that, Including: A processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface complete communication with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the control method of the electronic control switch according to any one of claims 1-9.

Citation Information

Patent Citations

  • Control method and system based on wireless switch, gateway, wall switch and cloud

    CN111221273A