[go: nahoru, domu]

CN111614524A - Multi-intelligent-device linkage control method, device and system - Google Patents

Multi-intelligent-device linkage control method, device and system Download PDF

Info

Publication number
CN111614524A
CN111614524A CN201910142363.1A CN201910142363A CN111614524A CN 111614524 A CN111614524 A CN 111614524A CN 201910142363 A CN201910142363 A CN 201910142363A CN 111614524 A CN111614524 A CN 111614524A
Authority
CN
China
Prior art keywords
electronic device
event
rule
electronic
conditional
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
Application number
CN201910142363.1A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910142363.1A priority Critical patent/CN111614524A/en
Priority to PCT/CN2020/075982 priority patent/WO2020173375A1/en
Publication of CN111614524A publication Critical patent/CN111614524A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2814Exchanging control software or macros for controlling appliance services in a home automation network
    • 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] or computer integrated manufacturing [CIM]
    • 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]
    • 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
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Computer And Data Communications (AREA)

Abstract

The utility model provides a many intelligent device coordinated control's method, equipment and system, relates to communication technology field, can get rid of the reliance to controlgear in many intelligent device's coordinated control, is favorable to reducing the time delay of linkage, promotes linkage efficiency, and this method specifically includes: the method comprises the steps that a first electronic device acquires a first rule, wherein the first rule indicates that the first electronic device executes a first function when a first event occurs in a second electronic device; the first electronic equipment sends a subscription message aiming at a first event to the second electronic equipment according to a first rule; the method comprises the steps that a first electronic device receives a notification message of a first event sent by a second electronic device; in response to receiving the notification message of the first event, the first electronic device performs the first function according to the first rule.

Description

Multi-intelligent-device linkage control method, device and system
Technical Field
The application relates to the technical field of communication, in particular to a method, equipment and a system for linkage control of multiple intelligent devices.
Background
The smart home (smart home, or home automation) connects various electronic devices (such as audio and video devices, lighting systems, curtain control, air conditioner control, security systems, digital cinema systems, audio and video servers, video cabinet systems, network home appliances and the like) in a home together through the internet of things technology, and provides multiple functions of home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, heating and ventilation control, infrared forwarding, programmable timing control and the like.
In the smart home system, each electronic device performs linkage and control between devices based on IFTTT (abbreviation of if the that) rule. Where this can be considered a trigger condition, and where can be considered an executing operation or an executing event of the device. For example: if the smart door lock recognizes that the person at the door passes the biometric authentication (trigger condition), the door is automatically opened (event is performed). Another example is: if the door is open and the indoor temperature is above 28 degrees celsius (trigger condition), the air conditioner is automatically started (execute event).
At present, in the linkage process of equipment and equipment, the control equipment basically collects trigger conditions and then sends an execution command to the equipment needing linkage based on the trigger conditions. For example: the control device needs to acquire all trigger conditions in a certain IFTTT rule from some devices (which may be called conditional devices) and then send operation instructions to other devices (which may be called execution devices) to instruct the execution devices to execute corresponding operations.
Obviously, in the existing linkage technology, linkage between the condition device and the execution device is too dependent on the control device. Generally, a plurality of IFTTT rules exist in a network, if linkage in each IFTTT rule needs to be transferred and controlled through the same control device, linkage delay is large, efficiency is low, and user experience is poor. Furthermore, if the control device is disconnected, the linkage of all IFTTT rules in the network will fail. Therefore, the linkage efficiency and stability between the condition equipment and the execution equipment are required to be improved.
Disclosure of Invention
The method, the device and the system for linkage control of multiple intelligent devices can get rid of dependence on control devices in linkage control of multiple electronic devices, and are beneficial to reducing linkage time delay and improving linkage efficiency.
In a first aspect, the present application provides a method for linkage control of multiple electronic devices, including:
the method comprises the steps that a first electronic device acquires a first rule, wherein the first rule indicates that the first electronic device executes a first function when a first event occurs in a second electronic device; the first electronic equipment sends a subscription message aiming at a first event to the second electronic equipment according to a first rule; the method comprises the steps that a first electronic device receives a notification message of a first event sent by a second electronic device; in response to receiving the notification message of the first event, the first electronic device performs the first function according to the first rule.
The first electronic device is an execution device, and the first function is an execution event in the first rule. The second electronic device is a condition device, and the first event is a trigger event or a trigger condition corresponding to the second electronic device in the first rule.
In the application, the execution device directly acquires the first rule, subscribes the trigger event to the conditional device, and when multiple trigger events occur, the execution device directly executes the corresponding execution event. Therefore, in the linkage process of the execution equipment and the condition equipment, other control equipment is not relied on, and the linkage efficiency can be improved.
In a possible implementation, the method further includes: the first electronic equipment acquires a second rule, wherein the second rule indicates that when a second event occurs in the third electronic equipment and the fourth electronic equipment sends the third event, the first electronic equipment executes a second function; the first electronic equipment sends a subscription message aiming at the second event to the third electronic equipment according to the second rule; the first electronic equipment receives a notification message of a second event sent by the third electronic equipment; the first electronic equipment acquires whether a third event occurs in the fourth electronic equipment; and in response to the fact that the third event is acquired to occur to the fourth electronic device, the first electronic device executes the second function according to the second rule.
The first electronic device is an execution device, and the second function is an execution event in the second rule. The third electronic device and the fourth electronic device are conditional devices. The second event is a trigger event or a trigger condition corresponding to the third electronic device in the second rule. The third event is a trigger event or a trigger condition corresponding to the fourth electronic device in the second rule.
In the application, the execution device acquires the IFTTT rule in advance, and after the conditional device in the IFTTT rule generates the trigger event, the execution device may be directly notified through the local network, and the execution device may also directly query the trigger event of another conditional device through the local network. When the trigger conditions of all the condition devices meet the IFTTT rule, the execution device may execute the corresponding event, i.e., complete the linkage. It can be seen that the whole process from the occurrence of a trigger condition of a certain conditional device to the execution of a corresponding event by the executing device is completed in the local network. Therefore, even if the electronic equipment is disconnected from the Internet in the local network, the linkage of the electronic equipment in the local network can be still completed, the linkage success rate is improved, and the stability of the linkage system is improved. In addition, in the linkage process, the electronic devices of the local network directly communicate without passing through the Internet, so that the communication time delay is reduced, and the linkage efficiency is improved. Moreover, the states of all electronic devices in the local network and the execution condition of the IFTTT rule are prevented from being uploaded to the Internet, and the security risk is avoided.
In addition, in the method provided by the embodiment of the present application, the executing device in the IFTTT rule directly communicates with other conditional devices in the IFTTT rule, and does not relay and control through other intermediate devices, that is, does not relay and control through other devices (for example, gateways) unrelated to the IFTTT rule. In other words, the method provided by the embodiment of the application enables the plurality of electronic devices of the local network to get rid of dependence on the control device during linkage, thereby being beneficial to reducing the linkage time delay and improving the linkage efficiency.
In a possible implementation manner, in response to acquiring that the third event occurs in the fourth electronic device, the first electronic device executes the second function according to the second rule, specifically: and in response to the first electronic device receiving a notification message sent by the fourth electronic device that the third event has occurred, the first electronic device executing the second function according to the second rule. Therefore, the application provides a method for actively sending a notification message whether a trigger event occurs or not to an execution device by other conditional devices.
In a possible implementation manner, before the first electronic device receives the notification message sent by the fourth electronic device that the third event has occurred, the method further includes: in response to receiving the notification message of the second event sent by the third electronic device, the first electronic device sends a message inquiring whether the third event occurs to the fourth electronic device. Therefore, the application provides a method for the execution device to inquire whether the notification message of the trigger event happens or not from other conditional devices.
In a possible implementation manner, after the first electronic device acquires the second rule, the method further includes: and the first electronic equipment acquires the address of the third electronic equipment and the address of the fourth electronic equipment according to the second rule.
In one possible implementation, the second rule includes an identifier of the third electronic device and an identifier of the fourth electronic device; the first electronic device obtains an address of the third electronic device and an address of the fourth electronic device according to the second rule, and the method specifically includes: the first electronic equipment multicasts or broadcasts a first message, wherein the first message comprises an identifier of the third electronic equipment and an identifier of the fourth electronic equipment; the first electronic equipment receives the address of the third electronic equipment returned by the third electronic equipment; and the electronic equipment receives the address of the fourth electronic equipment returned by the fourth electronic equipment.
The application provides a method for executing equipment to acquire network addresses of various conditional equipment.
In a possible implementation manner, after the first electronic device acquires the second rule, the method further includes: the first electronic device detects the validity and/or integrity of the second rule.
In one possible implementation manner, the obtaining, by the first electronic device, the second rule includes: the first electronic device obtains the second rule from the server or a fifth electronic device.
In a second aspect, the present application provides a method for linkage control of multiple electronic devices, including:
the method comprises the steps that a first electronic device acquires a first rule, wherein the first rule indicates that a third electronic device executes a first function when a first event occurs in the first electronic device and a second event occurs in the second electronic device; the first electronic equipment receives a notification message sent by the second electronic equipment that a second event has occurred; in response to the received notification message that the second event has occurred, the first electronic device detects whether the first event has occurred; if the first event is detected to have occurred, the first electronic device sends an execution instruction to the third electronic device, and the execution instruction instructs the third electronic device to execute the first function.
The first electronic device and the second electronic device are condition devices in a first rule, and the first event is a trigger event or a trigger condition corresponding to the first electronic device. The second event is a trigger event or a trigger condition corresponding to the second electronic device. The third electronic device is an execution device, and the first function is an execution event corresponding to the third electronic device in the first rule.
In the present application, the conditional device acquires the IFTTT rule in advance, and finds other electronic devices in the IFTTT rule, for example, the execution device. After a trigger event occurs in one or some conditional devices in the IFTTT rule, other conditional devices can be notified directly through the local network. After other conditional devices determine that the IFTTT rule is met, the execution devices are indicated to execute corresponding events, namely linkage is completed, and linkage efficiency is improved.
In a third aspect, the present application provides a method for linkage control of multiple electronic devices, where the method includes:
the method comprises the steps that a first electronic device acquires a first rule, wherein the first rule indicates that a third electronic device executes a first function when a first event occurs in the first electronic device and a second event occurs in the second electronic device; the first electronic device detects that a first event has occurred; in response to detecting that the first event has occurred, the first electronic device sends a message to the second electronic device inquiring whether the second event has occurred; the first electronic equipment receives a notification message sent by the second electronic equipment that a second event has occurred; in response to receiving the notification message that the second event has occurred, the first electronic device sends an execution instruction to the third electronic device, the execution instruction instructing the third electronic device to execute the first function.
The first electronic device and the second electronic device are condition devices in a first rule, and the first event is a trigger event or a trigger condition corresponding to the first electronic device. The second event is a trigger event or a trigger condition corresponding to the second electronic device. The third electronic device is an execution device, and the first function is an execution event corresponding to the third electronic device in the first rule.
In this application, the execution device and the partial condition device obtain the IFTTT rule in advance, and find other electronic devices in the IFTTT rule, for example: other conditional facilities. When a trigger event occurs in a certain conditional device that acquires the IFTTT rule, the trigger events of other conditional devices may be queried, or the execution device may be notified, and the trigger events of other conditional devices may be queried by the execution device. And finally, after the triggering conditions of all the condition devices are determined to occur, the execution device executes corresponding events, namely, the linkage is completed, and the linkage efficiency is improved.
In a fourth aspect, the present application provides a system for linkage control of multiple electronic devices, including a first electronic device and a second electronic device; the first electronic equipment is used for acquiring a first rule, and the first rule indicates that the first electronic equipment executes a first function when a first event occurs in the second electronic equipment; according to a first rule, sending a subscription message aiming at a first event to a second electronic device; the second electronic equipment is used for sending a notification message of the first event to the first electronic equipment when the first event is detected to occur; the first electronic equipment is further used for responding to the received notification message of the first event and executing the first function according to the first rule.
In a possible implementation manner, the system further includes a third electronic device and a fourth electronic device, where the first electronic device is further configured to obtain a second rule, where the second rule indicates that when a second event occurs in the third electronic device and the fourth electronic device sends a third event, the first electronic device executes a second function; according to a second rule, sending a subscription message aiming at a second event to a third electronic device; the third electronic equipment is used for sending a notification message that the second event has occurred to the first electronic equipment when the second event is detected to have occurred; the first electronic equipment is also used for determining whether a third event occurs in the fourth electronic equipment; in response to determining that the third event occurred at the fourth electronic device, the second function is performed according to a second rule.
In a fifth aspect, a first electronic device provided by the present application includes: a processor and a memory coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when executed by the first electronic device, cause the first electronic device to perform operations comprising:
acquiring a first rule, wherein the first rule indicates that when a first event occurs in the second electronic equipment, the first electronic equipment executes a first function; according to a first rule, sending a subscription message aiming at a first event to a second electronic device; receiving a notification message of a first event sent by second electronic equipment; in response to receiving the notification message of the first event, the first function is executed according to the first rule.
In a possible implementation manner, the first electronic device further obtains a second rule, where the second rule indicates that when a second event occurs in a third electronic device and a third event is sent by a fourth electronic device, the first electronic device executes a second function; according to a second rule, sending a subscription message aiming at a second event to a third electronic device; receiving a notification message of a second event sent by a third electronic device; acquiring whether a third event occurs in the fourth electronic equipment; and executing a second function according to a second rule in response to the fact that a third event occurs in the fourth electronic device.
In a possible implementation manner, in response to acquiring that a third event occurs in the fourth electronic device, executing a second function according to a second rule, specifically: and in response to receiving a notification message sent by the fourth electronic device that the third event has occurred, executing the second function according to the second rule.
In one possible implementation, the computer instructions, when executed by the first electronic device, further cause the first electronic device to:
in response to receiving the notification message of the second event sent by the third electronic device, the first electronic device sends a message inquiring whether the third event occurs to the fourth electronic device.
In one possible implementation, the computer instructions, when executed by the first electronic device, further cause the first electronic device to: and acquiring the address of the third electronic equipment and the address of the fourth electronic equipment according to the second rule.
In one possible implementation, the second rule includes an identifier of the third electronic device and an identifier of the fourth electronic device; acquiring the address of the third electronic device and the address of the fourth electronic device according to the second rule, specifically including: multicasting or broadcasting a first message, wherein the first message comprises an identifier of the third electronic device and an identifier of the fourth electronic device; receiving an address of the third electronic equipment returned by the third electronic equipment; and the electronic equipment receives the address of the fourth electronic equipment returned by the fourth electronic equipment.
In one possible implementation, the computer instructions, when executed by the first electronic device, further cause the first electronic device to: the validity and/or integrity of the second rule is detected.
In a possible implementation manner, the obtaining the second rule specifically includes: the second rule is obtained from the server or a fifth electronic device.
In a sixth aspect, the present application provides a first electronic device, including: a processor and a memory coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when executed by the first electronic device, cause the first electronic device to perform operations comprising:
acquiring a first rule, wherein the first rule indicates that when a first event occurs on the first electronic device and a second event occurs on the second electronic device, the third electronic device executes a first function; receiving a notification message sent by the second electronic device that a second event has occurred; detecting whether the first event occurs in response to the received notification message that the second event has occurred; and if the first event is detected to have occurred, sending an execution instruction to the third electronic device, wherein the execution instruction instructs the third electronic device to execute the first function.
In a seventh aspect, the present application provides a first electronic device, including: a processor and a memory coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when executed by the first electronic device, cause the first electronic device to perform operations comprising:
acquiring a first rule, wherein the first rule indicates that when a first event occurs on the first electronic device and a second event occurs on the second electronic device, the third electronic device executes a first function; detecting that a first event has occurred; in response to detecting that the first event has occurred, sending a message to the second electronic device inquiring whether a second event has occurred; receiving a notification message sent by the second electronic device that a second event has occurred; and sending an execution instruction to the third electronic equipment in response to the received notification message that the second event has occurred, wherein the execution instruction instructs the third electronic equipment to execute the first function.
An eighth aspect is a computer storage medium comprising computer instructions which, when run on a terminal, cause the terminal to perform the method as described in the first to third aspects and any one of their possible implementations.
A ninth aspect, a computer program product, which, when run on a computer, causes the computer to perform the method as described in the first to third aspects and any one of their possible implementations.
Drawings
Fig. 1 is a schematic structural diagram of a system for linkage control of multiple electronic devices according to an embodiment of the present disclosure;
fig. 2A is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure;
fig. 2B is a schematic diagram of a software structure of an electronic device according to an embodiment of the present disclosure;
fig. 3A is a schematic interface diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3B is a schematic interface diagram of another electronic device according to an embodiment of the present disclosure;
fig. 3C is a schematic interface diagram of another electronic device according to an embodiment of the present disclosure;
fig. 3D is a schematic interface diagram of another electronic device provided in the embodiment of the present application;
fig. 3E is a schematic interface diagram of another electronic device according to an embodiment of the present application;
fig. 3F is a schematic interface diagram of another electronic device according to an embodiment of the present application;
fig. 3G is an interface schematic diagram of another electronic device provided in the embodiment of the present application;
fig. 3H is a schematic interface diagram of another electronic device according to an embodiment of the present disclosure;
fig. 3I is a schematic interface diagram of another electronic device according to an embodiment of the present application;
fig. 4A is a schematic flowchart of a method for linkage control of multiple electronic devices according to an embodiment of the present disclosure;
fig. 4B is a schematic flowchart of another method for linkage control of multiple electronic devices according to an embodiment of the present disclosure;
fig. 5A is a schematic flowchart of another method for linkage control of multiple electronic devices according to an embodiment of the present disclosure;
fig. 5B is a schematic flowchart of another method for linkage control of multiple electronic devices according to an embodiment of the present disclosure;
fig. 6A is a schematic flowchart of another method for linkage control of multiple electronic devices according to an embodiment of the present disclosure;
fig. 6B is a schematic flowchart of another method for linkage control of multiple electronic devices according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood 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 one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
IFTTT rule: if this is the abbreviation of the same thing, its purpose is Put the internet to work for you (let the Internet serve you). It can be simply understood that if a certain event is triggered, another event that is set is executed. That is, if the trigger condition in the IFTTT rule is satisfied, the corresponding operation in the IFTTT rule is executed.
If the a device performs a certain operation or certain operations in the IFTTT rule or the parameter detected by the a device satisfies a certain condition or certain conditions, the B device performs the corresponding operation, and the a device may be referred to as a conditional device and the B device may be referred to as an execution device. In the IFTTT rule, the number of conditional devices may be one or more, and the number of execution devices may be one or more, which is not limited in the embodiment of the present application.
For example: one IFTTT rule is: if the A device performs a certain operation or operations (or the parameters detected by the A device satisfy a certain condition or conditions) and the C device performs a certain operation or operations (or the parameters detected by the C device satisfy a certain condition or conditions), the B device performs the corresponding operations. In the IFTTT rule, both the a device and the C device are conditional devices, and the B device is an executive device.
Another example is: another IFTTT rule is: if the A device performs a certain operation or operations (or the parameters detected by the A device meet a certain condition or conditions), the B device performs the corresponding operation, and the D device performs the corresponding operation. In the IFTTT rule, a device condition device, B device and D device are execution devices.
It should be noted that, in some embodiments, there may be no conditional device in the IFTTT rule, and the executing device may automatically execute the corresponding operation according to, for example, local time.
In the prior art, a plurality of electronic device linkage processes based on the IFTTT rule are all schemes based on centralized control. For example: when the trigger event of the condition equipment occurs, the trigger event is transmitted to the control equipment through the Internet, after the control equipment performs logic judgment, an execution command is sent to the execution equipment through the Internet, and then the execution equipment executes corresponding operation. Because a plurality of electronic equipment need communicate through the internet, the linkage process must receive the influence of the connection state of internet, and the time delay is prolonged and the condition of instability is caused. In addition, a plurality of electronic devices can be home devices of users, the states of the home devices and the execution conditions of the IFTTT rules are uploaded to the Internet, and once information is leaked, great safety risks exist.
Therefore, the control method provided by the embodiment of the application can be used for linkage control between at least two electronic devices. In the linkage process between the at least two electronic devices, the electronic devices can directly communicate with each other through local connection, and linkage is completed. That is to say, in the linkage process completed by the at least two electronic devices, the centralized control method in the prior art is no longer adopted, that is, the relay through the control device is no longer needed.
Like this, on the one hand, can avoid the influence that the connection state of internet caused the linkage between a plurality of electronic equipment, also can avoid uploading the information of a plurality of electronic equipment the internet and the security risk that brings. On the other hand, the method is also beneficial to eliminating the time delay caused by the transfer of the control equipment and the condition of linkage failure caused by the disconnection of the control equipment, and improves the efficiency and the stability of linkage between the electronic equipment.
As shown in fig. 1, a system for linking a plurality of electronic devices provided in an embodiment of the present application includes: an electronic device 10 (electronic device a), a server 11 and one or more electronic devices 12 of a local network (electronic device B).
The electronic device 10 (electronic device a) is configured to provide an interactive interface between the system and a user, so that the user can set the IFTTT rule. In some embodiments, the electronic device 10 (electronic device a) issues the set IFTTT rule to the electronic device 12 (electronic device B) in the local network through the server 11. In other embodiments, the electronic device 10 (the electronic device a) may also establish a local connection with the electronic device 12 (the electronic device B) of the local network, and then the electronic device 10 (the electronic device a) may also send the set IFTTT rule to the electronic device 12 (the electronic device B) through the local connection, which is not limited in this embodiment of the present application.
Then, the electronic device 12 (electronic device B) of the local network may perform linkage between the plurality of electronic devices 12 (electronic devices B) of the local network based on the obtained IFTTT rule.
For example, the electronic device 10 (electronic device a) may be a mobile phone, a tablet Computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable electronic device, an Augmented Reality (AR) device, a smart stereo, or the like in a specific implementation.
The electronic device 10 (electronic device a) may establish a connection with the server 11 through a wired connection, a WIFI connection, a mobile data network, or other connection methods.
The structure of the electronic device 10 (electronic device a) in the embodiment of the present application may refer to the structure of the electronic device 100 shown in fig. 2A and the software structure diagram of the electronic device 100 shown in fig. 2B.
For example, the electronic device 12 (electronic device B) may be, in a specific implementation, a hardware device of a smart home, and may include a mobile terminal, a home appliance, a sensor device, and the like. For example: electronic device 12 (electronic device B) may be a smart phone, a smart television, a smart lamp, a smart jack, an air purifier, a humidifier, a smart range hood, a smart desk lamp, a smart speaker, a smart door lock, a smart patch panel, a smart induction cooker, a smart camera, or the like. For another example: the electronic device 12 (electronic device B) may also be a smoke sensor (for detecting whether there is gas leakage in the room), a human body sensor (for sensing whether there is a human body passing through), a temperature sensor (for detecting a temperature value of the room or an article), a humidity sensor (for detecting a humidity value of the room), a door/window sensor (for sensing whether a door/window is opened or closed), a PM2.5 air sensor (for detecting a content of PM2.5 in the room), or the like.
The electronic device 12 (electronic device B) in the local network may establish a connection with the server 11 through a wired connection, WIFI, mobile data network, or other connection means, or establish a connection with the server 11 through a router in the local network. The server 11 may be a home cloud, an IoT (Internet of Things) server or a server cluster, and various electronic and electrical devices in a home may be connected together, so as to implement unified management, remote monitoring, resource sharing, and the like, thereby implementing a high-efficiency and convenient living environment. It should be noted that all the electronic devices 12 (electronic devices B) in the local network may all establish a connection with the server 11, or a part of the electronic devices 12 (electronic devices B) (the electronic devices 12 (electronic devices B) that need to obtain the IFTTT rule) may establish a connection with the server 11, which is not limited in this embodiment of the present application.
Between the electronic devices 12 (electronic devices B) in the local network, a connection may be established in a wired or wireless manner, so that the electronic devices 12 (electronic devices B) may communicate directly with each other. The wireless connection mode may be any one or more of bluetooth, ZigBee (ZigBee), WiFi, and the like. The embodiment of the present application does not limit the connection manner between the electronic devices 12 (electronic device B) in the local network.
The structure of the electronic device 12 (electronic device B) in the embodiment of the present application may refer to the structure of the electronic device 100 shown in fig. 2A and the software structure diagram of the electronic device 100 shown in fig. 2B. It should be noted that electronic device 12 (electronic device B) may include more or fewer components than shown, or combine certain components, or split certain components, or have a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
For example: when the electronic device 12 (electronic device B) is an intelligent door lock, the electronic device 12 (electronic device B) may include the processor 110, the internal memory 121, the fingerprint sensor 180H, the wireless communication module 160 (for example, a WLAN communication module), the battery 142, an electric switch, and other components.
For another example: when the electronic device 12 (electronic device B) is a smart speaker, the electronic device 12 (electronic device B) may include a processor 110, an internal memory 121, a microphone (e.g., a microphone 170C), a wireless communication module 160 (e.g., may include a WLAN communication module, a bluetooth communication module, etc.), a power management module 141, a charging management module 140, a battery 142, a USB interface 130, an indicator 192, and the like.
Another example is: when the electronic device 12 (electronic device B) is an air conditioner, the electronic device 12 (electronic device B) may include components such as a processor 110, an internal memory 121, a wireless communication module 160 (which may include, for example, a WLAN communication module, an infrared signal module, and the like), a power management module 141, a charging management module 140, a refrigeration system, a ventilation system, an electrical control system, and a box system.
Hereinafter, a schematic diagram and a description of a hardware configuration of the electronic apparatus 100, and a schematic diagram and a description of a software configuration of the electronic apparatus 100 are given.
Fig. 2A shows a schematic structural diagram of the electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a display screen serial interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person. The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on. The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 100.
Fig. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2B, the application layer may include application packages such as camera, gallery, calendar, call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
In some embodiments of the present application, the application layer may include a first application, where the first application may be a smart home application, and a user may use the first application to set and manage devices of a smart home. For example: the user can use first application, sets up the IFTTT rule, and a plurality of second electronic equipment in the home network can be based on the IFTTT rule that the user set up and link, provide intelligent life at home for the user.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2B, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
First, before the plurality of electronic devices 12 (electronic devices B) perform linkage based on the IFTTT rule, the electronic device 10 (electronic device a) receives the setting of the IFTTT rule by the user.
For example, a web address associated with the server 11 may be entered in a browser of the electronic device 10 (electronic device a), and a setting page of the IFTTT rule may be logged in. Alternatively, the first application (e.g., smart home APP, etc.) may be used to log in the setup website of the IFTTT rule. Or, the IFTTT rule may also be set locally using a user interface of the first application (for example, the smart home APP, etc.), and the like, which is not limited in this embodiment of the application.
Taking a mobile phone as an example, fig. 3A to 3I show some schematic interface diagrams related to a setting process of the IFTTT rule provided in the embodiment of the present application.
As shown in fig. 3A, is a schematic view of a desktop 301 of a cell phone. Desktop 301 displays status bars, time and weather controls, application icons (e.g., icon 302 of smart home APP), and dock bars, among others. The status bar may include the name of the operator (e.g., china mobile), time, WiFi icon, signal strength, current remaining power, and the like.
When the mobile phone detects that the user clicks the icon 302 of the smart home in the desktop 301, the mobile phone enters the main interface 303 of the smart home APP as shown in fig. 3B.
The intelligent household APP can be used for discovering and connecting to electronic equipment of a home network, practical life scenes can be created based on the electronic equipment, and humanized information prompt, interaction and the like are provided.
For example, the mobile phone may set some manual life scenes through the smart home APP, that is, the user needs to manually start some life scenes, and based on a preset rule, the electronic device related to the life scene executes a corresponding operation. The manually opened life scenes are, for example: "go home", "go away from home", "read", "sleep", etc. The related setting may refer to the prior art, and is not described herein again.
For example: if the user clicks 'home' in the control 304 on the main interface 303 of the smart home APP, based on a preset rule, the window and curtain are opened for ventilation, and the television opens a channel or a program set by the user.
Exemplarily, the mobile phone can also set different life scenes based on time through the smart home APP. That is, after a certain predetermined time is reached, the electronic device associated with the predetermined time starts to automatically perform the corresponding operation based on the preset rule. The related setting may refer to the prior art, and is not described herein again.
For example: when the time reached 6 in the morning: and 30, based on a preset rule, turning on a bedroom lamp, playing music by an intelligent sound box, boiling soybean milk by a soybean milk machine and the like.
For example, the mobile phone may also set different life scenes based on the electronic device 12 (electronic device B) in the local network through the smart home APP. That is, when the working state of one or some electronic devices 12 (electronic devices B) satisfies the preset condition, other electronic devices 12 (electronic devices B) are automatically triggered to execute the corresponding operation.
For example: if the intelligent door lock identifies that the person at the door is legal, the intelligent door lock is automatically unlocked. Another example is: if the door is opened and the indoor temperature is higher than 28 degrees celsius, the air conditioner is automatically started.
The following explains a procedure for setting up different life scenes of the mobile phone based on the electronic device 12 (electronic device B) in the local network.
Referring to fig. 3B, on the main interface 303 of the smart home APP, when it is detected that the user clicks an "add" control 305, the mobile phone pops up a menu for setting an add device and an add scene, such as the menu 307 in the interface 306 shown in fig. 3C. In response to the user selecting the add scene in the menu 307, the mobile phone displays an interface for setting the IFTTT rule, such as the interface 308 shown in fig. 3D. The add control 309, on the left side of the interface 308, may be used to add conditional equipment and set trigger conditions. The add control 310 on the right side may be used to add an execution device and set an execution operation.
It should be noted that there may be many ways for a user to enter the interface for setting the IFTTT rule, and there may be various specific forms and specific contents of the interface for setting the IFTTT rule, which are not limited in this embodiment of the application.
On the interface 308 shown in fig. 3D, when the user is detected to click the add control 309, the mobile phone displays an interface 311 shown in fig. 3E, where the interface 311 is an interface for setting a condition device and a trigger condition in the IFTTT rule. On the interface 311, the user can select a condition device, and after selecting the condition device, the mobile phone pops up a window or a menu for setting a trigger condition of the condition device.
For example: as shown in interface 311 of fig. 3E, after detecting that the user selects "smart door lock", pop-up menu 312, the user can further set the trigger condition of the condition device. For example: the triggering condition is that the intelligent door lock is in an unlocking state.
Another example is: as shown in fig. 3F, interface 313, upon detecting user selection of "temperature sensor", pops up menu 314, and the user can further set the trigger condition of the condition device. For example: the triggering condition is that the temperature value of the temperature sensor is greater than or equal to 28 degrees.
It should be noted that, when the types of the condition devices are different, the types of the trigger conditions of the condition devices are also different. For example: the trigger condition may be an operating state of the condition device, such as on or off; the trigger condition may also be a detection value or a range of detection values of the condition device; the trigger condition may also be a detection result of a conditional device, for example: the human body sensor senses that a human body passes through or the smoke sensor detects a gas leakage event and the like. Therefore, when the types of the conditional devices are different, the corresponding interfaces for setting the trigger conditions are also different, and the embodiment of the present application does not limit this.
It should be further noted that the number of the condition devices set by the user may be one or more, and the trigger condition corresponding to each condition device may also be one or more, which is not limited in this embodiment of the application. After the condition device and the trigger condition are set, the user can save the setting by clicking the 'save' button. The user can also directly modify and delete the added conditional device and trigger condition, which is not described any more.
The following may set the execution device and the execution operation in the IFTTT rule. As shown in fig. 3G, when the user is detected to click the add control 310 on the interface 315, the mobile phone displays an interface 316 as shown in fig. 3H, and the user can select an execution device and set the operation of the execution device through the interface 316. For example: the execution device is selected as the intelligent air conditioner, the executed operation (also called as an execution event) is to start the intelligent air conditioner, and the temperature value of the intelligent air conditioner is set at 24 degrees.
It should be noted that the number of the execution devices may be one or more, and the execution operation corresponding to each execution device may also be one or more.
The execution device may be the same device as the conditional device or may be a different device. For example: rule 1 is "if the intelligent door lock recognizes that the person at the doorway is legal, the intelligent door lock is automatically unlocked", and in rule 1, both the condition device and the execution device are intelligent door locks. Another example is: rule 2 is "if the door is opened and the indoor temperature is higher than 28 degrees celsius, the air conditioner is automatically started", and in rule 2, the condition device is the door and the temperature sensor, and the performing device is the air conditioner.
After setting up the execution device and executing the event, the user may save the settings by clicking the "save" button, and interface 318 shown in FIG. 3I may be displayed. The user can also directly modify and delete the added execution device and execution event, which is not described any more.
It should be noted that, the user may set the condition device and the trigger condition first, and then set the execution device and the execution event, or may set the execution device and the execution event first, and then set the condition device and the trigger condition. It is also possible to set a part of the condition devices and trigger conditions, then set the execution devices and execution events, and then set another condition device and trigger conditions, etc. That is, the order of arrangement is not limited in the embodiments of the present application.
It can be understood that the IFTTT rule can also be set by the user through a voice manner (for example, when the electronic device a is a smart sound box, the user can talk with the smart sound box through voice), or through other manners such as a specific gesture, and the specific manner in which the user sets the IFTTT rule is not limited in the embodiment of the present application.
After the IFTTT rule is set in the electronic device 10 (electronic device a) (including adding, modifying, and deleting the IFTTT rule), the set IFTTT rule needs to be sent to the electronic device 12 (electronic device B) in the local network, and then the electronic device 12 (electronic device B) in the local network performs local linkage based on the IFTTT rule.
It is understood that the electronic device 12 (electronic device B) in the local network has different roles in different IFTTT rules. That is, a certain electronic device 12 (electronic device B) is a conditional device in some IFTTT rules, and is an executive device in other IFTTT rules.
For example: rule 1 is "if the intelligent door lock recognizes that the person at the doorway is legal, the intelligent door lock is automatically unlocked", and in rule 1, both the condition device and the execution device are intelligent door locks. Another example is: rule 2 is "if the smart door lock is unlocked and the indoor temperature is higher than 28 degrees celsius, the air conditioner is automatically started", in rule 2, the condition device is the smart door lock and the temperature sensor, and the execution device is the air conditioner. It can be seen that the smart door lock is a conditional device and an executive device in rule 1 and a conditional device in rule 2.
It should be noted that, in the same IFTTT rule, the number of the conditional device and the execution device may be one or more, and the embodiment of the present application is not limited. For example: in the above rule 1, the number of conditional devices is 1, and the number of execution devices is 1. In the above rule 2, the number of conditional devices is 2, and the number of execution devices is 1. For another example: rule 3 is "if the door is opened and the indoor temperature is higher than 28 degrees celsius, the window is automatically closed and the air conditioner is automatically started", and in rule 3, the condition devices are the door and the temperature sensor, and the execution devices are the window and the air conditioner. In rule 3, the number of conditional devices is 2, and the number of executive devices is 2.
For convenience of description, regarding a certain IFTTT rule, the role of the electronic device 12 (electronic device B) in the local network in the IFTTT rule is divided into a conditional device and an executive device, and the method for linking multiple electronic devices in the local network provided in the embodiment of the present application is exemplarily described. Here, the division of the condition device and the execution device does not constitute a specific limitation of the electronic device 12 (electronic device B).
It should be noted that, in the same IFTTT rule, the conditional device and the executive device may be the same or different. In other words, there is a certain electronic device that is both a conditional device and an executive device in one IFTTT rule. For example: in rule 1 above, both the conditional device and the executive device are smart door locks. In this case, in the method for linking a plurality of electronic devices described herein, when a certain electronic device has two roles (a conditional device and an executive device) in the same IFTTT rule and data transmission is required between the two roles, it is understood that the electronic device can directly call local data to obtain corresponding information, and no further description is provided.
Optionally, in the method for linking multiple electronic devices provided by the present application, the executing device may obtain the IFTTT rule in advance, and discover other electronic devices in the IFTTT rule, that is, conditional devices. After a trigger event occurs in one or some conditional devices in the IFTTT rule, the executing device may be notified directly through the local network. After receiving the notification message, the execution device may also directly query the trigger events of other conditional devices through the local network. When it is determined that the trigger events of all the condition devices occur, the execution device may execute the corresponding event (i.e., execute the event, which may also be understood as the execution device executing the corresponding function), i.e., complete the linkage.
Fig. 4A is a schematic view of a method for linking a plurality of electronic devices in a local network according to an embodiment of the present application. In the method, the IFTTT rule may be acquired by the enforcement device, and the conditional device may not acquire the IFTTT rule. The method specifically comprises the following steps:
s401, the first execution device acquires an IFTTT rule.
In the IFTTT rule, the trigger events of multiple conditional devices can be freely combined by various logic operations (e.g., logic and operation or logic or operation). When the trigger events of the multiple condition devices are all satisfied, the execution device is triggered to execute corresponding operations, namely, the execution device is triggered to execute the execution events. For example: the IFTTT rule may include an identification of the rule, condition (condition) information, and execution (action) information. Wherein, a plurality of IFTTT rules may exist in the local network, so the identification of the rule can be used to distinguish the IFTTT rules in the local network. The condition information may include: device identification, device type (type), attribute values, operators, numerical values, and the like. It is to be understood that the device identifier in the condition information is an identifier of a condition device, the device type is a type of the condition device, the attribute value is a parameter of the condition device (for example, when the condition device is a temperature sensor, the attribute value may be a temperature), the operator is a logical operation (for example, greater than, less than, etc.), the value is a value corresponding to the attribute value (for example, 26 degrees celsius), and the execution information may include: device identification, device type, and the particular operation performed, etc. For example: the IFTTT rule may set that the air conditioner is turned on if the temperature value detected by the temperature sensor is greater than 26 degrees celsius.
In some embodiments of the present application, the electronic device 10 (electronic device a) may actively push the IFTTT rule (including adding, modifying, and deleting the IFTTT rule) to the executing device in the local network or to the executing device through the server 11. In further embodiments of the present application, the enforcement device in the local network may also request the IFTTT rule from the electronic device 10 (electronic device a) or the server 11, and the electronic device 10 (electronic device a) or the server 11 sends the corresponding IFTTT rule to the enforcement device, which is not limited in this embodiment of the present application.
S402, the first execution device carries out validity check on the obtained IFTTT rule.
For example, the first execution device may parse the obtained IFTTT rule, determine the integrity and the correctness of the IFTTT rule, and check to ensure that the linkage between the conditional device and the execution device may be performed according to the obtained IFTTT rule.
For example: the integrity check of the IFTTT rule may include: detecting whether the IFTTT rule includes condition information and whether the condition information is complete, for example: the information of the condition equipment, the attribute value of the condition equipment, the operator of the condition equipment, whether the numerical value corresponding to the attribute value is complete and the like. Whether the IFTTT rule contains execution information or not and whether the execution information is complete or not are detected.
Another example is: the correctness detection of the IFTTT rule may further include: and carrying out validity check on the IFTTT rule, and determining whether the IFTTT rule is not tampered and the like.
And S403, the first execution device requests to discover the first conditional device and the second conditional device in the IFTTT rule according to the IFTTT rule.
Illustratively, the first enforcement device obtains the identification of the relevant conditional device and the identifications of other enforcement devices from the IFTTT rule, and performs multicast or broadcast in the local network to request to discover the conditional device and other enforcement devices in the IFTTT rule. That is, the first enforcement device may carry the identifier of the conditional device and the identifier of the enforcement device in the IFTTT rule in the multicast or broadcast message in the local network.
For example: assume the IFTTT rule is: the first execution device executes the third event if the first event of the first conditional device and the second event of the second conditional device occur simultaneously. The first event is a trigger event of the first conditional device, and the second event is a trigger event of the second conditional device. The third event is an execution event of the first execution device. Then, the first executing device may multicast or broadcast the identification of the first conditional device, the identification of the second conditional device.
In some embodiments, the first performing device may multicast or broadcast the identifier of the first conditional device and the identifier of the second conditional device, respectively, that is, one multicast or broadcast message includes only the identifier of the first conditional device, and another multicast or broadcast message includes only the identifier of the second conditional device. In other embodiments, the first executing device may also perform multicast or broadcast on the identifier of the first conditional apparatus and the identifier of the second conditional apparatus at the same time, that is, one multicast or broadcast message includes the identifier of the first conditional apparatus and the identifier of the second conditional apparatus. The embodiment of the present application does not limit this.
Another example is: the IFTTT rule is: if the intelligent door lock is unlocked and the temperature of the indoor temperature sensor is greater than 28 degrees, the intelligent air conditioner is turned on and the temperature is set at 24 degrees. Wherein, first conditional access is intelligent lock, and first incident is unblanking. The second conditional device is a temperature sensor and the second event is a temperature value greater than 28 degrees. The first execution device is the intelligent air conditioner, and the third event is that the intelligent air conditioner is started and the temperature is set at 24 degrees. Then, after the intelligent air conditioner acquires the IFTTT rule, it is determined that the conditional devices in the IFTTT rule are the intelligent door lock and the temperature sensor. The intelligent air conditioner may broadcast the identification of the intelligent door lock and the identification of the temperature sensor in the home network.
S404, the first conditional device and the second conditional device respectively reply the respective addresses to the first execution device.
Step S404 specifically includes: the first conditional apparatus replies to the first execution apparatus with its own address (step S404a), and the second conditional apparatus replies to the first execution apparatus with its own address (step S404 b).
For example, after receiving the multicast or broadcast message, the other electronic devices in the local network except the first execution device compare the device identifier in the multicast or broadcast message with their own identifiers. If the comparison is successful, it indicates that the electronic device is a conditional device or an execution device in the IFTTT rule, and replies respective addresses, such as an IP address, an MAC address, and the like, to the first execution device, so that the subsequent first execution device can send linkage-related messages to the first execution device according to the addresses. If the comparison fails, it indicates that the electronic device is not the conditional device or the executive device in the IFTTT rule, and the electronic device may ignore the received multicast or broadcast message.
For example: still assume that the IFTTT rule is: the first execution device executes the third event if the first event of the first conditional device and the second event of the second conditional device occur simultaneously. Then, after receiving the multicast or broadcast message sent by the first execution device, the first conditional device determines that the identifier of the first conditional device is included therein, then determines that the first conditional device is a conditional device in the IFTTT rule, and then sends the address of the first conditional device to the first execution device, so that the subsequent first execution device can send a corresponding message according to the address of the first conditional device. Similarly, the second conditional apparatus also sends the address of the second conditional apparatus to the first execution apparatus, which is not described in detail herein.
Another example is: the IFTTT rule is still: if the intelligent door lock is unlocked and the temperature of the indoor temperature sensor is greater than 28 degrees, the intelligent air conditioner is turned on and the temperature is set at 24 degrees.
And then, after receiving the broadcast message sent by the intelligent air conditioner, the intelligent door lock and the temperature sensor confirm that the broadcast message contains the identifier of the intelligent door lock and determine that the broadcast message is related to the IFTTT rule, and then return the network addresses of the intelligent door lock and the temperature sensor to the intelligent air conditioner respectively. Other devices in the home network, such as: after receiving the broadcast message, the air purifier, the intelligent door and window and the like determine that the air purifier is irrelevant to the IFTTT rule, and then the broadcast message sent by the intelligent air conditioner can be directly ignored.
S405, the first executing device subscribes to a first event from the first conditional device (shown in step S405a in fig. 4A), and subscribes to a second event from the second conditional device (shown in step S405b in fig. 4A).
For example, since the first execution device acquires the IFTTT rule and acquires the address of the relevant conditional device in the IFTTT rule, the first execution device may send a subscription message to each conditional device, so as to subscribe to the trigger event of each conditional device, that is, once the trigger event of each conditional device occurs, the first execution device may be notified.
For example: the subscription message sent by the first execution device to the first conditional device may include specific content of the first event. In this way, the first executing device may be notified when the first conditional device determines that the first event occurs based on the subscription message. Similarly, the subscription message sent by the first executing device to the second conditional device may include the specific content of the second event. In this way, the first executing device may be notified when the second conditional device determines that the second event occurs according to the subscription message. Shown in steps S405a and S405b, respectively.
Another example is: the IFTTT rule is still: if the intelligent door lock is unlocked and the temperature of the indoor temperature sensor is greater than 28 degrees, the intelligent air conditioner is turned on and the temperature is set at 24 degrees.
Then, after the intelligent air conditioner receives the respective network addresses sent by the intelligent door lock and the temperature sensor, the intelligent air conditioner respectively subscribes to an event 1 from the intelligent door lock and subscribes to an event 2 from the temperature sensor. Wherein event 1 is the unlocking of the intelligent door lock. Event 2 is the temperature of the indoor temperature sensor is greater than 28 degrees. Subsequently, when the intelligent door lock has an event 1 (namely, when the intelligent door lock is unlocked), the intelligent air conditioner is informed. Then, the smart air conditioner inquires of the temperature sensor whether event 2 occurs (i.e., whether the temperature is greater than 28 degrees). And after the temperature sensor determines that the temperature is higher than 28 ℃, the intelligent air conditioner is informed. Then, the smart air conditioner may determine to turn on the smart air conditioner and set the temperature to 24 degrees.
In some embodiments of the present application, after receiving the subscription message of the execution device, the condition device may report, to the execution device, at intervals, whether a trigger event occurs or whether a message meeting a trigger condition is received. And the executing device may determine whether the corresponding IFTTT rule is satisfied according to the message, and execute the corresponding execution event when satisfied. For example: after receiving the subscription message of the first execution device, the first conditional device may report, to the first execution device, a message indicating whether the first event occurs at intervals. Similarly, after receiving the subscription message of the first execution device, the second conditional device may report a message indicating whether the second event occurs to the first execution device at intervals. The first executing device may determine whether the IFTTT rule is satisfied according to the messages reported by the first conditional device and the second conditional device, and if so, directly execute the first event.
In other embodiments of the present application, the conditional device may also send a notification message to the execution device after receiving the subscription message of the execution device and after detecting a corresponding trigger event. For example: the first conditional apparatus may also send a notification message to the first execution apparatus that the first event has occurred after detecting the first event. Similarly, the second conditional apparatus may also send a notification message to the first execution apparatus that the first event has occurred after detecting the second event.
The following steps S406 to S409 are described by taking an example in which the condition device detects a corresponding trigger event and then sends a notification message to the execution device.
S406, when the first event of the first conditional device occurs, the first conditional device sends a notification message of the first event to the first execution device.
Wherein, the first event of the first condition device comprises: the first conditional device performs an operation, such as: the intelligent door lock is unlocked. Alternatively, the operating state of the first conditional device changes, for example: the smart air conditioner is changed from an off state to an on state. Alternatively, the detection value of the first conditional device satisfies a certain condition, such as: the temperature value detected by the temperature sensor is greater than or equal to 28 degrees. Another example is: the human body sensor senses that a human body passes through the sensor, and the like. That is to say, the specific content of the first event may be changed according to the function that the first conditional device has, and the specific content of the first event is not limited in this embodiment of the application.
After the first event occurs in the first conditional apparatus, a notification message may be sent to the first execution apparatus to notify the first conditional apparatus that the first event has occurred.
For example, the notification message may be a message with a specific format or specific content, and the first execution device may determine that the first event has occurred according to a sender (first conditional access) of the notification message after receiving the notification message. For another example, the notification message may also carry an identifier of the first conditional apparatus, and then, after receiving the notification message, the first execution apparatus may determine that the first event has occurred according to the identifier of the first conditional apparatus. For another example, the notification message may also carry an identifier of the first event or content of the first event, and then, after receiving the notification message, the first execution device may determine that the first event has occurred according to the identifier of the first event or the content of the first event. The specific form and content of the notification message are not limited in the embodiments of the present application.
S407, the first executing device sends a query message to the second conditional device, for querying whether the second event occurs.
The content of the second event may refer to the description about the first event in step S406, and is not described herein again.
In some embodiments, if the first execution device receives the notification message of the first event but does not receive the notification message of the second event, the first execution device may query the second conditional device whether the second event occurs.
In still other embodiments, if the first execution device receives the notification message of the first event and also receives the notification message of the second event, the first execution device may determine whether the IFTTT rule is satisfied according to the first event and the second event, and then execute step S409.
And S408, the second conditional device returns the query result to the first execution device.
After receiving the query message from the first execution device, the second conditional device may determine whether a second event occurs, and return the query result to the first execution device.
S409, the first execution equipment determines to execute a third event according to the notification message of the first event and the query result of the second event.
The third event is an execution event of the first execution device, and the execution event may be one action or a series of actions. That is, when the condition that triggers the first execution device to execute the first event is satisfied, the first execution device executes a series of actions in the first event simultaneously or sequentially. The execution event may also set a delay, i.e. the first execution device may start executing the first event after a preset delay time when a condition triggering the first execution device to execute the first event is fulfilled. The embodiment of the present application does not limit this.
Illustratively, the first execution device makes a logical decision based on the notification message of the first event and the query result of the second event. And if the judgment result is in accordance with the triggering condition in the IFTTT rule, the first execution equipment executes a third event. And if the first event is not consistent with the second event, the first execution device determines not to execute the third event.
In other examples, the notification message of the first event is time-sensitive. That is, the notification message of the first event is valid for a preset time period. If the preset time period is exceeded, the notification message is invalid, that is, the notification message cannot be used to indicate that the first event has occurred, the first execution device further needs to query the first condition device whether the first event has occurred. In a specific implementation, the conditional device may carry time information in the notification message, and the execution device determines whether the notification message is valid according to the time information. Or the execution device may determine whether the notification message is valid according to the time when the notification message is received, which is not limited in the embodiment of the present application. The query process is similar to the process in which the first execution device queries the second conditional device for whether the second event occurs, and is not described again.
In summary, in the method for linkage of multiple electronic devices provided in the embodiment of the present application, the execution device obtains the IFTTT rule in advance, and finds other electronic devices in the IFTTT rule. After the conditional device in the IFTTT rule has a trigger event, the executing device may be notified directly through the local network, and the executing device may also query the trigger events of other conditional devices directly through the local network. When the trigger conditions of all the condition devices meet the IFTTT rule, the execution device may execute the corresponding event, i.e., complete the linkage. It can be seen that the whole process from the occurrence of a trigger condition of a certain conditional device to the execution of a corresponding event by the executing device is completed in the local network. Therefore, even if the electronic equipment is disconnected from the Internet in the local network, the linkage of the electronic equipment in the local network can be still completed, the linkage success rate is improved, and the stability of the linkage system is improved. In addition, in the linkage process, the electronic devices of the local network directly communicate without passing through the Internet, so that the communication time delay is reduced, and the linkage efficiency is improved. Moreover, the states of all electronic devices in the local network and the execution condition of the IFTTT rule are prevented from being uploaded to the Internet, and the security risk is avoided.
In addition, in the method provided by the embodiment of the present application, the executing device in the IFTTT rule directly communicates with other conditional devices in the IFTTT rule, and does not relay and control through other intermediate devices, that is, does not relay and control through other devices (for example, gateways) unrelated to the IFTTT rule. In other words, the method provided by the embodiment of the application enables the plurality of electronic devices of the local network to get rid of dependence on the control device during linkage, thereby being beneficial to reducing the linkage time delay and improving the linkage efficiency.
In other embodiments of the present application, there are more than 2 conditional devices in an IFTTT rule, for example: if there is a third condition device corresponding to the fourth event, the process of linking the plurality of electronic devices is similar to the above steps S401 to S409. The difference lies in that:
in step S403, the first execution device requests to discover all conditional devices according to the IFTTT rule, that is, discovery of the first conditional device, the second conditional device, and the third conditional device is included. Therefore, the multicast message or the broadcast message sent by the first execution device further includes the identifier of the third conditional device.
In step S404, after receiving the multicast message or the broadcast message sent by the first execution device, the third conditional device determines that the multicast message or the broadcast message includes an identifier of the third conditional device, and also sends an address of the third conditional device to the first execution device, so that the subsequent first execution device can send a linkage-related message to the third conditional device.
In step S405, the first executing device also subscribes to a fourth event from the third conditional device. The fourth event is a trigger event corresponding to the third conditional device, and the related content may refer to the related description above, which is not described herein again.
In steps S407 to S409, in some embodiments, if the first execution device receives the notification message of the first event and does not receive the notification messages of the second event and the fourth event, the first execution device queries the second conditional device whether the second event occurs or not, and queries the third conditional device whether the fourth event occurs or not. And the second conditional device and the third conditional device respectively return query results to the first execution device, and the first execution device determines whether to execute the third event according to the query results.
And if the first execution device receives the notification messages of the first event and the second event and does not receive the notification message of the fourth event, the first execution device inquires whether the fourth event occurs or not from the third conditional device. The third conditional device returns a query result to the first execution device, and the first execution device determines whether to execute the third event according to the query result.
If the first execution device receives the notification messages of the first event, the second event and the fourth event, the first execution device directly determines whether to execute the third event.
For other contents, please refer to the description of the related contents above, and further description is omitted.
In other embodiments of the present application, there are 2 and more than 2 devices executing in one IFTTT rule, for example: there is also a second execution device.
For example: assume the IFTTT rule is: if the first event of the first conditional device and the second event of the second conditional device occur at the same time, the first execution device executes the third event and the second execution device executes the fifth event. And the fifth event is an execution event of the second execution device.
In some examples, it may be appreciated that the conditions that trigger the first execution device to execute the third event are the same as the conditions that trigger the second execution device to execute the fifth event. The second execution device may be notified to execute the fifth event when the first execution device determines that the third event is to be executed. Then, the second execution device may not obtain the IFTTT rule from the electronic device 10 (electronic device a) or the server 11. The linkage process of the multiple electronic devices can still be performed according to the method of steps S401 to S409. The difference lies in that:
in step S403, the first execution device requests to send the first conditional device, the second conditional device and the second execution device in the IFTTT rule according to the IFTTT rule. In some embodiments, the multicast message or the broadcast message sent by the first execution device further includes an identifier of the second execution device.
In step S404, after receiving the multicast message or the broadcast message sent by the first execution device, the second execution device determines that the multicast message or the broadcast message includes the identifier of the second execution device, and also sends the address of the second execution device to the first execution device, so that the subsequent first execution device can send a linkage-related message to the second execution device.
In step S409, when the first execution device determines that the third event is to be executed according to the notification message of the first event and the query result of the second event, an instruction is sent to the second execution device to notify the second execution device to execute the fifth event. Then, the second execution device executes the fifth event.
In other examples, the second performing device may obtain the IFTTT rule from the electronic device 10 (electronic device a) or the server 11, and a processing procedure after the second performing device obtains the IFTTT rule is the same as a processing procedure after the first performing device obtains the IFTTT rule, and is not repeated herein.
Other contents can refer to the description of the related contents above, and are not repeated.
Optionally, in another method for linking multiple electronic devices provided in the embodiment of the present application, a conditional device obtains an IFTTT rule in advance, and finds other electronic devices in the IFTTT rule, for example, an execution device. After a trigger event occurs in one or some conditional devices in the IFTTT rule, other conditional devices can be notified directly through the local network. And after determining that the IFTTT rule is met, the other condition equipment instructs the execution equipment to execute a corresponding event, namely completing linkage.
It is understood that the method of linking a plurality of electronic devices shown in fig. 4A may also be applied to linking between two electronic devices. Specifically, please refer to fig. 4B, which is a schematic diagram of a method for linking two electronic devices (an execution device and a condition device) in a local network according to an embodiment of the present application, where the method specifically includes:
s410, the execution equipment acquires the IFTTT rule.
Wherein, the IFTTT rule is that when the conditional device generates a first event, the execution device executes a corresponding execution event (such as a first function).
This step may refer to the related description in step S401 in fig. 4A.
S411, the execution device performs validity check on the obtained IFTTT rule.
This step may refer to the relevant description in step S402 in fig. 4A.
S412, the executing device requests to discover the conditional device in the IFTTT rule.
This step may refer to the relevant description in step S403 in fig. 4A.
S413, the conditional device returns its own address to the execution device.
This step may refer to the relevant description in step S404 in fig. 4A.
And S414, the execution device sends a subscription message aiming at the first event to the conditional device.
This step may refer to the relevant description in step S405 in fig. 4A.
S415, when the first event occurs in the conditional device, the conditional device issues a notification message of the first event to the execution device.
This step may refer to the relevant description in step S406 in fig. 4A.
And S416, the execution equipment determines to execute the corresponding execution event according to the first event.
This step may refer to the related description in step S409 in fig. 4A.
Fig. 5A is a schematic view of another method for linking a plurality of electronic devices in a local network according to an embodiment of the present application. In the method, the conditional device may obtain the IFTTT rule, and the execution device may not obtain the IFTTT rule, and the method specifically includes:
s501, the first conditional device and the second conditional device respectively acquire the IFTTT rule.
The method specifically comprises the following steps: the first conditional apparatus acquires the IFTTT rule (step S501a) and the second conditional apparatus acquires the IFTTT rule (step S501 b).
The method for acquiring the IFTTT rule by the first conditional device and the second conditional device may refer to the method for acquiring the IFTTT rule by the first execution device in step S401, which is not described again.
S502, the first conditional device and the second conditional device respectively perform validity check on the obtained IFTTT rule.
The method specifically comprises the following steps: the first conditional apparatus performs validity check on the acquired IFTTT rule (step S502a), and the second conditional apparatus performs validity check on the acquired IFTTT rule (step S502 b).
Illustratively, the first conditional device and the second conditional device respectively analyze the obtained IFTTT rule, and determine the integrity and correctness of the IFTTT rule to check, so as to ensure that linkage between the conditional device and the execution device can be performed according to the obtained IFTTT rule.
S503, the first conditional device requests to discover a first execution device and a second conditional device according to an IFTTT rule; the second conditional apparatus requests discovery of the first execution apparatus and the first conditional apparatus according to the IFTTT rule.
The method specifically comprises the following steps: the first conditional device requests discovery of the first execution device and the second conditional device (step S503b), and the second conditional device requests discovery of the first execution device and the first conditional device (S503 a).
Illustratively, the first conditional apparatus and the second conditional apparatus respectively obtain the identification of the relevant other apparatus from the IFTTT rule, and multicast or broadcast in the local network, requesting to discover the other apparatus in the IFTTT rule. That is, the identifier of the other device in the IFTTT rule may be carried in the multicast or broadcast message in the local network.
For example: assume the IFTTT rule is: the first execution device executes the third event if the first event of the first conditional device and the second event of the second conditional device occur simultaneously. The first event is a trigger event of the first conditional device, and the second event is a trigger event of the second conditional device. The third event is an execution event of the first execution device. Then, the first executing device may multicast or broadcast the identification of the first conditional device, the identification of the second conditional device. Then, the first conditional apparatus may carry the identifiers of the first execution apparatus and the second conditional apparatus in the multicast or broadcast message in the local network. The second conditional access device may carry the identifiers of the first execution device and the first conditional access device in the multicast or broadcast message in the local network.
S504, the first executing device and the second conditional device reply respective addresses to the first conditional device; the first executing device and the first conditional device reply to the second conditional device with their respective addresses.
Shown in step S504a, step S504b, step S504c and step S504d, respectively.
And S505, when the first event of the first condition device occurs, the first condition device issues the first event to the second condition device.
After the first event occurs in the first conditional device, a notification message may be sent to the second conditional device to notify the first conditional device that the first event has occurred.
For example, the notification message may be a message of a specific format or specific content, and the second conditional apparatus may determine that the first event has occurred according to a sender (first conditional apparatus) of the notification message after receiving the notification message. For another example, the notification message may also carry an identifier of the first conditional apparatus, and then, after receiving the notification message, the second conditional apparatus may determine that the first event has occurred according to the identifier of the first conditional apparatus. For another example, the notification message may also carry an identifier of the first event or content of the first event, and then, after receiving the notification message, the second conditional apparatus may determine that the first event has occurred according to the identifier of the first event or the content of the first event. The specific form and content of the notification message are not limited in the embodiments of the present application.
And S506, when a second event of the second conditional device occurs, the second conditional device sends a command for executing a third event to the first execution device.
Since the second conditional device obtains the IFTTT rule, the second conditional device may determine whether the IFTTT rule is satisfied according to the received notification message of the first event and in combination with the second event that occurs by itself, and if the IFTTT rule is satisfied, send a command to the first execution device to execute the third event.
In some embodiments, the notification message of the first event is time sensitive. That is, the notification message of the first event is valid for a preset time period. If the preset time period is exceeded, the notification message is invalid, that is, the notification message cannot be used to indicate that the first event has occurred, and then, when the second event occurs, the second conditional device further needs to query the first conditional device whether the first event has occurred, which is not repeated in the embodiments of the present application.
And S507, the first execution equipment executes a third event.
The third event is an execution event of the first execution device, and the execution event may be one action or a series of actions. That is, when the condition that triggers the first performing device to perform the third event is satisfied, the first performing device performs a series of actions in the third event simultaneously or sequentially. The execution event may also set a delay, i.e. the first execution device may start executing the third event after a preset delay time when a condition triggering the first execution device to execute the third event is fulfilled. The embodiment of the present application does not limit this.
It is to be understood that, if a second event of the second conditional apparatus occurs before a first event of the first conditional apparatus, the second conditional apparatus may issue the second event to the first conditional apparatus first, and subsequently, when the first event occurs in the first conditional apparatus, it may be determined whether the IFTTT rule is satisfied according to the notification message of the second event and the first event. And if so, the first conditional apparatus instructs the first execution apparatus to execute the third event.
The following describes an exemplary local linkage method in the embodiment of the present application with reference to specific scenarios.
As shown in fig. 5B, the electronic device 10 (electronic device a) is a mobile phone, the first conditional access device is a smart door, the second conditional access device is a luminance sensor, and the first execution device is a lamp.
The smart door and the brightness sensor respectively acquire an IFTTT rule from the mobile phone side, for example: if the intelligent door is unlocked and the brightness sensor detects darkness, the lighting is executed. Then, when the intelligent door is unlocked, the event is issued to the brightness sensor, the brightness sensor detects whether the brightness of the room is dark, and if the brightness of the room is dark, the brightness sensor issues the event to the lamp. And after the lamp receives the event issued by the brightness sensor, the lamp is turned on.
In summary, in the method for linkage of multiple electronic devices provided in the embodiment of the present application, the conditional device obtains the IFTTT rule in advance, and finds other electronic devices in the IFTTT rule. After the condition device in the IFTTT rule has a trigger event, the condition device can directly notify other condition devices through the local network, and after each condition device determines that the IFTTT rule is satisfied, the execution device is instructed to execute the corresponding event, that is, the linkage is completed. Therefore, the whole process from the occurrence of the trigger condition of a certain condition device to the execution of the corresponding event by the execution device is completed in the local network, so that the linkage efficiency is improved, and the safety of user data is improved.
In other embodiments of the present application, there are more than 2 conditional devices in an IFTTT rule, for example: if there is a third condition device corresponding to the fourth event, the process of linking the plurality of electronic devices is similar to the above steps S501 to S507. The difference lies in that:
in step S501, all the conditional devices need to acquire the IFTTT rule from the server 11 or the electronic device 10 (electronic device a), that is, the third conditional device also needs to acquire the IFTTT rule. In step S502, the third conditional device also performs a validity check on the IFTTT rule.
In step S503, the first conditional apparatus and the second conditional apparatus also discover the third conditional apparatus, that is, the multicast message or the broadcast message sent by the first conditional apparatus and the second conditional apparatus also includes an identifier of the third conditional apparatus. Similarly, the third conditional device also sends a multicast message or a broadcast message for discovering other electronic devices in the IFTTT rule, such as: a first conditional apparatus, a second conditional apparatus and a first execution apparatus.
In step S504, after receiving the multicast message or the broadcast message respectively sent by the first conditional apparatus and the second conditional apparatus, the third conditional apparatus also sends the address of the third conditional apparatus to the first conditional apparatus and the second conditional apparatus respectively. Similarly, after receiving the multicast message or the broadcast message sent by the third conditional device, the first conditional device, the second conditional device and the first execution device may also reply their respective network addresses to the third conditional device.
In steps S505 to S506, when the first event occurs at the first condition device, the first condition device issues the first event to the second condition device and the third condition device, respectively. In this way, both the second and third conditional access devices know that the first event has occurred. When the second event occurs, the second conditional apparatus issues the second event to the third conditional apparatus (the second event may also be issued to the first conditional apparatus at the same time). In this way, when the fourth event (the trigger event corresponding to the third conditional device) of the third conditional device occurs, the third conditional device determines whether to instruct the first execution device to execute the third event according to the IFTTT rule.
For other contents, please refer to the description of the related contents above, and further description is omitted.
In other embodiments of the present application, there are 2 and more than 2 devices executing in one IFTTT rule, for example: there is also a second execution device, and the event that needs to be executed by the second execution device is a fifth event. Then, when it is determined that the trigger events of all the conditional devices satisfy the IFTTT rule, the first execution device is instructed to execute the third event, and at the same time, the other execution devices are also instructed to execute the corresponding events.
For example: assume the IFTTT rule is: if the first event of the first conditional device and the second event of the second conditional device occur at the same time, the first execution device executes the third event and the second execution device executes the fifth event. And the fifth event is an execution event of the second execution device.
In this scenario, the methods in steps S501 to S507 may still be adopted, with the difference that:
in steps S503 to S504, the second execution device also needs to be discovered during the process of discovering other devices in the IFTTT rule by the conditional device. The related contents can refer to the above description and are not repeated.
In step S506, when a second event of the second conditional apparatus occurs, the second conditional apparatus instructs the first execution apparatus to execute the third event, while the second conditional apparatus instructs the second execution apparatus to execute the fifth event.
Other contents refer to the description of the related contents above, and are not repeated.
Optionally, in another method for linking multiple electronic devices provided in the embodiment of the present application, the execution device and the partial condition device obtain the IFTTT rule in advance, and discover other electronic devices in the IFTTT rule, for example: other conditional facilities. When a trigger event occurs in a certain conditional device that acquires the IFTTT rule, the trigger events of other conditional devices may be queried, or the execution device may be notified, and the trigger events of other conditional devices may be queried by the execution device. And finally, after the triggering conditions of all the condition devices are determined to occur, the execution device executes corresponding events, namely, linkage is completed.
Fig. 6A is a schematic view of another method for linking a plurality of electronic devices in a local network according to an embodiment of the present application. In the method, the IFTTT rule may be acquired by a part of conditional devices and execution devices, and the method specifically includes:
s601, the first conditional apparatus and the first execution apparatus respectively acquire the IFTTT rule.
The method specifically comprises the following steps: the first conditional device acquires the IFTTT rule (step S601a), and the first execution device acquires the IFTTT rule (step S601 b).
The method for acquiring the IFTTT rule by the first conditional apparatus and the first executive apparatus may refer to the step S401 where the first executive apparatus acquires the IFTTT rule, which is not described in detail again.
S602, the first conditional device and the first execution device respectively perform validity check on the obtained IFTTT rule.
The method specifically comprises the following steps: the first conditional apparatus performs validity check on the acquired IFTTT rule (step S602b), and the first execution apparatus performs validity check on the acquired IFTTT rule respectively (S602 a).
Illustratively, the first conditional device and the first execution device respectively analyze the obtained IFTTT rule, and determine the integrity and correctness of the IFTTT rule to check, so as to ensure that linkage between the conditional device and the execution device can be performed according to the obtained IFTTT rule.
S603, the first conditional equipment requests to discover the first execution equipment and the second conditional equipment according to the IFTTT rule; the first enforcement device requests discovery of the first conditional device and the second conditional device according to the IFTTT rule.
The method specifically comprises the following steps: the first conditional device requests discovery of the first and second conditional devices (step S603a), and the first conditional device requests discovery of the first and second conditional devices (step S603 b).
Illustratively, the first conditional apparatus and the second conditional apparatus respectively obtain the identification of the relevant other apparatus from the IFTTT rule, and multicast or broadcast in the local network, requesting to discover the other apparatus in the IFTTT rule. That is, the identifier of the other device in the IFTTT rule may be carried in the multicast or broadcast message in the local network.
In some embodiments, the first conditional apparatus may not discover the second conditional apparatus when in this step, because the first conditional apparatus does not need to send data to the second conditional apparatus. That is, the multicast message or the broadcast message sent by the first conditional access device does not carry the identifier of the second conditional access device, so that the second conditional access device does not need to reply its own network address to the first conditional access device after receiving the multicast message or the broadcast message. Similarly, the first execution device does not need to send data to the first conditional device, and therefore, in this step, the first execution device may not discover the first conditional device. That is, the multicast message or the broadcast message sent by the first execution device does not carry the identifier of the first conditional device.
S604, the first executing device and the second conditional device reply respective addresses to the first conditional device; the first executing device and the first conditional device reply with their respective addresses.
Shown in step S604a, step S604b, step S604c and step S604d, respectively.
S605, when a first event of the first conditional device occurs, the first conditional device issues the first event to the first execution device.
After the first event occurs in the first conditional apparatus, a notification message may be sent to the first execution apparatus to notify the first conditional apparatus that the first event has occurred.
And S606, the first execution device inquires the second conditional device about the second event according to the IFTTT rule.
S607, the second conditional apparatus returns the query result of the second event to the first execution apparatus.
And S608, the first execution device executes the third event.
And the first execution equipment determines whether the IFTTT rule is met according to the notification message of the first event and the query result of the second time. And if so, executing a third event. Otherwise, the third event is not executed.
In other embodiments of the present application, after the first conditional apparatus sends the first event, the second conditional apparatus may also be queried for the second event. The first conditional apparatus determines whether the first event and the second event satisfy the IFTTT rule, and if so, instructs the first execution apparatus to execute the third event. That is to say, steps S605 to S607 may be replaced with steps S609 to S610, that is, the method for linking multiple devices provided by the embodiment of the present application includes: s601 to S604, S609 to S611, and step S608 are as follows:
and S609, when the first condition device generates the first event, the first condition device inquires the second condition device whether the second event occurs.
S610, the second conditional device returns the query result of the second time to the first conditional device.
S611, the first conditional device determines whether the IFTTT rule is satisfied according to the query results of the first event and the second event, and if so, the first execution device is instructed to execute the third event.
It should be noted that, in some embodiments, if the electronic device adopts the flow from step S609 to step S611, since the first executing device does not need to send data to the first conditional device and the second conditional device, the first executing device may not discover the first conditional device and the second conditional device in steps S603 and S604.
In summary, in this embodiment, the executing device and the conditional device acquire the IFTTT rule, and a process of subscribing the executing device to the conditional device for the trigger event may be omitted. Also, in this embodiment, only when a first event of the first conditional device occurs will the status of a second event be queried. That is to say, when the second event of the second conditional device occurs frequently, the second conditional device does not issue the second event frequently, which is beneficial to saving resources.
For example: as shown in fig. 6B, the electronic device 10 (electronic device a) is a mobile phone, the first conditional access device is a smart door, the second conditional access device is a luminance sensor (for detecting the luminance of the indoor environment), and the first execution device is a lamp.
The IFTTT rule is obtained from the cell-phone respectively to intelligence door and lamp, for example, if intelligent lock has unblanked, and when indoor environment was in the dark state, then opened indoor lamp automatically. Then, when the smart door unlocks, the smart door issues an unlocking event to the light. The light then queries the light sensor for darkness. If it is dark, the lamp is automatically turned on. Therefore, in the application, only when the intelligent door lock is unlocked, that is, when a person in a house returns, the detection result of the brightness sensor is inquired. And if the detection result shows that the indoor environment is in a dark state, turning on the lamp. Consider that an indoor environment may be constantly dark when no one is present at home. If the brightness sensor issues an indoor dark event all the time, the significance is not achieved, and resources are wasted.
In other embodiments of the present application, there are more than 2 conditional devices in an IFTTT rule, for example: if there is a third condition device corresponding to the fourth event, the process of linking the plurality of electronic devices is similar to the above steps S601 to S608.
In some examples, the third conditional apparatus may not acquire the IFTTT rule, and then, unlike the method adopted in the above steps S601 to S608, the method is different:
in the process of discovering other electronic devices in steps S603 to S604, a third conditional device is also to be discovered, and details of the discovery process are not repeated.
In step S606, when the first execution device queries the second conditional device for the second event, it also queries the third conditional device for the fourth event. And the fourth event is a trigger event corresponding to the third conditional device. Then, the third conditional apparatus returns the query result of the fourth event to the first execution apparatus.
In step S608, the first execution device determines whether the IFTTT rule is satisfied and whether the third event is executed according to the notification message of the first event, the second event, and the query result of the fourth event.
For other contents, please refer to the description of the related contents above, and further description is omitted.
In other examples, the third conditional apparatus may obtain the IFTTT rule, and then, the method is different from the methods of S601 to S604, S609 to S611, and step S608 described above in that:
for the interaction between the first conditional apparatus and the third conditional apparatus, which both obtain the IFTTT rule, reference may be made to the interaction between the first conditional apparatus and the second conditional apparatus in steps S501 to S507, which is not described again.
In other examples, the third conditional apparatus may obtain the IFTTT rule, and then, the method is different from the methods of S601 to S604, S609 to S611, and step S608 described above in that:
for the interaction between the first conditional apparatus and the third conditional apparatus, which both obtain the IFTTT rule, reference may be made to the interaction between the first conditional apparatus and the second conditional apparatus in steps S501 to S507, which is not described again.
In other embodiments of the present application, there are more than 2 conditional devices in an IFTTT rule, for example: in addition, the process of linking the plurality of electronic devices is similar to the above steps S601 to S604, S609 to S611, and S608.
In some examples, the third conditional apparatus may not acquire the IFTTT rule, and then, differs from the methods of S601 to S604, S609 to S611, and step S608 described above in that:
in the process of discovering other electronic devices in steps S603 to S604, a third conditional device is also to be discovered, and details of the discovery process are not repeated.
In step S609, when the first event of the first conditional device occurs, the second conditional device is queried for the second event, and the third conditional device is also queried for the fourth event. Then, the third conditional apparatus returns the query result of the fourth event to the first conditional apparatus.
In step S611, the first conditional apparatus determines whether to instruct the first execution apparatus to execute the third event according to the query results of the first event, the second event, and the fourth event.
For other contents, please refer to the description of the related contents above, and further description is omitted.
In other examples, the third conditional apparatus may obtain the IFTTT rule, and then, the method is different from the methods of S601 to S604, S609 to S611, and step S608 described above in that:
for the interaction between the first conditional apparatus and the third conditional apparatus, which both obtain the IFTTT rule, reference may be made to the interaction between the first conditional apparatus and the second conditional apparatus in steps S501 to S507, which is not described again.
In other embodiments of the present application, there are 2 and more than 2 devices executing in one IFTTT rule, for example: there is also a second execution device, and the event that needs to be executed by the second execution device is a fifth event. Then, when it is determined that the trigger events of all the conditional devices satisfy the IFTTT rule, the first execution device is instructed to execute the third event, and at the same time, the other execution devices are also instructed to execute the corresponding events.
For example: assume the IFTTT rule is: if the first event of the first conditional device and the second event of the second conditional device occur at the same time, the first execution device executes the third event and the second execution device executes the fifth event. And the fifth event is an execution event of the second execution device.
In this scenario, the method of steps S601 to S608 described above or the method of steps S601 to S604, steps S609 to S611, and step S608 described above may still be employed, except that:
in steps S603 to S604, the conditional device and the executive device also need to discover the second executive device in the process of discovering other devices in the IFTTT rule. The related contents can refer to the above description and are not repeated.
In step S608, when the first execution device determines to execute the third event, the second execution device is also instructed to execute the fifth event. Alternatively, in step S611, when the first conditional apparatus instructs the first execution apparatus to execute the third event, the second execution apparatus is also instructed to execute the fifth event.
Other contents refer to the description of the related contents above, and are not repeated.
It is to be understood that the above-mentioned terminal and the like include hardware structures and/or software modules corresponding to the respective functions for realizing the above-mentioned functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
In the embodiment of the present application, the terminal and the like may be divided into functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation. The following description will be given by taking the division of each function module corresponding to each function as an example:
fig. 7 shows a schematic structural diagram of an apparatus according to the foregoing embodiments, where the apparatus may implement the functions of the electronic device in the method provided in the embodiments of the present application. The apparatus may be an electronic device or an apparatus that can support the electronic device to implement the functions of the electronic device in the embodiment of the present application, for example, the apparatus is a chip system applied in the electronic device. The device includes: a processing unit 701 and a communication unit 702. Among them, the processing unit 701 may be used to support the electronic device shown in fig. 4A to execute steps S402 and S409 in the above-described embodiment, or to support the electronic device shown in fig. 4B to execute steps S411 and S416 in the above-described embodiment, or to support the electronic device shown in fig. 5A to execute steps S502 and S507 in the above-described embodiment, or to support the electronic device shown in fig. 6A to execute steps S602 and S608 in the above-described embodiment. The communication unit 702 is configured to support the electronic device shown in fig. 4A to execute steps S401, S403 to S408 in the foregoing embodiment, or to support the electronic device shown in fig. 4B to execute steps S412 to S415 in the foregoing embodiment, or to support the electronic device shown in fig. 5A to execute steps S501, S503 to S506 in the foregoing embodiment, or to support the electronic device shown in fig. 6A to execute steps S601, S603 to S607, S609 to S611 in the foregoing embodiment. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Optionally, in the embodiment of the present application, the chip system may be composed of a chip, and may also include a chip and other discrete devices.
Alternatively, the communication unit in the embodiments of the present application may be a circuit, a device, an interface, a bus, a software module, a transceiver, or any other device that can implement communication.
Alternatively, the communication unit 702 may be an electronic device or a communication interface of a system-on-chip applied to the electronic device, for example, the communication interface may be a transceiver circuit, and the processing unit 701 may be a processor integrated on the electronic device or the system-on-chip applied to the electronic device.
Fig. 8 is a schematic diagram illustrating a possible logical structure of the apparatus according to the above embodiments, which may implement the functions of the electronic device in the method provided in the embodiments of the present application. The device can be an electronic device or a chip system applied to the electronic device, and comprises: a processing module 801 and a communication module 803. The processing module 801 is used for controlling and managing the operation of the apparatus shown in fig. 7, and for example, the processing module 801 is used for executing a step of performing message or data processing on the apparatus side shown in fig. 7. For example, it may be used to support the apparatus shown in fig. 7 to perform steps S402 and S409 in the above-described embodiment, or to perform steps S411 and S416 in the above-described embodiment, or to perform steps S502 and S507 in the above-described embodiment, or to perform steps S602 and S608 in the above-described embodiment. The communication module 803 is used to support the apparatus shown in fig. 7 to execute steps S401, S403 to S408 in the foregoing embodiment, or execute steps S412 to S415 in the foregoing embodiment, or execute steps S501, S503 to S506 in the foregoing embodiment, or execute steps S601, S603 to S607, S609 to S611 in the foregoing embodiment. And/or other processes performed by the apparatus shown in fig. 8 for the techniques described herein. Optionally, the apparatus shown in fig. 8 may further include a storage module 802 for storing program codes and data of the apparatus.
The processing module 801 may be a processor or controller, such as a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure of the embodiments of the application. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a digital signal processor and a microprocessor, or the like. The communication module 803 may be a transceiver, a transceiving circuit or a communication interface, etc. The storage module 802 may be a memory.
When the processing module 801 is the processor 110, the communication module 803 is the mobile communication module 150, the wireless communication module 160, or the USB interface 130, and the storage module 802 is the internal memory 121, or an external memory connected to the external memory interface 120, the apparatus according to the embodiment of the present application may be the electronic device 100 shown in fig. 2A.
The method provided by the embodiment of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a network appliance, a terminal, or other programmable apparatus. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Video Disk (DVD)), or a semiconductor medium (e.g., SSD), among others.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above description is only for the specific implementation of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the embodiments of the present application, and all the changes or substitutions should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (22)

1. A method for linkage control of multiple electronic devices is characterized by comprising the following steps:
the method comprises the steps that a first electronic device acquires a first rule, wherein the first rule indicates that when a first event occurs in a second electronic device, the first electronic device executes a first function;
the first electronic equipment sends a subscription message aiming at the first event to the second electronic equipment according to the first rule;
the first electronic equipment receives a notification message of the first event sent by the second electronic equipment;
in response to receiving the notification message of the first event, the first electronic device executes the first function according to the first rule.
2. The method of claim 1, further comprising:
the first electronic equipment acquires a second rule, wherein the second rule indicates that when a second event occurs in third electronic equipment and third events are sent by fourth electronic equipment, the first electronic equipment executes a second function;
the first electronic equipment sends a subscription message aiming at the second event to the third electronic equipment according to the second rule;
the first electronic equipment receives a notification message of the second event sent by the third electronic equipment;
the first electronic device determining whether the third event occurred at the fourth electronic device;
in response to determining that the third event occurred at the fourth electronic device, the first electronic device performs the second function according to the second rule.
3. The method according to claim 2, wherein, in response to determining that the third event occurs at the fourth electronic device, the first electronic device performs the second function according to the second rule, specifically:
in response to the first electronic device receiving a notification message sent by the fourth electronic device that the third event has occurred, the first electronic device performs the second function according to the second rule.
4. The method of claim 3, wherein before the first electronic device receives the notification message sent by the fourth electronic device that the third event has occurred, the method further comprises:
in response to receiving the notification message of the second event sent by the third electronic device, the first electronic device sends a message inquiring whether the third event occurs to the fourth electronic device.
5. The method of any of claims 2-4, wherein after the first electronic device obtains the second rule, the method further comprises:
and the first electronic equipment acquires the address of the third electronic equipment and the address of the fourth electronic equipment according to the second rule.
6. The method of claim 5, wherein the second rule comprises an identification of the third electronic device and an identification of the fourth electronic device;
the acquiring, by the first electronic device, the address of the third electronic device and the address of the fourth electronic device according to the second rule specifically includes:
the first electronic device multicasts or broadcasts a first message, wherein the first message comprises the identification of the third electronic device and the identification of the fourth electronic device;
the first electronic equipment receives the address of the third electronic equipment returned by the third electronic equipment; and the electronic equipment receives the address of the fourth electronic equipment returned by the fourth electronic equipment.
7. The method of any of claims 2-6, wherein after the first electronic device obtains the second rule, the method further comprises:
the first electronic device detects the validity of the second rule.
8. The method of any of claims 2-7, wherein the first electronic device obtaining a second rule comprises:
the first electronic device obtains the second rule from a server or a fifth electronic device.
9. A method for linkage control of multiple electronic devices is characterized by comprising the following steps:
the method comprises the steps that a first electronic device acquires a first rule, wherein the first rule indicates that a third electronic device executes a first function when a first event occurs in the first electronic device and a second event occurs in a second electronic device;
the first electronic equipment receives a notification message of the second event sent by the second electronic equipment;
in response to receiving the notification message of the second event, the first electronic device detects whether the first event occurs;
if the first event is detected to have occurred, the first electronic device sends an execution instruction to the third electronic device, and the execution instruction instructs the third electronic device to execute the first function.
10. A system for linkage control of multiple electronic devices is characterized by comprising a first electronic device and a second electronic device;
the first electronic device to:
acquiring a first rule, wherein the first rule indicates that when a first event occurs in the second electronic device, the first electronic device executes a first function;
according to the first rule, sending a subscription message aiming at the first event to the second electronic equipment;
the second electronic device is used for sending a notification message of the first event to the first electronic device when the first event is detected to have occurred;
the first electronic device is further configured to execute the first function according to the first rule in response to the received notification message of the first event.
11. The system of claim 10, further comprising a third electronic device and a fourth electronic device,
the first electronic device is further configured to:
acquiring a second rule, wherein the second rule indicates that when a second event occurs in the third electronic device and a fourth electronic device sends a third event, the first electronic device executes a second function;
according to the second rule, sending a subscription message aiming at the second event to the third electronic equipment;
the third electronic device is configured to send a notification message that the second event has occurred to the first electronic device when it is detected that the second event has occurred;
the first electronic device is further configured to:
determining whether the third event occurs at the fourth electronic device;
in response to determining that the third event occurred at the fourth electronic device, performing the second function according to the second rule.
12. A first electronic device, comprising: a processor and a memory coupled with the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when executed by the first electronic device, cause the first electronic device to perform operations comprising:
acquiring a first rule, wherein the first rule indicates that when a first event occurs in a second electronic device, the first electronic device executes a first function;
according to the first rule, sending a subscription message aiming at the first event to the second electronic equipment;
receiving a notification message of the first event sent by the second electronic equipment;
executing the first function according to the first rule in response to the received notification message of the first event.
13. The first electronic device of claim 12, wherein the computer instructions, when executed by the first electronic device, further cause the first electronic device to:
acquiring a second rule, wherein the second rule indicates that when a second event occurs in a third electronic device and a fourth electronic device sends the third event, the first electronic device executes a second function;
according to the second rule, sending a subscription message aiming at the second event to the third electronic equipment;
receiving a notification message of the second event sent by the third electronic device;
determining whether the third event occurs at the fourth electronic device;
in response to determining that the third event occurred at the fourth electronic device, performing the second function according to the second rule.
14. The first electronic device of claim 13, wherein, in response to determining that the third event occurs at the fourth electronic device, the second function is performed according to the second rule, specifically:
in response to receiving a notification message sent by the fourth electronic device that the third event has occurred, performing the second function according to the second rule.
15. The first electronic device of claim 14, wherein the computer instructions, when executed by the first electronic device, further cause the first electronic device to:
in response to receiving the notification message of the second event sent by the third electronic device, the first electronic device sends a message inquiring whether the third event occurs to the fourth electronic device.
16. The first electronic device of any of claims 13-15, wherein the computer instructions, when executed by the first electronic device, further cause the first electronic device to:
and acquiring the address of the third electronic equipment and the address of the fourth electronic equipment according to the second rule.
17. The first electronic device of claim 16, wherein the second rule comprises an identification of the third electronic device and an identification of the fourth electronic device;
the obtaining the address of the third electronic device and the address of the fourth electronic device according to the second rule specifically includes:
multicasting or broadcasting a first message, the first message comprising an identification of the third electronic device and an identification of the fourth electronic device;
receiving an address of the third electronic device returned by the third electronic device; and the electronic equipment receives the address of the fourth electronic equipment returned by the fourth electronic equipment.
18. The first electronic device of any of claims 13-17, wherein the computer instructions, when executed by the first electronic device, further cause the first electronic device to:
and detecting the legality of the second rule.
19. The first electronic device according to any of claims 13-18, wherein the obtaining a second rule is specifically: obtaining the second rule from a server or a fifth electronic device.
20. A first electronic device, comprising: a processor and a memory coupled with the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when executed by the first electronic device, cause the first electronic device to perform operations comprising:
acquiring a first rule, wherein the first rule indicates that a third electronic device executes a first function when a first event occurs in the first electronic device and a second event occurs in the second electronic device;
receiving a notification message sent by the second electronic device that the second event has occurred;
detecting whether the first event occurs in response to receiving a notification message that the second event has occurred;
and if the first event is detected to have occurred, sending an execution instruction to the third electronic device, wherein the execution instruction instructs the third electronic device to execute the first function.
21. A computer storage medium comprising computer instructions which, when run on a terminal, cause the terminal to perform a method of coordinated control of multiple electronic devices according to any one of claims 1 to 9.
22. A computer program product, which, when run on a computer, causes the computer to perform a method of coordinated control of multiple electronic devices according to any one of claims 1 to 9.
CN201910142363.1A 2019-02-26 2019-02-26 Multi-intelligent-device linkage control method, device and system Pending CN111614524A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910142363.1A CN111614524A (en) 2019-02-26 2019-02-26 Multi-intelligent-device linkage control method, device and system
PCT/CN2020/075982 WO2020173375A1 (en) 2019-02-26 2020-02-20 Multi-intelligent device linkage control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910142363.1A CN111614524A (en) 2019-02-26 2019-02-26 Multi-intelligent-device linkage control method, device and system

Publications (1)

Publication Number Publication Date
CN111614524A true CN111614524A (en) 2020-09-01

Family

ID=72203003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910142363.1A Pending CN111614524A (en) 2019-02-26 2019-02-26 Multi-intelligent-device linkage control method, device and system

Country Status (2)

Country Link
CN (1) CN111614524A (en)
WO (1) WO2020173375A1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702428A (en) * 2020-12-23 2021-04-23 上海商米科技集团股份有限公司 Distributed Internet of things equipment interoperation method and system
CN113406891A (en) * 2021-06-18 2021-09-17 杭州深渡科技有限公司 Internet of things equipment linkage control method, system and device and storage medium
CN113452793A (en) * 2021-06-30 2021-09-28 东软睿驰汽车技术(沈阳)有限公司 Diagnostic service processing method and device, vehicle-mounted terminal and medium
CN114143906A (en) * 2022-01-30 2022-03-04 荣耀终端有限公司 Electronic equipment connection method and electronic equipment
CN114157725A (en) * 2021-11-11 2022-03-08 珠海格力电器股份有限公司 Equipment linkage method and device, server, electronic equipment and storage medium
CN114167738A (en) * 2021-11-26 2022-03-11 珠海格力电器股份有限公司 Equipment linkage control method, device, equipment and storage medium
CN114363820A (en) * 2020-09-29 2022-04-15 华为终端有限公司 Electronic equipment searching method and electronic equipment
CN114584414A (en) * 2020-12-01 2022-06-03 深圳绿米联创科技有限公司 Device control method, device, electronic device and computer-readable storage medium
CN114815642A (en) * 2022-03-30 2022-07-29 青岛海尔科技有限公司 Control method and device of intelligent equipment, storage medium and electronic device
WO2022218138A1 (en) * 2021-04-16 2022-10-20 华为技术有限公司 Event processing method and system, and device
CN115390462A (en) * 2021-05-20 2022-11-25 深圳绿米联创科技有限公司 Equipment control method and device, terminal equipment, gateway and medium
CN115412391A (en) * 2022-11-02 2022-11-29 长沙朗源电子科技有限公司 Method and system for building intelligent scene of multiple small household appliances and storage medium
CN115550090A (en) * 2021-06-30 2022-12-30 华为技术有限公司 Equipment cooperation method and electronic equipment
WO2023071484A1 (en) * 2021-10-25 2023-05-04 华为技术有限公司 Automatic control method based on human body sensing, and electronic device and system
WO2024041359A1 (en) * 2022-08-26 2024-02-29 华为技术有限公司 Link control method and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440606A (en) * 2013-08-02 2013-12-11 马祥龙 Integrated remote network smart home security rescue management system
CN104216379A (en) * 2014-09-09 2014-12-17 联想(北京)有限公司 Information processing method and electronic device
CN104932456A (en) * 2015-04-27 2015-09-23 小米科技有限责任公司 Intelligent scene realizing method and device, intelligent terminal and controller
CN105549415A (en) * 2016-03-04 2016-05-04 橙朴(上海)智能科技有限公司 Decentralized intelligent home control system
CN106054655A (en) * 2016-07-25 2016-10-26 青岛海信电器股份有限公司 Smart furniture linkage control method and device
CN205721123U (en) * 2016-03-04 2016-11-23 橙朴(上海)智能科技有限公司 A kind of intelligent home control system of decentration
CN106227045A (en) * 2016-07-25 2016-12-14 青岛海信电器股份有限公司 A kind of Smart Home inter-linked controlling method, device and system
CN107783781A (en) * 2016-08-24 2018-03-09 北京京东尚科信息技术有限公司 Smart machine interlock method and device based on IFTTT
CN108733005A (en) * 2017-04-21 2018-11-02 北京京东尚科信息技术有限公司 A kind of method and device of control smart machine linkage
CN109302415A (en) * 2018-11-09 2019-02-01 四川虹微技术有限公司 A kind of authentication method, block chain node and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9252967B2 (en) * 2011-09-01 2016-02-02 Sony Corporation Facilitated use of heterogeneous home-automation edge components
US20150370272A1 (en) * 2014-06-23 2015-12-24 Google Inc. Intelligent configuration of a smart environment based on arrival time
CN204908704U (en) * 2015-06-07 2015-12-30 何连婷 Semiconductor refrigeration mattress circuit
CN105913596A (en) * 2016-06-23 2016-08-31 余新城 Home security system
WO2018006203A1 (en) * 2016-07-02 2018-01-11 李珂悦 Smart air conditioner
CN106996621A (en) * 2017-04-10 2017-08-01 盐城师范学院 Intelligent air condition control device and control method based on infrared acquisition

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440606A (en) * 2013-08-02 2013-12-11 马祥龙 Integrated remote network smart home security rescue management system
CN104216379A (en) * 2014-09-09 2014-12-17 联想(北京)有限公司 Information processing method and electronic device
CN104932456A (en) * 2015-04-27 2015-09-23 小米科技有限责任公司 Intelligent scene realizing method and device, intelligent terminal and controller
CN105549415A (en) * 2016-03-04 2016-05-04 橙朴(上海)智能科技有限公司 Decentralized intelligent home control system
CN205721123U (en) * 2016-03-04 2016-11-23 橙朴(上海)智能科技有限公司 A kind of intelligent home control system of decentration
CN106054655A (en) * 2016-07-25 2016-10-26 青岛海信电器股份有限公司 Smart furniture linkage control method and device
CN106227045A (en) * 2016-07-25 2016-12-14 青岛海信电器股份有限公司 A kind of Smart Home inter-linked controlling method, device and system
CN107783781A (en) * 2016-08-24 2018-03-09 北京京东尚科信息技术有限公司 Smart machine interlock method and device based on IFTTT
CN108733005A (en) * 2017-04-21 2018-11-02 北京京东尚科信息技术有限公司 A kind of method and device of control smart machine linkage
CN109302415A (en) * 2018-11-09 2019-02-01 四川虹微技术有限公司 A kind of authentication method, block chain node and storage medium

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363820A (en) * 2020-09-29 2022-04-15 华为终端有限公司 Electronic equipment searching method and electronic equipment
CN114584414B (en) * 2020-12-01 2024-05-03 深圳绿米联创科技有限公司 Device control method, device, electronic device, and computer-readable storage medium
CN114584414A (en) * 2020-12-01 2022-06-03 深圳绿米联创科技有限公司 Device control method, device, electronic device and computer-readable storage medium
CN112702428A (en) * 2020-12-23 2021-04-23 上海商米科技集团股份有限公司 Distributed Internet of things equipment interoperation method and system
CN112702428B (en) * 2020-12-23 2023-04-18 上海商米科技集团股份有限公司 Distributed Internet of things equipment interoperation method and system
WO2022218138A1 (en) * 2021-04-16 2022-10-20 华为技术有限公司 Event processing method and system, and device
CN115390462A (en) * 2021-05-20 2022-11-25 深圳绿米联创科技有限公司 Equipment control method and device, terminal equipment, gateway and medium
CN113406891A (en) * 2021-06-18 2021-09-17 杭州深渡科技有限公司 Internet of things equipment linkage control method, system and device and storage medium
CN113406891B (en) * 2021-06-18 2023-04-21 杭州深渡科技有限公司 Internet of things equipment linkage control method, system, device and storage medium
CN115550090A (en) * 2021-06-30 2022-12-30 华为技术有限公司 Equipment cooperation method and electronic equipment
CN113452793A (en) * 2021-06-30 2021-09-28 东软睿驰汽车技术(沈阳)有限公司 Diagnostic service processing method and device, vehicle-mounted terminal and medium
CN113452793B (en) * 2021-06-30 2024-05-14 东软睿驰汽车技术(沈阳)有限公司 Diagnostic service processing method and device, vehicle-mounted terminal and medium
WO2023071484A1 (en) * 2021-10-25 2023-05-04 华为技术有限公司 Automatic control method based on human body sensing, and electronic device and system
CN114157725B (en) * 2021-11-11 2023-09-12 珠海格力电器股份有限公司 Method, device, server, electronic equipment and storage medium for equipment linkage
CN114157725A (en) * 2021-11-11 2022-03-08 珠海格力电器股份有限公司 Equipment linkage method and device, server, electronic equipment and storage medium
CN114167738A (en) * 2021-11-26 2022-03-11 珠海格力电器股份有限公司 Equipment linkage control method, device, equipment and storage medium
CN114143906A (en) * 2022-01-30 2022-03-04 荣耀终端有限公司 Electronic equipment connection method and electronic equipment
CN114815642A (en) * 2022-03-30 2022-07-29 青岛海尔科技有限公司 Control method and device of intelligent equipment, storage medium and electronic device
WO2024041359A1 (en) * 2022-08-26 2024-02-29 华为技术有限公司 Link control method and electronic device
CN115412391A (en) * 2022-11-02 2022-11-29 长沙朗源电子科技有限公司 Method and system for building intelligent scene of multiple small household appliances and storage medium

Also Published As

Publication number Publication date
WO2020173375A1 (en) 2020-09-03

Similar Documents

Publication Publication Date Title
CN111614524A (en) Multi-intelligent-device linkage control method, device and system
CN111752443B (en) Method, related device and system for controlling page of display equipment
CN110336720B (en) Equipment control method and equipment
CN113272745B (en) Smart home equipment sharing system and method and electronic equipment
CN111650840B (en) Intelligent household scene arranging method and terminal
CN110198362B (en) Method and system for adding intelligent household equipment into contact
WO2021043045A1 (en) Method and device for configuring network configuration information
CN113885759A (en) Notification message processing method, device, system and computer readable storage medium
WO2021052204A1 (en) Address book-based device discovery method, audio and video communication method, and electronic device
CN113961157B (en) Display interaction system, display method and equipment
CN112237031B (en) Method for accessing intelligent household equipment to network and related equipment
US12068880B2 (en) Device control method and device
CN113986369B (en) Internet of things equipment control method and system, electronic equipment and storage medium
CN114500732B (en) Interface display method, electronic equipment and storage medium
WO2023273856A1 (en) Wake-up method and system
WO2022052713A1 (en) Interaction method and apparatus, and electronic device
CN115248693A (en) Application management method and electronic equipment
WO2022267917A1 (en) Bluetooth communication method and system
WO2023142941A1 (en) Playing record display method and related device
WO2022143273A1 (en) Information processing method and electronic device
CN117440081A (en) Message sharing method and related equipment
CN114488961A (en) Equipment control method and device
CN115906033A (en) Voiceprint authentication response method and system and electronic equipment
CN115243235A (en) Data transmission method and related equipment
CN115857964A (en) Application program installation method and related equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200901

RJ01 Rejection of invention patent application after publication