CN109981424B - Linkage scheme processing method and device, electronic equipment and storage medium - Google Patents

Linkage scheme processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109981424B
CN109981424B CN201910185739.7A CN201910185739A CN109981424B CN 109981424 B CN109981424 B CN 109981424B CN 201910185739 A CN201910185739 A CN 201910185739A CN 109981424 B CN109981424 B CN 109981424B
Authority
CN
China
Prior art keywords
execution
linkage scheme
devices
action
actions
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.)
Active
Application number
CN201910185739.7A
Other languages
Chinese (zh)
Other versions
CN109981424A (en
Inventor
黄灿武
游延筠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lutuo Technology Co Ltd
Original Assignee
Shenzhen Lutuo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Lutuo Technology Co Ltd filed Critical Shenzhen Lutuo Technology Co Ltd
Priority to CN201910185739.7A priority Critical patent/CN109981424B/en
Publication of CN109981424A publication Critical patent/CN109981424A/en
Application granted granted Critical
Publication of CN109981424B publication Critical patent/CN109981424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/41855Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication by local area network [LAN], network structure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention discloses a method and a device for processing a linkage scheme, electronic equipment and a storage medium. The method comprises the following steps: the method comprises the steps that a first linkage scheme is obtained by a first device, wherein the first linkage scheme comprises a plurality of execution actions, a plurality of execution devices corresponding to the execution actions are obtained respectively, whether the execution devices belong to the same local area network or not is judged, and when the execution devices do not belong to the same local area network, preset operation is executed on the first linkage scheme. According to the invention, whether the multiple execution devices of the linkage scheme belong to the same local area network is judged, and corresponding operation is executed on the linkage scheme corresponding to the multiple execution devices which do not belong to the same local area network, so that the linkage scheme related to the multiple execution devices is simplified, and the efficiency of executing the linkage scheme is improved.

Description

Linkage scheme processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of smart home, in particular to a linkage scheme processing method and device, electronic equipment and a storage medium.
Background
For equipment control in the intelligent home system, the method can be applied to automatic linkage to control the equipment. With the increase of the number of the intelligent sensor devices, the playability of the intelligent household product is enhanced, and meanwhile, the phenomenon that the processing is difficult due to localization of an automatic linkage scheme is caused.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for linkage scheme processing, so as to improve the foregoing problems.
In a first aspect, an embodiment of the present invention provides a method for processing a linkage scheme, where the method includes: a first device acquires a first linkage scheme, wherein the first linkage scheme comprises a plurality of execution actions; respectively acquiring a plurality of executing devices corresponding to the executing actions; judging whether the executing devices belong to the same local area network or not; and when the plurality of executing devices do not belong to the same local area network, executing preset operation on the first linkage scheme.
In a second aspect, an embodiment of the present invention provides an apparatus for processing a linkage scheme, where the apparatus includes: the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first linkage scheme by first equipment, and the first linkage scheme comprises a plurality of execution actions; a second obtaining module, configured to obtain a plurality of execution devices corresponding to the plurality of execution actions, respectively; the judging module is used for judging whether the executing devices belong to the same local area network or not; and the execution module is used for executing preset operation on the first linkage scheme when the plurality of execution devices do not belong to the same local area network.
In a third aspect, an embodiment of the present invention provides an electronic device, including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a program code is stored, and the program code may be called by a processor to execute the method.
According to the method, the device, the electronic device and the storage medium for processing the linkage scheme, the first device acquires the first linkage scheme, wherein the first linkage scheme comprises a plurality of execution actions, a plurality of execution devices corresponding to the execution actions are acquired respectively, whether the execution devices belong to the same local area network or not is judged, and when the execution devices do not belong to the same local area network, preset operation is executed on the first linkage scheme. Therefore, whether the multiple execution devices of the linkage scheme belong to the same local area network or not is judged, and corresponding operation is executed on the linkage scheme corresponding to the multiple execution devices which do not belong to the same local area network, so that the linkage scheme related to the multiple execution devices is simplified, and the execution efficiency of the linkage scheme is improved.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating an application environment of a linkage scheme processing method according to an embodiment of the present invention;
FIG. 2 is a flow diagram illustrating a method of linkage scheme processing provided by one embodiment of the present invention;
FIG. 3 is a flow diagram illustrating a method of linkage scheme processing provided by yet another embodiment of the present invention;
FIG. 4 is a flow diagram illustrating a method of linkage scheme processing provided by yet another embodiment of the present invention;
FIG. 5 is a flow chart illustrating step S330 of the method of linkage scheme processing provided by the embodiment of the present invention shown in FIG. 4;
FIG. 6 is another flow chart diagram illustrating step S330 of the method of linkage scheme processing provided by the embodiment of the present invention illustrated in FIG. 4;
FIG. 7 is a block diagram illustrating the structure of a linkage scheme processing apparatus provided by an embodiment of the present invention;
FIG. 8 is a block diagram of an electronic device for performing a method of linkage scheme processing according to an embodiment of the invention;
fig. 9 illustrates a storage unit for storing or carrying program codes for implementing a method of linkage scheme processing according to 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.
At present, smart homes are more and more popular families, users can purchase home devices according to own needs, remote control, linkage control and other automatic configurations of the home devices are achieved through the internet of things technology, and the users can control the home devices or set a linkage scheme for running of the home devices through application programs on mobile terminals. In order to reduce the dependence of the work of the intelligent home system on a certain server and a certain gateway device, currently, a user issues a linkage scheme to a local device as far as possible to execute the linkage scheme. However, if the execution action of the linkage scheme involves many execution devices and some suitable processing mechanisms are not applied, it is difficult to more thoroughly implement localization of the automated linkage scenario.
Based on the above problems, the inventor has found that, after a series of researches on a method for processing a linkage scheme involving multiple execution devices by a smart home at present, in order to solve the problem of localization of the linkage scheme involving the multiple execution devices, the linkage scheme involving the multiple execution devices can be simplified and implemented, so that the linkage scheme involving the multiple execution devices can be further issued, localization of the intelligent linkage scheme can be more thoroughly implemented, and stability of a smart home system can be enhanced.
Therefore, the present inventors propose a method, an apparatus, an electronic device, and a storage medium for processing a linkage scheme according to embodiments of the present invention, which determine whether multiple execution devices of the linkage scheme belong to the same lan, and perform corresponding operations on a linkage scheme corresponding to multiple execution devices that do not belong to the same lan, thereby simplifying a linkage scheme involving multiple execution devices and improving efficiency of executing the linkage scheme.
An application environment in which the present invention is directed will be described.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment suitable for the embodiment of the invention. The method for processing the linkage scheme provided by the embodiment of the invention can be applied to the intelligent home system 10 shown in fig. 1. The smart home system 10 includes a gateway 110, a server 120, and a home device (sub-device) 130. The server 120 may be a traditional server or a cloud server, which is not limited herein. The number of the gateways 110 is at least one, wherein the servers 120 are respectively connected with the at least one gateway 110, for example, the servers 120 can be respectively connected with the at least one gateway 110 in a communication manner through a wireless network based on a router to perform data interaction between the servers 120 and the gateways 110.
Further, in the smart home system 10, a home device 130 may be further included, wherein the home device 130 may include, but is not limited to, a door and window sensor, a smart switch, a lamp, an air conditioner, a curtain, a television, a refrigerator, and a fan. The number of the home devices 130 is at least one, and the at least one home device 130 is respectively connected to the at least one gateway 110, for example, one gateway 110 is connected to a plurality of home devices 130, which is not limited herein. The gateway 110 and the home device 130 may be connected through bluetooth, Wifi, or ZigBee.
Further, in the intelligent control system 10, a mobile terminal 140 may be further included, wherein the mobile terminal 140 is connected to the gateway 110 through a wireless network, and the mobile terminal may include a personal computer, a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. In one way, the mobile terminal 140 is used for interaction with a user, so that the user can communicate with the gateway 110 wirelessly based on the router through the mobile terminal 140. In addition, the user can add an account information at the same time between the gateway 110 and the mobile terminal 140, and the information synchronization between the gateway 110 and the mobile terminal 140 is realized through the account information.
Specifically, the smart home system 10 may execute the following scenario, for example, the home device 130 may include a door and window sensor and an intelligent switch, and if it is required to implement an intelligent device linkage scheme, "open the door and window and turn on the light", where the triggering condition is "open the door and window", the execution action is "turn on the light", and at this time, based on the intelligent device linkage scheme, the triggering device is the door and window sensor, and the execution device is the intelligent switch, where the intelligent switch is connected to the light. The intelligent device linkage scheme may be stored locally in the gateway 110, or may be stored in the server 120, and a path for executing the intelligent device linkage scheme may be through a local area network or a wide area network, where:
if the intelligent device linkage scheme is executed locally at the gateway 110 through the local area network path, the door and window sensor senses that the door and window is opened, an event that the door and window is opened is reported to the gateway 110, and after the gateway 110 receives the event, the electronic device corresponding to the execution action in the intelligent device linkage scheme is found according to the stored intelligent device linkage scheme, in this embodiment, the electronic device is an intelligent switch, and the intelligent switch is notified to control the turning on of the light, so that the intelligent device linkage scheme that the light is turned on when the door and window is opened is realized.
If the intelligent device linkage scheme is executed on the server 120 through the wide area network path, the door and window sensor senses that the door and window is opened, an event that the door and window is opened is reported to the gateway 110, the gateway 110 reports the event to the server 120 after receiving the event, and the server 120 finds the electronic device corresponding to the execution action in the intelligent device linkage scheme according to the stored intelligent device linkage scheme, namely the intelligent switch in the embodiment, and informs the intelligent switch to control the turning on of the light through the gateway 110, so that the intelligent device linkage that the light is turned on when the door and window are opened is realized.
Further, after the light is turned on, the execution result of the successful light-on may be fed back to the gateway 110, and after the gateway 110 receives the information, the current time, the intelligent device linkage scheme, and the execution result of the intelligent device linkage scheme are reported to the server 120 and stored by the server 120.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flow chart illustrating a method for processing a linkage scheme according to an embodiment of the invention. As will be explained in detail below with respect to the embodiment shown in fig. 2, the method may specifically include the following steps:
step S110: a first device acquires a first linkage scheme, wherein the first linkage scheme includes a plurality of performance actions.
In this embodiment, the first linkage scheme refers to a linkage application constructed between gateways or sub-devices connected to the gateways, where the first linkage scheme includes a trigger condition and an execution action, and the devices in the first linkage scheme include a trigger device and an execution device, where the trigger device is configured to respond to the trigger condition, and the execution device is configured to execute the execution action based on the trigger condition responded by the trigger device.
Specifically, the triggering device may be various sensors such as a pressure sensor, a temperature sensor, a humidity sensor, a door and window sensor, or a smoke sensor, and the executing device may be a switch, a socket, a lamp, an infrared emitting device, or a camera device. And when the trigger equipment meets the trigger condition, the gateway controls the execution equipment to execute corresponding execution action. When the current home scene meets a specific condition, a specific operation is executed, for example, a user pushes a door open, and then a light is turned on.
In a specific application scenario, for example, a user sets a first linkage scheme as "open the door and then turn on the light", the triggering condition of the scheme is to open the door, the execution action is to control the light to be turned on by the intelligent switch, specifically, the triggering device is a door and window sensor, the intelligent switch connected with the light is the execution device, and the light and the intelligent switch can be connected and communicated in a wired or wireless manner. At this time, when the door and window sensor senses that the door is opened, the door and window sensor reports the event to the gateway, and after the gateway receives the event that the door and the window are opened, the gateway notifies the execution device in the first linkage scheme of executing the execution action included in the scheme according to the preset intelligent device linkage scheme.
In this embodiment, the first linkage scheme may be stored in the mobile terminal, may also be stored in the gateway, and may also be stored in the cloud. The first device may be a processing device with good computing capability and sufficient memory resources, such as a cloud, a gateway, and the like, and the first device may acquire the first linkage scheme, may be a linkage scheme in which the first device acquires data stored locally in the mobile terminal, and may also be a linkage scheme in which the first device extracts data stored in the gateway or the cloud.
In this embodiment, further, the first linkage scheme may include a plurality of execution actions. For example, a first linkage scheme a is obtained as "(a human body sensor of the entrance detects that a person moves and the current time is six to eight nights), then (a window is opened and an air conditioner is opened and a humidifier is opened))", then scheme a includes three execution actions of "open the window", "open the air conditioner", and "open the humidifier".
Step S120: and respectively acquiring a plurality of executing devices corresponding to the executing actions.
In this embodiment, after acquiring the first linkage scheme, the first device may further acquire a plurality of execution devices corresponding to a plurality of execution actions in the first linkage scheme, where the execution devices are configured to execute the corresponding execution actions based on a trigger condition that triggers a device response. For example, a first linkage scheme a "(a human body sensor of the entrance detects that a person moves and the current time is six to eight nights), then (window is opened and air conditioner is opened and humidifier is opened)", then scheme a includes three execution actions of "open window", "open air conditioner", and "open humidifier". For example, the execution device corresponding to the execution action "open a window" may be a window, the execution device corresponding to the execution action "open an air conditioner" may be an air conditioner, and the execution device corresponding to the execution action "open a humidifier" may be a humidifier, so that three execution devices, namely, the window, the air conditioner, and the humidifier, may be further acquired. The execution device corresponding to the execution action may also be a controller for controlling the main device corresponding to the execution action, for example, the execution device corresponding to the execution action "turn on the air conditioner" may be an air conditioner companion, and the execution device corresponding to the execution action "turn on the humidifier" may be a humidifier remote control device, so that the execution devices such as the air conditioner companion and the humidifier remote control device may be further acquired.
Step S130: and judging whether the executing devices belong to the same local area network or not.
In this embodiment, after acquiring the multiple execution devices corresponding to the multiple execution actions, the first device may further determine whether the multiple execution devices belong to the same local area network. The method for determining whether the multiple execution devices belong to the same local area network can be achieved by determining whether the multiple execution devices are connected to the same router or the same gateway. For example, a first linkage scheme a "acquired by the first device (the human body sensor of the entrance detects that a person moves and the current time is six to eight nights), and then (the window is opened and the air conditioner is opened and the humidifier is opened)" the first linkage scheme a includes three execution devices, and is the window, the air conditioner and the humidifier respectively. The method for judging the local area network comprises the steps of judging whether three execution devices, namely the window, the air conditioner and the humidifier, belong to the same local area network or not, and judging whether the three execution devices, namely the window, the air conditioner and the humidifier, are connected to the same router or the same gateway or not.
As a manner, whether the multiple execution devices belong to the same local area network may be determined, and whether one execution device of the multiple execution devices can receive information of another execution device may also be determined, in this embodiment, for convenience of description, two execution devices of the multiple execution devices are explained.
The plurality of execution devices may include a first execution device and a second execution device, where the first execution device and the second execution device may be any two execution devices of the plurality of execution devices, the first execution device may send instruction information including an IP address of the second execution device to the first execution device, the IP address is an IP address inside a local area network, and the first execution device sends the request packet according to the IP address in a manner of sending the request packet inside the local area network without passing through an external Internet network. When the second execution device receives the request message sent by the first execution device, the second execution device may further send first feedback information to the first execution device to indicate that the second execution device has received the request message sent by the first execution device, and the first execution device may determine whether the first execution device and the second execution device belong to the same local area network by determining whether the first execution device receives the first feedback information. When the first execution device receives the first feedback information sent by the second execution device, it may be determined that the first execution device and the second execution device belong to the same local area network.
As another mode, it may also be determined whether multiple execution devices belong to the same local area network by respectively determining whether one execution device of the multiple execution devices can receive information of another execution device, and whether the received ID information matches. In the present embodiment, for convenience of description, explanation is made with two execution apparatuses among a plurality of execution apparatuses.
The plurality of execution devices may include a first execution device and a second execution device, where the first execution device and the second execution device may be any two execution devices of the plurality of execution devices. The first device may send instruction information including ID information and an IP address of the second execution device to the first execution device, where the IP address is an IP address in a local area network, and the first execution device sends the request packet according to the IP address in a manner of sending the request packet through the local area network without passing through an external Internet network, where the request packet carries the ID information of the second execution device sent by the first device. When receiving the request message, the second execution device may further determine whether the ID information in the request message is consistent with the ID information of the second execution device, so as to improve the accuracy of the method for determining whether the two execution devices belong to the same local area network while verifying whether the ID information and the IP address of the second execution device stored in the first device are correct. When the first execution device and the second execution device are consistent, the second execution device may send the second feedback information to the first execution device, and the first execution device may determine whether the first execution device and the second execution device belong to the same local area network by determining whether the first execution device receives the second feedback information. When the first execution device receives the second feedback information sent by the second execution device, it may be determined that the first execution device and the second execution device belong to the same local area network. For example, the first device sends instruction information to the first execution device a, where the ID of the second execution device B in the instruction information is B, and the IP address is 10, the first execution device a may send a request packet to a device with the IP address of 10. After receiving the request message, the device with the IP address of 10 may determine whether its ID is B, and when the ID of the device with the IP address of 10 is B, may send second feedback information to the first execution device a, and may determine that the first execution device a and the second execution device B belong to the same local area network.
Step S140: and when the plurality of executing devices do not belong to the same local area network, executing preset operation on the first linkage scheme.
In this embodiment, whether the multiple execution devices belong to the same lan may be determined according to the method mentioned in step S130, and when the multiple execution devices do not belong to the same lan, a preset operation may be performed on the first linkage scheme. The preset operation may be that the first device executes the first linkage scheme, or that the first device transmits the first linkage scheme to the adjacent node device based on the downlink communication path, or that the first linkage scheme is split and then the split first linkage scheme is transmitted, which is not specifically limited herein.
In the method for processing a linkage scheme provided by an embodiment of the present invention, a first device acquires a first linkage scheme, where the first linkage scheme includes a plurality of execution actions, respectively acquires a plurality of execution devices corresponding to the plurality of execution actions, and determines whether the plurality of execution devices belong to a same lan, and when the plurality of execution devices do not belong to the same lan, performs a preset operation on the first linkage scheme. Therefore, whether the multiple execution devices of the linkage scheme belong to the same local area network or not is judged, and corresponding operation is executed on the linkage scheme corresponding to the multiple execution devices which do not belong to the same local area network, so that the linkage scheme related to the multiple execution devices is simplified, and the efficiency of executing the linkage scheme is improved.
Referring to fig. 3, fig. 3 is a flow chart illustrating a linkage scheme processing method according to another embodiment of the present invention. As will be explained in detail with respect to the flow shown in fig. 3, the method may specifically include the following steps:
step S210: a first device acquires a first linkage scheme, wherein the first linkage scheme includes a plurality of performance actions.
Step S220: and respectively acquiring a plurality of executing devices corresponding to the executing actions.
Step S230: and judging whether the executing devices belong to the same local area network or not.
For detailed description of steps S210 to S230, please refer to steps S110 to S130, which are not described herein again.
Step S240: when the executing devices do not belong to the same local area network, splitting the executing actions based on the executing devices.
In this embodiment, if the first linkage scheme is not transmitted to the next-stage device but stored in the first device, the first linkage scheme cannot be executed when the first device fails. If the first linkage scheme is transmitted to the next-stage device, because the multiple execution devices of the first linkage scheme do not belong to the same local area network, the multiple execution devices cannot directly send commands to control each other, if the first linkage scheme is transmitted to one of the execution devices, only the execution action of the execution device can be executed, and the other execution devices cannot receive the execution command, the first linkage scheme cannot be issued to any one of the multiple execution devices. Therefore, the executing actions of the first linkage scheme can be split according to the executing devices, so as to solve the problem that the first linkage scheme cannot be issued.
The plurality of execution actions may be split into a plurality of individual execution actions according to the plurality of execution devices, for example, if the first linkage scheme a is "(the human body sensor of the entrance detects that a person moves and the current time is six to eight nights), then (the window is opened and the air conditioner is opened and the humidifier is opened))", the plurality of execution actions of the scheme a may be split into three individual execution actions, that is, "open the window", "open the air conditioner", and "open the humidifier".
Step S250: and numbering the split multiple execution actions respectively to obtain multiple action sets.
In this embodiment, after splitting a plurality of execution actions, in order to simplify the operation, the plurality of split execution actions may be numbered, and a plurality of action sets may be generated. For example, if the first linkage scheme a is "(the human body sensor of the entrance detects that a person moves and the current time is six to eight nights), then (the window is opened and the air conditioner is opened and the humidifier is opened))", the multiple execution actions of scheme a may be split into three separate execution actions of "open the window", "open the air conditioner", and "open the humidifier". The execution action "open window" is numbered to obtain an "action set 1", the execution action "open air conditioner" is numbered to obtain an "action set 2", and the execution action "open humidifier" is numbered to obtain an "action set 3".
Step S260: and respectively transmitting the action sets to a plurality of corresponding executing devices.
In this embodiment, the obtained plurality of action sets may be transmitted to a corresponding plurality of execution devices, respectively. For example, the execution action "open window" is numbered to obtain "action set 1", the execution action "open air conditioner" is numbered to obtain "action set 2", and the execution action "open humidifier" is numbered to obtain "action set 3". Then "action set 1" may be transmitted to the window, "action set 2" to the air conditioner, and "action set 3" to the humidifier.
Step S270: and generating a plurality of action execution instructions based on the action sets, wherein the action execution instructions and the action sets are in one-to-one correspondence.
In this embodiment, a plurality of action execution instructions may also be generated according to the plurality of action sets, where the plurality of action execution instructions and the plurality of action sets correspond one-to-one. The plurality of action execution instructions are for instructing a plurality of execution devices to perform a corresponding plurality of action sets. For example, numbering the perform action "open window" results in "action set 1", and action execution instructions a1 may be generated from "action set 1", where action execution instructions a1 are used to instruct the window to perform "action set 1"; numbering the execution actions "turn on air conditioner" to obtain "action set 2", and generating an action execution instruction a2 according to "action set 2", wherein the action execution instruction a2 is used for instructing the air conditioner to execute "action set 2"; numbering the perform action "turn humidifier on" results in "action set 3", and an action execution instruction a3 may be generated from "action set 3", where action execution instruction a3 is used to instruct the humidifier to perform "action set 3".
Step S280: updating the plurality of execution actions in the first linkage scheme to the plurality of action execution instructions, generating a second linkage scheme.
In this embodiment, after the splitting process is performed on the plurality of execution actions of the first linkage scheme, the plurality of execution actions in the first linkage scheme may be updated to a plurality of action execution instructions, and the second linkage scheme may be generated. For example, the first linkage scheme a is "(the human body sensor of the entrance detects that a person moves and the current time is six to eight nights), then (the window is opened and the air conditioner is opened and the humidifier is opened))", after the operations of splitting, numbering and the like, three motion execution commands, i.e. a motion execution command a1, a motion execution command a2 and a motion execution command a3 are generated, the three execution actions "open window", "open air conditioner", and "open humidifier" of the first linkage scheme a may be updated to the "action execution command a 1", "action execution command a 2", and "action execution command a 3", so that the second linkage scheme B of "(the human body sensor of the entrance detects that a person moves and the current time is six to eight nights), then (action execution command a1 and action execution command a2 and action execution command a 3))".
In this embodiment, the second linkage scheme includes a trigger condition, the trigger condition corresponds to a trigger device, when the first device determines that the trigger device satisfies the trigger condition, a plurality of action execution instructions may be obtained, and when the action execution instructions include an execution subject, the plurality of action execution instructions may be sent to a plurality of execution devices, respectively, and the plurality of execution devices execute a corresponding action set according to the plurality of action execution instructions, respectively, for example, the second linkage scheme B is "(the human body sensor of the hallway detects that a person moves and the current time is six pm to eight pm), then (the action execution instruction a1 and the action execution instruction a2 and the action execution instruction a3)),", when the first device determines that the trigger condition "the human body sensor of the hallway detects that a person moves", "the current time is six pm to eight pm" is satisfied simultaneously, the action execution instruction a1 may be sent to the window, and the window executes the corresponding action set 1; sending the action execution command a2 to the air conditioner, and executing the corresponding action set 2 by the air conditioner; the "action execution command a 3" is sent to the humidifier, and the humidifier executes the corresponding "action set 3".
Further, when the first device determines that the trigger device satisfies the trigger condition, the first device may further obtain a plurality of action execution instructions, and when the action execution instructions do not include an execution subject, all of the action execution instructions may be sent to a plurality of execution devices, and the execution devices respectively execute action sets corresponding to the execution devices according to the action execution instructions, for example, the second linkage scheme B is (where a human body sensor of the hallway detects that a person moves and the current time is six nights to eight nights), then (an action execution instruction a1 and an action execution instruction a2 and an action execution instruction a3)) ", and when the first device determines that the trigger condition" the human body sensor of the hallway detects that a person moves "," the current time is six nights to eight nights "is satisfied simultaneously, the first device may send an" action execution instruction a1 "), The action execution instruction a2 and the action execution instruction a3 are all sent to the window, and the window executes the corresponding action set 1 as the window stores the action set 1; sending the action execution command a1, the action execution command a2 and the action execution command a3 to the air conditioner, wherein the air conditioner executes the corresponding action set 2 because the air conditioner stores the action set 2; the "action execution command a 1", the "action execution command a 2" and the "action execution command a 3" are all sent to the humidifier, and since the humidifier stores "action set 3", the humidifier executes the corresponding "action set 3".
In another embodiment of the method for processing a linkage scheme, a first device obtains a first linkage scheme, wherein the first linkage scheme comprises a plurality of execution actions, a plurality of execution devices corresponding to the execution actions are respectively obtained, whether the execution devices belong to the same local area network or not is judged, when the executing devices do not belong to the same local area network, splitting the executing actions based on the executing devices, numbering the split executing actions respectively to obtain action sets, transmitting the action sets to the corresponding executing devices respectively, generating action executing instructions based on the action sets, and updating the plurality of execution actions in the first linkage scheme into a plurality of action execution instructions to generate a second linkage scheme. Compared with the linkage scheme processing method shown in fig. 2, in this embodiment, the multiple execution devices based on the first linkage scheme may split the multiple execution actions and then transmit the split execution actions, so that localization of the intelligent linkage scheme is more thoroughly realized, and stability of the intelligent home system is enhanced.
Referring to fig. 4, fig. 4 is a flow chart illustrating a linkage scheme processing method according to still another embodiment of the invention. As will be explained in detail with respect to the flow shown in fig. 4, the method may specifically include the following steps:
step S310: a first device acquires a first linkage scheme, wherein the first linkage scheme includes a plurality of performance actions.
For the detailed description of steps S310 to S320, please refer to steps S110 to S120, which are not described herein again.
Step S320: and the first equipment splits the first linkage scheme to generate a third linkage scheme.
In this embodiment, after obtaining the first linkage scheme, the first device may split the first linkage scheme and generate a third linkage scheme. The splitting of the first linkage scheme may be performed according to a logical relationship between a plurality of trigger conditions, or may be performed on a plurality of execution actions, or may be performed on both the trigger conditions and the execution actions, and the specific splitting operation and the splitting order are not limited herein.
Step S330: transmitting the third linkage scheme to a second device based on a downlink communication path, wherein the second device and the first device are adjacent node devices in the downlink communication path.
In this embodiment, the first device may transmit the third linkage scheme to the second device based on the downlink communication path, where the second device and the first device are adjacent node devices in the downlink communication path, that is, the second device is a next-level device of the first device, for example, when the first device is a cloud, the second device may be a gateway adjacent to the cloud.
In the present embodiment, please refer to fig. 5, fig. 5 is a flowchart illustrating a step S330 of the linkage scheme processing method according to the embodiment illustrated in fig. 4 of the present invention. As will be described in detail with respect to the flow shown in fig. 5, in this embodiment, the first linkage scheme further includes a plurality of trigger conditions, and the method may specifically include the following steps:
step S331A: and respectively acquiring a plurality of trigger devices corresponding to the plurality of trigger conditions.
In this embodiment, when the first device acquires the first linkage scheme, it may respectively acquire a plurality of trigger devices corresponding to a plurality of trigger conditions, where the plurality of trigger conditions are used to respectively respond to the plurality of corresponding trigger conditions. For example, the first linkage scheme D is that "the human body sensor of the entrance detects that a person moves and the door is in an open state, and then the air conditioner is opened", wherein the first linkage scheme D includes two trigger conditions of "the human body sensor of the entrance detects that a person moves" and "the door is in an open state", and the first device may acquire that the two corresponding trigger devices are the human body sensor and the door and window sensor according to the two trigger conditions.
Step S332A: and judging whether the plurality of trigger devices are connected to the same second device.
In this embodiment, in order to be able to localize the linkage scheme more thoroughly, it is possible to determine whether to transmit the third linkage scheme to the second device by determining whether the plurality of trigger devices are connected to the same second device. For example, if the first linkage scheme D is that "the human body sensor of the entrance detects that someone moves and the door is in an open state, then the air conditioner is opened", and the two corresponding trigger devices are the human body sensor and the door and window sensor, respectively, wherein the second device is the gateway, then if it is desired to transmit the third linkage scheme generated by splitting the first linkage scheme to the same gateway, it can be determined whether the human body sensor and the door and window sensor are both connected to the same gateway.
Step S333A: transmitting the third linkage scheme to a second device based on a downlink communication path when the plurality of trigger devices are connected to the same second device.
In this embodiment, when multiple trigger devices are connected to the same second device, the third communication scheme may be transmitted to the second device based on the downlink communication path. For example, a first linkage scheme D is that "the human body sensor of the entrance detects that someone moves and the door is in an open state, then the air conditioner is opened", two corresponding trigger devices are the human body sensor and the door and window sensor, respectively, wherein the second device is a gateway, and when the human body sensor and the door and window sensor are both connected to the gateway T, the third linkage scheme generated by splitting the first linkage scheme may be transmitted to the gateway T, and if the human body sensor is connected to the gateway T, the door and window sensor is connected to the gateway H, the third linkage scheme is not transmitted to any gateway.
In the present embodiment, please refer to fig. 6, fig. 6 shows another schematic flow chart of step S330 of the linkage scheme processing method according to the embodiment shown in fig. 4. As will be described in detail with respect to the flow shown in fig. 6, in this embodiment, the method may specifically include the following steps:
step S331B: and acquiring a first function identifier of the third linkage scheme.
In this embodiment, after the first device splits the first linkage scheme and generates the third linkage scheme, in order to localize the linkage scheme more thoroughly, the third linkage scheme may be issued to the second device. Before this, the first function identifier in the third linkage scheme may be obtained, from which it may be determined whether the second device may execute the third linkage scheme. The first function identifier may be a function identifier that satisfies a trigger condition of the linkage scheme, and the acquiring of the first function identifier in the third linkage scheme may be identifying the first function identifier according to the trigger condition by acquiring the trigger condition of the third linkage scheme, for example, the trigger condition of the third linkage scheme C is "current time is 0 pm to 7 am", and the trigger condition requires time judgment, so the first function identifier of the third linkage scheme C is time.
Step S332B: and acquiring a second function identifier supported by the second device.
In this embodiment, after the first function identifier of the third linkage scheme is obtained, a second function identifier supported by the second device may also be obtained. The first device may obtain, through the device attribute of the second device, the second function identifier supported by the second device, for example, if the second device is a gateway, the second function identifier supported by the gateway may have function identifiers such as time calculation, alarm, and ray recognition.
Step S333B: and judging whether the second function identifier comprises the first function identifier.
In this embodiment, by comparing the second function identifier supported by the second device with the first function identifier, it is determined whether the second function identifier supported by the second device includes the first function identifier of the third linkage scheme, so as to determine whether the third linkage scheme can be transmitted to the second device.
Step S334B: transmitting the third linkage scheme to the second device based on a downlink communication path when the second function identifier includes the first function identifier.
In this embodiment, when the second function identifier includes the first function identifier of the third association scheme, the third association scheme may be transmitted to the second device based on the downlink communication path. For example, the third linkage scenario C is "the current time is from 0 pm to 7 am, the gateway turns on the alert mode", and the first function identifier of the third linkage scenario C is a judgment of time. The second device is a gateway, and the second function identifier supported by the gateway only includes the function identifier determined by the time of the scheme C, so that the third linkage scheme C can be transmitted to the gateway.
In the method for processing a linkage scheme provided by another embodiment of the present invention, a first device acquires a first linkage scheme, where the first linkage scheme includes a plurality of execution actions, the first device splits the first linkage scheme and generates a third linkage scheme, and transmits the third linkage scheme to a second device based on a downlink communication path, where the second device and the first device are adjacent node devices in the downlink communication path. Compared with the method for processing the linkage scheme shown in fig. 2, the embodiment may also split the first linkage scheme and issue the split first linkage scheme to the next-stage device, so that the linkage scheme is simplified, and the linkage scheme may be issued to the local device for execution.
Referring to fig. 7, fig. 7 is a block diagram of an apparatus 200 for processing a linkage scheme according to an embodiment of the present invention. As will be explained below with respect to the block diagram shown in fig. 7, the linkage scheme processing apparatus 200 includes: a first obtaining module 210, a second obtaining module 220, a determining module 230, and an executing module 240, wherein:
a first obtaining module 210, configured to obtain, by a first device, a first linkage scheme, where the first linkage scheme includes a plurality of execution actions.
The second obtaining module 220 is configured to obtain a plurality of execution devices corresponding to the plurality of execution actions, respectively.
The determining module 230 is configured to determine whether the multiple executing apparatuses belong to the same local area network.
Further, the plurality of execution devices include a first execution device and a second execution device, and the determining module 230 further includes: a first sending submodule, a first receiving submodule and a first determining submodule, wherein:
and the first sending submodule is used for sending instruction information including the IP address of the second execution device to the first execution device by the first execution device so as to instruct the first execution device to send a request message based on the IP address.
And the first receiving submodule is used for the first equipment to judge whether the first execution equipment receives first feedback information sent by the second execution equipment, wherein the first feedback information represents that the second execution equipment receives the request message.
The first determining submodule is configured to determine that the first execution device and the second execution device belong to the same local area network when the first execution device receives first feedback information sent by the second execution device.
Further, the plurality of execution devices include a first execution device and a second execution device, and the determining module 230 further includes: a second sending submodule, a second receiving submodule, and a second determining submodule, wherein:
and a second sending submodule, configured to send, by the first device, instruction information including ID information and an IP address of the second execution device to the first execution device, so as to instruct the first execution device to send a request packet based on the IP address, where the request packet carries the ID information.
And the second receiving submodule is used for the first equipment to judge whether the first execution equipment receives second feedback information sent by the second execution equipment, wherein the second feedback information represents that the second execution equipment receives the request message and confirms that the ID information is consistent with the ID information of the second execution equipment.
A second determining submodule, configured to determine that the first execution device and the second execution device belong to the same local area network when the first execution device is combined with second feedback information sent by the second execution device.
An executing module 240, configured to execute a preset operation on the first linkage scheme when the multiple executing devices do not belong to the same local area network.
Further, the executing module 240 further includes: split submodule, serial number submodule, transmission submodule, generate submodule, update submodule, obtain submodule and send submodule, wherein:
and the splitting submodule is used for splitting the executing actions based on the executing devices when the executing devices do not belong to the same local area network.
And the numbering submodule is used for numbering the split execution actions respectively to obtain a plurality of action sets.
And the transmission submodule is used for respectively transmitting the action sets to the corresponding execution equipment.
And the generation submodule is used for generating a plurality of action execution instructions based on the action sets, wherein the action execution instructions correspond to the action sets one by one.
And the updating submodule is used for updating the plurality of execution actions in the first linkage scheme into a plurality of action execution instructions and generating a second linkage scheme.
And the obtaining submodule is used for obtaining the plurality of action execution instructions when the first equipment judges that the trigger equipment meets the trigger condition.
And the sending submodule is used for sending the action execution instructions to the execution devices respectively so as to instruct the execution devices to execute the corresponding action sets respectively.
Further, the linkage scheme processing apparatus 200 further includes: split module and transmission module, wherein:
and the splitting module is used for splitting the first linkage scheme by the first equipment to generate a third linkage scheme.
A transmission module, configured to transmit the third linkage scheme to a second device based on a downlink communication path, where the second device and the first device are adjacent node devices in the downlink communication path.
Further, the transmission module further includes: the trigger equipment obtains submodule piece, connection judgement submodule piece and first transmission submodule piece, wherein:
and the trigger equipment obtaining submodule is used for respectively obtaining a plurality of trigger equipment corresponding to the plurality of trigger conditions.
And the connection judgment submodule is used for judging whether the plurality of trigger devices are connected to the same second device.
A first transmission submodule, configured to transmit the third linkage scheme to a second device based on a downlink communication path when the plurality of trigger devices are connected to the same second device.
Still further, the transmission module further includes: a first function identification obtaining submodule, a second function identification obtaining submodule, an identification judging submodule and a second transmission submodule, wherein:
and the first function identifier acquisition submodule is used for acquiring the first function identifier of the third linkage scheme.
And the second function identifier obtaining submodule is used for obtaining a second function identifier supported by the second device.
And the identification judgment submodule is used for judging whether the second function identification comprises the first function identification.
And the second transmission sub-module is configured to transmit the third linkage scheme to the second device based on a downlink communication path when the second function identifier includes the first function identifier.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In several embodiments provided by the present invention, the coupling of the modules to each other may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
An electronic device provided by the present invention will be described with reference to fig. 8.
Referring to fig. 8, fig. 8 is a block diagram illustrating an electronic device according to an embodiment of the invention. The electronic device 300 of the present invention may include one or more of the following components: a processor 310, a memory 320, and one or more programs, wherein the one or more programs may be stored in the memory 320 and configured to be executed by the one or more processors 310, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 310 may include one or more processing cores, among other things. The processor 310, using various interfaces and lines to connect various parts throughout the electronic device 300, performs various functions of the electronic device 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 220, and calling data stored in the memory 320. Alternatively, the processor 310 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 310 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 310, but may be implemented by a communication chip.
The Memory 320 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 320 may be used to store instructions, programs, code sets, or instruction sets. The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a split function, etc.), instructions for implementing the various method embodiments described below, and the like. The stored data area may also store data created by the electronic device 300 during use (e.g., smart device linkage schemes, function identifications, ID information of the performing devices), and the like.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present invention is shown. The computer-readable storage medium 400 has stored therein program code that can be invoked by a processor to perform the methods described in the above-described method embodiments.
The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 400 includes a non-volatile computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 for performing any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 410 may be compressed, for example, in a suitable form.
In summary, according to the method, the apparatus, the electronic device, and the storage medium for processing the linkage scheme provided by the present invention, the first device obtains the first linkage scheme, where the first linkage scheme includes a plurality of execution actions, respectively obtains a plurality of execution devices corresponding to the plurality of execution actions, and determines whether the plurality of execution devices belong to the same lan, and when the plurality of execution devices do not belong to the same lan, performs a preset operation on the first linkage scheme. Therefore, whether the multiple execution devices of the linkage scheme belong to the same local area network or not is judged, and corresponding operation is executed on the linkage scheme corresponding to the multiple execution devices which do not belong to the same local area network, so that the linkage scheme related to the multiple execution devices is simplified, and the efficiency of executing the linkage scheme is improved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions.

Claims (12)

1. A method of linked-solution processing, the method comprising:
a first device acquires a first linkage scheme, wherein the first linkage scheme comprises a plurality of execution actions;
respectively acquiring a plurality of executing devices corresponding to the executing actions;
judging whether the executing devices belong to the same local area network or not;
when the executing devices do not belong to the same local area network, splitting the executing actions based on the executing devices;
and respectively transmitting the split executing actions to a plurality of corresponding executing devices.
2. The method of claim 1, wherein the transmitting the split plurality of execution actions to a corresponding plurality of execution devices respectively comprises:
respectively numbering the split multiple execution actions to obtain multiple action sets;
and respectively transmitting the action sets to a plurality of corresponding executing devices.
3. The method of claim 2, wherein numbering the split plurality of execution actions respectively, and obtaining a plurality of action sets further comprises:
generating a plurality of action execution instructions based on the plurality of action sets, wherein the plurality of action execution instructions and the plurality of action sets correspond to each other one by one;
updating the plurality of execution actions in the first linkage scheme to the plurality of action execution instructions, generating a second linkage scheme.
4. The method of claim 3, wherein the second linkage scheme comprises a trigger condition, the trigger condition corresponds to a trigger device, the updating the plurality of execution actions in the first linkage scheme to the plurality of action execution instructions further comprises, after generating the second linkage scheme:
when the first device judges that the trigger device meets the trigger condition, acquiring the plurality of action execution instructions;
and respectively sending the action execution instructions to the execution devices to instruct the execution devices to respectively execute the corresponding action sets.
5. The method of claim 1, further comprising:
the first equipment splits the first linkage scheme to generate a third linkage scheme;
transmitting the third linkage scheme to a second device based on a downlink communication path, wherein the second device and the first device are adjacent node devices in the downlink communication path.
6. The method of claim 5, wherein the first linkage scheme further comprises a plurality of trigger conditions, and wherein transmitting the third linkage scheme to a second device based on a downlink communication path comprises:
respectively acquiring a plurality of trigger devices corresponding to the plurality of trigger conditions;
judging whether the plurality of trigger devices are connected to the same second device or not;
transmitting the third linkage scheme to a second device based on a downlink communication path when the plurality of trigger devices are connected to the same second device.
7. The method of claim 5, wherein transmitting the third communication scheme to a second device based on a downlink communication path comprises:
acquiring a first function identifier of the third linkage scheme;
acquiring a second function identifier supported by the second device;
judging whether the second function identifier comprises the first function identifier or not;
transmitting the third linkage scheme to the second device based on a downlink communication path when the second function identifier includes the first function identifier.
8. The method according to any of claims 1-7, wherein the plurality of execution devices includes a first execution device and a second execution device, and the determining whether the plurality of execution devices belong to the same local area network comprises:
the first equipment sends instruction information including the IP address of the second execution equipment to the first execution equipment so as to instruct the first execution equipment to send a request message based on the IP address;
the first device judges whether the first execution device receives first feedback information sent by the second execution device, wherein the first feedback information represents that the second execution device receives the request message;
when the first execution device receives first feedback information sent by the second execution device, it is determined that the first execution device and the second execution device belong to the same local area network.
9. The method according to any of claims 1-7, wherein the plurality of execution devices includes a first execution device and a second execution device, and the determining whether the plurality of execution devices belong to the same local area network comprises:
the first equipment sends instruction information including the ID information and the IP address of the second execution equipment to the first execution equipment so as to instruct the first execution equipment to send a request message based on the IP address, wherein the request message carries the ID information;
the first device judges whether the first execution device receives second feedback information sent by the second execution device, wherein the second feedback information represents that the second execution device receives the request message, and confirms that the ID information is consistent with the ID information of the second execution device;
when the first execution device is combined with second feedback information sent by the second execution device, it is determined that the first execution device and the second execution device belong to the same local area network.
10. An apparatus for linked solution processing, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first linkage scheme by first equipment, and the first linkage scheme comprises a plurality of execution actions;
a second obtaining module, configured to obtain a plurality of execution devices corresponding to the plurality of execution actions, respectively;
the judging module is used for judging whether the executing devices belong to the same local area network or not;
the execution module is used for splitting the execution actions based on the execution devices when the execution devices do not belong to the same local area network; and the executing device is used for respectively transmitting the split executing actions to the corresponding executing devices.
11. An electronic device, comprising:
a memory;
one or more processors coupled with the memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
CN201910185739.7A 2019-03-12 2019-03-12 Linkage scheme processing method and device, electronic equipment and storage medium Active CN109981424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910185739.7A CN109981424B (en) 2019-03-12 2019-03-12 Linkage scheme processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910185739.7A CN109981424B (en) 2019-03-12 2019-03-12 Linkage scheme processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109981424A CN109981424A (en) 2019-07-05
CN109981424B true CN109981424B (en) 2021-06-29

Family

ID=67078603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910185739.7A Active CN109981424B (en) 2019-03-12 2019-03-12 Linkage scheme processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109981424B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596562B (en) * 2020-05-15 2024-04-30 杭州涂鸦信息技术有限公司 Equipment control method, cloud equipment and computer storage medium
CN114070873A (en) * 2021-11-09 2022-02-18 浙江大华技术股份有限公司 Equipment linkage method and device in Internet of things, storage medium and electronic device
CN115277280B (en) * 2022-08-17 2024-05-07 美的集团股份有限公司 Control method of intelligent household equipment and control method of server

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207867A (en) * 2015-10-30 2015-12-30 北京奇艺世纪科技有限公司 Equipment connecting method and equipment connecting device
CN105915730A (en) * 2016-06-30 2016-08-31 联想(北京)有限公司 Control method, first control equipment and server
WO2016184253A1 (en) * 2015-05-15 2016-11-24 丰唐物联技术(深圳)有限公司 Smart device linkage setting method and terminal
CN106773763A (en) * 2016-12-28 2017-05-31 重庆金鑫科技产业发展有限公司 A kind of information linkage processing method and device
CN107809355A (en) * 2016-09-08 2018-03-16 北京京东尚科信息技术有限公司 A kind of method and system of smart machine coordinated signals
CN108092861A (en) * 2017-12-13 2018-05-29 深圳绿米联创科技有限公司 Realize collocation method, the equipment linkage control method and device of equipment linkage
CN108089559A (en) * 2017-11-02 2018-05-29 珠海格力电器股份有限公司 The methods, devices and systems of control device
CN108366005A (en) * 2018-02-08 2018-08-03 乐鑫信息科技(上海)有限公司 The interlock method and device of electric room
CN109450745A (en) * 2018-10-15 2019-03-08 深圳市欧瑞博科技有限公司 Information processing method, device, intelligence control system and intelligent gateway

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016184253A1 (en) * 2015-05-15 2016-11-24 丰唐物联技术(深圳)有限公司 Smart device linkage setting method and terminal
CN105207867A (en) * 2015-10-30 2015-12-30 北京奇艺世纪科技有限公司 Equipment connecting method and equipment connecting device
CN105915730A (en) * 2016-06-30 2016-08-31 联想(北京)有限公司 Control method, first control equipment and server
CN107809355A (en) * 2016-09-08 2018-03-16 北京京东尚科信息技术有限公司 A kind of method and system of smart machine coordinated signals
CN106773763A (en) * 2016-12-28 2017-05-31 重庆金鑫科技产业发展有限公司 A kind of information linkage processing method and device
CN108089559A (en) * 2017-11-02 2018-05-29 珠海格力电器股份有限公司 The methods, devices and systems of control device
CN108092861A (en) * 2017-12-13 2018-05-29 深圳绿米联创科技有限公司 Realize collocation method, the equipment linkage control method and device of equipment linkage
CN108366005A (en) * 2018-02-08 2018-08-03 乐鑫信息科技(上海)有限公司 The interlock method and device of electric room
CN109450745A (en) * 2018-10-15 2019-03-08 深圳市欧瑞博科技有限公司 Information processing method, device, intelligence control system and intelligent gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于云服务实现智能家居应用控制的方案;王斌;《电信科学》;20151120;全文 *

Also Published As

Publication number Publication date
CN109981424A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
CN109981424B (en) Linkage scheme processing method and device, electronic equipment and storage medium
CN109587018B (en) Equipment configuration method, device, network system and mobile terminal
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
CN105471686B (en) Terminal control method, device and system
CN109753034B (en) Control method, control device, electronic equipment and storage medium
CN110839271B (en) Equipment connection method, system, platform and corresponding equipment
CN109617963B (en) Equipment control method and device and Internet of things system
KR20050014628A (en) Home network system and its configuration system
CN104113458A (en) Mobile terminal and intelligent household appliance interconnecting method and device
CN113110147B (en) Method and device for cross-platform linkage of intelligent equipment, equipment and storage medium
JP6715283B2 (en) Network system and information processing method
CN109936488B (en) Linkage scheme processing method and device, electronic equipment and storage medium
CN107370644B (en) Linkage control method and device, computer readable storage medium and computer equipment
CN112350907A (en) Scene linkage control method, terminal and computer readable storage medium
CN112596406A (en) Control method and device of intelligent equipment, control panel and storage medium
CN111245677A (en) Communication abnormity reporting method and device, electronic equipment and storage medium
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
CN114553626B (en) Equipment state query method, query device, electronic equipment and storage medium
CN115277280B (en) Control method of intelligent household equipment and control method of server
US20070130278A1 (en) Home network system
CN113452589B (en) Wide area network intelligent home remote control system and working method thereof
CN114326420A (en) Intelligent grouping method and device for equipment, intelligent equipment and storage medium
CN115454520A (en) Equipment linkage method and mobile terminal
CN114280949A (en) Intelligent control method and device for equipment, intelligent equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant