Disclosure of Invention
The invention provides a control method and device of an electric control switch and switch control equipment, which are used for solving the problems of fixed and inflexible connection mode of the electric control switch in the prior art.
To achieve one or a part or all of the above or other objects, the present invention provides a control method of an electric control switch, comprising:
Acquiring an electric control switch configuration mapping relation, wherein the electric control switch configuration mapping relation is used for representing a binding relation between any electric control switch in the switch equipment and trigger action information for controlling the electric control switch to execute opening and closing operations;
If a first control instruction for controlling the switching equipment is received, searching a target electric control switch matched with target trigger action information in the first control instruction based on the electric control switch configuration mapping relation;
And sending a second control instruction to the target electric control switch so as to control the target electric control switch to execute opening and closing operations.
To achieve one or a part or all of the above or other objects, the present invention provides another control method of an electrically controlled switch, including:
acquiring trigger action information expected to be used for controlling each electric control switch in the switch equipment to execute opening and closing operations;
acquiring at least one electric control switch which is expected to bind the triggering action information, and establishing an electric control switch configuration mapping relation;
And sending the electric control switch configuration mapping relation to determine a target electric control switch with target trigger action information matching based on the electric control switch configuration mapping relation, and controlling the target electric control switch to execute opening and closing operations.
To achieve one or a part or all of the above or other objects, the present invention provides a control device of an electric control switch, comprising:
The electronic control switch configuration mapping relation is used for representing the binding relation between any electronic control switch in the switch equipment and trigger action information for controlling the electronic control switch to execute opening and closing operation;
the searching module is used for searching a target electric control switch matched with target trigger action information in the first control instruction based on the electric control switch configuration mapping relation when receiving the first control instruction for controlling the switch equipment;
And the sending module is used for sending a second control instruction to the target electric control switch so as to control the target electric control switch to execute opening and closing operations.
In an exemplary embodiment, a triggering element is provided in the switching device, wherein the triggering element is capable of being triggered by different triggering actions, and the search module comprises:
The analysis unit is used for analyzing the message or the pulse signal in the first control instruction, wherein the message is generated by generating the pulse signal under the target triggering action of the triggering element;
and the determining unit is used for determining target trigger action information of the target trigger action according to the message or the pulse signal.
In an exemplary embodiment, the apparatus further comprises:
The receiving module is used for receiving and storing the electric control switch configuration mapping relation established by the client, wherein the same trigger action information in the electric control switch configuration mapping relation has a binding relation with one or more electric control switches, or the same electric control switch has a binding relation with one or more trigger action information.
In an exemplary embodiment of the present invention,
The acquisition module is further used for acquiring the opening and closing states of the target electric control switches if the target trigger action information is matched with at least two target electric control switches;
And the sending module is further used for sending a state synchronization instruction to the target electric control switches if the opening and closing states of at least two target electric control switches are different, so as to control the opening and closing operations to be synchronously executed after the opening and closing states of the target electric control switches are the same.
In an exemplary embodiment, the trigger element comprises any one of a knob, a button, a knob button assembly.
To achieve one or a part or all of the above or other objects, the present invention provides another control device for an electrically controlled switch, comprising:
The acquisition module is used for acquiring trigger action information expected to be used for controlling each electric control switch in the switch equipment to execute opening and closing operations;
the building module is used for obtaining at least one electric control switch which is expected to bind the triggering action information and building an electric control switch configuration mapping relation;
And the sending module is used for sending the electric control switch configuration mapping relation so as to determine a target electric control switch with target trigger action information matched based on the electric control switch configuration mapping relation and control the target electric control switch to execute opening and closing operations.
In an exemplary embodiment, a trigger element is disposed in the switch device, where the trigger element can be triggered by different trigger actions, and the obtaining module is specifically configured to display information of each trigger action of the trigger element, obtain a trigger action selection operation instruction, where the trigger action selection operation instruction is used to indicate selection content of the trigger action information, and determine trigger action information to be bound according to the selection content of the trigger action information.
In an exemplary embodiment, the establishing module includes:
the display unit is used for displaying the identification information of each electric control switch, and the identification information is used for representing the identity of the corresponding electric control switch;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring an identification selection operation instruction, and the identification selection operation instruction is used for indicating the selection content of the identification information;
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 electric control switch corresponding to the identification information with the trigger action information to establish an electric control switch configuration mapping relationship, or,
The second establishing unit is used for binding the electric control switch corresponding to the identification information with the trigger action information based on a preset ordering rule, and establishing an electric control switch configuration mapping relation;
The same trigger action information and one or more electric control switches in the electric control switch configuration mapping relation have binding relation, or the same electric control switch and one or more trigger action information have binding relation.
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 a joint synchronization state of at least two electronic switches bound to the same trigger action information, so that the at least two electronic switches are synchronized to the joint synchronization state when the corresponding trigger action information is triggered and the open and closed states of the at least two electronic switches are not synchronized, and mark the association configuration instruction in the electronic switch configuration mapping relationship.
To achieve one or a part or all of the above or other objects, the present invention provides a storage medium having at least one executable instruction stored therein, where the executable instruction causes a processor to execute operations corresponding to the control method of an electronic control switch.
To achieve one or a part or all of the above or other objects, the present invention provides a switch control device, including a processor, a memory, a communication interface, and a communication bus, where the processor, the memory, and the communication interface complete communication with each other through the communication bus;
The memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the control method of the electric control switch.
The implementation of the embodiment of the invention has the following beneficial effects:
After the control method and the device for the electric control switch and the switch control equipment are adopted, the electric control switch configuration mapping relation which is configured in the client and contains the binding relation between the electric control switch and the trigger action information is obtained through the switch control equipment, when a first control instruction for controlling the switch equipment is received, the target electric control switch matched with the target trigger action information is searched based on the electric control switch configuration mapping relation, so that a second control instruction is sent to the target electric control switch, the aim of controlling the target electric control switch to execute the opening and closing operation is fulfilled, if the control mode of the electric control switch needs to be changed, the aim can be fulfilled by changing the electric control switch configuration mapping relation, wires connected with the electric control switch do not need to be detached and changed, the resource consumption of complex configuration of equipment hardware is reduced, the requirement on flexibility and diversity of controlling the electric control switch is met, and the control effectiveness of the electric control switch is greatly improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The control method of the electric control switch provided by the application can be applied to an application environment shown in figure 1. Among them, fig. 1 provides an intelligent control system including an intelligent switching apparatus 001, a gateway 002 communicatively connected with the intelligent switching apparatus 001, a router 003, a server 004, and a terminal 005. The smart switching device 001 may be a wall switch or the like in a smart home, and is not limited herein.
The intelligent switch device 001 is connected to the gateway 002 in the intelligent control system, and communicates with the gateway 001 through its own configured communication module, and is further controlled by the gateway 002. In one embodiment, the intelligent switching apparatus 001 accesses the gateway 002 through a local area network path or a wide area network path, thereby being deployed in the gateway 002. The local area network may include ZIGBEE or bluetooth, and the wide area network may include 2G/3G/4G/5G/WIFI, etc.
Gateway 002 establishes a network connection with terminal 005 or server 004 through route 004, in one embodiment gateway 002 establishes a network connection with terminal 005 through a local area network or wide area network path. Interact with the terminal 005 through the network connection, thereby enabling the user to control the intelligent switching device of the access gateway 002 to perform a corresponding action by means of the terminal 005.
In one embodiment, the intelligent switching apparatus 001 and the terminal 005 may further communicate data through a local area network, wherein the local area network may include ZIGBEE or bluetooth.
The terminal 005 may be a smart phone, a notebook computer, a personal computer, a tablet computer, an intelligent control panel, or other electronic devices capable of implementing network connection, which is not limited herein. The server 004 can be implemented by using an independent server or a server cluster formed by combining a plurality of servers, specifically, an electric control switch configuration mapping relation between any electric control switch in the characterizing switch device and trigger action information for controlling the electric control switch to execute opening and closing operations is obtained, so that when a first control instruction for controlling the switch device is received, a target electric control switch matched with target trigger action information in the first control instruction is searched based on the electric control switch configuration mapping relation, and a second control instruction is sent to the target electric control switch, thereby realizing that the target electric control switch is controlled to execute opening and closing operations. Specifically, the electric control switch can be an electrical element such as a relay, a circuit breaker and the like.
If the binding relation between the electric control switch and the trigger element needs to be changed in the switch equipment, the lead connected with the electric control switch needs to be detached and changed, a large amount of hardware operation work can be generated, the requirements of diversity and flexibility of control of the electric control switch cannot be met, and the effectiveness of control of the electric control switch is reduced.
Based on the above-mentioned problems, the embodiment of the present application provides a control method for an electric control switch, which is described by taking the application of the method to a switch control device as an example, and the processing end serving as the current execution end is the switch control device, specifically, the switch control device may be an APP, a cloud server, a gateway, a control module in the switch device serving as an intelligent switch, or the switch device itself with an intelligent control function, and the application is not limited thereto. As shown in fig. 2, the method comprises the steps of:
101. and acquiring the configuration mapping relation of the electric control switch.
In the embodiment of the invention, the current execution end can acquire the configured electric control switch configuration mapping relation in a loading or downloading manner, wherein the electric control switch can be a switch element with an electronic control function, including but not limited to a relay, a circuit breaker and the like, and the electric control switch configuration mapping relation is used for representing the binding relation between any electric control switch in the switch equipment and trigger action information for controlling the electric control switch to execute an opening and closing operation, wherein the expression "controlling the electric control switch to execute the opening and closing operation" refers to controlling the electric control switch to execute the opening operation or execute the closing operation. Different electric control switches in the switch equipment can be bound with different trigger actions, and the binding between one electric control switch and a plurality of trigger actions can be included, and the binding between a plurality of electric control switches and one trigger action can also be included, so that the target electric control switch corresponding to the trigger action is determined from the electric control switch configuration mapping relation based on the trigger action corresponding to the trigger element of the switch equipment. For example, in the configuration mapping relationship of the electric control switches, a binding relationship between the single click trigger action information and the first path of electric control switches is configured, and a binding relationship between the double click trigger action information and the second path of electric control switches is configured.
In the embodiment of the invention, the current execution end can be an APP, a cloud server and a gateway, or can be a switch device serving as intelligent control equipment or a control module in the switch device, namely when the terminal device serving as a client cannot perform data communication with the switch device or the control module in the switch device, the current execution end serves as the cloud server or the gateway to acquire the configuration mapping relation of the electric control switch so as to judge when a control instruction of the switch device is received. When the terminal equipment serving as the client side is in communication connection with the current execution end through Bluetooth, zigBee and WIFI, the current execution end can be the switch equipment with an intelligent control function, and an electric control switch configuration mapping relation can be loaded for one control module in the switch equipment, so that judgment is carried out when a control instruction of the switch equipment is received, and the purpose of intelligent switch control is achieved.
102. And if a first control instruction for controlling the switching equipment is received, searching a target electric control switch matched with target trigger action information in the first control instruction based on the electric control switch configuration mapping relation.
In the embodiment of the invention, the switch equipment is provided with the trigger element and each electric control switch, and different hardware equipment, including but not limited to intelligent household equipment and the like, are controlled to be opened and closed by the switch circuit connected with the electric control switch. In a specific implementation scenario, as shown in fig. 3, the switch device is in a separated side view, that is, the part a is used as a separable knob of the trigger element, the part b is a wall-mounted casing containing a control module and at least one electric control switch, the part a and the part b can be completely separated, and in a separated state, the switch device can be used as a wireless switch, and signals between the part a and the part b can be transmitted wirelessly. As shown in fig. 4, i.e. the integrated side view of the switchgear, i.e. the fixed combination of the a part and the b part, a switchgear of the black box type is obtained, and the embodiment of the invention is not particularly limited. The switching device is provided with a trigger element, an electric control switch and a switching circuit connected with the electric control switch, so that a user can trigger the switch control through the trigger element. For example, in a scenario where the load is an intelligent lamp, as shown in a rear-view split diagram of a switching device in fig. 5, a plurality of electronically controlled switches in the switching device are connected with a load lamp line R, a live line L, and a neutral line N, so as to form a wall cassette, and perform power on/off control on the intelligent lamp. In addition, the trigger element includes any one of a knob, a button, and a knob button assembly, where when the trigger element is a knob, the knob may determine corresponding trigger action information by rotating a corresponding gear, when the trigger element is a button, the button may determine corresponding trigger action information by clicking an event, and when the trigger element is a knob button assembly, the trigger element may determine corresponding trigger action information by rotating and clicking.
When the user triggers the first control command for controlling the switch device, the control command carries target trigger action information for clicking, rotating or pressing the trigger element, including but not limited to clicking, double clicking, long-press action, rotating the first gear, rotating the second gear, pressing clockwise rotation, and the like. At this time, after the target trigger action information is determined, the target electric control switch matched with the target trigger action information can be searched according to the electric control switch configuration mapping relation.
103. And sending a second control instruction to the target electric control switch.
In the embodiment of the present invention, after the target electronic control switch is determined in step 102, the current executing terminal sends a second control instruction to the target electronic control switch, so as to control the target electronic control switch to execute the opening and closing operations based on the second control instruction. In addition, in the embodiment of the invention, the initial opening and closing state of the electric control switch in the switch device can be preconfigured, so that the opening and closing state of the electric control switch, namely the opening state or the closing state, is changed through the second control instruction.
The embodiment of the invention provides a control method of an electric control switch, which comprises the steps of acquiring an electric control switch configuration mapping relation containing binding relation between the electric control switch and trigger action information configured in a client through switch control equipment, searching a target electric control switch matched with target trigger action information based on the electric control switch configuration mapping relation when a first control instruction for controlling the switch equipment is received, sending a second control instruction to the target electric control switch, realizing the purpose of controlling the target electric control switch to execute opening and closing operation, reducing the resource consumption of complex equipment hardware configuration, and if the control mode of the electric control switch is required to be changed, the method can be realized by modifying the electric control switch configuration mapping relation, and the wires and the like between a trigger element and the electric control switch are not required to be detached and replaced, so that the complexity of hardware replacement of the switch equipment is avoided, the requirements on flexibility and diversity of controlling the electric control switch are met, and the control effectiveness of the electric control switch is greatly improved.
In an exemplary embodiment, for further definition and explanation, as shown in fig. 6, the step of searching for a target electronic control switch matching the target trigger action information in the first control command based on the electronic control switch configuration mapping relation includes:
201. analyzing a message or a pulse signal in the first control instruction;
202. And determining target trigger action information of the target trigger action according to the message or the pulse signal.
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 wireless transmission such as WIFI, zigBee or bluetooth is performed between the trigger element and a current cloud server, the pulse signal generated by the trigger element is converted into a message, and the cloud server receives the message in the first control instruction, so as to determine target trigger action information according to the message. When wireless transmission is performed, if transfer is required based on the gateway, the message is a gateway message, and the embodiment of the invention is not particularly limited.
When the trigger element and the current switch equipment or the control module perform wired transmission, namely, the part a and the part b are in a combined state, the pulse signal of the trigger element is directly sent to the control module or the switch equipment so that the control module or the switch equipment determines target trigger action information. In addition, when the triggering element and the current switching device or the control module perform wireless transmission, after triggering the triggering element, a corresponding pulse signal is generated, and a first control instruction received by the current switching device or the control module contains a message converted from the pulse signal.
Therefore, in order to accurately determine the target electric control switch based on the target trigger action information carried in the first control instruction, when the electric control switch is a relay in an application scenario corresponding to the solid line flow shown in fig. 7, wireless communication is performed between the current cloud server and the knob, and after the current execution end receives the first control instruction, the message carried in the first control instruction is analyzed first. The message is generated by the trigger element generating a pulse signal under the target trigger action, namely after the trigger element is triggered, the pulse signal generated by the trigger element is converted into the message aiming at wireless transmission and is transmitted, so that the current execution end determines target action trigger information triggered by the target action according to the message. For example, after the trigger element is clicked, a short-time pulse is generated, when the cloud end and the knob are in wireless communication, the knob converts the short-time pulse into a message, a first control instruction containing the message is generated, the gateway forwards the first control instruction carrying the message to a current cloud end server, and the target action trigger information is determined to be clicked in the cloud end server according to the message.
In another specific application scenario, as in the application scenario corresponding to the dashed flow shown in fig. 7, when the electric control switch is a relay, the client APP directly generates the electric control switch configuration mapping relationship to the current control module in a bluetooth mode, a wifi mode or the like, and the trigger element knob can be connected with the control module in a wired or wireless mode. At this time, if the connection is wired, after the trigger element knob is triggered, the knob generates a corresponding pulse signal, and the control module currently serving as the execution end receives the pulse signal of the trigger element in a wired connection manner and directly analyzes the pulse signal to obtain the target trigger action information for determining the target trigger action. For example, after the trigger element is double-clicked, a double-short-time pulse signal is generated, and the current control module determines that the target trigger action information corresponding to the target trigger action is double-clicked according to the double-short-time pulse signal.
It should be noted that, the current executing end may be preconfigured with target trigger actions corresponding to different pulse signals or messages, so as to match the trigger actions with trigger action information.
In an exemplary embodiment, for further defining and describing, before the step of obtaining the mapping relationship of the electronically controlled switch configuration, the method further includes:
And receiving and storing the electric control switch configuration mapping relation established by the client, wherein the same trigger action information in the electric control switch configuration mapping relation has a binding relation with one or more electric control switches, or the same electric control switch has a binding relation with one or more trigger action information.
In the embodiment of the invention, in order to prestore the electric control switch configuration mapping relation in the current execution end, when a first control instruction is received, the target electric control switch is directly searched based on the electric control switch configuration mapping relation. Specifically, the mapping relation of the configuration of the electronic control switches established by the client is received and stored, and at this time, as shown in fig. 8, the same trigger action information can be bound to one or more electronic control switches, and the same electronic control switch can be bound by one or more trigger action information.
In an exemplary embodiment, for further definition and explanation, the steps further include:
If the target trigger action information is matched with at least two target electric control switches and the target electric control switches are associated electric control switches, acquiring the opening and closing states of the target electric control switches;
If the opening and closing states of at least two target electric control switches are different, a state synchronization instruction is sent to the target electric control switches so as to control the opening and closing operations to be synchronously executed after the opening and closing states of the target electric control switches are the same.
In order to realize flexible control of the electric control switch and meet the effective cooperative control requirement of the electric control switch, after determining the target trigger action information, if it is determined that at least two target electric control switches are matched with the target trigger action information based on the electric control switch configuration mapping relation, the current execution end further judges whether the at least two target electric control switches are associated electric control switches, specifically, the judgment can be performed based on the electric control switch configuration mapping relation, and the embodiment of the invention is not particularly limited. If the target trigger action information is matched with at least two target electric control switches and the target electric control switches are associated electric control switches, the opening and closing states of all the target electric control switches serving as the associated electric control switches are acquired in order to realize control of the combined opening and closing states of the electric control switches. If the opening and closing states of all the target electric control switches are different, in order to realize the joint control of the joint opening and closing states, the current execution end sends a state synchronization instruction to all the target electric control switches serving as the joint electric control switches so as to control the opening and closing states of all the target electric control switches to be adjusted to be the same. And then, sending a second control instruction to all the target electric control switches to execute synchronous opening and closing operations.
It should be noted that, in the embodiment of the present invention, a state synchronization instruction is sent to a target electric control switch to adjust the opening and closing states of the target electric control switch, which may be a specified all-opening control instruction or all-closing control instruction sent to the electric control switch to unify the opening and closing states, or a to-be-synchronized electric control switch to be adjusted to be an opening and closing state based on a real-time opening and closing state fed back by each electric control switch after responding to the state synchronization instruction is screened, and a specified control switching instruction is sent to adjust the opening and closing states of the to-be-synchronized electric control switch to be the same as the opening and closing states of other electric control switches.
The embodiment of the invention provides another control method of the electric control switch, wherein the control method comprises the steps of acquiring an electric control switch configuration mapping relation containing a binding relation between the electric control switch and trigger action information configured in a client through switch control equipment, searching a target electric control switch matched with target trigger action information based on the electric control switch configuration mapping relation when a first control instruction for controlling the switch equipment is received, sending a second control instruction to the target electric control switch, realizing the purpose of controlling the target electric control switch to execute opening and closing operation, reducing the resource consumption of complex configuration of equipment hardware, avoiding the complexity of hardware replacement of the switch equipment, meeting the requirements on flexibility and diversity of controlling the electric control switch, and greatly improving the control effectiveness of the electric control switch.
Based on the above-mentioned problems, the embodiment of the present application provides another control method of an electronic control switch, and the method is applied to an electronic device, which may be a client, etc., for example, and the application is not limited thereto. As shown in fig. 9, the method includes the steps of:
301. Trigger action information expected to be used for controlling each electric control switch in the switch equipment to execute opening and closing operations is obtained.
In one embodiment of the present invention, the current client is configured to execute the electronic control switch control method in steps 301 to 303 in the current embodiment, and during the process of performing electronic control switch control or configuration, the current client first obtains trigger action information based on the current client, so as to establish the mapping relationship of the electronic control switch configuration. The obtained trigger action information is action content which is expected by a user to be used for controlling one or more electric control switches in the switch equipment to execute opening and closing operations, wherein the trigger action information which is expected to be used for controlling each electric control switch in the switch equipment to execute opening and closing operations refers to trigger action information for which the user plans to establish an electric control switch configuration mapping relation, for example, a plurality of trigger action information which can be selected by the user are provided, and the user can select one or more trigger action information which is planned to be used from the trigger action information and establish the electric control switch configuration mapping relation. The switch device is provided with a trigger element, the trigger element comprises any one of a knob, a button and a knob button assembly, corresponding trigger action information is obtained by triggering the trigger element, and the trigger action information comprises but is not limited to single click, double click, long press action, first gear rotation, second gear rotation, pressing rotation and the like.
In the embodiment of the invention, when the current client can communicate with the control module in the switch device or the switch device itself through bluetooth and WIFI, the current client can directly communicate with the control module or the switch device itself, and if the current client cannot directly communicate with the control module or the switch device via bluetooth and WIFI, the current client can communicate with the cloud server via internet networking, thereby communicating with the current client via the cloud server.
302. And acquiring at least one electric control switch which is expected to bind the triggering action information, and establishing an electric control switch configuration mapping relation.
As shown in fig. 10, the acquired trigger action information may be displayed in the current client, and the user selects and binds at least one trigger action information displayed in the application APP and a plurality of electronic switches in the switch device, or the current client adaptively binds the trigger action information with each electronic switch, so as to establish an electronic switch configuration mapping relationship. For example, in the configuration mapping relationship of the electric control switches, a binding relationship between click trigger action information and the first path of electric control switches is configured, and a binding relationship between double click trigger action information and the second path of electric control switches is configured.
In the embodiment of the invention, in order to bind the trigger action information with each electric control switch, after or before the user selects the trigger action information which is expected to be used, the user can select the electric control switch which is expected to be bound with the trigger action information, so as to bind the selected electric control switch with the selected trigger action information to form an electric control switch configuration mapping relation.
It should be noted that, because different types of electronic control switches are provided in different switch devices, before binding the electronic control switches in the current client, a user selects the electronic control switch which is expected to bind with the trigger action information in the switch device from the displayed plurality of electronic control switches, so as to accurately bind the corresponding trigger action information with each electronic control switch in different switch devices.
303. And sending the electric control switch configuration mapping relation to determine a target electric control switch with target trigger action information matching based on the electric control switch configuration mapping relation, and controlling the target electric control switch to execute opening and closing operations.
In the embodiment of the invention, after the current client establishes the configuration mapping relation of the electric control switch, the configuration mapping relation of the electric control switch is sent out, so that after a first control instruction is obtained, the target electric control switch is determined according to the carried target trigger action information, and the target electric control switch is controlled to be opened or closed. In one embodiment, the configuration mapping relationship may be sent to an executing end (such as a cloud server, a gateway) or the switching device (the switching device itself or a control module in the switching device) that controls the opening and closing of the electronic control switch, so that the executing end or the switching device determines the target electronic control switch based on the first control instruction and the electronic control switch configuration mapping relationship, and controls the opening or closing of the electronic control switch.
The embodiment of the invention provides a control method of an electric control switch, which comprises the steps of acquiring trigger action information for controlling each electric control switch in a switch device to expect to execute opening and closing operation through a client, acquiring at least one electric control switch binding the trigger action information, establishing an electric control switch configuration mapping relation, sending the electric control switch configuration mapping relation so that a processing end or the switch device determines a target electric control switch matched with target trigger action information based on the electric control switch configuration mapping relation, and controlling the target electric control switch to execute opening and closing operation, thereby realizing the purpose of controlling the target electric control switch to execute opening and closing operation, reducing resource consumption of complex configuration of equipment hardware, avoiding complexity of hardware replacement of the switch device, meeting the requirements on flexibility and diversity of control of the electric control switch, and greatly improving the effectiveness of electric control of the electric control switch.
In an exemplary embodiment, for further definition and explanation, the step of obtaining trigger action information intended for controlling each electronically controlled switch in a switchgear to perform an open-close operation includes:
displaying the trigger action information of the trigger element;
Acquiring a trigger action selection operation instruction, wherein the trigger action selection operation instruction is used for indicating the selection content of the trigger action information;
And determining trigger action information to be bound according to the selected content of the trigger action information.
In the embodiment of the invention, in order to facilitate a user to configure an electric control switch configuration mapping relation according to the self requirement in a current client, specifically, first, each piece of trigger action information of a trigger element is displayed in a front page of the client, including but not limited to trigger action information such as clicking, double clicking, long pressing action, rotating a first gear, rotating a second gear, pressing rotation and the like, so as to instruct the user to select. After the current client acquires the trigger action selection operation instruction, the trigger action information to be bound is determined according to the selection content for indicating the trigger action information, and at this time, the trigger action information may be one or more, and the embodiment of the invention is not particularly limited. As shown in fig. 10, each triggering action information of the triggerable triggering element 1 is displayed in a left triggering action information field, and each matchable electric control switch is displayed in a right electric control switch information field, wherein the left triggering action information field and the right electric control switch information field can be displayed in the same front end page or in different pages. Different trigger action information can be selected by a user in the left trigger action information field, corresponding display forms of the right electric control switch information field and to-be-selected electric control switches 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 relation through binding.
In a specific scenario, the current client displays trigger action information of the trigger element a in a left trigger action information field in the front page, including actions such as clicking, double clicking, long pressing, rotating, pressing and rotating, and meanwhile, the current client may or may not display a plurality of electric control switches to be bound in a right electric control switch information field in the front page. When a user clicks the single-click trigger action information in a left trigger action information column in a front-end page, the current client acquires a trigger action selection operation instruction generated after clicking the single-click trigger action information, and determines that trigger action information to be bound is single-click according to selection of the single-click trigger action information, so that selection of an electric control switch corresponding to the single-click is performed.
In addition, the user can also determine the trigger element matched with each electric control switch in an autonomous selection mode, for example, after selecting the knob, the user loads trigger gear information of each gear corresponding to the trigger gear of the display knob, and selects based on the displayed trigger gear information, for example, 3 trigger gear information of the knob is obtained.
In a specific scenario, the current executing end may determine the trigger elements for binding the electronically controlled switch randomly or according to the sequence of the trigger elements, for example, the current executing end is configured with a button a and a knob button assembly b, and then trigger action information of clicking and double clicking on the button a and the loading button a may be determined in sequence. The knob button assembly is then determined and the trigger action information for the knob button assembly b to perform the rotary gear 1, single click is loaded.
In an exemplary embodiment, for further defining and describing, as shown in fig. 11, the step of obtaining at least one of the electrically controlled switches binding the trigger action information, the step of establishing an electrically controlled switch configuration mapping relationship includes:
401. Displaying the identification information of each electric control switch;
402. Acquiring an identification selection operation instruction;
403a, determining the identification information to be bound based on the selected content of the identification information, binding the electric control switch corresponding to the identification information with the trigger action information, and establishing an electric control switch configuration mapping relationship, or,
403B, binding the electric control switch corresponding to the identification information with the trigger action information based on a preset ordering rule, and establishing an electric control switch configuration mapping relation.
In the embodiment of the invention, in order to accurately establish the configuration mapping relation of the electric control switch, the corresponding electric control switch is controlled based on the configuration method intelligently and flexibly, and specifically, when the configuration mapping relation of the electric control switch is established, the identification information of the electric control switch to be bound with the triggering action information is firstly displayed in a front page so as to be convenient for a user to select. In the right electronic control switch information bar shown in fig. 10, identification information of a plurality of electronic control switches is displayed, and a user can select the electronic control switches to be bound in a clicking manner. The identification information is used for representing the identity of the electric control switch, and a plurality of electric control switches are arranged in the switch equipment, so that each electric control switch has corresponding unique identification information for distinguishing. When the user selects the identification information, the current client acquires a generated identification selection operation instruction, and at the moment, the identification selection operation instruction is used for indicating the selected content of the identification information, so that the electric control switch of the trigger action information to be bound, which is selected by the user, is determined according to the selected content.
In a specific application scenario, in the current client, after the user selects through the displayed identification information of each electric control switch, the selected electric control switch and the selected trigger action information are bound, so that an electric control switch mapping relation is established. At this time, the user may select the identification information of each electronic control switch and the trigger action information that is expected to be bound from the left trigger action information field and the right electronic control switch information field of a front page, so that the current client binds the trigger action information with the electronic control switch, and establishes an electronic control switch configuration mapping relationship, for example, the current client binds the selected identification information electronic control switch s with the selected single-click trigger action information, so that the electronic control switch s is bound with the single-click trigger action in the established electronic control switch configuration mapping relationship.
In a specific application scenario, the current execution end presets a sequencing rule, so that identification information of each electric control switch is bound to each triggering action information of the triggering element according to the sequencing rule. At this time, the preset ordering rule may be a random rule, or may be a sequential ordering rule, which is not specifically limited in the embodiment of the present invention. For example, after determining that the identification information of the electric control switch is J-a, J-b and J-c, binding the J-a, J-b and J-c with a single click, a double click and a first rotation file in the trigger action information according to the sequence to obtain the configuration mapping relation of the electric control switch.
It should be noted that, since one switch device may include a plurality of electronic switches, and the trigger element may be triggered by a plurality of trigger actions, the same trigger action information in the configuration mapping relationship of the electronic switches may have a binding relationship with one or more electronic switches, or the same electronic switch may have a binding relationship with one or more trigger action information, and embodiments of the present invention are not limited specifically.
In an exemplary embodiment, for further defining and describing, the step of obtaining at least one of the electrically controlled switches binding the trigger action information, after establishing the electrically controlled switch configuration mapping relationship, the method further includes:
Displaying a plurality of electric control switches in the electric control switch configuration mapping relation, and acquiring an associated configuration instruction, wherein the associated configuration instruction is used for indicating the joint synchronous state of at least two electric control switches bound to the same trigger action information, so that when the corresponding trigger action information of at least two electric control switches is triggered and the opening and closing states of at least two electric control switches are not synchronous, the at least two electric control switches are firstly synchronous to the joint synchronous state;
marking the associated configuration instruction in the configuration mapping relation of the electric control switch.
In order to meet the flexible control of the electronic control switches, the current client side can provide configuration of the associated electronic control switches for a user, so that the executing end or the switching device synchronously controls the opening and closing states of the plurality of associated electronic control switches after determining that the target electronic control switch is the plurality of associated electronic control switches. Specifically, after the current client establishes the electric control switch configuration mapping relation, firstly, a plurality of bound electric control switches in the electric control switch configuration mapping relation are displayed so as to be convenient for a user to perform association selection. When a user triggers an associated configuration instruction, the associated configuration instruction is used for indicating the joint synchronous state of at least two electric control switches (namely, associated power saving devices) bound to the same triggering action information. After the configuration of the associated electric control switch is completed, in order to enable the execution end or the switch equipment to synchronously control the associated electric control switch, an associated configuration instruction is marked in the electric control switch configuration mapping relation and is sent to the execution end or the switch equipment. When the same trigger action information is bound with a plurality of electric control switches, the executing end can acquire the current states of the plurality of target electric control switches when acquiring the trigger action information, the current states of the plurality of target electric control switches can be different, some target electric control switches are in an on state, and some target electric control switches are in an off state, so that the executing end can unify the states of the plurality of target electric control switches to a joint synchronous state based on the associated configuration instructions in the electric control switch configuration mapping relation.
In a specific application scenario, a user enters a front-end page of a client APP for configuring a switch device to control and configure a plurality of electric control switches in the switch device. The switch device comprises a control module, a trigger element and at least three electric control switches. After entering the front page of the APP, as shown in fig. 10, trigger action information of the trigger element is displayed in a left trigger action information field of the page, including clicking, double clicking, long pressing, clockwise rotation, anticlockwise rotation, clockwise rotation, and identification information of at least four paths of electric switches is displayed in a right electric control switch information field. After the user selects the single click, the APP determines that the single click is trigger action information according to a trigger action selection operation instruction corresponding to the single click, after the user selects the second path of electric control switch identification information from the right electric control switch information field, the single click is bound with the second path of electric control switch, an electric control switch configuration mapping relation is established, and the electric control switch configuration mapping relation is sent to a control module in the switch equipment. The control module receives the configuration mapping relation of the electric control switch and stores the configuration mapping relation, when the control module receives a first control instruction of the trigger element based on wireless or limited, the control module analyzes a pulse signal or a message in the first control instruction, and searches a target electric control switch which is matched with the target trigger action information in a clicking way based on the configuration mapping relation of the electric control switch to be a second electric control switch. Therefore, the control module sends a second control instruction to the second path of electric control switch so as to enable the second path of electric control switch to execute opening and closing operations.
The embodiment of the invention provides a control method of an electric control switch, which comprises the steps of acquiring trigger action information expected to be used for controlling each electric control switch in a switch device to execute opening and closing operations through a client, acquiring at least one electric control switch expected to bind the trigger action information, establishing an electric control switch configuration mapping relation, sending the electric control switch configuration mapping relation so that a processing end or the switch device determines a target electric control switch matched with target trigger action information based on the electric control switch configuration mapping relation, controlling the target electric control switch to execute the opening and closing operations, realizing the purpose of controlling the target electric control switch to execute the opening and closing operations, reducing resource consumption of complex configuration of equipment hardware, avoiding complexity of hardware replacement of the switch device, meeting the requirements on flexibility and diversity of control of the electric control switch, and greatly improving the effectiveness of electric control.
Based on the above-mentioned problems, an embodiment of the present invention provides a control device for an electronically controlled switch, as shown in fig. 12, the method includes:
The obtaining module 51 is configured to obtain an electrical control switch configuration mapping relationship, where the electrical control switch configuration mapping relationship is used to characterize a binding relationship between any electrical control switch in the switching device and trigger action information for controlling the electrical control switch to execute an opening and closing operation;
The searching module 52 is configured to search, when a first control instruction for controlling the switching device is received, for a target electronic control switch that matches target trigger action information in the first control instruction based on the electronic control switch configuration mapping relationship;
and the sending module 53 is configured to send a second control instruction to the target electronic control switch, so as to control the target electronic control switch to perform an opening and closing operation.
In an exemplary embodiment, a triggering element is provided in the switching device, wherein the triggering element is capable of being triggered by different triggering actions, and the search module comprises:
The analysis unit is used for analyzing the message or the pulse signal in the first control instruction, wherein the message is generated by generating the pulse signal under the target triggering action of the triggering element;
and the determining unit is used for determining target trigger action information of the target trigger action according to the message or the pulse signal.
In an exemplary embodiment, the apparatus further comprises:
The receiving module is used for receiving and storing the electric control switch configuration mapping relation established by the client, wherein the same trigger action information in the electric control switch configuration mapping relation has a binding relation with one or more electric control switches, or the same electric control switch has a binding relation with one or more trigger action information.
In an exemplary embodiment of the present invention,
The acquisition module is further used for acquiring the opening and closing states of the target electric control switches if the target trigger action information is matched with at least two target electric control switches and the target electric control switches are associated electric control switches;
And the sending module is further used for sending a state synchronization instruction to the target electric control switches if the opening and closing states of at least two target electric control switches are different, so as to control the opening and closing operations to be synchronously executed after the opening and closing states of the target electric control switches are the same.
In an exemplary embodiment, the trigger element comprises any one of a knob, a button, a knob button assembly.
The embodiment of the invention provides a control device of an electric control switch, which is configured in a client and comprises an electric control switch configuration mapping relation of binding relation between the electric control switch and trigger action information, wherein when a first control instruction for controlling the switch equipment is received, a target electric control switch matched with target trigger action information is searched based on the electric control switch configuration mapping relation so as to send a second control instruction to the target electric control switch, thereby realizing the purpose of controlling the target electric control switch to execute opening and closing operation, reducing the resource consumption of complex configuration of equipment hardware, reducing the complexity of hardware operation, meeting the requirements on flexibility and diversity of controlling the electric control switch and greatly improving the control effectiveness of the electric control switch.
Based on the above-mentioned problems, an embodiment of the present invention provides another control device for an electronically controlled switch, as shown in fig. 13, the method includes:
An acquisition module 61, configured to acquire trigger action information that is expected to be used for controlling each electronic control switch in the switching device to perform an opening and closing operation;
the establishing module 62 is configured to obtain at least one of the electric control switches that is expected to bind the trigger action information, and establish an electric control switch configuration mapping relationship;
And the sending module 63 is configured to send the electrical control switch configuration mapping relationship, so that the processing end or the switching device determines a target electrical control switch with target trigger action information matched based on the electrical control switch configuration mapping relationship, and controls the target electrical control switch to execute an opening and closing operation.
In an exemplary embodiment, a trigger element is disposed in the switch device, where the trigger element can be triggered by different trigger actions, and the obtaining module is specifically configured to display information of each trigger action of the trigger element, obtain a trigger action selection operation instruction, where the trigger action selection operation instruction is used to indicate selection content of the trigger action information, and determine trigger action information to be bound according to the selection content of the trigger action information.
In an exemplary embodiment, the establishing module includes:
the display unit is used for displaying the identification information of each electric control switch, and the identification information is used for representing the identity of the corresponding electric control switch;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring an identification selection operation instruction, and the identification selection operation instruction is used for indicating the selection content of the identification information;
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 with the trigger action information to establish an electronically controlled switch configuration mapping relationship, or,
The second establishing unit is used for binding the identification information and the trigger action information based on a preset ordering rule and establishing an electric control switch configuration mapping relation;
The same trigger action information and one or more electric control switches in the electric control switch configuration mapping relation have binding relation, or the same electric control switch and one or more trigger action information have binding relation.
In an exemplary embodiment, the obtaining module is further configured to display a plurality of electronic switches in the configuration mapping relationship of the electronic switches, and obtain an association configuration instruction, where the association configuration instruction is used to indicate a joint synchronization state of at least two electronic switches bound to the same trigger action information, so that the at least two electronic switches are synchronized to the joint synchronization state when the corresponding trigger action information is triggered and the open and close states of the at least two electronic switches are not synchronized, and mark the association configuration instruction in the configuration mapping relationship of the electronic switches.
The embodiment of the invention provides a control device of an electric control switch, which comprises the steps of acquiring trigger action information for controlling each electric control switch in a switch device to expect to execute opening and closing operation through a client, acquiring at least one electric control switch binding the trigger action information, establishing an electric control switch configuration mapping relation, sending the electric control switch configuration mapping relation so that a processing end or the switch device determines a target electric control switch matched with target trigger action information based on the electric control switch configuration mapping relation, and controlling the target electric control switch to execute opening and closing operation, thereby realizing the purpose of controlling the target electric control switch to execute opening and closing operation, reducing the resource consumption of complex configuration of equipment hardware, reducing the complexity of hardware operation, meeting the requirements on flexibility and diversity of controlling the electric control switch, and greatly improving the control effectiveness of the electric control switch.
According to an aspect of the present invention, there is provided a storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the control method of an electronic control switch as described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Fig. 14 is a schematic structural diagram of a switch control device according to an embodiment of the present invention, and the embodiment of the present invention is not limited to the specific implementation of the switch control device.
As shown in fig. 14, the switch control device may include a processor (processor) 702, a communication interface (Communications Interface) 704, a memory (memory) 706, and a communication bus 708.
Wherein the processor 702, the communication interface 704, and the memory 706 communicate with each other via a communication bus 708.
A communication interface 704 for communicating with network elements of other devices, such as clients or other servers.
Processor 702 is configured to execute program 710, and may specifically perform relevant steps in the above-described emotion recognition processing method embodiment.
In particular, program 710 may include program code including computer-operating instructions.
The processor 702 may be a Central Processing Unit (CPU) or an Application-specific integrated Circuit (ASIC) or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the electronic device may be the same type of processor, such as one or more CPUs, or different types of processors, such as one or more CPUs and one or more ASICs.
Memory 706 for storing programs 710. The memory 706 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 710 may be specifically configured to cause the processor 702 to execute the control method of the electronically controlled switch in the above embodiments.
In one embodiment, another computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described embodiment methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of embodiments of the above described methods. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The non-volatile memory may include read-only memory (ROM), programmable ROM (ROM), electrically Programmable ROM (EPROM), erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.