Control method, intelligent controller, intelligent device and control system

By establishing a local area network communication link between the intelligent controller and the controlled device, and prioritizing the execution of trigger commands locally, the response time and stability issues caused by relying on the Internet and cloud server interaction in existing technologies are resolved. This achieves faster and more stable linkage control and improves the user experience.

CN115903596BActive Publication Date: 2026-02-06WUHAN LINPTECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211459686.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2026-02-06
Estimated Expiration
2042-11-16

AI Technical Summary

Technical Problem

When existing smart controllers are linked with other smart devices, they rely on data interaction with the Internet and cloud servers, which causes response time and stability to be affected by network conditions and transmission latency, thus reducing the user experience.

Method used

By establishing a local area network communication link through a gateway device, trigger commands are executed locally first, avoiding reliance on interaction with the Internet and cloud servers, thus achieving local linkage control.

Benefits of technology

It improves the stability and response speed of linkage control, enhancing the user experience of the smart home system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115903596B_ABST
    Figure CN115903596B_ABST
Patent Text Reader

Abstract

The application provides a control method, an intelligent controller, an intelligent device and a control system. The control method is applied to the intelligent controller. The intelligent controller can connect a cloud server through a gateway device to form a second communication link. The control method comprises the following steps: receiving a trigger instruction; issuing the trigger instruction, so that a control result corresponding to the trigger instruction is executed; wherein, when the second communication link is communicable, the trigger instruction is issued through a first communication link; the first communication link is a local area network communication link formed by the gateway device; and the control result is an executable function of at least one controlled device connected to the gateway device. The application makes the linkage control between the intelligent controller and the controlled device not affected by unstable network conditions and network transmission delays of the Internet, and improves the stability and response speed of the linkage control.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Internet of Things, and in particular to a control method, an intelligent controller, an intelligent device and a control system. BACKGROUND

[0002] The intelligent controller can be understood as an intelligent device configured with a wireless communication module and capable of wireless communication with the outside world. In a smart home system, the intelligent controller can access the Internet and interact with a cloud server to achieve linkage control between the intelligent controller and other networked intelligent devices based on data processing of the cloud server.

[0003] In the prior art, when the intelligent controller and other intelligent devices are linked and controlled, data interaction with the cloud server through the Internet is required. Therefore, the response time of linkage control depends on the communication speed of the intelligent controller interacting with the cloud server through the Internet and the cloud server controlling other intelligent devices through the Internet. Affected by the network status and network transmission delay of the Internet, the stability and response speed of linkage control are affected, reducing the user experience of the smart home system. SUMMARY

[0004] The present application provides a control method, an intelligent controller, an intelligent device and a control system to solve the problems in the prior art.

[0005] According to a first aspect of the present application, a control method is provided, applied to an intelligent controller capable of connecting a cloud server through a gateway device to form a second communication link; the control method comprises:

[0006] receiving a trigger instruction;

[0007] issuing the trigger instruction so that the control result corresponding to the trigger instruction is executed;

[0008] Wherein, when the second communication link is communicable, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link composed of the gateway device; and the control result is an executable function of at least one controlled device connected to the gateway device.

[0009] According to a second aspect of the present application, an intelligent controller is provided, capable of connecting a cloud server through a gateway device to form a second communication link; the intelligent controller comprises:

[0010] a first receiving module for receiving a trigger instruction;

[0011] The first sending module is configured to send the trigger instruction, so that the control result corresponding to the trigger instruction is executed; wherein, the trigger instruction is sent through the first communication link when the second communication link is communicable; the first communication link is a local area network communication link formed by the gateway device; and the control result is an executable function of at least one controlled device connected to the gateway device.

[0012] According to a third aspect of the present application, there is provided a smart device, comprising:

[0013] a processor;

[0014] a memory configured to store processor-executable instructions;

[0015] The processor is configured to implement the steps of any of the above control methods when executed.

[0016] According to a fourth aspect of the present application, there is provided a control system, comprising a smart controller, a gateway device and a cloud server as described above.

[0017] The control method, the smart controller, the smart device and the control system provided by the present application, after the smart controller receives the trigger instruction, the trigger instruction is sent through the local area network communication link formed by the gateway device, so as to realize the control of the executable function of the controlled device connected to the gateway device in response to the trigger instruction. Since the control of the present application is realized based on the local area network communication link formed by the gateway device, it does not depend on the second communication link formed by the smart controller connecting the cloud server through the gateway device, even if the second communication link is communicable, the local control in response to the trigger instruction is realized through the local area network communication link, so that the linkage control between the smart controller and the controlled device is not affected by the unstable network condition and the network transmission delay of the Internet, and the stability of the linkage control is improved. Moreover, when realizing the linkage control, it is not necessary to interact with the cloud server through the second communication link every time, and then the cloud server controls the controlled device through the second communication link. In the present application, the transmission path of the linkage control is shorter through the local area network communication link, and the control can be executed locally without accessing the Internet, and the response speed is greatly improved, thereby improving the user experience of the smart home system. BRIEF DESCRIPTION OF DRAWINGS

[0018] In order to make the technical solutions of the embodiments of the present application or the prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description only need to be some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort.

[0019] Figure 1 is a schematic diagram of the control system in an embodiment of the present application Figure 1 .

[0020] Figure 2 is a schematic diagram of the control method in an embodiment of the present application Figure 1 .

[0021] Figure 3 is a schematic diagram of the control method in an embodiment of the present application

[0022] Figure 4 is a schematic diagram of the control method in an embodiment of the present application

[0023] Figure 5 is a schematic diagram of the control method in an embodiment of the present application

[0024] Figure 6 is a schematic diagram of the control system in an embodiment of the present application Figure 2 .

[0025] Figure 7 is a schematic diagram of the control system in an embodiment of the present application Figure 3 .

[0026] Figure 8 is a schematic diagram of the control method in an embodiment of the present application Figure 2 .

[0027] Figure 9 is a schematic diagram of the control method in an embodiment of the present application Figure 3 .

[0028] Figure 10 is a schematic diagram of the control device in an embodiment of the present application Figure 1 .

[0029] Figure 11 is a schematic diagram of the control device in an embodiment of the present application Figure 2 .

[0030] Figure 12 is a schematic diagram of the control device in an embodiment of the present application Figure 3 .

[0031] Figure 13is a schematic view of the structure of the intelligent device in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0033] The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0034] The technical solutions of the present application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and some embodiments may not be described again for the same or similar concepts or processes.

[0035] Reference Figure 1 The present embodiment provides a control system, which can include an intelligent controller 1, a gateway device 2, a terminal 3, a cloud server 4 and a controlled device 5.

[0036] The intelligent controller 1 can be any intelligent device configured with a wireless communication module, wherein the wireless communication module can include but is not limited to a Bluetooth communication module, a WIFI communication module, a radio frequency communication module and a ZigBee communication module, etc. The intelligent controller 1 can send a trigger instruction outward in response to a trigger, for example, the intelligent controller 1 can include intelligent devices that can only send a trigger instruction outward in response to a trigger to control other devices to perform control tasks, including but not limited to self-powered wireless switches, battery-powered wireless switches, various sensors and the like; the intelligent controller 1 can also include devices that can send a trigger instruction outward in response to an external trigger and can also realize control functions, for example, wall switches that can control the on-off of a circuit, which can include wall switches with keys, inductive wall switches and wall switches with display screens, etc.

[0037] The gateway device 2 can be any device capable of communicating with the intelligent controller 1 directly or indirectly, and the intelligent controller 1 can connect to the cloud server 4 through the gateway device 2, that is, the gateway device 2 can also communicate with the cloud server 4 directly or indirectly. For example, the gateway device 2 can be a gateway, a router, or a device integrated with a gateway and a router. In addition, the gateway device 2 can be a smart speaker with a WIFI communication module (for communication with the cloud server 4) and a radio frequency or Bluetooth communication module (for communication with the intelligent controller 1), or a gateway device 2 dedicated for data interaction and processing. The gateway device 2 can also be configured with a separate Bluetooth communication module, and the Bluetooth communication module and the WIFI communication module can be integrated together.

[0038] The terminal 3 can be, for example, a mobile phone, a tablet computer, a computer, a car machine, a smart home appliance, etc. The terminal 3 can interact with the cloud server 4 as shown, can interact with the cloud through a WIFI network, and can interact with the gateway device 2 using Bluetooth. In a specific example, the terminal 3 can interact with the cloud server 4 using a mobile network. Figure 1

[0039] The cloud server 4 can be any device or combination of devices with data storage capability, data processing capability, and the ability to interact with the gateway device 2. The server can deploy the required programs.

[0040] The controlled device 5 can include any household, commercial, or industrial device, such as a doorbell, an air conditioner, a smart curtain, a fan, a refrigerator, a lighting device, a wall switch, etc. It can also be a mobile phone, a tablet computer, a computer, a car machine, a smart home appliance, etc.

[0041] The number of intelligent controllers 1, gateway devices 2, terminals 3, cloud servers 4, and controlled devices 5 is not limited to the number shown in the figure, and can be any number.

[0042] Figure 2 The control method applied to the intelligent controller in an embodiment of the application is shown in the flowchart Figure 1 ; please refer to Figure 2 The control method based on the intelligent controller includes:

[0043] ​S201: receiving a trigger instruction. Wherein the trigger instruction can be generated for the control operation of the smart controller, for example, when the smart controller is a wireless switch or wall switch provided with a button, the trigger instruction can be generated by the user pressing the button in the switch; or when the smart controller is a switch with a touch display screen, the trigger instruction can be generated by the user clicking the icon (such as button icon, scene mode icon, etc.) displayed on the display screen in the switch. In addition, the trigger instruction can also be generated by the smart controller receiving the wireless instruction sent by the device associated with it; for example, when the smart controller is a wall switch, the trigger instruction can be a wireless instruction sent by a wireless switch paired with it, and the wall switch can control the on-off of the line and further control other linked controlled devices in response to the wireless instruction. The trigger instruction can also be sent by the terminal to the smart controller, such as after the smart controller is commissioned to join the network, the terminal can display the relevant information of the smart controller, and the user can issue a trigger instruction to the smart controller by clicking the smart controller displayed on the terminal. In some embodiments, if the smart controller is a sensor, the trigger instruction can be generated by the smart controller when it receives a sensing signal, such as when a human presence sensor senses the presence of a human body in the sensing area, it can generate a corresponding trigger signal.

[0044] S202: issuing the trigger instruction so that the control result corresponding to the trigger instruction is executed; wherein the smart controller can connect to the cloud server through the gateway device to form a second communication link; in the case that the second communication link is communicable, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link composed of the gateway device; and the control result is an executable function of at least one controlled device connected to the gateway device.

[0045] In this embodiment, the smart controller can access the Internet through the gateway device, and then communicate with the cloud server to realize interaction with the cloud server through the second communication link. At the same time, the smart controller can also communicate with the controlled device through the gateway device to realize interaction with the gateway device and / or the controlled device through the first communication link. Wherein the first communication link is a local area network communication link composed of the gateway device, for example, a local area network communication link composed of multiple gateways, a local area network communication link composed of a gateway and a router, etc., as long as the communication is carried out through the local area network, and there is no need to access the Internet and interact with the cloud server, which does not deviate from the description of the above first communication link, and any scheme for realizing the linkage between the smart controller and the controlled device through the local signal transmission of the gateway device does not deviate from the protection scope of this embodiment.

[0046] In this embodiment, after obtaining the trigger instruction, the intelligent controller, in the case that it can interact with the cloud server through the second communication link, preferentially issues the trigger instruction through the local first communication link, so that the control result corresponding to the trigger instruction is executed. Compared with the prior art, in which the intelligent controller, after receiving the trigger instruction, sends the trigger instruction to the cloud server through the second communication link, and then the cloud server performs data processing and executes control based on the second communication link, that is, each linkage control of the intelligent controller needs to perform data interaction through the Internet to the cloud, which may cause delay of linkage and affect the experience of the user in the smart home system. In this embodiment, the linkage of the intelligent controller and the controlled device is realized through the pre-established local area network communication link, without the need of connecting the cloud server through the Internet, so that the response speed of linkage is improved.

[0047] Optionally, in some embodiments, after obtaining the trigger instruction, the intelligent controller, in the case that it cannot interact with the cloud server through the second communication link, that is, in the case of network disconnection, can still issue the trigger instruction through the local first communication link, so that the control result corresponding to the trigger instruction is executed. In this embodiment, even if the network is disconnected, the linkage of the intelligent controller and the controlled device can be realized through the pre-established local area network communication link, which is more practical.

[0048] It should be noted that the control result corresponding to the trigger instruction is one executable function of at least one controlled device connected to the gateway device. In an optional implementation, after obtaining the trigger instruction, the intelligent controller can transparently transmit the trigger instruction to the gateway device, or send the trigger instruction to the gateway device after processing such as encryption and encapsulation, and determine the control result corresponding to the trigger instruction by the gateway device, so that the control result is executed. In another optional implementation, after obtaining the trigger instruction, the intelligent controller can determine the control result corresponding to the trigger instruction by the intelligent controller, and issue a control instruction to the gateway device based on the control result, so that the control result is executed. In this embodiment, the trigger instruction issued by the intelligent controller can be completely the same, partially the same or associated control instruction as the trigger instruction received by the intelligent controller, as long as the trigger instruction issued by the intelligent controller can make the corresponding control result be executed, which does not deviate from the protection scope of this embodiment.

[0049] The embodiment receives a trigger instruction by the intelligent controller, and issues the trigger instruction through a local area network communication link composed of the gateway device to achieve control of the executable function of the controlled device connected to the gateway device in response to the trigger instruction. Since the control in the embodiment is achieved based on the local local area network communication link composed of the gateway device, and does not depend on the second communication link formed by the intelligent controller connecting the cloud server through the gateway device, even if the second communication link is communicable, the local control in response to the trigger instruction is preferentially achieved through the local local area network communication link, so that the linkage control between the intelligent controller and the controlled device is not affected by the unstable network condition and network transmission delay of the Internet, the stability of the linkage control is improved, and the linkage control does not need to interact with the cloud server through the second communication link every time the control is implemented, and the controlled device is controlled by the cloud server through the second communication link. In the application, the transmission path of the linkage control is shorter through the local local area network communication link, the control can be locally implemented without accessing the Internet, the response speed is greatly improved, and the user experience of the smart home system is improved.

[0050] Specifically, in some embodiments, the step S202 specifically comprises:

[0051] The trigger instruction is issued to the gateway device, so that the gateway device determines the control result matched with the trigger instruction based on the stored first trigger rule, and controls the control result to be executed; wherein the first trigger rule defines the mapping relationship between at least one trigger instruction and at least one control result.

[0052] In the embodiment, the intelligent controller issues the trigger instruction to the gateway device through the first communication link after obtaining the trigger instruction, for example, the trigger instruction can be transmitted to the gateway device, so as to utilize the gateway device to achieve the local linkage of the intelligent controller and the controlled device. The gateway device stores a first trigger rule, which defines the mapping relationship between at least one trigger instruction and at least one control result. The trigger instruction is related to the intelligent controller, the control result is the executable function of the controlled device, and the controlled device can communicate with the gateway device. That is, the objects of the trigger instruction and the control result in the first trigger rule in the gateway device are the gateway device which can interact through the local local area network link to achieve the local linkage control.

[0053] In some embodiments, the first trigger rule is selected and determined from the second trigger rule. The second trigger rule defines the mapping relationship between at least one trigger instruction and at least one target task, which is determined by the user on the terminal.

[0054] Since the embodiment defines the trigger rule of the intelligent controller, each trigger instruction can be associated with a trigger action of the intelligent controller, for example, the intelligent controller can be a switch, and the trigger instruction can be a press action of the switch (which can be reset or non-reset), and the like, and can also be, for example, a press action of a certain key of the switch (which can be reset or non-reset), and further, different trigger conditions refer to different control actions of the same switch, or the same control action of different switches, or different control actions of different switches. The target task involved above can be understood as an executable function of a controlled device. The function involved in the target task can include the opening and closing of the controlled device, the on-off of the switch corresponding to the controlled device, and can also include the specific function of the controlled device, for example, a certain controlled entertainment device playing specific music and video, and can also be, for example, the working mode and temperature adjustment of an air conditioning device. Among them, the controlled device in the target task can be any device capable of directly or indirectly interacting with the cloud server, for example, it can include a controlled device controlled by the cloud server through a gateway device, and also include a controlled device to which the cloud server can directly issue a control instruction.

[0055] In an implementation manner, if the gateway device is a gateway device dedicated to data interaction and processing and does not have other control functions, the trigger instruction will only bring the control result of the target task. In another implementation manner, if the gateway device can also have other control functions, for example, the gateway device can be directly controlled to act under the corresponding intelligent controller, the trigger instruction can bring the control result of the target task, and can also bring the control result of the controlled action of the gateway device itself, for example: if the gateway device is a smart sound box with gateway function, the corresponding smart sound box can be controlled to play specified audio through the intelligent controller. At this time, the intelligent controller can realize control of the gateway device, and / or: can also realize control of the controlled device.

[0056] The control between the above intelligent controller and the controlled device can be any one of the following situations in addition to the control situation that one intelligent controller controls one controlled device: multiple intelligent controllers control one or more functions of one controlled device; one intelligent controller controls one or more functions of each of multiple controlled devices; and multiple intelligent controllers control one or more functions of each of multiple controlled devices. It can be seen that as long as the trigger condition is the control action of the intelligent controller, any control related to the controlled device does not deviate from the description of the embodiment.

[0057] The mapping relationship described above can describe any information about the relationship between the trigger instructions and the target task, and the relationship between the trigger instructions. For example, for a target task and multiple trigger instructions, the mapping relationship can be, for example, that the target task is controlled to be executed when any one of the multiple trigger conditions is met, or can be, for example, that the target task is controlled to be executed only when all the multiple trigger instructions are met. In addition, the trigger action corresponding to the trigger instruction can be a control action of the intelligent controller, or can be a working state, which is not limited here. For the mapping relationship, the user can define it on the terminal through AND or OR combination, so as to achieve a more complex control effect.

[0058] In addition, in the defined mapping relationship, a delay time of triggering can also be defined, for example: the trigger condition is the off action of the intelligent controller that can control the opening and closing of the lamp in the bathroom, and the corresponding trigger result can be that the ventilation equipment in the bathroom stops ventilation, and it can also be defined that the trigger result is controlled to be executed only after 10 minutes of delay.

[0059] Further, after the second trigger rule is defined on the terminal, the terminal sends the second trigger rule to the cloud server, the cloud server receives and stores the second trigger rule sent by the terminal, and determines the first trigger rule according to the second trigger rule. Specifically, for the trigger rule related to the intelligent controller, the trigger instructions involved in the second trigger rule and the first trigger rule are all trigger actions related to the intelligent controller, and the difference between the second trigger rule and the first trigger rule is that the controlled devices are different. The controlled devices in the target task corresponding to the trigger instructions in the second trigger rule can be devices that directly interact with the cloud server, or devices that are connected to the gateway device, that is, the controlled devices include controlled devices that can only be remotely controlled through the cloud server, and also include controlled devices that can be locally controlled through the gateway device. In this embodiment, since local control is realized through a local area network communication link, the controlled devices involved can only be controlled devices connected to the gateway device, for example, can include controlled devices within the same local area network communication range as the gateway and the router, such as WiFi devices that can interact with the router, or Bluetooth mesh devices that can interact with the gateway, etc. Based on this, the cloud server filters the controlled devices in the target task corresponding to the trigger instructions in the second trigger rule as controlled devices connected to the gateway device and capable of being locally controlled through the gateway device, to determine the first trigger rule, and sends the first trigger rule to the gateway device.

[0060] The gateway device receives and stores the first trigger rule sent by the cloud server, and the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result, and the control result is an executable function of at least one controlled device connected to the gateway device. In this way, after the smart controller issues the trigger instruction to the gateway device, the gateway device determines the control result matched with the trigger instruction based on the stored first trigger rule, and controls the control result to be executed. Specifically, the gateway device can send a control signal to the controlled device in the control result according to the trigger instruction, so that the controlled device in the control result executes the corresponding executable function, so that the control result corresponding to the trigger instruction is executed.

[0061] In this embodiment, the user-defined local first trigger rule is stored in the gateway device, and after the smart controller sends a trigger instruction to the gateway device, the gateway device can execute the localization linkage between the smart controller and the controlled device according to the stored first trigger rule, without the need to access the cloud server through the Internet for data interaction, not only improving the response speed of linkage control, but also determining the control result corresponding to the trigger rule through the gateway device, and directly controlling and executing by the gateway device, reducing the data processing workload of the cloud server side, so that the cloud server can respond to other cloud control tasks that need to be executed online more quickly.

[0062] Further, as shown in Figure 3 Before step S202, some embodiments further include:

[0063] S203, determining whether the trigger instruction matches at least one local trigger identifier pre-stored by the smart controller; each local trigger identifier is used to represent a trigger instruction associated with the smart controller in the first trigger rule;

[0064] If yes, S202 is executed, and the trigger instruction is issued.

[0065] Otherwise, S204 is executed, and the trigger instruction is issued through the second communication link, so that the cloud server receives the trigger instruction and determines a target task matched with the trigger instruction in the stored second trigger rule, and controls the target task to be executed, wherein the second trigger rule is defined by the terminal and sent to the cloud server, the second trigger rule defines a mapping relationship between at least one trigger instruction and at least one target task, the trigger instruction includes the trigger instruction of the smart controller, and the target task is an executable function of at least one controlled device capable of directly or indirectly interacting with the cloud server.

[0066] In the embodiment, after the cloud server determines the first trigger rule according to the second trigger rule and sends the first trigger rule to the gateway device, the cloud server or the gateway device can generate a local trigger identifier and send it to the intelligent controller. The local trigger identifier is generated by the server or the gateway device according to each trigger instruction in the determined first trigger rule associated with the intelligent controller, and is used to identify the first trigger rule with the intelligent controller as the trigger condition. The local trigger identifier can be the trigger instruction in the first trigger rule, or the identification information associated with the trigger instruction in the first trigger rule, or the identification information associated with the first trigger rule, etc. After the intelligent controller receives the trigger instruction, it can determine whether the current trigger instruction corresponds to a local scene according to the local trigger identifier stored therein, i.e., whether it matches the first trigger rule. If so, the trigger instruction can be sent to the gateway device, so that the gateway device executes the control result corresponding to the trigger instruction according to the local first trigger rule stored therein. If it does not match, it means that the scene corresponding to the current trigger instruction is a cloud scene, which must be executed through the cloud server, so the trigger instruction is sent to the cloud server through the second communication link, so that the cloud server executes the control result corresponding to the trigger instruction according to the second trigger rule stored therein.

[0067] In addition, in an optional embodiment, when the intelligent controller determines that the scene corresponding to the current trigger instruction is a local scene, the trigger instruction can be sent to the gateway device and the cloud server in parallel or in series. The gateway device executes the control result corresponding to the trigger instruction, while the cloud server does not execute the control result corresponding to the trigger instruction, but only learns the event that the intelligent controller is triggered through the trigger instruction and displays it on the terminal.

[0068] In the embodiment, the intelligent controller stores a local trigger identifier associated with the local first trigger rule. After receiving the trigger instruction, the intelligent controller can determine whether the scene corresponding to the current trigger instruction is a local scene according to the local trigger identifier stored therein, and then perform different processing. By setting the step of determining whether it is a local scene on the intelligent controller, it can avoid forwarding the trigger instruction to the gateway device without distinction when each intelligent controller connected to the gateway device is triggered, and then the gateway device determines whether it matches the local trigger rule one by one. When the number of intelligent controllers connected to the gateway device is large, the data processing workload of the gateway device is large, which affects the response speed of the linkage control.

[0069] Exemplarily, as Figure 4As shown, in an optional embodiment, the intelligent controller can be a switch with a touch screen display, the switch can display a plurality of scene mode icons 41 for the user to click to trigger, and the user can customize the mapping between different scene mode icons 41 and target tasks on the terminal. For example, when the home mode scene icon is triggered, the light and air conditioner in the target task can be turned on; when the away mode scene icon is triggered, the light and air conditioner in the target task can be turned off. According to whether the controlled device in the target task is a controlled device that needs to interact with the cloud server or a controlled device that can be connected to the local gateway device, the trigger rule corresponding to different scene mode icons 41 can be a second trigger rule of the cloud or a first trigger rule of the local.

[0070] When receiving a trigger instruction generated by the user clicking the scene mode icon 41 displayed on the switch, the local trigger identifier associated with the first trigger rule of the local stored in the switch is traversed according to the trigger instruction, it is confirmed whether the user triggers the scene mode icon 41 matched with the first trigger rule of the local, if yes, the trigger instruction is issued to the gateway device, so that the gateway device determines the control result matched with the trigger instruction based on the stored first trigger rule, and controls the control result to be executed.

[0071] In addition, among the plurality of scene mode icons 41 displayed on the switch, the scene mode icons 41 customized by the user can be prompted to belong to the local trigger or the cloud trigger by distinguishing the identifiers, for example, but not limited to, distinguishing the scene mode icons of the local trigger or the cloud trigger by different colors, text identifiers, etc. The name, pattern, etc. of the scene mode icon 41 can be customized and set by the user on the terminal.

[0072] Further, as Figure 5 As shown, in some embodiments, before step S202, further comprising:

[0073] S205, determining whether the first communication link is communicable;

[0074] If yes, S202 is executed, and the trigger instruction is issued.

[0075] Otherwise, perform S206, and issue the trigger instruction through the second communication link, so that the cloud server receives the trigger instruction and determines a target task matching the trigger instruction in the stored second trigger rule, and controls the target task to be executed, wherein the second trigger rule is defined by the terminal and sent to the cloud server, the second trigger rule defines a mapping relationship between at least one trigger instruction and at least one target task, the trigger instruction includes the trigger instruction of the intelligent controller, and the target task is an executable function of at least one controlled device capable of directly or indirectly interacting with the cloud server.

[0076] In the embodiment, after the intelligent controller receives the trigger instruction, it can first determine whether the first communication link is communicable, i.e., whether the intelligent controller can interact with the controlled device connected to the gateway device through the local area network communication link composed of the gateway device. If yes, the trigger instruction is issued to the gateway device, so that the gateway device determines a control result matching the trigger instruction based on the stored first trigger rule, and controls the control result to be executed. Otherwise, it is indicated that the first communication link cannot realize local control, and the trigger instruction is sent to the cloud server through the second communication link, and the cloud server controls the control result to be executed; for example, the cloud server can directly send a control instruction to the controlled device corresponding to the trigger instruction, or the cloud server can also send a control instruction to one or more gateway devices capable of directly or indirectly interacting with the controlled device corresponding to the trigger instruction, wherein the plurality of gateway devices can be in a relay relationship, so as to control the control result to be executed through other paths capable of interacting with the controlled device when the first communication link is not communicable.

[0077] Specifically, in an optional embodiment, when determining whether the first communication link is communicable, a heartbeat packet can be sent to the gateway device every specified heartbeat interval, so that the gateway device sends a feedback packet to the intelligent controller according to the heartbeat packet; and whether the first communication link is communicable is determined according to whether the feedback packet is received. The gateway device can also periodically collect state information of the controlled device connected thereto, and periodically send a feedback packet to the intelligent controller, so that the intelligent controller knows the communication condition of the first communication link.

[0078] In this embodiment, after receiving a trigger command, the intelligent controller selects to send the trigger command to the gateway device or the cloud server based on the communication status of the local area network communication link formed by the gateway devices, so as to realize the linkage control between the intelligent controller and the controlled device under different circumstances, thereby improving the robustness of the smart home system while achieving priority local control.

[0079] Furthermore, such as Figure 6 As shown, in one optional implementation, the gateway device includes a router 21 and a Bluetooth gateway 22. The smart controller can interact with the router 21 based on the Wi-Fi protocol and connect to a cloud server through the router 21 to form a second communication link. The first communication link is a local area network communication link composed of the router 21 and the Bluetooth gateway 22.

[0080] Step S202 includes: sending the trigger command to the router 21 based on the WiFi protocol, and the router 21 sending the trigger command to the Bluetooth gateway 22, so that the Bluetooth gateway 22 determines a control result matching the trigger command based on a stored first trigger rule, and controls the control result to be executed; wherein, the first trigger rule defines a mapping relationship between at least one trigger command and at least one control result; the controlled device corresponding to the control result interacts with the Bluetooth gateway 22 based on the Bluetooth protocol.

[0081] In this embodiment, the first communication link is a local area network (LAN) communication link formed by the router 21 and the Bluetooth gateway 22. The Bluetooth gateway 22 stores a first trigger rule, wherein the corresponding locally controllable controlled device is located in the same LAN as the router 21 and the Bluetooth gateway 22. For example, the controlled device can be a Bluetooth mesh device, which interacts with the Bluetooth gateway 22 through the Bluetooth mesh communication protocol; the controlled device can also be a WiFi device, which interacts with the router 21 through the WiFi communication protocol. Regardless of whether the controlled device is a Bluetooth mesh device or a WiFi device, after receiving the trigger command, the smart controller sends the trigger command to the Bluetooth gateway 22 through the router 21. The Bluetooth gateway 22 then controls the controlled device to perform the corresponding function according to the stored first trigger rule. For example, the Bluetooth gateway 22 directly sends the control command to the Bluetooth mesh device, or sends the control command to the WiFi device through the router 21, to control the execution of the control result corresponding to the trigger command.

[0082] like Figure 7As shown, in another alternative embodiment, the gateway device comprises a Bluetooth gateway 24, the smart controller is capable of interacting with the Bluetooth gateway 24 based on a Bluetooth protocol, and connecting the cloud server through the Bluetooth gateway 24 and at least one router 23 to form a second communication link, the first communication link being a local area network communication link composed of the Bluetooth gateway 24 and the router 23;

[0083] The step S202 comprises: sending the trigger instruction to the Bluetooth gateway 24 based on a Bluetooth protocol, so that the Bluetooth gateway 24 determines a control result matched with the trigger instruction based on the stored first trigger rule, and controls the control result to be executed; wherein the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result; the controlled device corresponding to the control result is capable of interacting with the Bluetooth gateway 24 based on a Bluetooth protocol or interacting with the router 23 based on a WiFi protocol.

[0084] In this embodiment, the smart controller and the controlled device based on the gateway device can support different communication protocols to realize localized linkage control, including but not limited to WiFi devices, Bluetooth devices, ZigBee devices, etc., thereby improving the availability and practicability of the smart home system.

[0085] Reference Figure 8 , Figure 8 is a flowchart of a control method in an embodiment of the application Figure 2 The embodiment discloses a control method applied to a cloud server, the cloud server being capable of connecting with a smart controller through a gateway device to form a second communication link; the control method comprises:

[0086] S701, receiving and storing a second trigger rule sent by a terminal, the second trigger rule defining a mapping relationship between at least one trigger instruction and at least one target task, the trigger instruction comprising a trigger instruction of the smart controller, and the target task being an executable function of at least one controlled device;

[0087] S702, determining a first trigger rule according to the second trigger rule, and sending the first trigger rule to the gateway device, so that: after the gateway device receives a trigger instruction issued by the smart controller through a first communication link in a communicable case of the second communication link, the gateway device determines a control result matched with the trigger instruction in the stored first trigger rule, and controls the control result to be executed; wherein the control result is an executable function of at least one controlled device connected to the gateway device, and the first communication link is a local area network communication link composed of the gateway device.

[0088] In some embodiments, after the first trigger rule is determined according to the second trigger rule and sent to the gateway device, the method further comprises:

[0089] generating a local trigger identifier according to the determined first trigger rule, and sending the local trigger identifier to the intelligent controller via the gateway device; the local trigger identifier is used to represent each trigger instruction in the local trigger rule associated with the intelligent controller.

[0090] In some embodiments, after the first trigger rule is determined according to the second trigger rule and sent to the gateway device, the method further comprises:

[0091] receiving the trigger instruction issued by the intelligent controller via the second communication link, the trigger instruction being sent by the intelligent controller to the gateway device when it is determined that the trigger instruction does not match the local trigger identifier pre-stored by the intelligent controller or the first communication link is not communicable;

[0092] determining a target task in the stored second trigger rule that matches the trigger instruction, and controlling the target task to be executed, the controlled device in the target task being able to directly or indirectly interact with the server.

[0093] In some embodiments, after the first trigger rule is determined according to the second trigger rule and sent to the gateway device, the method further comprises:

[0094] receiving a notification message fed back by the gateway device, and sending the notification message to a terminal for display; the notification message is used to represent that the control result is executed.

[0095] The above-mentioned technical terms, technical features, optional embodiments and technical effects can be understood with reference to the related descriptions of the above-mentioned embodiments of the control method, and for repeated contents, no longer repeated here.

[0096] The embodiment receives a trigger instruction by the intelligent controller, and issues the trigger instruction through a local area network communication link composed of the gateway device to achieve control of an executable function of a controlled device connected to the gateway device in response to the trigger instruction. Since the control in the embodiment is achieved based on the local local area network communication link composed of the gateway device, and does not depend on the second communication link formed by the intelligent controller connecting the cloud server through the gateway device, even if the second communication link is communicable, the local control in response to the trigger instruction is preferentially achieved through the local local area network communication link, so that the linkage control between the intelligent controller and the controlled device is not affected by the unstable network condition and network transmission delay of the Internet, the stability of the linkage control is improved, and the linkage control does not need to interact with the cloud server through the second communication link every time, and the controlled device is controlled by the cloud server through the second communication link. In the application, the transmission path of the linkage control is shorter through the local local area network communication link, the control can be locally executed without accessing the Internet, the response speed is greatly improved, and the user experience of the smart home system is improved.

[0097] Reference Figure 9 , Figure 9 is a flowchart of a control method in an embodiment of the application Figure 3 The embodiment discloses a control method applied to a gateway device, the gateway device being capable of interacting with an intelligent controller, the intelligent controller being capable of connecting a cloud server through the gateway device to form a second communication link; the control method comprising:

[0098] S801, receiving and storing a first trigger rule sent by the cloud server, the first trigger rule being determined by the cloud server according to a second trigger rule sent by a terminal, the first trigger rule defining a mapping relationship between at least one trigger instruction and at least one control result, the control result being an executable function of at least one controlled device connected to the gateway device;

[0099] S802, receiving a trigger instruction issued by the intelligent controller through a first communication link in the case that the second communication link is communicable, determining a control result matched with the trigger instruction in the stored first trigger rule, and controlling the control result to be executed; wherein the first communication link is a local area network communication link composed of the gateway device.

[0100] In some embodiments, the control of the control result to be executed comprises:

[0101] The control signal is sent to the controlled device in the control result, so that the controlled device in the control result performs the corresponding executable function.

[0102] In some embodiments, the gateway device comprises a router and a Bluetooth gateway, the smart controller can interact with the router based on a wireless fidelity (WiFi) protocol, and connect a cloud server through the router to form a second communication link, the first communication link being a local area network communication link formed by the router and the Bluetooth gateway; the receiving of the trigger instruction issued by the smart controller through the first communication link in the case that the smart controller is communicable on the second communication link, the determination of the control result matched with the trigger instruction in the stored first trigger rule, and the control of the control result being executed, specifically comprises:

[0103] The router receives the trigger instruction sent by the smart controller based on the WiFi protocol, and forwards the trigger instruction to the Bluetooth gateway;

[0104] After receiving the trigger instruction, the Bluetooth gateway determines the control result matched with the trigger instruction based on the stored first trigger rule, and sends a control signal to the controlled device corresponding to the control result based on a Bluetooth protocol, so that the controlled device performs the corresponding executable function.

[0105] In some embodiments, the gateway device comprises a Bluetooth gateway, the smart controller can interact with the Bluetooth gateway based on a Bluetooth protocol, and connect a cloud server through the Bluetooth gateway and at least one router to form a second communication link, the first communication link being a local area network communication link formed by the Bluetooth gateway and the router; the receiving of the trigger instruction issued by the smart controller through the first communication link in the case that the smart controller is communicable on the second communication link, the determination of the control result matched with the trigger instruction in the stored first trigger rule, and the control of the control result being executed, specifically comprises:

[0106] The Bluetooth gateway receives the trigger instruction sent by the smart controller based on the Bluetooth protocol, determines the control result matched with the trigger instruction based on the stored first trigger rule, and controls the control result to be executed; wherein the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result; the controlled device corresponding to the control result can interact with the Bluetooth gateway based on the Bluetooth protocol or interact with the router based on a WiFi protocol.

[0107] The above-mentioned technical terms, technical features, optional embodiments and technical effects can be understood with reference to the related description of the above-mentioned embodiments of the control method, and for repeated contents, no longer repeated here.

[0108] The embodiment receives a trigger instruction by the intelligent controller, and issues the trigger instruction through a local area network communication link composed of the gateway device to realize control of an executable function of a controlled device connected to the gateway device in response to the trigger instruction. Since the control in the embodiment is realized based on the local local area network communication link composed of the gateway device, and does not depend on the second communication link formed by the intelligent controller connecting the cloud server through the gateway device, even if the second communication link is communicable, the local control in response to the trigger instruction is realized through the local local area network communication link in priority, so that the linkage control between the intelligent controller and the controlled device is not affected by the unstable network condition and network transmission delay of the Internet, the stability of the linkage control is improved, and the linkage control does not need to interact with the cloud server through the second communication link every time, and the controlled device is controlled by the cloud server through the second communication link. In the application, the transmission path of the linkage control is shorter through the local local area network communication link, the control can be executed locally without accessing the Internet, the response speed is greatly improved, and the user experience of the smart home system is improved.

[0109] Reference Figure 10 , Figure 10 is a control device frame Figure 1 The control device is applied to an intelligent controller, the intelligent controller can connect a cloud server through a gateway device to form a second communication link; the control device comprises:

[0110] The first receiving module 901 is configured to receive a trigger instruction.

[0111] The first sending module 902 is configured to issue the trigger instruction, so that a control result corresponding to the trigger instruction is executed; wherein the trigger instruction is issued through a first communication link in the case that the second communication link is communicable; the first communication link is a local area network communication link composed of the gateway device; and the control result is an executable function of at least one controlled device connected to the gateway device.

[0112] In some embodiments, the first sending module 902 is specifically configured to:

[0113] The trigger instruction is issued to the gateway device, so that the gateway device determines a control result matched with the trigger instruction based on a stored first trigger rule, and controls the control result to be executed; wherein the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result.

[0114] In some embodiments, the first sending module 902 is further configured to:

[0115] determine whether the trigger instruction matches at least one local trigger identifier pre-stored in the smart controller; each of the local trigger identifiers is used to represent a trigger instruction in the first trigger rule that is associated with the smart controller; and if yes, issue the trigger instruction.

[0116] In some embodiments, the first receiving module 901 is further configured to:

[0117] receive and store a local trigger identifier sent by the cloud server or the gateway device; the local trigger identifier is generated by the server or the gateway device according to each trigger instruction in the first trigger rule that is associated with the smart controller; wherein the first trigger rule is determined by the cloud server according to the second trigger rule defined by the terminal and sent to the gateway device.

[0118] In some embodiments, the first sending module 902 is further configured to:

[0119] if it is determined that the trigger instruction does not match the local trigger identifier pre-stored in the smart controller, issue the trigger instruction through the second communication link, so that the cloud server receives the trigger instruction and determines a target task that matches the trigger instruction in the stored second trigger rule, and controls the target task to be executed, wherein the second trigger rule is defined by the terminal and sent to the cloud server, the second trigger rule defines a mapping relationship between at least one trigger instruction and at least one target task, the trigger instruction includes the trigger instruction of the smart controller, and the target task is an executable function of at least one controlled device that can directly or indirectly interact with the cloud server.

[0120] In some embodiments, the first sending module 902 is further configured to:

[0121] determine whether the first communication link is communicable, and if yes, issue the trigger instruction to the gateway device to control a control result corresponding to the trigger instruction to be executed based on the first communication link.

[0122] In some embodiments, the first sending module 902 is further configured to:

[0123] If it is determined that the first communication link is not communicable, the trigger instruction is sent through the second communication link, so that the cloud server receives the trigger instruction and determines a target task matching the trigger instruction in a stored second trigger rule, and controls the target task to be executed, wherein the second trigger rule is defined by a terminal and sent to the cloud server, the second trigger rule defines a mapping relationship between at least one trigger instruction and at least one target task, the trigger instruction includes a trigger instruction of the intelligent controller, and the target task is an executable function of at least one controlled device capable of directly or indirectly interacting with the cloud server.

[0124] In some embodiments, the first sending module 902 determines whether the first communication link is communicable, specifically including:

[0125] A heartbeat packet is sent to the gateway device every specified heartbeat interval, so that the gateway device sends a feedback packet to the intelligent controller according to the heartbeat packet;

[0126] Whether the first communication link is communicable is determined according to whether the feedback packet is received.

[0127] In some embodiments, the gateway device includes a router and a Bluetooth gateway, the intelligent controller can interact with the router based on a wireless fidelity (WiFi) protocol, and connect a cloud server through the router to form a second communication link, and the first communication link is a local area network communication link composed of the router and the Bluetooth gateway;

[0128] The first sending module 902 is specifically used for:

[0129] The trigger instruction is sent to the router based on the WiFi protocol, and the trigger instruction is sent to the Bluetooth gateway by the router, so that the Bluetooth gateway determines a control result matching the trigger instruction based on a stored first trigger rule, and controls the control result to be executed; wherein the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result; and a controlled device corresponding to the control result interacts with the Bluetooth gateway based on a Bluetooth protocol.

[0130] In some embodiments, the gateway device includes a Bluetooth gateway, the intelligent controller can interact with the Bluetooth gateway based on a Bluetooth protocol, and connect the cloud server through the Bluetooth gateway and at least one router to form a second communication link, and the first communication link is a local area network communication link composed of the Bluetooth gateway and the router;

[0131] The first sending module 902 is specifically used for:

[0132] send the trigger instruction to the Bluetooth gateway based on the Bluetooth protocol, so that the Bluetooth gateway determines a control result matched with the trigger instruction based on a stored first trigger rule, and controls the control result to be executed; wherein the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result; the controlled device corresponding to the control result is capable of interacting with the Bluetooth gateway based on the Bluetooth protocol or interacting with the router based on the WiFi protocol.

[0133] The above-mentioned technical terms, technical features, optional embodiments and technical effects can be understood with reference to the related description of the above-mentioned embodiments of the control method. For repeated content, no further elaboration is given here.

[0134] In the embodiment, the control is implemented based on the local LAN communication link composed of the gateway device, and does not depend on the second communication link formed by the smart controller connecting the cloud server through the gateway device. Even if the second communication link is communicable, the local control in response to the trigger instruction is preferentially implemented through the local LAN communication link, so that the linkage control between the smart controller and the controlled device is not affected by the unstable network condition and network transmission delay of the Internet, and the stability of the linkage control is improved. Moreover, when implementing the linkage control, it is not necessary to interact with the cloud server through the second communication link every time, and then the cloud server controls the controlled device through the second communication link. In the present application, the transmission path of the linkage control is shorter, and the control can be locally executed without accessing the Internet, and the response speed is greatly improved, thereby improving the user experience of the smart home system.

[0135] Referring to Figure 11 , Figure 11 is a control device frame Figure 2 The control device is applied to a cloud server, the cloud server is capable of being connected with a smart controller through a gateway device to form a second communication link; the control device comprises:

[0136] The second receiving module 1001 is configured to receive and store a second trigger rule sent by a terminal, the second trigger rule defining a mapping relationship between at least one trigger instruction and at least one target task, the trigger instruction including a trigger instruction of the smart controller, and the target task being an executable function of at least one controlled device.

[0137] The second sending module 1002 is configured to determine a first trigger rule according to the second trigger rule, and send the first trigger rule to the gateway device, so that the gateway device determines a control result matched with the trigger instruction in the stored first trigger rule after receiving the trigger instruction issued by the intelligent controller through the first communication link in the case that the second communication link is communicable, and controls the control result to be executed; the control result is an executable function of at least one controlled device connected to the gateway device, and the first communication link is a local area network communication link formed by the gateway device.

[0138] With reference to Figure 12 , Figure 12 is a control device frame provided in an embodiment of the present application Figure 3 The control device is applied to a gateway device, the gateway device is capable of interacting with an intelligent controller, the intelligent controller is capable of connecting a cloud server through the gateway device to form a second communication link; the control device comprises:

[0139] The third receiving module 1101 is configured to receive and store a first trigger rule sent by the cloud server, the first trigger rule is determined by the cloud server according to a second trigger rule sent by a terminal, the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result, and the control result is an executable function of at least one controlled device connected to the gateway device;

[0140] The execution module 1102 is configured to receive a trigger instruction issued by the intelligent controller through a first communication link in the case that the second communication link is communicable, determine a control result matched with the trigger instruction in the stored first trigger rule, and control the control result to be executed; the first communication link is a local area network communication link formed by the gateway device.

[0141] The functions or operation steps realized by the above program modules when executed are substantially the same as those of the above embodiments, and will not be described here.

[0142] Please refer to Figure 13 , Figure 13 is a structural schematic diagram of an intelligent device in an embodiment of the present application. The embodiment provides an intelligent device 12, comprising:

[0143] a processor 121; and

[0144] a memory 122 configured to store programs of the processor;

[0145] The processor 121 is configured to execute the above-mentioned method steps via executing the program.

[0146] The processor 122 can communicate with the memory 122 through the bus 123.

[0147] The embodiment also provides a computer readable storage medium, which stores a computer program. The program is executed by the processor to implement the above-mentioned method.

[0148] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a computer readable storage medium. The program is executed to perform the steps of the above-mentioned method embodiments; and the foregoing storage medium includes ROM, RAM, magnetic disk or optical disk and various storage media that can store program codes.

[0149] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A control method applied to an intelligent controller, characterized in that, The intelligent controller can connect to a cloud server via a gateway device to form a second communication link; the control method includes: Receive a trigger command; Determine whether the trigger command matches at least one local trigger identifier pre-stored by the smart controller, so as to determine whether the scene corresponding to the current trigger command is a local scene; The local trigger identifier is generated based on each trigger instruction associated with the smart controller in the first trigger rule, and is used to identify the first trigger rule with the smart controller as the trigger condition; the cloud server filters out the controlled devices in the target tasks corresponding to the trigger instructions in the second trigger rule as controlled devices that are connected to the gateway device and can be locally controlled through the gateway device, so as to determine the first trigger rule; If so, when the second communication link is available, the trigger command is sent through the first communication link, which is a local area network communication link composed of the gateway devices, so that the control result corresponding to the trigger command is executed; the control result is an executable function of at least one controlled device connected to the gateway device. Otherwise, the trigger command is sent through the second communication link.

2. The control method according to claim 1, characterized in that, The sending of the trigger command via the first communication link specifically includes: The trigger command is sent to the gateway device so that the gateway device determines a control result that matches the trigger command based on the stored first trigger rule, and controls the control result to be executed.

3. The control method according to claim 1 or 2, characterized in that, The control method further includes: The system receives and stores a local trigger identifier sent by the cloud server or the gateway device. The local trigger identifier is generated by the server or the gateway device according to each trigger instruction associated with the smart controller in a determined first trigger rule. The first trigger rule is determined by the cloud server according to a second trigger rule defined on the terminal and sent to the gateway device.

4. The control method according to claim 1, characterized in that, If it is determined that the trigger instruction does not match the local trigger identifier pre-stored by the intelligent controller, the trigger instruction is sent through the second communication link so that the cloud server receives the trigger instruction and determines the target task matching the trigger instruction in the stored second trigger rules, and controls the target task to be executed. The second trigger rule is defined by the terminal and sent to the cloud server. The second trigger rule defines a mapping relationship between at least one trigger instruction and at least one target task. The trigger instruction includes the trigger instruction of the intelligent controller. The target task is an executable function of at least one controlled device that can directly or indirectly interact with the cloud server.

5. The control method according to claim 1 or 2, characterized in that, Before issuing the trigger command, the following is also included: Determine whether the first communication link is communicable. If so, send the trigger command to the gateway device to execute the control result corresponding to the trigger command based on the first communication link.

6. The control method according to claim 5, characterized in that, The control method further includes: If it is determined that the first communication link is not communicating, the triggering instruction is sent through the second communication link so that the cloud server receives the triggering instruction and determines the target task matching the triggering instruction in the stored second triggering rules, and controls the target task to be executed. The second triggering rule is defined by the terminal and sent to the cloud server. The second triggering rule defines the mapping relationship between at least one triggering instruction and at least one target task. The triggering instruction includes the triggering instruction of the intelligent controller. The target task is an executable function of at least one controlled device that can directly or indirectly interact with the cloud server.

7. The control method according to claim 5, characterized in that, The determination of whether the first communication link is communicable specifically includes: The gateway device sends a heartbeat message at specified heartbeat intervals, so that the gateway device sends a feedback message to the smart controller based on the heartbeat message. Whether the first communication link is capable of communication is determined based on whether the feedback message is received.

8. The control method according to any one of claims 1-2, characterized in that, The gateway device includes a router and a Bluetooth gateway. The smart controller can interact with the router based on the Wi-Fi protocol and connect to the cloud server through the router to form a second communication link. The first communication link is a local area network communication link composed of the router and the Bluetooth gateway. The issuance of the trigger command includes: The trigger command is sent to the router based on the WiFi protocol, and the router sends the trigger command to the Bluetooth gateway, so that the Bluetooth gateway determines a control result matching the trigger command based on the stored first trigger rule, and controls the control result to be executed; wherein, the first trigger rule defines a mapping relationship between at least one trigger command and at least one control result; the controlled device corresponding to the control result interacts with the Bluetooth gateway based on the Bluetooth protocol.

9. The control method according to any one of claims 1-2, characterized in that, The gateway device includes a Bluetooth gateway. The smart controller can interact with the Bluetooth gateway based on the Bluetooth protocol and connect to the cloud server through the Bluetooth gateway and at least one router to form a second communication link. The first communication link is a local area network communication link composed of the Bluetooth gateway and the router. The issuance of the trigger command includes: The trigger command is sent to the Bluetooth gateway based on the Bluetooth protocol, so that the Bluetooth gateway determines a control result matching the trigger command based on the stored first trigger rule, and controls the control result to be executed; wherein, the first trigger rule defines a mapping relationship between at least one trigger command and at least one control result; the controlled device corresponding to the control result can interact with the Bluetooth gateway based on the Bluetooth protocol or with the router based on the WiFi protocol.

10. An intelligent controller, characterized in that, The intelligent controller can connect to a cloud server via a gateway device to form a second communication link; the intelligent controller includes: The first receiving module is used to receive a trigger command; The first sending module determines whether the trigger instruction matches at least one local trigger identifier pre-stored by the smart controller, in order to determine whether the scenario corresponding to the current trigger instruction is a local scenario; the local trigger identifier is generated according to each trigger instruction associated with the smart controller in the determined first trigger rule, and is used to identify the first trigger rule with the smart controller as the trigger condition; the cloud server filters out the controlled device in the target task corresponding to the trigger instruction in the second trigger rule as a controlled device connected to the gateway device and capable of being locally controlled by the gateway device, in order to determine the first trigger rule; The first sending module is also used for: If a match is found, the trigger command is issued to execute the control result corresponding to the trigger command; wherein, if the second communication link is available, the trigger command is issued through the first communication link; the first communication link is a local area network communication link composed of the gateway devices; the control result is an executable function of at least one controlled device connected to the gateway device. Otherwise, the trigger command is sent through the second communication link.

11. The intelligent controller according to claim 10, characterized in that, The first sending module is specifically used for: The trigger command is sent to the gateway device so that the gateway device determines a control result that matches the trigger command based on the stored first trigger rule, and controls the control result to be executed; wherein, the first trigger rule defines a mapping relationship between at least one trigger command and at least one control result.

12. The intelligent controller according to claim 10 or 11, characterized in that, The first receiving module is also used for: The system receives and stores a local trigger identifier sent by the cloud server or the gateway device. The local trigger identifier is generated by the server or the gateway device according to each trigger instruction associated with the smart controller in a determined first trigger rule. The first trigger rule is determined by the cloud server according to a second trigger rule defined on the terminal and sent to the gateway device.

13. The intelligent controller according to claim 11, characterized in that, The first sending module is also used for: If it is determined that the trigger instruction does not match the local trigger identifier pre-stored by the intelligent controller, the trigger instruction is sent through the second communication link so that the cloud server receives the trigger instruction and determines the target task matching the trigger instruction in the stored second trigger rules, and controls the target task to be executed. The second trigger rule is defined by the terminal and sent to the cloud server. The second trigger rule defines a mapping relationship between at least one trigger instruction and at least one target task. The trigger instruction includes the trigger instruction of the intelligent controller. The target task is an executable function of at least one controlled device that can directly or indirectly interact with the cloud server.

14. The intelligent controller according to claim 10 or 11, characterized in that, The first sending module is also used for: Determine whether the first communication link is communicable. If so, send the trigger command to the gateway device to execute the control result corresponding to the trigger command based on the first communication link.

15. The intelligent controller according to claim 14, characterized in that, The first sending module is also used for: If it is determined that the first communication link is not communicating, the triggering instruction is sent through the second communication link so that the cloud server receives the triggering instruction and determines the target task matching the triggering instruction in the stored second triggering rules, and controls the target task to be executed. The second triggering rule is defined by the terminal and sent to the cloud server. The second triggering rule defines the mapping relationship between at least one triggering instruction and at least one target task. The triggering instruction includes the triggering instruction of the intelligent controller. The target task is an executable function of at least one controlled device that can directly or indirectly interact with the cloud server.

16. The intelligent controller according to claim 14, characterized in that, The first sending module determines whether the first communication link is communicable, specifically including: The gateway device sends a heartbeat message at specified heartbeat intervals, so that the gateway device sends a feedback message to the smart controller based on the heartbeat message. Whether the first communication link is capable of communication is determined based on whether the feedback message is received.

17. The intelligent controller according to any one of claims 10-11, characterized in that, The gateway device includes a router and a Bluetooth gateway. The smart controller can interact with the router based on the Wi-Fi protocol and connect to the cloud server through the router to form a second communication link. The first communication link is a local area network communication link composed of the router and the Bluetooth gateway. The first sending module is specifically used for: The trigger command is sent to the router based on the WiFi protocol, and the router sends the trigger command to the Bluetooth gateway, so that the Bluetooth gateway determines a control result matching the trigger command based on the stored first trigger rule, and controls the control result to be executed; wherein, the first trigger rule defines a mapping relationship between at least one trigger command and at least one control result; the controlled device corresponding to the control result interacts with the Bluetooth gateway based on the Bluetooth protocol.

18. The intelligent controller according to any one of claims 10-11, characterized in that, The gateway device includes a Bluetooth gateway. The smart controller can interact with the Bluetooth gateway based on the Bluetooth protocol and connect to the cloud server through the Bluetooth gateway and at least one router to form a second communication link. The first communication link is a local area network communication link composed of the Bluetooth gateway and the router. The first sending module is specifically used for: The trigger command is sent to the Bluetooth gateway based on the Bluetooth protocol, so that the Bluetooth gateway determines a control result matching the trigger command based on the stored first trigger rule, and controls the control result to be executed; wherein, the first trigger rule defines a mapping relationship between at least one trigger command and at least one control result; the controlled device corresponding to the control result can interact with the Bluetooth gateway based on the Bluetooth protocol or with the router based on the WiFi protocol.

19. A smart device, characterized in that, include: processor; Memory configured to store processor-executable instructions; The processor is configured to implement the steps of any one of the control methods of claims 1 to 9 during execution.

20. A control system, characterized in that, It includes the intelligent controller, gateway device, and cloud server as described in any one of claims 10 to 18.

Citation Information

Patent Citations

  • Intelligent household electrical appliance management system and method, and Bluetooth gateway

    CN110737203A

  • Rule processing method and device, server and storage medium

    CN113347068A

  • Intelligent switch system, intelligent home control method and system, and storage medium

    CN114637217A