Nested control method and system for multifunctional wall surface intelligent switch
Through the functions of wall intelligent switches and nested control of auxiliary buttons, the problems of single and inconvenient operation of traditional switch functions are solved, multi-device linkage and scenario-based control are realized, and the control precision and convenience of smart home devices are improved.
Patent Information
- Application Number
- CN202410956411.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional wall switch has a single function, which is difficult to meet the complex needs of modern smart homes, and the manual operation method is not convenient enough in some scenarios to achieve multi-device linkage and scenario-based control.
Nested control is performed through the function buttons and auxiliary buttons of the wall intelligent switch, corresponding device control instructions are generated, multi-device linkage and scene-based control logic are realized, and the control functions of each function button are expanded and refined.
It realizes multi-device linkage and scene-based control, improves the functional richness and convenience of use of smart switches, and can perform more detailed scene operations, such as lighting brightness adjustment, curtain opening and closing adjustment, music volume adjustment, etc.
Smart Images

Figure CN118915480A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart home, and in particular to a nested control method and system of a multifunctional wall smart switch. Background Art
[0002] In recent years, smart home technology has developed rapidly and has gradually become an important part of modern family life. Smart home devices connect various devices in the home through the Internet of Things (IoT) technology, realize interoperability and automatic control between devices, and thus improve the convenience and comfort of family life. With the popularization and in-depth application of smart homes, users' demand for smart home control devices is also increasing, especially the demand for smart switches is more urgent.
[0003] Traditional wall switches usually have a single function, that is, they can only turn on and off a specific electrical device, such as lamps, fans, etc. Although such a design is simple and easy to use, it has obvious deficiencies in terms of functionality and scalability, and it is difficult to meet the complex needs of modern smart homes. In addition, the manual operation of traditional switches is not convenient in some scenarios, which are all problems that need to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to provide a nested control method and system for a multi-functional wall-mounted intelligent switch to solve the deficiencies in the prior art, and to realize the intelligent switch control logic of multi-device linkage and scene-based control, as well as the nested control of function keys and auxiliary keys, so as to further realize the expansion and refinement of the control function of each function key and the current scene.
[0005] An embodiment of the present application provides a nested control method for a multifunctional wall intelligent switch, the method comprising:
[0006] Perform a first pressing operation through a function button of the wall smart switch, wherein the wall smart switch includes a plurality of function buttons;
[0007] Generate a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction;
[0008] Perform a second press operation through the auxiliary button of the wall smart switch;
[0009] According to the number of the auxiliary key of the second pressing operation, a corresponding second device control instruction is generated, so that the first smart home device executes the second device control instruction to achieve nested control of function keys and auxiliary keys.
[0010] Optionally, the pressing modes include: single click, double click, triple click, and long press.
[0011] Optionally, the method further includes:
[0012] An environmental suitability index of the current smart home device is calculated, and based on the environmental suitability index, it is determined whether to continue the second pressing operation, wherein the second pressing operation is a single-click pressing operation.
[0013] Optionally, the calculation formula of the environmental suitability index is:
[0014]
[0015] Among them, EAI is the environmental suitability index, N is the number of environmental factors, S_i is the actual measured value of the i-th environmental factor, O_i is the preset optimal reference value of the i-th environmental factor, W_i is the static weight of the i-th environmental factor, alpha_i is the sensitivity of the i-th environmental factor to suitability changes, and f_i(S_i, O_i) is the nonlinear function used to calculate the suitability of the i-th factor.
[0016] Optionally, the f_i(S_i, O_i) is:
[0017] f_i(S_i,O_i)=log(1+|S_i-O_i|)
[0018] Or:
[0019] f_i(S_i, O_i) = (S_i - O_i) 2 .
[0020] Another embodiment of the present application provides a nested control system for a multifunctional wall intelligent switch, the system comprising:
[0021] A first pressing module, used to perform a first pressing operation through a function button of the wall smart switch, wherein the wall smart switch includes a plurality of function buttons;
[0022] A generating module, configured to generate a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction;
[0023] A second pressing module, used to perform a second pressing operation through an auxiliary button of the wall intelligent switch;
[0024] The control module is used to generate a corresponding second device control instruction according to the number of the auxiliary key of the second pressing operation, so that the first smart home device executes the second device control instruction to achieve nested control of function keys and auxiliary keys.
[0025] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.
[0026] Yet another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.
[0027] Compared with the prior art, the present invention provides a nested control method for a multifunctional wall smart switch, in which a first pressing operation is performed through a function button of the wall smart switch, wherein the wall smart switch includes multiple function buttons; according to the number of the function button of the first pressing operation and its pressing mode, a corresponding first device control instruction is generated, so that the corresponding first smart home device executes the first device control instruction; a second pressing operation is performed through an auxiliary button of the wall smart switch; according to the number of the auxiliary button of the second pressing operation, a corresponding second device control instruction is generated, so that the first smart home device executes the second device control instruction, thereby realizing nested control of function buttons and auxiliary buttons, thereby realizing the smart switch control logic of multi-device linkage and scene-based control, as well as nested control of function buttons and auxiliary buttons, further realizing the expansion and refinement of the control function of each function button and the current scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A hardware structure block diagram of a computer terminal for a nested control method of a multifunctional wall intelligent switch provided by an embodiment of the present invention;
[0029] Figure 2 A schematic flow chart of a nested control method for a multifunctional wall intelligent switch provided by an embodiment of the present invention;
[0030] Figure 3 A schematic structural diagram of a nested control system of a multifunctional wall intelligent switch provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0032] The embodiment of the present invention firstly provides a nested control method of a multifunctional wall intelligent switch, which can be applied to electronic devices such as computer terminals, specifically ordinary computers, etc.
[0033] The following describes it in detail by taking running on a computer terminal as an example. Figure 1The hardware structure block diagram of a computer terminal of a nested control method of a multifunctional wall intelligent switch provided by an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer terminal may also include a transmission device 106 for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0034] The memory 104 can be used to store software programs and modules of application software, such as program instructions / modules corresponding to the nested control method of the multifunctional wall intelligent switch in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0035] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] See also Figure 2 The embodiment of the present invention provides a nested control method of a multifunctional wall intelligent switch, which may include the following steps:
[0037] S201, performing a first pressing operation through a function button of a wall smart switch, wherein the wall smart switch includes a plurality of function buttons;
[0038] Among them, multiple function buttons can respectively realize the control of lighting, curtains, music, air conditioning and other equipment. For example, button 1 is lighting, button 2 is curtains, button 3 is music, and so on.
[0039] Specifically, each function key has a number Kn (for example, n ranges from 1 to 8), and the pressing operation of each function key can have several pressing modes Fm (for example, m ranges from 1 to 4): single click, double click, triple click, long press, etc.
[0040] S202, generating a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction;
[0041] Specifically, after the nth function key is pressed (single click, double click, triple click, long press), the control instruction sent by the smart switch to the outside may include: Kn-Fm.
[0042] For example, click button 1 to turn on the light; click button 2 to open the curtains; click button 3 to turn on the music, and so on.
[0043] S203, performing a second pressing operation through the auxiliary button of the wall smart switch;
[0044] Auxiliary keys can realize further control after each function key, and this control changes according to the change of the function key, and is used for auxiliary function control. For example, there can be 2 auxiliary keys, numbered: S1 ~ S2.
[0045] For example, after that, operate the auxiliary key:
[0046] When the first auxiliary button is pressed, the control instructions sent by the intelligent switch may include: Kn-Fm-S1;
[0047] When the second auxiliary button is pressed, the control instructions sent by the intelligent switch to the outside may include: Kn-Fm-S2.
[0048] S204: Generate a corresponding second device control instruction according to the number of the auxiliary key of the second pressing operation, so that the first smart home device executes the second device control instruction to achieve nested control of the function key and the auxiliary key.
[0049] For example, single-click button 1 presses: light turns on - auxiliary buttons S1-S2 are used to adjust the brightness of the light;
[0050] Single-click button 2 press: Curtains open - auxiliary buttons S1-S2 are used to adjust the opening and closing of the curtains;
[0051] Single-click button 3 Press: Music turns on - auxiliary buttons S1-S2 are used to adjust the volume.
[0052] In this way, each function button issues a "main command" after being operated, and the auxiliary button can make further "auxiliary command" control, thereby realizing more control functions.
[0053] Through this technology, ordinary wall intelligent switch button operation can be made with the function of nested control, realizing detailed operation of the current scene, such as adjusting the brightness and color temperature of the current light, adjusting the opening and closing degree and angle of the current curtains, adjusting the volume of the current music, adjusting the temperature of the current air conditioner, etc.
[0054] The dual auxiliary button technology of the smart switch expands and refines the control function of each function button through the auxiliary button. After pressing the function button to execute a scene, we can use the auxiliary button to achieve extended control in this scene. For example: a single click of the function button turns on a light, and the dual auxiliary buttons adjust the brightness; double-clicking the function button turns on a light, and the dual auxiliary buttons adjust the color temperature.
[0055] Moreover, through this technology, the usage functions of the wall smart switch can be expanded. After pressing a button, two auxiliary buttons can be used to achieve further nested control under the "current application scenario", making the smart switch easier to use and more functional.
[0056] Furthermore, in practical applications, the environmental suitability index of the current smart home device may be calculated, and based on the environmental suitability index, it may be determined whether to continue the second pressing operation, wherein the second pressing operation is a single-click pressing operation.
[0057] Specifically, a calculation formula for an environmental suitability index can be:
[0058]
[0059] Among them, EAI is the environmental suitability index, N is the number of environmental factors, S_i is the actual measured value of the i-th environmental factor, O_i is the preset optimal reference value of the i-th environmental factor, and W_i is the static weight of the i-th environmental factor.
[0060] alpha_i is used to control the sensitivity of the i-th environmental factor to the change in suitability. The parameter alpha_i can be used to control the sensitivity of each factor to the deviation in the suitability calculation. A larger alpha_i makes the formula more sensitive to the change of the factor, and vice versa. This control mechanism allows the formula to adapt to the importance of different environmental factors and their impact on suitability.
[0061] Among them, f_i(S_i, O_i) is a nonlinear function used to calculate the suitability of the i-th factor. The suitability calculation of each environmental factor can be implemented by a nonlinear function f_i(S_i, O_i), which captures the complex relationship between the environmental factor and the optimal value. Exemplarily, f_i(S_i, O_i) can be:
[0062] f_i(S_i,O_i)=log(1+|S_i-O_i|)
[0063] Or:
[0064] f_i(S_i, O_i) = (S_i - O_i) 2 .
[0065] Through this nonlinear function, the impact of different environmental factors on suitability can be magnified or reduced, thereby achieving a more accurate assessment.
[0066] First, the actual measured values (S_i) of various environmental factors in the current environment can be collected. These environmental factors may include temperature, humidity, light intensity, air quality, etc. A plurality of sensors are installed in the smart home system to measure the values of various environmental factors in real time. For example, the temperature sensor measures the current temperature, and the humidity sensor measures the current humidity.
[0067] The optimal reference value (O_i) and static weight (W_i) of each environmental factor, as well as the parameter (alpha_i) controlling the sensitivity of the factor, are pre-set.
[0068] According to the user's preference or the general comfort standard, the optimal reference value of each environmental factor is set, for example: the optimal temperature O_temp = 22°C, the optimal humidity O_humidity = 50%.
[0069] In order to calculate the overall environmental suitability index, each factor needs to be assigned a weight to reflect its importance, for example: temperature weight W_temp = 0.4, humidity weight W_humidity = 0.3.
[0070] Controls the sensitivity of each factor to changes in suitability. For example: temperature sensitivity alpha_temp = 1, humidity sensitivity alpha_humidity = 2.
[0071] According to the above formula, the current environmental suitability index is calculated. Finally, according to the calculated environmental suitability index (EAI), it is determined whether it is necessary to continue the second pressing operation (single-click pressing operation) to control and fine-tune the corresponding home appliance.
[0072] A threshold value of the environmental suitability index can be set, such as 0.7. If the EAI is greater than or equal to the threshold value, it means that the current environment is suitable and there is no need to continue the second pressing operation; if the EAI is less than the threshold value, it means that the current environment is not suitable and it is necessary to continue the second pressing operation to further adjust the smart home device while monitoring the environmental suitability index, so as to ensure a certain environmental suitability.
[0073] It can be seen that a first pressing operation is performed through the function button of the wall smart switch, wherein the wall smart switch includes multiple function buttons; according to the number of the function button of the first pressing operation and its pressing mode, a corresponding first device control instruction is generated, so that the corresponding first smart home device executes the first device control instruction; a second pressing operation is performed through the auxiliary button of the wall smart switch; according to the number of the auxiliary button of the second pressing operation, a corresponding second device control instruction is generated, so that the first smart home device executes the second device control instruction, thereby realizing nested control of function buttons and auxiliary buttons, thereby realizing the smart switch control logic of multi-device linkage and scene-based control, as well as the nested control of function buttons and auxiliary buttons, further realizing the expansion and refinement of the control function of each function button and the current scene.
[0074] Another embodiment of the present invention provides a nested control system for a multifunctional wall intelligent switch. Figure 3 , the system may include:
[0075] A first pressing module 301, used to perform a first pressing operation through a function button of the wall smart switch, wherein the wall smart switch includes a plurality of function buttons;
[0076] A generating module 302, configured to generate a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction;
[0077] The second pressing module 303 is used to perform a second pressing operation through the auxiliary button of the wall intelligent switch;
[0078] The control module 304 is used to generate a corresponding second device control instruction according to the number of the auxiliary key of the second pressing operation, so that the first smart home device executes the second device control instruction to achieve nested control of function keys and auxiliary keys.
[0079] It can be seen that a first pressing operation is performed through the function button of the wall smart switch, wherein the wall smart switch includes multiple function buttons; according to the number of the function button of the first pressing operation and its pressing mode, a corresponding first device control instruction is generated, so that the corresponding first smart home device executes the first device control instruction; a second pressing operation is performed through the auxiliary button of the wall smart switch; according to the number of the auxiliary button of the second pressing operation, a corresponding second device control instruction is generated, so that the first smart home device executes the second device control instruction, thereby realizing nested control of function buttons and auxiliary buttons, thereby realizing the smart switch control logic of multi-device linkage and scene-based control, as well as the nested control of function buttons and auxiliary buttons, further realizing the expansion and refinement of the control function of each function button and the current scene.
[0080] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0081] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:
[0082] S201, performing a first pressing operation through a function button of a wall smart switch, wherein the wall smart switch includes a plurality of function buttons;
[0083] S202, generating a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction;
[0084] S203, performing a second pressing operation through the auxiliary button of the wall smart switch;
[0085] S204: Generate a corresponding second device control instruction according to the number of the auxiliary key of the second pressing operation, so that the first smart home device executes the second device control instruction to achieve nested control of the function key and the auxiliary key.
[0086] It can be seen that a first pressing operation is performed through the function button of the wall smart switch, wherein the wall smart switch includes multiple function buttons; according to the number of the function button of the first pressing operation and its pressing mode, a corresponding first device control instruction is generated, so that the corresponding first smart home device executes the first device control instruction; a second pressing operation is performed through the auxiliary button of the wall smart switch; according to the number of the auxiliary button of the second pressing operation, a corresponding second device control instruction is generated, so that the first smart home device executes the second device control instruction, thereby realizing nested control of function buttons and auxiliary buttons, thereby realizing the smart switch control logic of multi-device linkage and scene-based control, as well as the nested control of function buttons and auxiliary buttons, further realizing the expansion and refinement of the control function of each function button and the current scene.
[0087] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0088] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0089] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0090] S201, performing a first pressing operation through a function button of a wall smart switch, wherein the wall smart switch includes a plurality of function buttons;
[0091] S202, generating a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction;
[0092] S203, performing a second pressing operation through the auxiliary button of the wall smart switch;
[0093] S204: Generate a corresponding second device control instruction according to the number of the auxiliary key of the second pressing operation, so that the first smart home device executes the second device control instruction to achieve nested control of the function key and the auxiliary key.
[0094] It can be seen that a first pressing operation is performed through the function button of the wall smart switch, wherein the wall smart switch includes multiple function buttons; according to the number of the function button of the first pressing operation and its pressing mode, a corresponding first device control instruction is generated, so that the corresponding first smart home device executes the first device control instruction; a second pressing operation is performed through the auxiliary button of the wall smart switch; according to the number of the auxiliary button of the second pressing operation, a corresponding second device control instruction is generated, so that the first smart home device executes the second device control instruction, thereby realizing nested control of function buttons and auxiliary buttons, thereby realizing the smart switch control logic of multi-device linkage and scene-based control, as well as the nested control of function buttons and auxiliary buttons, further realizing the expansion and refinement of the control function of each function button and the current scene.
[0095] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.
Claims
1. A nested control method for a multifunctional wall intelligent switch, characterized in that: The method comprises: Perform a first pressing operation through a function button of the wall smart switch, wherein the wall smart switch includes a plurality of function buttons; Generate a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction; Perform a second press operation through the auxiliary button of the wall smart switch; According to the number of the auxiliary key of the second pressing operation, a corresponding second device control instruction is generated, so that the first smart home device executes the second device control instruction to achieve nested control of function keys and auxiliary keys.
2. The method according to claim 1, characterized in that The pressing modes include: single click, double click, triple click, and long press.
3. The method according to claim 2, characterized in that The method further comprises: An environmental suitability index of the current smart home device is calculated, and based on the environmental suitability index, it is determined whether to continue the second pressing operation, wherein the second pressing operation is a single-click pressing operation.
4. The method according to claim 3, characterized in that The calculation formula of the environmental suitability index is: Among them, EAI is the environmental suitability index, N is the number of environmental factors, S_i is the actual measured value of the i-th environmental factor, O_i is the preset optimal reference value of the i-th environmental factor, W_i is the static weight of the i-th environmental factor, alpha_ is the sensitivity of the i-th environmental factor to suitability changes, and f__,O_ is the nonlinear function used to calculate the suitability of the i-th factor.
5. The method according to claim 4, characterized in that The f__,O_ are: f__,O_=log(1+|S_-O_| Or: f__,O_=(S_-O_ 2 。 6. A nested control system for a multifunctional wall intelligent switch, characterized in that: The system comprises: A first pressing module, used to perform a first pressing operation through a function button of the wall smart switch, wherein the wall smart switch includes a plurality of function buttons; A generating module, configured to generate a corresponding first device control instruction according to the number of the function key of the first pressing operation and the pressing mode thereof, so that the corresponding first smart home device executes the first device control instruction; A second pressing module, used to perform a second pressing operation through an auxiliary button of the wall intelligent switch; The control module is used to generate a corresponding second device control instruction according to the number of the auxiliary key of the second pressing operation, so that the first smart home device executes the second device control instruction to achieve nested control of function keys and auxiliary keys.
7. The system according to claim 6, characterized in that The pressing modes include: single click, double click, triple click, and long press.
8. The system according to claim 7, characterized in that The system further comprises: The calculation module is used to calculate the environmental suitability index of the current smart home device, and determine whether to continue the second pressing operation based on the environmental suitability index, wherein the second pressing operation is a single-click pressing operation.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 5 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 5.
