CN115903596A - Control method, intelligent controller, intelligent device and control system - Google Patents
Control method, intelligent controller, intelligent device and control system Download PDFInfo
- Publication number
- CN115903596A CN115903596A CN202211459686.1A CN202211459686A CN115903596A CN 115903596 A CN115903596 A CN 115903596A CN 202211459686 A CN202211459686 A CN 202211459686A CN 115903596 A CN115903596 A CN 115903596A
- Authority
- CN
- China
- Prior art keywords
- trigger
- communication link
- trigger instruction
- intelligent controller
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000004891 communication Methods 0.000 claims abstract description 199
- 230000006870 function Effects 0.000 claims description 43
- 238000013507 mapping Methods 0.000 claims description 35
- 230000004044 response Effects 0.000 abstract description 15
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 230000003993 interaction Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 230000009471 action Effects 0.000 description 11
- 230000001960 triggered effect Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000004378 air conditioning Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000009423 ventilation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention provides a control method, an intelligent controller, intelligent equipment and a control system, wherein the control method is applied to the intelligent controller, and the intelligent controller can be connected with a cloud server through gateway equipment to form a second communication link; the control method comprises the following steps: receiving a trigger instruction; issuing the trigger instruction to enable a control result corresponding to the trigger instruction to be executed; wherein, under the condition that the second communication link can communicate, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link formed by the gateway equipment; the control result is an executable function of at least one controlled device connected to the gateway device. The invention ensures that the linkage control between the intelligent controller and the controlled equipment is not influenced by unstable network conditions of the Internet and network transmission delay, and improves the stability and response speed of the linkage control.
Description
Technical Field
The invention relates to the field of Internet of things, in particular to a control method, an intelligent controller, intelligent equipment and a control system.
Background
The intelligent controller can be understood as intelligent equipment provided with a wireless communication module and can be in wireless communication with the outside. In the intelligent home system, the intelligent controller can be connected to the internet and then performs information interaction with the cloud server, so that the linkage control between the intelligent controller and other networked intelligent devices is realized based on the data processing of the cloud server.
In the prior art, when the intelligent controller performs linkage control with other intelligent devices, data interaction with a cloud server needs to be performed depending on the internet. Therefore, the response time of the linkage control depends on the interaction between the intelligent controller and the cloud server through the internet and the communication speed of other intelligent equipment controlled by the cloud server through the internet. The stability and the response speed of the linkage control are affected by the network condition of the internet and the network transmission delay, and the use experience of a user on the intelligent home system is reduced.
Disclosure of Invention
The invention provides a control method, an intelligent controller, intelligent equipment and a control system, which aim to solve the problems in the prior art.
According to a first aspect of the present invention, a control method is provided, which is applied to an intelligent controller, where the intelligent controller is capable of connecting to 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 to enable a control result corresponding to the trigger instruction to be executed;
wherein, under the condition that the second communication link can communicate, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link formed by the gateway equipment; the control result is an executable function of at least one controlled device connected to the gateway device.
According to a second aspect of the present invention, there is provided an intelligent controller capable of connecting to a cloud server through a gateway device to form a second communication link; the intelligent controller includes:
the first receiving module is used for receiving a trigger instruction;
the first sending module is used for issuing the trigger instruction so as to enable a control result corresponding to the trigger instruction to be executed; wherein, under the condition that the second communication link can communicate, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link formed by the gateway equipment; the control result is an executable function of at least one controlled device connected to the gateway device.
According to a third aspect of the present invention, there is provided a smart device comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to: when executed, implement the steps in any of the above-described control methods.
According to a fourth aspect of the present invention, a control system is provided, which includes the intelligent controller, the gateway device and the cloud server.
According to the control method, the intelligent controller, the intelligent equipment and the control system, after the intelligent controller receives the trigger instruction, the trigger instruction is issued through the local area network communication link formed by the gateway equipment, so that the executable function of the controlled equipment connected to the gateway equipment is controlled in response to the trigger instruction. Because the control of the invention is realized based on the local LAN communication link formed by the gateway equipment and does not depend on the second communication link formed by connecting the intelligent controller with the cloud server through the gateway equipment, even if the second communication link can communicate, the local control responding to the trigger instruction is realized through the local LAN communication link preferentially, thereby the linkage control between the intelligent controller and the controlled equipment is not influenced by the unstable network condition of the Internet and the network transmission delay, and the stability of the linkage control is improved. In addition, when linkage control is achieved, interaction with the cloud server through a second communication link is not needed to be conducted every time, and the cloud server controls the controlled equipment through the second communication link.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first schematic diagram of a control system according to an embodiment of the present invention.
Fig. 2 is a first flowchart illustrating a control method according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart of the control method according to the embodiment of the present invention, in which step S203 is added.
Fig. 4 is a schematic diagram of an intelligent controller displaying a plurality of contextual model icons according to an embodiment of the invention.
Fig. 5 is a flowchart illustrating the control method according to the embodiment of the present invention with step S205 added.
Fig. 6 is a second schematic structural diagram of a control system according to an embodiment of the present invention.
Fig. 7 is a third schematic structural diagram of a control system according to an embodiment of the present invention.
Fig. 8 is a flowchart illustrating a control method according to an embodiment of the invention.
Fig. 9 is a third flowchart illustrating a control method according to an embodiment of the present invention.
Fig. 10 is a block diagram of a control device according to an embodiment of the present invention.
Fig. 11 is a block diagram of a control device according to a second embodiment of the present invention.
Fig. 12 is a block diagram of a control device in accordance with an embodiment of the present invention.
Fig. 13 is a schematic diagram of the configuration of the smart device in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail below with specific examples. These several specific embodiments may be combined with each other below, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Referring to fig. 1, the present embodiment provides a control system, which may include an intelligent controller 1, a gateway device 2, a terminal 3, a cloud server 4, and a controlled device 5.
The intelligent controller 1 may be an intelligent device configured with a wireless communication module at will, and the wireless communication module may include, but is not limited to, a bluetooth communication module, a WIFI communication module, a radio frequency communication module, a ZigBee communication module, and the like. The intelligent controller 1 can issue a trigger instruction outwards in response to a trigger, for example, the intelligent controller 1 may include an intelligent device that can only issue a trigger instruction outwards in response to a trigger to control other devices to perform control tasks, including but not limited to a self-generating wireless switch, a battery wireless switch, various sensors, and other devices; the intelligent controller 1 may further include a device capable of sending a trigger command outwards in response to an external trigger, and also capable of implementing a control function, for example, a wall switch capable of controlling on/off of a line, and may include a wall switch with a button, an inductive wall switch, a wall switch with a display screen, and the like.
The gateway device 2 may be any device capable of communicating with the intelligent controller 1 directly or indirectly, and the intelligent controller 1 may be connected to the cloud server 4 through the gateway device 2, that is, the gateway device 2 may also communicate with the cloud server 4 directly or indirectly. For example, the gateway device 2 may be a gateway, a router, or a device in which a gateway and a router are integrated. In addition, the gateway device 2 may be an intelligent speaker having a WIFI communication module (for communicating with the cloud server 4) and a radio frequency or bluetooth communication module (for communicating with the intelligent controller 1), or may be the gateway device 2 dedicated for data interaction and processing. The gateway device 2 may also be configured with a separate bluetooth communication module, which may also be integrated with the WIFI communication module.
The terminal 3 may be, for example, a mobile phone, a tablet computer, a vehicle machine, an intelligent appliance, and the like. The terminal 3 may interact with the cloud server 4 as shown in fig. 1, may also interact with the cloud via a WIFI network, and may also interact with the gateway device 2 using bluetooth, in a specific example, the terminal 3 may interact with the cloud server 4 using a mobile network.
The cloud server 4 may be any device or combination of devices that has data storage capability and data processing capability and can interact with the gateway device 2, and the server may be deployed with a required program.
The controlled device 5 may include any household, commercial, and industrial devices, such as a doorbell, an air conditioner, an intelligent curtain, a fan, a refrigerator, a lighting device, a wall switch, and so on; or a terminal 3 device such as a mobile phone, a tablet computer, a vehicle machine, an intelligent household appliance and the like.
The numbers of the intelligent controller 1, the gateway device 2, the terminal 3, the cloud server 4 and the controlled device 5 are not limited to those shown in the figure, and may be any number.
FIG. 2 is a first flowchart illustrating a control method applied to an intelligent controller according to an embodiment of the present invention; referring to fig. 2, the control method based on the intelligent controller includes:
s201: a trigger command is received. The trigger instruction may be generated for the control operation of the intelligent controller, for example, when the intelligent controller is a wireless switch or a wall switch provided with a key, the trigger instruction may be generated by a user pressing the key in the switch; alternatively, when the intelligent controller is a switch with a touch display screen, the trigger instruction may be generated by a user clicking an icon (e.g., a key icon, a contextual model icon, etc.) displayed on the display screen in the switch. In addition, the triggering instruction can also be generated by the intelligent controller receiving a wireless instruction sent by other associated equipment; for example, when the intelligent controller is a wall switch, the triggering instruction may be a wireless instruction sent by a wireless switch paired with the intelligent controller, and when the wall switch receives the wireless instruction sent by the wireless switch paired with the intelligent controller, the wall switch may control the on/off of a line where the wall switch is located, and may further control other linked controlled devices in response to the wireless instruction. The triggering instruction can also be sent by the terminal to the intelligent controller, for example, after the intelligent controller is distributed to join the network, the terminal can display the related information of the intelligent controller, and a user can send the triggering instruction to the intelligent controller displayed on the terminal by clicking the intelligent controller. In some embodiments, if the intelligent controller is a sensor, the trigger command may be generated by the intelligent controller when receiving a sensing signal, for example, when a human presence sensor senses the presence of a human body in a sensing area, a corresponding trigger signal may be generated.
S202: issuing the trigger instruction to enable a control result corresponding to the trigger instruction to be executed; the intelligent controller can be connected with a cloud server through gateway equipment to form a second communication link; under the condition that the second communication link can communicate, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link formed by the gateway equipment; the control result is an executable function of at least one controlled device connected to the gateway device.
In this embodiment, the intelligent controller may access the internet through the gateway device, and then communicate with the cloud server, so as to interact with the cloud server through the second communication link. Meanwhile, the intelligent controller can also communicate with the controlled equipment through the gateway equipment so as to realize interaction with the gateway equipment and/or the controlled equipment through a first communication link. The first communication link is a local area network communication link formed by the gateway device, for example, a local area network communication link formed between a plurality of gateways, a local area network communication link formed between a gateway and a router, and the description of the first communication link is not broken away as long as the local area network is established for communication without interaction with a cloud server, and the scheme of arbitrarily transmitting local signals through the gateway device to realize linkage of the intelligent controller and the controlled device is not broken away from the protection range of the embodiment.
In this embodiment, after the intelligent controller obtains the trigger instruction, the intelligent controller preferentially issues the trigger instruction through the local first communication link under the condition that the intelligent controller can interact with the cloud server through the second communication link, so that a control result corresponding to the trigger instruction is executed. Compared with the prior art that the triggering instruction is sent to the cloud server through the second communication link after the triggering instruction is received by the intelligent controller, data processing is performed by the cloud server, and control is performed based on the second communication link, namely, each linkage control of the intelligent controller needs to perform data interaction to the cloud through the internet, and linkage delay is likely to be caused, so that the user experience in the intelligent home system is affected. In the embodiment, the linkage of the intelligent controller and the controlled equipment is realized preferentially through the established local area network communication link without connecting a cloud server through the internet, so that the response speed of the linkage is improved.
Optionally, in some embodiments, after the intelligent controller obtains the trigger instruction, the intelligent controller may still issue the trigger instruction through the local first communication link when the intelligent controller cannot interact with the cloud server through the second communication link, that is, the network is disconnected, so that the control result corresponding to the trigger instruction is executed. In the embodiment, even if the network is disconnected, the linkage of the intelligent controller and the controlled equipment can be realized through the pre-established local area network communication link, and the practicability is higher.
It should be noted that the control result corresponding to the trigger instruction is an executable function of at least one controlled device connected to the gateway device. In an optional implementation manner, after the intelligent controller obtains the trigger instruction, the intelligent controller may transmit the trigger instruction to the gateway device, or encrypt and encapsulate the trigger instruction and then send the trigger instruction to the gateway device, and the gateway device determines a control result corresponding to the trigger instruction, so that the control result is executed. In another optional implementation manner, after the intelligent controller acquires the trigger instruction, the intelligent controller may determine a control result corresponding to the trigger instruction, 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 may be completely the same as, partially the same as, or associated with the received trigger instruction, and as long as the trigger instruction issued by the intelligent controller enables the corresponding control result to be executed, the protection scope of this embodiment is not broken.
In this embodiment, after receiving the trigger instruction, the intelligent controller issues the trigger instruction through a local area network communication link formed by the gateway device, so as to control the executable function of the controlled device connected to the gateway device in response to the trigger instruction. Because the control in the embodiment is realized based on the local area network communication link formed by the gateway device, and does not depend on the second communication link formed by connecting the intelligent controller with the cloud server through the gateway device, even if the second communication link can communicate, the local control responding to the trigger instruction is realized through the local area network communication link preferentially, so that the linkage control between the intelligent controller and the controlled device is not influenced by unstable network conditions of the internet and network transmission delay, the stability of the linkage control is improved, and the linkage control is realized without interaction between the second communication link and the cloud server every time, and the controlled device is controlled by the cloud server through the second communication link.
Specifically, in some embodiments, the step S202 specifically includes:
issuing the trigger instruction to the gateway equipment so that the gateway equipment 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.
In this embodiment, after the intelligent controller acquires the trigger instruction, the trigger instruction is issued to the gateway device through the first communication link, for example, the trigger instruction may be transmitted to the gateway device through the first communication link, so that the gateway device is used to realize local linkage between the intelligent controller and the controlled device. The gateway device stores a first trigger rule, the first trigger rule defines a mapping relationship between at least one trigger instruction and at least one control result, the trigger instruction is a trigger instruction related to the intelligent controller, the control result is an 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 all that the gateway device can interact through a local area network link, so as to realize local linkage control.
In some embodiments, the first trigger rule is filtered and determined from the second trigger rule. And the second trigger rule defines the mapping relation between at least one trigger instruction and at least one target task, and the mapping relation is freely determined by a user at the terminal.
Since the trigger rule of the intelligent controller is defined in this embodiment, each trigger instruction may be associated with one trigger action of the intelligent controller, for example, the intelligent controller may be a switch, and the trigger instruction may be a pressing action (which may be reset or not reset) of the switch, and the like, or may also be a pressing action (which may be reset or not reset) of a certain key of the switch, 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 above-mentioned target tasks are understood to be: an executable function of a controlled device. The functions related to the target task can comprise opening and closing of the controlled equipment, and on and off of a corresponding switch of the controlled equipment, and can also comprise specific functions of the controlled equipment, such as playing of specific music and videos by certain controlled entertainment equipment, and adjustment of an operating mode and temperature of air conditioning equipment. The controlled device in the target task may be any device capable of directly or indirectly interacting with the cloud server, for example, the controlled device may include a controlled device controlled by the cloud server through the gateway device, and also include a controlled device capable of directly issuing a control instruction by the cloud server.
In one embodiment, 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 embodiment, if the gateway device may also have other control functions, for example, the gateway device may act under the direct control of a corresponding intelligent controller, the trigger instruction may bring the control result of the target task and may also bring the control result of the controlled gateway device itself, for example: if the gateway equipment is an intelligent sound box with a gateway function, the corresponding intelligent sound box can be controlled to play the designated audio through the intelligent controller. In this case, the intelligent controller may implement control for the gateway device, and/or: control for the controlled device may also be achieved.
The control between the above intelligent controller and the controlled device may be any one of the following situations, except for a case where one intelligent controller controls one controlled device: a plurality of intelligent controllers are used for controlling one or more functions of one controlled device; an intelligent controller for controlling one or more functions of each of a plurality of controlled devices; the plurality of intelligent controllers control one or more functions for each of the plurality of controlled devices. It can be seen that any control of the controlled device does not depart from the description of the present embodiment as long as the triggering condition is the control action of the intelligent controller.
The mapping relation referred to above can describe the relation between the trigger instruction and the target task, and any information of the relation between the trigger instructions. For example, for a certain target task and multiple trigger instructions, the mapping relationship may be, for example, that any one of multiple trigger conditions is satisfied to control the target task to be executed, or that all multiple trigger instructions are satisfied to control the target task to be executed. In addition, the trigger action corresponding to the trigger instruction may be a control action of the intelligent controller, or may be an operating state, which is not limited herein. For the mapping relation, the user can define the mapping relation on the terminal through combination or non-combination, so that more complex control effects can be achieved.
In addition, in the defined mapping relationship, a triggered delay time may also be defined, for example: the triggering condition is the closing action of the intelligent controller capable of controlling the on and off of the lamp of the toilet, and the corresponding triggering result can be when ventilation equipment of the toilet stops ventilating, and can be defined to be executed after delaying for 10 minutes.
Further, after a second trigger rule is defined on the terminal, the terminal sends the second trigger rule to a cloud server, and 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 related to the second trigger rule and the first trigger rule are trigger actions related to the intelligent controller, the difference between the second trigger rule and the first trigger rule is that controlled devices are different, and the controlled devices in the target task corresponding to the trigger instructions in the second trigger rule may be devices directly interacting with the cloud server or devices connected to the gateway device, that is, controlled devices that can only be remotely controlled through the cloud server or controlled devices that can be locally controlled through the gateway device. In this embodiment, since the local control is realized through the local lan communication link, the related controlled device may only be a controlled device connected to the gateway device, and for example, the controlled device may include a controlled device in the same lan communication range as the gateway and the router, such as a WiFi device capable of interacting with the router, or a bluetooth mesh device capable of interacting with the gateway. Based on this, the cloud server screens out that the controlled equipment in the target task corresponding to the trigger instruction in the second trigger rule is the controlled equipment which is connected with the gateway equipment and can be locally controlled by the gateway equipment, so as to determine the first trigger rule and send the first trigger rule to the gateway equipment.
The gateway device receives and stores a first trigger rule sent by the cloud server, the first trigger rule defines a mapping relation 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 intelligent controller issues the trigger instruction to the gateway device, the gateway device determines a 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 may 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 a corresponding executable function, so that the control result corresponding to the trigger instruction is executed.
In the embodiment, a local first trigger rule defined by a user is stored in the gateway device, after the intelligent controller sends a trigger instruction to the gateway device, the gateway device can execute the local linkage between the intelligent controller and the controlled device according to the stored first trigger rule without accessing the cloud server through the internet for data interaction, so that the response speed of linkage control is increased, a control result corresponding to the trigger rule is determined through the gateway device and is directly controlled and executed by the gateway device, the data processing workload of the cloud server side is reduced, and the cloud server can respond to other cloud control tasks needing to be executed in a networking manner more quickly.
Further, as shown in fig. 3, in some embodiments, before step S202, the method further includes:
s203, determining whether the trigger instruction is matched with at least one local trigger mark pre-stored by the intelligent controller; each local trigger is used for characterizing a trigger instruction associated with the intelligent controller in the first trigger rule;
if yes, executing S202 and issuing the trigger instruction.
Otherwise, S204 is executed, the triggering instruction is issued through the second communication link, so that the cloud server receives the triggering instruction, determines a target task matched with the triggering instruction from the stored second triggering rules, and controls the target task to be executed, wherein the second triggering rule is defined by the terminal and sent to the cloud server, the second triggering rule defines a 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, and the target task is an executable function of at least one controlled device capable of directly or indirectly interacting with the cloud server.
In this embodiment, after the cloud server determines a first trigger rule according to a second trigger rule and sends the first trigger rule to the gateway device, a local trigger identifier may be generated by the cloud server or the gateway device and sent to the intelligent controller. The local trigger identification is generated by the server or the gateway equipment according to each trigger instruction associated with the intelligent controller in the determined first trigger rule and is used for identifying the first trigger rule taking the intelligent controller as a trigger condition. The local trigger may be a trigger instruction in the first trigger rule, or may be identification information associated with the first trigger rule, or the like. After the intelligent controller receives the trigger instruction, whether the scene corresponding to the current trigger instruction is a local scene or not can be judged according to the stored local trigger identifier, namely whether the scene is matched with the first trigger rule or not. If yes, the triggering instruction can be sent to the gateway device, so that the gateway device executes a control result corresponding to the triggering instruction according to the stored local first triggering rule. If the current trigger instruction is not matched with the trigger instruction, the current trigger instruction is a cloud scene, the current trigger instruction needs to be executed through a cloud server, and the trigger instruction is sent to the cloud server through the second communication link, so that the cloud server executes a control result corresponding to the trigger instruction according to a second trigger rule stored in the cloud server.
In addition, in an optional implementation manner, when the intelligent controller determines that the current scene corresponding to the trigger instruction is a local scene, the trigger instruction may 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, and the cloud server does not execute the control result corresponding to the trigger instruction, and only through the trigger instruction, the current event triggered by the intelligent controller is obtained and displayed on the terminal.
In this embodiment, a local trigger identifier associated with a local first trigger rule is stored in the intelligent controller, and after receiving a trigger instruction, the intelligent controller can determine whether a scene corresponding to a current trigger instruction is a local scene according to the stored local trigger identifier, so as to perform different processing. The step of judging whether the scene is the local scene is set on the intelligent controllers for execution, so that the situation that when each intelligent controller connected with the gateway equipment is triggered, a trigger instruction is transmitted to the gateway equipment indiscriminately can be avoided, and then the gateway equipment judges whether the trigger rules are matched with the local intelligent controllers one by one, and when the number of the intelligent controllers connected with the gateway equipment is large, the data processing workload of the gateway equipment is large, and the response speed of linkage control is influenced.
For example, as shown in fig. 4, in an alternative embodiment, the intelligent controller may be a switch with a touch screen display, the switch may display a plurality of scenario mode icons 41 for the user to click and trigger, and the user may customize the mapping relationship between different scenario mode icons 41 and the target task on the terminal. For example, when the home mode scene icon is triggered, light, air conditioner opening and the like in the target task can be linked; when the away-from-home mode scene icon is triggered, light, an air conditioner and the like in the target task can be linked. 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 rules corresponding to the different contextual model icons 41 may be the second trigger rule in the cloud or the first trigger rule in the local.
When a trigger instruction generated by clicking the contextual model icon 41 displayed by the switch by a user is received, whether the contextual model icon 41 matched with the local first trigger rule is triggered by the user is determined according to a local trigger identifier which is stored in a traverse switch of the trigger instruction and is associated with the local first trigger rule, if yes, 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 the stored first trigger rule, and controls the control result to be executed.
In addition, among the contextual model icons 41 displayed on the switch, the contextual model icon 41 that can prompt the user to customize through the distinguishing identifier belongs to a locally triggered contextual model or a cloud-triggered contextual model, for example, but not limited to, distinguishing the locally triggered contextual model icon or the cloud-triggered contextual model icon through different colors, text identifiers, and the like. The name, pattern, and the like of the scene mode icon 41 can be customized by the user on the terminal.
Further, as shown in fig. 5, in some embodiments, before step S202, the method further includes:
s205, determining whether the first communication link is communicable;
if yes, executing S202 and issuing the trigger instruction.
Otherwise, S206 is executed, the triggering instruction is issued through the second communication link, so that the cloud server receives the triggering instruction, determines a target task matched with the triggering instruction from the stored second triggering rules, and controls the target task to be executed, where the second triggering rule is defined by the terminal and sent to the cloud server, the second triggering rule defines a 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, and the target task is an executable function of at least one controlled device capable of directly or indirectly interacting with the cloud server.
In this embodiment, after the intelligent controller receives the trigger instruction, it may first determine whether the first communication link is communicable, that is, whether the intelligent controller can interact with the controlled device connected to the gateway device through the lan communication link formed by the gateway device. And if so, issuing the trigger instruction to the gateway equipment so that the gateway equipment determines a control result matched with the trigger instruction based on the stored first trigger rule and controls the control result to be executed. If the triggering instruction is not executed, the first communication link is used for sending the triggering instruction to the cloud server, and the cloud server is used for controlling the execution of the control result; for example, the cloud server may directly send a control instruction to the controlled device corresponding to the trigger instruction, or the cloud server may also send a control instruction to one or more gateway devices that can directly or indirectly interact with the controlled device corresponding to the trigger instruction, where multiple gateway devices may have a relay relationship therebetween, so as to control the control result to be executed through other paths that can interact with the controlled device when the first communication link is not communicable.
Specifically, in an optional implementation manner, when determining whether the first communication link is communicable, a heartbeat message may be sent to the gateway device at a specified heartbeat interval for a long time, so that: the gateway equipment sends a feedback message to the intelligent controller according to the heartbeat message; and determining whether the first communication link is communicable according to whether the feedback message is received. The gateway device may also periodically collect status information of the controlled device connected thereto, and periodically send a feedback message to the intelligent controller, so that the intelligent controller knows the communication condition of the first communication link.
In this embodiment, after receiving the trigger instruction, the intelligent controller selectively issues the trigger instruction to the gateway device or the cloud server according to a communication condition of a local area network communication link formed by the gateway device, so as to implement linkage control between the intelligent controller and the controlled device under different conditions, and improve robustness of the intelligent home system while implementing preferential local control.
Further, as shown in fig. 6, in an optional embodiment, the gateway device includes a router 21 and a bluetooth gateway 22, and the intelligent controller is capable of interacting with the router 21 based on a WiFi protocol and connecting a cloud server through the router 21 to form a second communication link, where the first communication link is a local area network communication link formed by the router 21 and the bluetooth gateway 22.
The step S202 includes: sending the trigger instruction to the router 21 based on a WiFi protocol, and sending the trigger instruction to the bluetooth gateway 22 by the router 21, so that the bluetooth gateway 22 determines a control result matching with the trigger instruction based on the stored first trigger rule, and controls the control result to be executed; the first trigger rule defines a mapping relation between at least one trigger instruction 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.
The first communication link in this embodiment is a local area network communication link formed by the router 21 and the bluetooth gateway 22, and the bluetooth gateway 22 stores a first trigger rule, where the corresponding controlled device capable of being locally controlled is located in the same local area network as the router 21 and the bluetooth gateway 22. For example, the controlled device may be a bluetooth mesh device that interacts with the bluetooth gateway 22 via a bluetooth mesh communication protocol; the controlled device may also be a WiFi device that interacts with the router 21 via a WiFi communication protocol. No matter the controlled device is a bluetooth mesh device or a WiFi device, after receiving the trigger instruction, the intelligent controller issues the trigger instruction to the bluetooth gateway 22 through the router 21, and the bluetooth gateway 22 controls the controlled device to execute a corresponding function according to the stored first trigger rule. For example, the bluetooth gateway 22 directly issues a control command to the bluetooth mesh device, or issues a control command to the WiFi device through the router 21, so as to control the control result corresponding to the trigger command to be executed.
In another alternative embodiment, as shown in fig. 7, the gateway device includes a bluetooth gateway 24, and the intelligent controller is capable of interacting with the bluetooth gateway 24 based on a bluetooth protocol and connecting to the cloud server through the bluetooth gateway 24 and at least one router 23 to form a second communication link, where the first communication link is a local area network communication link formed by the bluetooth gateway 24 and the router 23;
the step S202 includes: 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 can interact with the bluetooth gateway 24 based on a bluetooth protocol or interact with the router 23 based on a WiFi protocol.
In this embodiment, the intelligent controller and the controlled device that can support different communication protocols based on the gateway device realize localized linkage control, including but not limited to WiFi devices, bluetooth devices, zigBee devices, etc., and usability and practicality of the intelligent home system are improved.
Referring to fig. 8, fig. 8 is a second flowchart illustrating a control method according to an embodiment of the invention. The embodiment discloses a control method, which is applied to a cloud server, wherein the cloud server can be connected with an intelligent controller through a gateway device to form a second communication link; the control method comprises the following steps:
s701, receiving and storing a second trigger rule sent by a terminal, wherein the second trigger rule defines a mapping relation between at least one trigger instruction and at least one target task, the trigger instruction comprises the trigger instruction of the intelligent controller, and the target task is an executable function of at least one controlled device;
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 equipment receives a trigger instruction issued by the intelligent controller through a first communication link under the condition that the second communication link can communicate, determining a control result matched with the trigger instruction in the stored first trigger rule, and controlling 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.
In some embodiments, after the determining a first trigger rule according to the second trigger rule and sending the first trigger rule to the gateway device, the method further includes:
generating a local trigger identifier according to the determined first trigger rule, and sending the local trigger identifier to the intelligent controller through the gateway equipment; the local trigger identifier is used for characterizing each trigger instruction in the local trigger rule, which is associated with the intelligent controller.
In some embodiments, after the determining a first trigger rule according to the second trigger rule and sending the first trigger rule to the gateway device, the method further includes:
receiving the trigger instruction issued by the intelligent controller through the second communication link, wherein the trigger instruction is sent to the gateway device by the intelligent controller when the trigger instruction is determined not to be matched with a local trigger identifier pre-stored by the intelligent controller or the first communication link is not communicable;
and determining a target task matched with the trigger instruction in the stored second trigger rule, and controlling the target task to be executed, wherein the controlled equipment in the target task can directly or indirectly interact with the server.
In some embodiments, after the determining a first trigger rule according to the second trigger rule and sending the first trigger rule to the gateway device, the method further includes:
receiving a notification message fed back by the gateway equipment, and sending the notification message to a terminal for display; the notification message is used for representing that the control result is executed.
The technical terms, technical features, alternative embodiments and technical effects referred to above can be understood with reference to the description of the embodiment of the control method, and repeated contents are not repeated here.
In this embodiment, after receiving the trigger instruction, the intelligent controller issues the trigger instruction through a local area network communication link formed by the gateway device, so as to control the executable function of the controlled device connected to the gateway device in response to the trigger instruction. Because the control in the embodiment is realized based on the local area network communication link formed by the gateway device, and does not depend on the second communication link formed by connecting the intelligent controller with the cloud server through the gateway device, even if the second communication link can communicate, the local control responding to the trigger instruction is realized through the local area network communication link preferentially, so that the linkage control between the intelligent controller and the controlled device is not influenced by unstable network conditions of the internet and network transmission delay, the stability of the linkage control is improved, and the linkage control is realized without interaction between the second communication link and the cloud server every time, and the controlled device is controlled by the cloud server through the second communication link.
Referring to fig. 9, fig. 9 is a third flowchart illustrating a control method according to an embodiment of the invention. The embodiment discloses a control method, which is applied to a gateway device, wherein the gateway device can interact with an intelligent controller, and the intelligent controller can be connected with a cloud server through the gateway device to form a second communication link; the control method comprises the following steps:
s801, receiving and storing a first trigger rule sent by the cloud server, where 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;
s802, receiving a trigger instruction issued by the intelligent controller through a first communication link under the condition 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; the first communication link is a local area network communication link formed by the gateway device.
In some embodiments, said controlling said control result is performed, including:
and sending a control signal to the controlled equipment in the control result so as to enable the controlled equipment in the control result to execute the corresponding executable function.
In some embodiments, the gateway device comprises a router and a bluetooth gateway, the intelligent controller can interact with the router based on a 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 formed by the router and the bluetooth gateway; the receiving a trigger instruction issued by the intelligent controller through the first communication link under the condition 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 specifically includes:
the router receives the trigger instruction sent by the intelligent controller based on a WiFi protocol, and forwards the trigger instruction to the Bluetooth gateway;
and after receiving the trigger instruction, the Bluetooth gateway determines a control result matched with the trigger instruction based on the stored first trigger rule, and sends a control signal to the controlled equipment corresponding to the control result based on a Bluetooth protocol, so that the controlled equipment executes a corresponding executable function.
In some embodiments, the gateway device comprises a bluetooth gateway, the intelligent controller is capable of interacting with the bluetooth gateway based on a bluetooth protocol and connecting a 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 formed by the bluetooth gateway and the router; the receiving a trigger instruction issued by the intelligent controller through the first communication link under the condition 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 specifically includes:
the Bluetooth gateway receives the trigger instruction sent by the intelligent controller based on a Bluetooth protocol, 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; and the controlled equipment corresponding to the control result can interact with the Bluetooth gateway based on a Bluetooth protocol or interact with the router based on a WiFi protocol.
The technical terms, technical features, alternative embodiments and technical effects referred to above can be understood with reference to the description of the embodiment of the control method, and repeated contents are not repeated here.
In this embodiment, after receiving the trigger instruction, the intelligent controller issues the trigger instruction through a local area network communication link formed by the gateway device, so as to control the executable function of the controlled device connected to the gateway device in response to the trigger instruction. Because the control in the embodiment is realized based on the local area network communication link formed by the gateway device, and does not depend on the second communication link formed by connecting the intelligent controller with the cloud server through the gateway device, even if the second communication link can communicate, the local control responding to the trigger instruction is realized through the local area network communication link preferentially, so that the linkage control between the intelligent controller and the controlled device is not influenced by unstable network conditions of the internet and network transmission delay, the stability of the linkage control is improved, and the linkage control is realized without interaction between the second communication link and the cloud server every time, and the controlled device is controlled by the cloud server through the second communication link.
Referring to fig. 10, fig. 10 is a block diagram of a control device according to an embodiment of the present invention. The control device is applied to an intelligent controller, and the intelligent controller can be connected with a cloud server through a gateway device to form a second communication link; the control device includes:
a first receiving module 901, configured to receive a trigger instruction;
a first sending module 902, configured to issue the trigger instruction, so that a control result corresponding to the trigger instruction is executed; wherein, under the condition that the second communication link can communicate, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link formed by the gateway equipment; the control result is an executable function of at least one controlled device connected to the gateway device.
In some embodiments, the first sending module 902 is specifically configured to:
issuing the trigger instruction to the gateway equipment so that the gateway equipment 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.
In some embodiments, the first sending module 902 is further configured to:
determining whether the trigger instruction matches at least one local trigger pre-stored by the intelligent controller; each local trigger is used for characterizing a trigger instruction in the first trigger rule, which is associated with the intelligent controller; and if so, issuing the trigger instruction.
In some embodiments, the first receiving module 901 is further configured to:
receiving and storing a local trigger sent by the cloud server or the gateway equipment; the local trigger identifier is generated by the server or the gateway device according to each trigger instruction associated with the intelligent controller in the 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 is sent to the gateway device.
In some embodiments, the first sending module 902 is further configured to:
if the trigger instruction is determined not to be matched with a local trigger identifier pre-stored by the intelligent controller, the trigger instruction is issued through the second communication link, so that the cloud server receives the trigger instruction, determines a target task matched with 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 is sent to the cloud server, the second trigger rule defines a mapping relation between at least one trigger instruction and at least one target task, the trigger instruction comprises 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.
In some embodiments, the first sending module 902 is further configured to:
and determining whether the first communication link is communicable, and if so, issuing the trigger instruction to the gateway equipment so as to control a control result corresponding to the trigger instruction to be executed based on the first communication link.
In some embodiments, the first sending module 902 is further configured to:
if the first communication link is determined to be incommunicable, the triggering instruction is issued through the second communication link, so that the cloud server receives the triggering instruction, determines a target task matched with the triggering instruction in a stored second triggering rule, and controls the target task to be executed, wherein the second triggering rule is defined by a terminal and is sent to the cloud server, the second triggering rule defines a mapping relation between at least one triggering instruction and at least one target task, the triggering instruction comprises the triggering 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.
In some embodiments, the determining, by the first sending module 902, whether the first communication link is communicable includes:
sending heartbeat messages to the gateway equipment at a specified heartbeat interval time length every interval so as to ensure that: the gateway equipment sends a feedback message to the intelligent controller according to the heartbeat message;
and determining whether the first communication link is communicable according to whether the feedback message is received.
In some embodiments, the gateway device includes a router and a bluetooth gateway, the intelligent controller is capable of interacting with the router based on WiFi protocol and connecting a cloud server through the router to form a second communication link, and the first communication link is a local area network communication link formed by the router and the bluetooth gateway;
the first sending module 902 is specifically configured to:
sending the trigger instruction to the router based on a WiFi protocol, and sending the trigger instruction to the Bluetooth gateway by the router, so that the Bluetooth gateway 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; and the controlled equipment corresponding to the control result interacts with the Bluetooth gateway based on a Bluetooth protocol.
In some embodiments, the gateway device includes a bluetooth gateway, the smart controller is capable of interacting with the bluetooth gateway based on a bluetooth protocol and connecting to 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 formed by the bluetooth gateway and the router;
the first sending module 902 is specifically configured to:
sending the trigger instruction to the Bluetooth gateway based on a Bluetooth protocol so that the Bluetooth gateway determines a control result matched with the trigger instruction based on the stored first trigger rule and controls the control result to be executed; the first trigger rule defines a mapping relation 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 a Bluetooth protocol or interact with the router based on a WiFi protocol.
The technical terms, technical features, alternative embodiments and technical effects referred to above can be understood by referring to the description related to the embodiment of the control method, and repeated contents are not repeated here.
In this embodiment, after receiving the trigger instruction, the intelligent controller issues the trigger instruction through a local area network communication link formed by the gateway device, so as to control the executable function of the controlled device connected to the gateway device in response to the trigger instruction. Because the control in the embodiment is realized based on the local area network communication link formed by the gateway device, and does not depend on the second communication link formed by connecting the intelligent controller with the cloud server through the gateway device, even if the second communication link can communicate, the local control responding to the trigger instruction is realized through the local area network communication link preferentially, so that the linkage control between the intelligent controller and the controlled device is not influenced by unstable network conditions of the internet and network transmission delay, the stability of the linkage control is improved, and the linkage control is realized without interaction between the second communication link and the cloud server every time, and the controlled device is controlled by the cloud server through the second communication link.
Referring to fig. 11, fig. 11 is a block diagram of a control device according to an embodiment of the present invention. The control device is applied to a cloud server, and the cloud server can be connected with the intelligent controller through gateway equipment to form a second communication link; the control device includes:
a second receiving module 1001, configured to receive and store a second trigger rule sent by a terminal, where the second trigger rule defines a mapping relationship between at least one trigger instruction and at least one target task, where 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;
a second sending module 1002, 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: after the gateway device receives a trigger instruction issued by the intelligent controller through a first communication link under the condition that the second communication link can communicate, determining a control result matched with the trigger instruction in the stored first trigger rule, and controlling 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.
Referring to fig. 12, fig. 12 is a block diagram of a control device in accordance with an embodiment of the present invention. The control device is applied to gateway equipment, the gateway equipment can interact with an intelligent controller, and the intelligent controller can be connected with a cloud server through the gateway equipment to form a second communication link; the control device includes:
a third receiving module 1101, configured to receive and store a first trigger rule sent by the cloud server, where 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;
an execution module 1102, configured to receive a trigger instruction issued by the intelligent controller through a first communication link when the second communication link is communicable, determine a control result matching 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.
The functions or operation steps of the program modules implemented when executed are substantially the same as those of the embodiments, and are not described herein again.
Referring to fig. 13, fig. 13 is a schematic structural diagram of an intelligent device according to an embodiment of the present invention. The present embodiment provides a smart device 12, including:
a processor 121; and the number of the first and second groups,
a memory 122 for storing a program of the processor;
wherein the processor 121 is configured to perform the steps of the above-mentioned method via execution of the program.
The processor 122 is capable of communicating with the memory 122 via a bus 123.
The present embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-referenced method.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.
Claims (22)
1. The control method is applied to an intelligent controller, and is characterized in that the intelligent controller can be connected with 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 to enable a control result corresponding to the trigger instruction to be executed;
wherein, under the condition that the second communication link can communicate, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link formed by the gateway equipment; the control result is an executable function of at least one controlled device connected to the gateway device.
2. The control method according to claim 1, wherein the issuing of the trigger instruction specifically includes:
issuing the trigger instruction to the gateway device, so that the gateway device 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.
3. The control method according to claim 2, before issuing the trigger instruction, further comprising:
determining whether the trigger instruction matches at least one local trigger pre-stored by the intelligent controller; each local trigger is used for characterizing a trigger instruction associated with the intelligent controller in the first trigger rule; if yes, the trigger instruction is issued.
4. The control method according to claim 2 or 3, characterized by further comprising:
receiving and storing a local trigger sent by the cloud server or the gateway equipment; the local trigger identification is generated by the server or the gateway device according to each trigger instruction associated with the intelligent controller in the 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 is sent to the gateway device.
5. The control method according to claim 3, wherein if it is determined that the trigger instruction does not match a local trigger identifier pre-stored in the intelligent controller, the trigger instruction is issued through the second communication link, so that the cloud server receives the trigger instruction, determines a target task matching the trigger instruction from 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 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.
6. The control method according to claim 2 or 3, further comprising, before issuing the trigger instruction:
and determining whether the first communication link is communicable, and if so, issuing the trigger instruction to the gateway equipment so as to control a control result corresponding to the trigger instruction to be executed based on the first communication link.
7. The control method according to claim 6, characterized by further comprising:
if the first communication link is determined to be incommunicable, the triggering instruction is issued through the second communication link, so that the cloud server receives the triggering instruction, determines a target task matched with the triggering instruction in a stored second triggering rule, and controls the target task to be executed, wherein the second triggering rule is defined by a terminal and is sent to the cloud server, the second triggering rule defines a mapping relation between at least one triggering instruction and at least one target task, the triggering instruction comprises the triggering 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.
8. The method according to claim 6, wherein the determining whether the first communication link is communicable specifically comprises:
sending heartbeat messages to the gateway equipment at a specified heartbeat interval time length every interval so as to ensure that: the gateway equipment sends a feedback message to the intelligent controller according to the heartbeat message;
and determining whether the first communication link is communicable according to whether the feedback message is received.
9. The control method according to any one of claims 1 to 3, wherein the gateway device comprises a router and a Bluetooth gateway, the intelligent controller is capable of interacting with the router based on a wireless fidelity (WiFi) protocol and is connected with a cloud server through the router to form a second communication link, and the first communication link is a local area network communication link formed by the router and the Bluetooth gateway;
the issuing of the trigger instruction includes:
sending the trigger instruction to the router based on a WiFi protocol, and sending the trigger instruction to the Bluetooth gateway by the router, so that the Bluetooth gateway 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; and the controlled equipment corresponding to the control result interacts with the Bluetooth gateway based on a Bluetooth protocol.
10. The control method according to any one of claims 1 to 3, wherein the gateway device comprises a Bluetooth gateway, the intelligent controller is capable of interacting with the Bluetooth gateway based on a Bluetooth protocol and is connected to 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 formed by the Bluetooth gateway and the router;
the issuing of the trigger instruction includes:
sending the trigger instruction to the Bluetooth gateway based on a Bluetooth protocol so that the Bluetooth gateway 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 can interact with the Bluetooth gateway based on a Bluetooth protocol or interact with the router based on a WiFi protocol.
11. An intelligent controller is characterized in that the intelligent controller can be connected with a cloud server through a gateway device to form a second communication link; the intelligent controller includes:
the first receiving module is used for receiving a trigger instruction;
the first sending module is used for issuing the trigger instruction so as to enable a control result corresponding to the trigger instruction to be executed; wherein, under the condition that the second communication link can communicate, the trigger instruction is issued through the first communication link; the first communication link is a local area network communication link formed by the gateway equipment; the control result is an executable function of at least one controlled device connected to the gateway device.
12. The intelligent controller according to claim 11, wherein the first sending module is specifically configured to:
issuing the trigger instruction to the gateway device, so that the gateway device 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.
13. The intelligent controller according to claim 12, wherein the first sending module is further configured to:
determining whether the trigger instruction matches at least one local trigger pre-stored by the intelligent controller; each local trigger is used for characterizing a trigger instruction associated with the intelligent controller in the first trigger rule; if yes, the trigger instruction is issued.
14. The intelligent controller according to claim 12 or 13, wherein the first receiving module is further configured to:
receiving and storing a local trigger sent by the cloud server or the gateway equipment; the local trigger identifier is generated by the server or the gateway device according to each trigger instruction associated with the intelligent controller in the determined first trigger rule; the first trigger rule is determined by the cloud server according to a second trigger rule defined on a terminal and is sent to the gateway device.
15. The intelligent controller according to claim 13, wherein the first sending module is further configured to:
and if the trigger instruction is determined not to be matched with a local trigger identifier pre-stored in the intelligent controller, issuing the trigger instruction through the second communication link, so that the cloud server receives the trigger instruction, determines a target task matched with 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 is sent to the cloud server, the second trigger rule defines the mapping relation between at least one trigger instruction and at least one target task, the trigger instruction comprises 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.
16. The intelligent controller according to claim 12 or 13, wherein the first sending module is further configured to:
and determining whether the first communication link is communicable, and if so, issuing the trigger instruction to the gateway equipment so as to control a control result corresponding to the trigger instruction to be executed based on the first communication link.
17. The intelligent controller of claim 16, wherein the first sending module is further configured to:
if the first communication link is determined to be incommunicable, the triggering instruction is issued through the second communication link, so that the cloud server receives the triggering instruction, determines a target task matched with the triggering instruction in a stored second triggering rule, and controls the target task to be executed, wherein the second triggering rule is defined by a terminal and is sent to the cloud server, the second triggering rule defines a mapping relation between at least one triggering instruction and at least one target task, the triggering instruction comprises the triggering 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.
18. The intelligent controller according to claim 16, wherein the first sending module determines whether the first communication link is communicable, specifically comprises:
sending heartbeat messages to the gateway equipment every time a specified heartbeat interval duration so as to enable: the gateway equipment sends a feedback message to the intelligent controller according to the heartbeat message;
and determining whether the first communication link is communicable according to whether the feedback message is received.
19. The intelligent controller according to any one of claims 11-13, wherein the gateway device comprises a router and a bluetooth gateway, the intelligent controller is capable of interacting with the router based on WiFi protocol and connecting a cloud server through the router to form a second communication link, and the first communication link is a local area network communication link formed by the router and the bluetooth gateway;
the first sending module is specifically configured to:
sending the trigger instruction to the router based on a WiFi protocol, and sending the trigger instruction to the Bluetooth gateway by the router, so that the Bluetooth gateway determines a control result matched with the trigger instruction based on the stored first trigger rule and controls the control result to be executed; the first trigger rule defines a mapping relation between at least one trigger instruction and at least one control result; and the controlled equipment corresponding to the control result interacts with the Bluetooth gateway based on a Bluetooth protocol.
20. The intelligent controller according to any one of claims 11 to 13, wherein the gateway device comprises a bluetooth gateway, and the intelligent controller is capable of interacting with the bluetooth gateway based on a bluetooth protocol and connecting to 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 formed by the bluetooth gateway and the router;
the first sending module is specifically configured to:
sending the trigger instruction to the Bluetooth gateway based on a Bluetooth protocol so that the Bluetooth gateway 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 can interact with the Bluetooth gateway based on a Bluetooth protocol or interact with the router based on a WiFi protocol.
21. A smart device, comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to: when executed, implement the steps in any of the control methods of claims 1 to 10.
22. A control system comprising the intelligent controller, the gateway device and the cloud server of any one of claims 11 to 20.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211459686.1A CN115903596A (en) | 2022-11-16 | 2022-11-16 | Control method, intelligent controller, intelligent device and control system |
PCT/CN2023/106697 WO2024103809A1 (en) | 2022-11-16 | 2023-07-11 | Control method, intelligent controller, intelligent device and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211459686.1A CN115903596A (en) | 2022-11-16 | 2022-11-16 | Control method, intelligent controller, intelligent device and control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115903596A true CN115903596A (en) | 2023-04-04 |
Family
ID=86489086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211459686.1A Pending CN115903596A (en) | 2022-11-16 | 2022-11-16 | Control method, intelligent controller, intelligent device and control system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115903596A (en) |
WO (1) | WO2024103809A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024103809A1 (en) * | 2022-11-16 | 2024-05-23 | 武汉领普科技有限公司 | Control method, intelligent controller, intelligent device and control system |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106054659A (en) * | 2016-08-19 | 2016-10-26 | 江苏达伦电子股份有限公司 | Intelligent household method and intelligent household system |
WO2018176310A1 (en) * | 2017-03-30 | 2018-10-04 | 深圳市欸阿技术有限公司 | Smart home system based on cloud platform, and control method |
CN109189698B (en) * | 2018-08-10 | 2021-04-30 | 深圳绿米联创科技有限公司 | Equipment control method and device and Internet of things system |
CN109445292B (en) * | 2018-10-22 | 2023-11-10 | 深圳绿米联创科技有限公司 | Automatic execution result collection method, device, system and storage medium |
CN110737203A (en) * | 2019-11-20 | 2020-01-31 | 四川虹美智能科技有限公司 | Intelligent household appliance management system and method and Bluetooth gateway |
CN111277610B (en) * | 2020-02-24 | 2022-09-06 | 中移(杭州)信息技术有限公司 | Gateway control system, method, intelligent device and intelligent device server |
CN111766788A (en) * | 2020-06-01 | 2020-10-13 | 珠海格力电器股份有限公司 | Intelligent household control method and device |
CN115903596A (en) * | 2022-11-16 | 2023-04-04 | 武汉领普科技有限公司 | Control method, intelligent controller, intelligent device and control system |
-
2022
- 2022-11-16 CN CN202211459686.1A patent/CN115903596A/en active Pending
-
2023
- 2023-07-11 WO PCT/CN2023/106697 patent/WO2024103809A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024103809A1 (en) * | 2022-11-16 | 2024-05-23 | 武汉领普科技有限公司 | Control method, intelligent controller, intelligent device and control system |
Also Published As
Publication number | Publication date |
---|---|
WO2024103809A1 (en) | 2024-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111221273B (en) | Control method, system, gateway, wall switch and cloud based on wireless switch | |
EP2744152B1 (en) | User terminal apparatus, network apparatus for enabling an intelligent communication, and control method thereof | |
KR100559023B1 (en) | Home network system and its configuration system | |
US20220239622A1 (en) | Efficient Network Stack for Wireless Application Protocols | |
CN105681142B (en) | networking system and networking method | |
TW201110067A (en) | Methods and apparatus for a universal device controller using peer to peer communication | |
WO2020168568A1 (en) | Data processing method and apparatus, electronic device and readable storage medium | |
WO2024103809A1 (en) | Control method, intelligent controller, intelligent device and control system | |
CN115343962A (en) | Intelligent household appliance control method and system, intelligent screen and storage medium | |
CN115277280A (en) | Control method of intelligent household equipment and control method of server | |
CN109981424B (en) | Linkage scheme processing method and device, electronic equipment and storage medium | |
US20210367838A1 (en) | System and method for distributed home automation control | |
JP2012129916A (en) | Communication device | |
Al-Qutayri et al. | A framework for an end-to-end secure wireless smart home system | |
CN115720221A (en) | Rule-based attribute discovery | |
CN113745056A (en) | Switch control method, switch control device, switch and computer readable storage medium | |
CN113965460B (en) | Method and device for preventing error reset, intelligent device and storage medium | |
CN110160219A (en) | Air conditioning system and control method thereof, air conditioner and control method of intelligent household appliance system | |
CN117201551B (en) | Building information processing method based on Internet of things | |
US20240121128A1 (en) | Dynamic Provisioning of IoT Devices From an Online Application Marketplace | |
CN114095914B (en) | Doorbell control method, receiver, transmitter and storage medium | |
AU2019208161B2 (en) | A system for configuring a control application of a mesh network of connected devices | |
CN113745055A (en) | Working mode setting method and switch, switch system control method and switch system | |
CN113745057A (en) | Switch control method, device, switch and computer readable storage medium | |
CN115312048A (en) | Equipment awakening method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |