WO2020173375A1 - Procédé, dispositif et système de commande de liaison de plusieurs dispositifs intelligents - Google Patents

Procédé, dispositif et système de commande de liaison de plusieurs dispositifs intelligents Download PDF

Info

Publication number
WO2020173375A1
WO2020173375A1 PCT/CN2020/075982 CN2020075982W WO2020173375A1 WO 2020173375 A1 WO2020173375 A1 WO 2020173375A1 CN 2020075982 W CN2020075982 W CN 2020075982W WO 2020173375 A1 WO2020173375 A1 WO 2020173375A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
event
rule
execution
conditional
Prior art date
Application number
PCT/CN2020/075982
Other languages
English (en)
Chinese (zh)
Inventor
聂鹏程
易立
邱振庭
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020173375A1 publication Critical patent/WO2020173375A1/fr

Links

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]

Definitions

  • This application relates to the field of communication technologies, and in particular, to a method, device, and system for linkage control of multiple smart devices. Background technique
  • Smart home uses the Internet of Things technology to integrate various electronic devices in the home (such as audio and video equipment, lighting systems, curtain control, air conditioning control, security systems, digital cinema systems, audio and video servers) , Video cabinet system, network home appliances, etc.) are connected together to provide home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control and other functions.
  • each electronic device is based on I FTTT (abbreviation for i f th i s then t hat) rules for linkage and control between devices.
  • I FTTT abbreviation for i f th i s then t hat
  • th i s can be regarded as a triggering condition
  • tha t can be regarded as an execution operation or execution event of the device.
  • the smart door lock recognizes that the person at the door has passed the biometric authentication (trigger condition)
  • the door opens automatically (execution event).
  • the air conditioner will automatically start (execution event).
  • control equipment collects trigger conditions, and then sends execution commands to the equipment that needs linkage based on the trigger conditions.
  • a control device needs to obtain all trigger conditions in an IFTTT rule from some devices (can be called conditional devices), and then send operation instructions to other devices (can become execution devices) to instruct these execution devices to execute the corresponding Operation.
  • the linkage between the condition device and the execution device relies too much on the control device.
  • the control device disconnects, the linkage of all I FTTT rules in the network will fail. It can be seen that the efficiency and stability of linkage between conditional equipment and execution equipment need to be improved.
  • the method, device, and system for linkage control of multiple smart devices provided in the present application can get rid of the dependence on the control device in the linkage control of multiple electronic devices, which is beneficial to reduce the delay of linkage and improve linkage efficiency.
  • a method for linkage control of multiple electronic devices includes:
  • the first electronic device acquires a first rule, where the first rule indicates that when a first event occurs in the second electronic device, the first electronic device executes the first function; the first electronic device sends a message to the second electronic device according to the first rule A subscription message for an event; the first electronic device receives the notification message of the first event sent by the second electronic device; in response to the received 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 conditional device, and the first event is a trigger event or trigger condition corresponding to the second electronic device in the first rule.
  • the execution device directly obtains the first rule, and subscribes the trigger event to the condition device, and more trigger events When it happens, the execution device directly executes the corresponding execution event. It can be seen that in the process of the linkage between the execution equipment and the condition equipment, no other control equipment is relied on, and the efficiency of the linkage can be improved.
  • the method further includes: the first electronic device acquires a second rule, where the second rule indicates that when a second event occurs on the third electronic device and the fourth electronic device sends the third event, then the first The electronic device performs the second function; the first electronic device sends a subscription message for the second event to the third electronic device according to the second rule; the first electronic device receives the notification message of the second event sent by the third electronic device; An electronic device acquires whether the third event occurs on the fourth electronic device; in response to acquiring the third event on 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
  • 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 trigger condition corresponding to the third electronic device in the second rule.
  • the third event is a trigger event or trigger condition corresponding to the fourth electronic device in the second rule.
  • the executing device obtains the IFTTT rules in advance. After a trigger event occurs on the conditional device in the IFTTT rule, the executing device can be notified directly through the local network, and the executing device can also directly query the trigger events of other conditional devices through the local network . When the trigger conditions of all the conditional devices meet the IFTTT rules, the executing device can execute the corresponding event, that is, complete the linkage. It can be seen that the entire process from the occurrence of a trigger condition of a certain condition device to the execution of the corresponding event by the executing device is completed in the local network.
  • the application can still complete the linkage of multiple electronic devices on the local network, which improves the success rate of linkage and improves the stability of the linkage system.
  • multiple electronic devices in the local network communicate directly during the linkage process, instead of using the Internet, it is beneficial to reduce the communication delay and improve the efficiency of linkage.
  • avoiding uploading the status of each electronic device in the local network and the execution of the IFTTT rules to the Internet is beneficial to avoid security risks.
  • the executing device in the IFTTT rules communicates directly with other conditional devices in the IFTTT rules, and no other intermediate devices are used for transfer and control, that is, it does not pass the IFTTT rules.
  • Other devices that are irrelevant to the rules such as gateways
  • the method provided by the embodiment of the present application allows multiple electronic devices in the local network to get rid of the dependence on the control device when the multiple electronic devices in the local network are linked, which is beneficial to reduce the time delay of the linkage and improve the linkage efficiency.
  • the first electronic device in response to acquiring that the third event occurs in the fourth electronic device, executes the second function according to the second rule, specifically: in response to the first electronic device receiving a message sent by the fourth electronic device When the notification message of the third event has occurred, the first electronic device performs the second function according to the second rule. Therefore, this application provides a method for other conditional devices to actively send to the executing device a notification message of whether a trigger event has occurred.
  • the method before the first electronic device receives the notification message that the third event has occurred sent by the fourth electronic device, the method further includes: responding to receiving the notification of the second event sent by the third electronic device Message, the first electronic device sends a message inquiring whether the third event occurs to the fourth electronic device. Therefore, the present application provides a method for an execution device to query other conditional devices for a notification message whether a trigger event occurs.
  • the method further includes: the first electronic device obtains the address of the third electronic device and the address of the fourth electronic device according to the second rule.
  • the second rule includes the identity of the third electronic device and the identity of the fourth electronic device; the first electronic device obtains the address of the third electronic device and the address of the fourth electronic device according to the second rule, Specifically: the first electronic device multicasts or broadcasts a first message, the first message includes the identity of the third electronic device and the identity of the fourth electronic device; the first electronic device receives the address of the third electronic device returned by the third electronic device ; The electronic device receives the address of the fourth electronic device returned by the fourth electronic device.
  • This application provides a method for an execution device to obtain the network address of each conditional device.
  • the method further includes: the first electronic device detects the legality and integrity of the second rule.
  • obtaining the second rule by the first electronic device includes: obtaining the second rule by the first electronic device from the server or the fifth electronic device.
  • this application provides a method for linkage control of multiple electronic devices, the method including:
  • the first electronic device acquires a first rule, where the first rule indicates that when a first event occurs in the first electronic device and a second event occurs in the second electronic device, the third electronic device performs the first function; the first electronic device receives the first event 2.
  • the first electronic device and the second electronic device are conditional devices in the first rule, and the first event is a trigger event or trigger condition corresponding to the first electronic device.
  • the second event is a trigger event or 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.
  • the conditional device obtains the IFTTT rule in advance, and discovers other electronic devices in the IFTTT rule, such as the execution device. After a trigger event occurs on one or some conditional devices in the IFTTT rule, other conditional devices can be notified directly through the local network. After the other conditional device determines that it meets the IFTTT rules, it instructs the executing device to execute the corresponding event, that is, complete the linkage, which improves the linkage efficiency.
  • this application provides a method for linkage control of multiple electronic devices, the method including:
  • the first electronic device acquires the first rule, where the first rule indicates that when the first event occurs in the first electronic device and the second event occurs in the second electronic device, the third electronic device executes the first function; the first electronic device detects that it has A first event occurs; in response to detecting that the first event has occurred, the first electronic device sends a message to the second electronic device to query whether the second event has occurred; the first electronic device receives the second event sent by the second electronic device A notification message that has occurred; in response to the received notification message that the second event has occurred, the first electronic device sends an execution instruction to the third electronic device, and the execution instruction instructs the third electronic device to perform the first function.
  • the first electronic device and the second electronic device are conditional devices in the first rule, and the first event is a trigger event or trigger condition corresponding to the first electronic device.
  • the second event is a trigger event or 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.
  • the executing device and some conditional devices obtain the IFTTT rules in advance, and discover other electronic devices in the IFTTT rules, such as other conditional devices.
  • the trigger event of other condition devices can be queried, or the executing device can be notified, and the executing device condition device can query the trigger event of other condition devices.
  • the execution device executes the corresponding event, which completes the linkage and improves the linkage efficiency.
  • a system for linkage control of multiple electronic devices includes a first electronic device and a second electronic device; the first electronic device is used to obtain a first rule, and the first rule indicates when the second electronic device When the first event occurs, the first electronic device executes the first function; according to the first rule, sends a subscription message for the first event to the second electronic device; and the second electronic device is used when detecting that the first event has occurred Send a notification message of the first event to the first electronic device; the first electronic device is further configured to perform the first function according to the first rule in response to the received notification message of the first event.
  • the system further includes a third electronic device and a fourth electronic device.
  • the first electronic device is also used to obtain a second rule, and the second rule indicates when a second event occurs on the third electronic device, and
  • the fourth electronic device sends the third event
  • the first electronic device executes the second function; according to the second rule, sends a subscription message for the second event to the third electronic device; and the third electronic device is used when it is detected
  • the first electronic device is also used to determine whether a third event has occurred in the fourth electronic device; in response to determining that the third event has occurred in the fourth electronic device, the second function is executed according to the second rule.
  • a first electronic device provided by the present application includes: a processor and a memory, the memory is coupled to the processor, and the memory is used to store computer program codes.
  • the computer program codes include computer instructions. When the device is executed, the first electronic device is caused to perform the following operations:
  • a first rule where the first rule indicates that when a first event occurs in the second electronic device, the first electronic device performs the first function; according to the first rule, sends a subscription message for the first event to the second electronic device; 2.
  • the first electronic device also obtains a second rule, and the second rule indicates that when a second event occurs on the third electronic device and the fourth electronic device sends the third event, the first electronic device executes Second function; Send a subscription message for the second event to the third electronic device according to the second rule; Receive a notification message for the second event sent by the third electronic device; Obtain whether the third event has occurred on the fourth electronic device; Response Upon acquiring that the third event occurs in the fourth electronic device, the second function is executed according to the second rule.
  • executing the second function according to the second rule is specifically: in response to receiving a notification message sent by the fourth electronic device that the third event has occurred , Perform the second function according to the second rule.
  • the first electronic device when the computer instruction is executed by the first electronic device, the first electronic device is also caused to perform the following operations:
  • the first electronic device 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 has occurred to the fourth electronic device.
  • the first electronic device when the computer instruction is executed by the first electronic device, the first electronic device is also caused to perform the following operations: Acquire the address of the third electronic device and the address of the fourth electronic device according to the second rule.
  • the second rule includes the identification of the third electronic device and the identification of the fourth electronic device; according to the second rule, obtaining the address of the third electronic device and the address of the fourth electronic device specifically includes: Broadcast or broadcast the first message, the first message includes the identification of the third electronic device and the identification of the fourth electronic device; receiving the address of the third electronic device returned by the third electronic device; the electronic device receiving the fourth electronic device returned by the fourth electronic device The address of the electronic device.
  • the first electronic device when the computer instruction is executed by the first electronic device, the first electronic device is also caused to perform the following operations: detecting the legality and/or integrity of the second rule.
  • obtaining the second rule specifically includes: obtaining the second rule from the server or the fifth electronic device.
  • a first electronic device provided by the present application includes: a processor and a memory, the memory is coupled to the processor, and the memory is used to store computer program codes.
  • the computer program codes include computer instructions. When the device is executed, the first electronic device is caused to perform the following operations:
  • the third electronic device performs the first function
  • the second event sent by the second electronic device is received Notification message that has occurred
  • detect whether the first event has occurred if it is detected that the first event has occurred, send an execution instruction to the third electronic device, and the execution instruction instruction Three electronic devices perform the first function.
  • a first electronic device provided by the present application includes: a processor and a memory, the memory is coupled to the processor, and the memory is used to store computer program codes.
  • the computer program codes include computer instructions. When the device is executed, the first electronic device is caused to perform the following operations:
  • 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 the first function; detects that the first event has occurred; in response to detecting that the first event has occurred, sends a message to the second electronic device to query whether the second event has occurred; receives the second electronic device A notification message sent by the device that the second event has occurred; in response to the received notification message that the second event has occurred, an execution instruction is sent to the third electronic device, and the execution instruction instructs the third electronic device to perform the first function.
  • a computer storage medium includes computer instructions, and when the computer instructions run on a terminal, the terminal is caused to execute the method described in the first aspect to the third aspect and any one of the possible implementation manners thereof.
  • a ninth aspect a computer program product, when the computer program product runs on a computer, causes the computer to execute the method described in the first aspect to the third aspect and any one of the possible implementation manners.
  • FIG. 1 is a schematic structural diagram of a system for linkage control of multiple electronic devices according to an embodiment of the application
  • 2A is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of this application.
  • 2B is a schematic diagram of the software structure of an electronic device provided by an embodiment of this application.
  • FIG. 3A is a schematic diagram of an interface of an electronic device provided by an embodiment of this application.
  • FIG. 3B is a schematic diagram of an interface of another electronic device provided by an embodiment of this application.
  • FIG. 3C is a schematic diagram of an interface of another electronic device provided by an embodiment of this application.
  • FIG. 3D is a schematic diagram of an interface of another electronic device provided by an embodiment of this application.
  • FIG. 3E is a schematic diagram of an interface of another electronic device provided by an embodiment of this application.
  • FIG. 3F is a schematic diagram of an interface of another electronic device provided by an embodiment of this application.
  • FIG. 3G is a schematic diagram of an interface of another electronic device provided by an embodiment of this application.
  • FIG. 3H is a schematic diagram of an interface of another electronic device provided by an embodiment of the application.
  • FIG. 31 is a schematic diagram of an interface of another electronic device provided by an embodiment of this application.
  • 4A is a schematic flowchart of a method for linkage control of multiple electronic devices according to an embodiment of the application
  • FIG. 4B is a schematic flowchart of another method for linkage control of multiple electronic devices according to an embodiment of this application
  • FIG. 5A is a schematic flowchart of another method for linkage control of multiple electronic devices according to an embodiment of this application
  • FIG. 6A is a schematic flowchart of another method for linkage control of multiple electronic devices provided by an embodiment of the application
  • FIG. 6B is provided by an embodiment of the application
  • FIG. 7 is a schematic structural diagram of another electronic device according to an embodiment of the application;
  • FIG. 8 is a schematic structural diagram of yet another electronic device provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two.
  • IFTTT rule short for if this then that, its purpose is Put the internet to work for you. It can be simply understood that if a certain event is triggered, another set event is executed. That is, if full When the trigger condition in the IFTTT rule is satisfied, the corresponding operation in the IFTTT rule is executed.
  • the above trigger conditions can also be referred to as trigger events. If device A performs a certain operation or certain operations in the IFTTT rule, or a parameter detected by device A meets certain conditions or certain conditions, then device B performs the corresponding operation, then A device can be called a conditional device, and a B device can be called an execution device.
  • 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.
  • An IFTTT rule is: If device A performs a certain operation (or the parameters detected by device A meets certain conditions), and device C performs a certain operation (or device C The detected parameter satisfies one or some conditions), then the B device executes the corresponding operation.
  • device A and device C are both conditional devices, and device B is the execution device.
  • Another IFTTT rule is: If device A performs a certain operation (or the parameters detected by device A meets certain conditions), device B performs the corresponding operation, and device JLD performs the corresponding operation operating.
  • a device conditional device, B device and D device are execution devices.
  • the executing device may automatically perform corresponding operations according to, for example, the local time.
  • multiple electronic device linkage processes based on IFTTT rules are all based on a centralized control scheme. For example: When a trigger event of a conditional device occurs, the trigger event will be transmitted to the control device via the Internet. After the control device makes a logical judgment, the execution command is sent to the execution device via the Internet, and then the execution device executes the corresponding operation. Since multiple electronic devices need to communicate via the Internet, the linkage process will inevitably be affected by the connection status of the Internet, resulting in a prolonged and unstable situation. In addition, multiple electronic devices can be the user's household equipment. The status of the household equipment and the implementation of the IFTTT rules are uploaded to the Internet. Once the information is leaked, there is a great security risk.
  • a control method provided by an embodiment of the present application can be used for linkage control between at least two electronic devices.
  • each electronic device can directly communicate through a local connection to complete the linkage. That is to say, during the linkage process of at least two electronic devices, the centralized control method in the prior art is no longer used, that is, it is no longer necessary to transfer through the control device.
  • a system for linkage of multiple electronic devices includes: an electronic device 10 (electronic device A), a server 11, and one or more electronic devices 12 ( Electronic device BX Wherein, the electronic device 10 (electronic device A) is used to provide an interactive interface between the system and the user, so that the user can set IFTTT rules. In some embodiments, the electronic device 10 (electronic device A) will set the IFTTT The rules are delivered to the electronic device 12 (electronic device B) in the local network through the server 11.
  • the electronic device 10 (electronic device A) can also be established with the electronic device 12 (electronic device B) in the local network Local connection, then, the electronic device 10 (electronic device A) may also send the set IFTTT rules to the electronic device 12 (electronic device B) through the local connection, which is not limited in the embodiment of the present application.
  • the electronic device 12 (electronic device B) of the local network may perform linkage between multiple electronic devices 12 (electronic device B) of the local network based on the obtained IFTTT rule.
  • the electronic device 10 may be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, Wearable electronic devices, Augmented Reality (AR) devices, smart speakers Wait.
  • PC personal computer
  • PDA personal digital assistant
  • AR Augmented Reality
  • the electronic device 10 can establish a connection with the server 11 through a wired, WIFI, mobile data network or other connection methods.
  • the structure of the electronic device 10 (electronic device A) in the embodiment of the present application can refer to the structure of the electronic device 100 shown in FIG. 2A and the schematic diagram of the software structure of the electronic device 100 shown in FIG. 2B.
  • the electronic device 12 may be a hardware device of a smart home, and may include mobile terminals, household appliances, and sensor devices.
  • Electronic device 12 can be smart phones, smart TVs, smart lights, smart sockets, air purifiers, humidifiers, smart range hoods, smart desk lamps, smart speakers, smart door locks, smart patch panels, Smart induction cooker, smart camera, etc.
  • electronic device 12 can also be a smoke sensor (used to detect whether there is a gas leak in the room), a human sensor (used to sense whether a human body passes through), a temperature sensor (used to detect the room or objects The temperature value of the room), humidity sensor (used to detect the humidity value of the room), door and window sensors (used to sense whether doors and windows are open or closed), PM2.5 air sensor (used to detect the value of PM2.5 in the room), etc.
  • a smoke sensor used to detect whether there is a gas leak in the room
  • a human sensor used to sense whether a human body passes through
  • a temperature sensor used to detect the room or objects The temperature value of the room
  • humidity sensor used to detect the humidity value of the room
  • door and window sensors used to sense whether doors and windows are open or closed
  • PM2.5 air sensor used to detect the value of PM2.5 in the room
  • the electronic device 12 in the local network can establish a connection with the server 11 through wired, WIFI, mobile data network or other connection methods, or establish a connection with the server 11 through a router in the local area network.
  • the server 11 can be a home cloud, IoT (Internet of Things, Internet of Things) server or a server cluster, which can connect various electrical and electronic equipment in the home for unified management, remote monitoring and resource sharing, etc., to achieve Efficient and convenient living environment.
  • all the electronic devices 12 (electronic device B) in the local network can be connected to the server 11, or some of the electronic devices 12 (electronic device B) (electronic devices 12 (electronic devices that need to obtain IFTTT rules) Device B)) Establish a connection with the server 11, which is not specifically limited in the embodiment of this application.
  • the electronic devices 12 (electronic device B) in the local network can be connected in a wired or wireless manner, so that the electronic devices 12 (electronic device B) can communicate directly.
  • the wireless connection mode may be any one or several modes such as Bluetooth, ZigBee (ZigBee), and WiFi.
  • the embodiment of the present application does not limit the connection mode between the electronic devices 12 (electronic device B) in the local network.
  • the electronic device 12 (electronic device B) in the embodiment of the present application, reference may be made to the structure of the electronic device 100 shown in FIG. 2A and the schematic diagram of the software structure of the electronic device 100 shown in FIG. 2B. It should be noted that the electronic device 12 (electronic device B) may include more or fewer components than shown in the figure, or combine some components, or split some components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device 12 when the electronic device 12 (electronic device B) is a smart door lock, the electronic device 12 (electronic device B) may include a processor 110, an internal memory 121, a fingerprint sensor 180H, and a wireless communication module 160 (for example, it may be a WLAN communication module). ), battery 142, electric switch and other components.
  • the electronic device 12 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 (for example, a microphone 170C), and a wireless communication module 160 (for example, may include WLAN communication module, Bluetooth communication module, etc.), power management module 141, charging management module 140, battery 142, USB interface 130, indicator 192 and other components.
  • the electronic device 12 when the electronic device 12 (electronic device B) is an air conditioner, the electronic device 12 (electronic device B) may include a processor 110, an internal memory 121, and a wireless communication module 160 (for example, it may include a WLAN communication module, an infrared signal module, etc.) ), power management module 141, charge management module 140, refrigeration system, ventilation system, electrical control system, cabinet system and other components.
  • a wireless communication module 160 for example, it may include a WLAN communication module, an infrared signal module, etc.
  • 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, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or disassemble certain components, or arrange different components.
  • the components shown in the figure can be implemented in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the command operation code and timing signals to complete the control of fetching and executing commands.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit sound (inter-integrated circuit sound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a two-way synchronous serial bus that includes a serial data line (SDA) and a derail clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • audio The module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • MIPI interface includes camera serial interface (CSI), display serial interface (DSI) and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely illustrative, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, the power management module 141 can also supply power to electronic devices.
  • 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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna for wireless LAN.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) etc.
  • the mobile communication module 150 may receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs sound signals through audio equipment (not limited to speakers 170A, receiver 170B, etc.), or displays images or videos through the display 194.
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves through the antenna 2 and radiate it out.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), and a quasi-zenith satellite system (quasi). -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through GRJ, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can pass ISP, camera 193, video codec, GPU, display 194 and applications The processor, etc. realize the shooting function.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • the digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • 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 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG)1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be implemented, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running 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 can store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.).
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • 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 “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called a "handset" is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can The mouth is close to the microphone 170C to make a sound, and the sound signal is input to 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, which can not only collect sound signals, but also implement a noise reduction function.
  • the electronic device 100 may also be provided with three, four or more microphones 170C, so as to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and the American cellular telecommunications industry association of the USA (CTIA) standard interface .
  • OMTP open mobile terminal platform
  • CTIA American cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the strength of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B can be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes i.e., X, y, and z axes
  • the gyro sensor 180B can be used for shooting anti-shake.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C, and assists positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic flip cover unlocking are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic equipment, and can be used in applications such as horizontal and vertical screen switching, pedometers and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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 uses a photodiode to detect infrared reflected light from nearby objects. 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 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adapt itself according to the perceived brightness of the ambient light The brightness of the display 194 should be adjusted.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to the application lock, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K can be set on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations on or near it.
  • the touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event.
  • the display screen 194 can provide visual output related to the touch operation.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 can receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate a charging state, a change in power, and may also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support one or N SIM card interfaces, and N is a positive integer greater than one.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, 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 adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to exemplarily illustrate the software of the electronic device 100 Structure.
  • FIG. 2B is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into thousands of layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application layer may include application packages such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • application packages such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application program layer may include a first application, and the first application may be a smart home application, and the user can use the application to set and manage smart home devices.
  • the user can use the first application to set IFTTT rules, and multiple second electronic devices in the home network can be linked based on the IFTTT rules set by the user to provide the user with a smart home life.
  • the application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • the content provider is used to store and retrieve data, and make these data accessible to applications.
  • the data may include video, image, audio, dialed and received calls, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a short message notification icon may include a view displaying text and a view displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify that the download is complete, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • text messages are displayed in the status bar, prompt sounds are emitted, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files in the application layer and application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • Media library can Support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a graphics engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the electronic device 10 first receives the user's setting of the IFTTT rule.
  • the web address associated with the server 11 can be entered in the browser of the electronic device 10 (electronic device A) to log in to the setting page of the IFTTT rule.
  • the first application such as a smart home APP, etc.
  • the user interface of the first application can also be used locally to set the IFTTT rule, which is not limited in the embodiment of the present application.
  • Figures 3A to 31 are schematic diagrams of some interfaces involved in the setting process of the IFTTT rules provided in this embodiment of the application.
  • FIG. 3A it is a schematic diagram of the desktop 301 of the mobile phone.
  • the desktop 301 displays a status bar, time and weather controls, application icons (for example, the icon 302 of the smart home APP), and a dock bar.
  • the status bar can include the name of the operator (such as China Mobile), time, WiFi icon, signal strength, and current remaining power.
  • the mobile phone When the mobile phone detects that the user clicks on the smart home icon 302 on the desktop 301, the mobile phone enters the main interface 303 of the smart home APP as shown in FIG. 3B.
  • the smart home APP can be used to discover and connect electronic devices to the home network. It can also create practical life scenarios based on these electronic devices, and provide humanized information prompts and interactions.
  • the mobile phone can set some manual life scenes through the smart home APP, that is, the user is required to manually turn on some life scenes, and based on preset rules, the electronic devices related to the life scenes perform corresponding operations.
  • the life scenes that are manually opened include, for example, "going home”, “leaving home”, “reading”, “sleeping” and so on. Among them, related settings can refer to the prior art, which will not be repeated here.
  • the window curtains are turned on for ventilation, and the TV opens the channel or program set by themselves .
  • the mobile phone can also set different life scenarios based on time through the smart home APP. That is, when a certain predetermined time is reached, based on a preset rule, the electronic device related to the predetermined time starts to automatically perform corresponding operations.
  • the related settings can refer to the prior art, which will not be repeated here.
  • the bedroom lights are turned on, the smart speakers play music, and the soymilk is cooked by the soymilk.
  • the mobile phone can also use the smart home APP to set different life scenarios based on the electronic device 12 (electronic device B) in the local network. That is, when the working state of one or some electronic devices 12 (electronic device B) meets the preset conditions, other electronic devices 12 (electronic device B) are automatically triggered to perform corresponding operations.
  • the smart door lock recognizes that the person at the door is legal, the smart door lock automatically unlocks.
  • the air conditioner will automatically start.
  • the following describes the process of setting different life scenarios on the mobile phone based on the electronic device 12 (electronic device B) in the local network.
  • the mobile phone pops up a menu for setting adding devices and adding scenes, as shown in the menu 307 in the interface 306 in FIG. 3C.
  • the mobile phone displays an interface for setting the IFTTT rules, as shown in the interface 308 in FIG. 3D.
  • the add control 309 on the left side of the interface 308 can be used to add conditional devices and set trigger conditions.
  • the add control 310 on the right side can be used to add execution devices and set execution operations.
  • the interface 311 is an interface for setting the condition device and trigger condition in the IFTTT rule.
  • the user can select a conditional device. After selecting the conditional device, the mobile phone will pop up a window or menu for setting the triggering condition of the conditional device.
  • interface 311 shown in Figure 3E after detecting that the user selects "smart door lock", a menu 312 pops up, and the user can further set the trigger condition of the conditional device.
  • the trigger condition is that the smart door lock is in the unlocked state.
  • a menu 314 pops up, and the user can further set the trigger condition of the conditional device.
  • the trigger condition is that the temperature value of the temperature sensor is greater than or equal to 28 degrees.
  • the type of the trigger condition of the condition device is also different.
  • the trigger condition can be the working state of the condition device, such as on or off; the trigger condition can also be the detection value or the range of the detection value of the condition device; the trigger condition can also be the detection result of the condition device, for example: human sensor sensing When the human body passes through, or the smoke sensor detects a gas leakage event, etc. Therefore, when the condition device type is different, the corresponding interface for setting the trigger condition will also be different, which is not limited in the embodiment of the present application.
  • condition devices set by the user can be one or more, and the trigger condition corresponding to each condition device can also be one or more, which is not limited in the embodiment of the present application.
  • the user can save the setting by clicking the "Save" button. The user can also directly modify and delete the added condition devices and trigger conditions, which will not be repeated here.
  • the following can set the execution device and execution operation in the IFTTT rule.
  • FIG. 3G it is detected that the user clicks the add control 310 on the interface 315, and the mobile phone displays the interface 316 as shown in FIG. 3H.
  • the user can select the execution device and set the operation of the execution device through the interface 316. For example, select the operation performed by the “smart air conditioner” (also referred to as the execution event) for the execution device to turn on the smart air conditioner, and set the temperature value of the smart air conditioner to 24 degrees.
  • the “smart air conditioner” also referred to as the execution event
  • the number of 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 and the condition device may be the same device or different devices.
  • Rule 1 is "If the smart door lock recognizes that the person at the door is legal, the smart door lock will automatically unlock.”
  • the condition device and the execution device are both smart door locks.
  • Rule 2 is "If the door is opened and the indoor temperature is higher than 28 degrees Celsius, the air conditioner will automatically start.”
  • the condition device is the door and temperature sensor, and the execution device is the air conditioner.
  • the user can save the setting by clicking the “Save” button, and the interface 318 as shown in Figure 31 can be displayed.
  • the user can also directly modify and delete the added execution devices and execution events, which will not be described one by one.
  • the user can first set the condition device and trigger condition, and then set the execution device and execution event, or first set the execution device and execution event, and then set the condition device and trigger condition. You can also set some condition devices and trigger conditions, then set the execution devices and execution events, and then set other condition devices and trigger conditions. That is to say, the embodiment of the present application does not limit the sequence of settings.
  • the user can also use voice (for example: when the electronic device A is a smart speaker, the user
  • the IFTTT rule can be set by voice dialogue with the smart speaker), or in other ways such as specific gestures.
  • the embodiment of this application does not limit the specific method for the user to set the IFTTT rule.
  • the set IFTTT rules need to be sent to the electronic device 12 (electronic device B) in the local network, and then locally The electronic device 12 (electronic device B) in the network performs local linkage based on the IFTTT rule.
  • the electronic device 12 in the local network has different roles in different IFTTT rules.
  • a certain electronic device 12 is a conditional device in some IFTTT rules, and it is an executing device in some other IFTTT rules.
  • Rule 1 is “If the smart door lock recognizes that the person at the door is legal, then the smart door lock will automatically unlock”.
  • the conditional device and the execution device are both smart door locks.
  • Rule 2 is "If the smart door lock is unlocked and the indoor temperature is higher than 28 degrees Celsius, the air conditioner will automatically start.”
  • the condition device is the smart door lock and 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 execution device in rule 1, and a conditional device in rule 2.
  • conditional devices and execution devices may be one or more, which is not limited in the embodiment of this application.
  • Rule 3 is "If the door is opened and the indoor temperature is higher than 28 degrees Celsius, the window will be automatically closed and the air conditioner will automatically start.”
  • the condition device is the door and temperature sensor
  • the execution device is the window and air conditioner.
  • the role of the electronic device 12 (electronic device B) in the local network in the IFTTT rule is divided into conditional devices and execution devices.
  • the method of linkage of electronic equipment is illustrated as an example. It should be noted that the division of conditional equipment and execution equipment here does not constitute a specific limitation on electronic equipment 12 (electronic equipment B).
  • condition device and the execution device may be the same or different.
  • there is a certain electronic device in an IFTTT rule which is both a conditional device and an executing device.
  • the condition device and the execution device are both smart door locks.
  • the electronic device can directly call local data to obtain corresponding information, which will not be described separately.
  • 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 on a certain or certain conditional device in the IFTTT rule, the executing device can be notified directly through the local network. After receiving the notification message, the executing device can also directly query the trigger events of other conditional devices through the local network. When it is determined that the trigger events of all conditional devices have occurred, the execution device can execute the corresponding event (that is, the execution event, which can also be understood as the execution device to perform the corresponding function), that is, the linkage is completed.
  • the corresponding event that is, the execution event, which can also be understood as the execution device to perform the corresponding function
  • FIG. 4A it is a schematic diagram of a method for linkage of multiple electronic devices in a local network according to an embodiment of this application.
  • the execution device may obtain the IFTTT rule, and the conditional device may not obtain the IFTTT rule.
  • the method specifically includes:
  • S401 The execution device obtains the IFTTT rule.
  • IFTTT rules can include regular Identification, condition (condition) information and execution (action) information.
  • condition information may include: device identification, device type (type), attribute value, operator, value, etc.
  • the device identifier in the condition information is the identifier of the condition device
  • the device type is the type of the condition device
  • the attribute value is the parameter of the condition device (for example, when the condition device is a temperature sensor, the attribute value can be temperature), operation
  • the symbol is a logical operation (for example: greater than, less than, etc.), and the value is the value corresponding to the attribute value (for example: 26 degrees Celsius).
  • the execution information can include: device identification, device type, and specific operations performed. For example: the IFTTT rule can be set as that if the temperature value detected by the temperature sensor is greater than 26 degrees Celsius, the air conditioner is turned on.
  • the electronic device 10 can actively push the IFTTT rules (including adding, modifying and deleting IFTTT rules) set by the user to the execution device in the local network or through The server 11 actively pushes to the execution device.
  • the execution device in the local network may also request IFTTT rules 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 rules It is sent to the execution device, which is not limited in this embodiment of the application.
  • the enforcement device checks the legality of the obtained IFTTT rules.
  • the first execution device may parse the acquired IFTTT rule, determine the integrity and correctness of the IFTTT rule, and check to ensure that the conditional device and the execution device can be linked according to the acquired IFTTT rule.
  • the integrity check of the IFTTT rule may include: detecting whether the IFTTT rule contains conditional information and whether the conditional information is complete, for example: conditional device information, conditional device attribute value, conditional device operator, attribute value correspondence Whether the value of is complete, etc. Check whether the IFTTT rule contains execution information, and whether the execution information is complete.
  • checking the correctness of the IFTTT rule may also include: checking the validity of the IFTTT rule to determine whether the IFTTT rule has not been tampered with, etc.
  • the first execution device requests to discover the first conditional device and the second conditional device in the IFTTT rule.
  • the first execution device obtains the identities of the related condition devices and the identities of other execution devices from the IFTTT rules, and performs multicast or broadcast in the local network, and requests to discover the condition devices and other devices in the IFTTT rules.
  • Execution equipment That is, the message that the first execution device multicasts or broadcasts in the local network may carry the identification of the condition device and the identification of the execution device in the IFTTT rule.
  • the IFTTT rule is: If the first event of the first condition device and the second event of the second condition device occur at the same time, the first execution device executes the third event.
  • the first event is a trigger event of the first conditional device
  • 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 execution device may multicast or broadcast the identification of the first conditional device and the identification of the second conditional device.
  • the first execution device may multicast or broadcast the identification of the first conditional device and the identification of the second conditional device respectively, that is, one multicast or broadcast message only includes the identification of the first conditional device, and the other The multicast or broadcast message only contains the identifier of the second conditional device.
  • the first execution device may also multicast or broadcast the identification of the first conditional device and the identification of the second conditional device at the same time, that is, a multicast or broadcast message includes the identification of the first conditional device and The identification of the second condition device. The embodiments of this application do not limit this.
  • the IFTTT rule is: if the smart door lock is unlocked and the temperature of the indoor temperature sensor is greater than 28 degrees, the smart air conditioner is turned on and the temperature is set at 24 degrees.
  • the first condition device is a smart door lock, and the first event is unlocking.
  • the second condition device is a temperature sensor, and the second event is that the temperature value is greater than 28 degrees.
  • the first execution device is a smart air conditioner, and the third event is Turn on the smart air conditioner and set the temperature at 24 degrees. Then, after the smart air conditioner obtains the IFTTT rule, it determines that the conditional devices in the IFTTT rule are the smart door lock and the temperature sensor.
  • the smart air conditioner can broadcast the identification of the smart door lock and the identification of the temperature sensor in the home network.
  • the first conditional device and the second conditional device respectively replies their respective addresses to the first execution device.
  • Step S404 specifically includes: the first conditional device replies its own address to the first execution device (step S404a), and the second conditional device replies its own address to the first execution device (step S404b)
  • other electronic devices in the local network other than the first executing device compare the device identifier in the multicast or broadcast message with its own identifier. If the comparison is successful, it means that the electronic device is a conditional device or an executing device in the IFTTT rule, and replies to the first executing device with their respective addresses, such as IP address, MAC address, etc., so that the subsequent first executing device can follow the The address sends a message related to the linkage to it. If the comparison fails, it means that the electronic device is not a conditional device and an executing device in the IFTTT rule, and the electronic device can ignore the received multicast or broadcast message.
  • 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. Then, after receiving the multicast or broadcast message sent by the first executing device, the first conditional device determines that it contains the identity of the first conditional device, and then determines that the first conditional device is the conditional device in the IFTTT rule, and then sends An execution device sends the address of the first condition device so that the first execution device can send a corresponding message according to the address of the first condition device. Similarly, the second condition device also sends the address of the second condition device to the first execution device, which will not be repeated here.
  • the IFTTT rule is still: If the smart door lock is unlocked and the temperature of the indoor temperature sensor is greater than 28 degrees, the smart air conditioner is turned on and the temperature is set at 24 degrees.
  • the smart door lock and the temperature sensor confirm that the broadcast message contains their own identification, and determine that they are related to the IFTTT rule, and then return their own network addresses to the smart air conditioner, namely the smart door The network address of the lock and the network address of the temperature sensor.
  • Other devices in the home network such as air purifiers, smart doors and windows, etc., after receiving the broadcast message, determine that they are not related to the IFTTT rule, they can directly ignore the broadcast message sent by the smart air conditioner.
  • the first execution device subscribes to the first conditional device for the first event (shown in step S405a in Figure 4A), and subscribes to the second conditional device for the second event (shown in step S405b in Figure 4A).
  • the first execution device may send a subscription message to each condition device to subscribe to the trigger event of each condition device That is, once the trigger event of each condition device occurs, the first execution device will be notified.
  • the subscription message sent by the first execution device to the first condition device may contain the specific content of the first event.
  • the subscription message sent by the first execution device to the second condition device may include specific content of the second event.
  • steps S405a and S405b are respectively shown.
  • the IFTTT rule is still: If the smart door lock is unlocked and the temperature of the indoor temperature sensor is greater than 28 degrees, the smart air conditioner is turned on and the temperature is set at 24 degrees.
  • the smart air conditioner subscribes to the smart door lock for event 1 and the temperature sensor for event 2 respectively.
  • event 1 is the unlocking of the smart door lock.
  • Event 2 is that the temperature of the indoor temperature sensor is greater than 28 degrees.
  • the smart air conditioner queries the temperature sensor whether event 2 has occurred (that is, whether the temperature is greater than 28 degrees X After the temperature sensor determines that the temperature is greater than 28 degrees, it informs the smart air conditioner. Therefore, the smart air conditioner can determine to turn on the smart air conditioner and set the temperature to 24 degrees.
  • the conditional device after the conditional device receives the subscription message of the execution device, it may report to the execution device whether a trigger event occurs or a message that satisfies the trigger condition at intervals.
  • the execution device can determine whether the corresponding IFTTT rule is satisfied according to the message, and execute the corresponding execution event when it is satisfied. For example: after the first conditional device receives the subscription message of the first execution device, it may report to the first execution device a message about whether the first event has occurred after a period of time. Similarly, after the second conditional device receives the subscription message of the first execution device, it may report to the first execution device a message about whether the second event has occurred after a certain interval of time. The first execution device can determine whether the IFTTT rule is satisfied according to the messages reported by the first condition device and the second condition device, and if it is satisfied, it directly executes the first event.
  • the conditional device may also send a notification message to the executing device after detecting a corresponding trigger event.
  • the first condition device may also send a notification message that the first event has occurred to the first execution device after detecting the first event.
  • the second condition device may also send a notification message that the first event has occurred to the first execution device after detecting the second event.
  • the occurrence of the first event of the first condition device includes: the first condition device performs a certain operation, for example: unlocking of a smart door lock.
  • the working state of the first condition device changes, for example: the smart air conditioner changes from the off state to the on state.
  • the detection value of the first condition device satisfies a certain condition, for example: the temperature value detected by the temperature sensor is greater than or equal to 28 degrees.
  • the human body sensor senses that a human body passes through, etc. That is to say, the specific content of the first event can be changed according to the function of the first condition device, and the specific content of the first event is not limited in the embodiment of the present application.
  • a notification message may be sent to the first execution device to notify the first condition device that the first event has occurred.
  • the notification message may be a message of a specific format or specific content.
  • the first execution device may determine the first event according to the sender of the notification message (the first conditional device) happened.
  • the notification message may also carry the identifier of the first conditional device.
  • the first executing device may determine that the first event has occurred according to the identifier of the first conditional device.
  • the notification message may also carry the identifier of the first event or the content of the first event.
  • the first execution device may perform the identification according to the identifier of the first event or the content of the first event. Make sure that the first event has occurred.
  • the specific form and content of the notification message are not limited in the embodiments of this application.
  • the first execution device sends a query message to the second condition device, which is used to query whether the second event occurs.
  • the first execution device may query the second condition device whether the second event has occurred.
  • the first execution device may determine whether the IFTTT is satisfied according to the first event and the second event. Rule, and then step S409 is executed.
  • the second condition device After receiving the query message of the first execution device, the second condition device can determine whether the second event has occurred, and return the query result to the first execution device.
  • S409 The first execution device determines to execute the 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 an 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 simultaneously executes or sequentially a series of actions in the first event.
  • the execution event may also set a delay, that is, when the condition that triggers the first execution device to execute the first event is satisfied, the first execution device may start to execute the first event after a preset delay time. This application embodiment does not limit this.
  • the first execution device makes a logical judgment according to the notification message of the first event and the query result of the second event. If the judgment result matches the trigger condition in the IFTTT rule, the first execution device executes the third event. If they do not match, the first execution device determines not to execute the third event.
  • the notification message of the first event has timeliness. In other words, the notification message of the first event is valid within the preset time period. If it exceeds the preset time period, the notification message is invalid, that is, the notification message cannot be used to indicate that the first event has occurred, and the first execution device also needs to query the first condition device whether the first event has occurred.
  • 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. The execution device may also determine whether the notification message is valid according to the time when the notification message is received, which is not limited in this embodiment of the application.
  • the query process is similar to the process in which the first execution device queries the second condition device whether the second event has occurred, and will not be repeated here.
  • the executing device obtains the IFTTT rule in advance, and discovers other electronic devices in the IFTTT rule. After a trigger event occurs on a conditional device in the IFTTT rule, the executing device can be notified directly through the local network, and the executing device can also directly query the triggering event of other conditional devices through the local network. When the trigger conditions of all conditional devices meet the IFTTT rules, the executing device can execute the corresponding event, that is, complete the linkage. It can be seen that the entire process from the occurrence of a trigger condition of a certain condition device to the execution of the corresponding event by the executing device is completed in the local network.
  • the application can still complete the linkage of multiple electronic devices in the local network, which improves the success rate of linkage and improves the stability of the linkage system.
  • multiple electronic devices in the local network communicate directly during the linkage process, instead of using the Internet, it is beneficial to reduce the communication delay and improve the efficiency of linkage.
  • avoiding uploading the status of each electronic device in the local network and the execution status of the IFTTT rules to the Internet is beneficial to avoid security risks.
  • the executing device in the IFTTT rules communicates directly with other conditional devices in the IFTTT rules, and no other intermediate devices are used for transfer and control, that is, it does not pass the IFTTT rules.
  • Other devices that are irrelevant to the rules such as gateways
  • the method provided by the embodiment of the present application allows multiple electronic devices in the local network to get rid of the dependence on the control device when the multiple electronic devices in the local network are linked, which is beneficial to reduce the time delay of the linkage and improve the linkage efficiency.
  • conditional devices there are more than two conditional devices in an IFTTT rule, for example: there is a third conditional device, and the third conditional device corresponds to the fourth event, the process of multiple electronic device linkage is the same as the above steps S401 to S409 are similar. The difference is:
  • the first execution device requests the discovery of all condition devices according to the IFTTT rule, that is, the discovery of the first condition device, the second condition device, and the third condition device. Therefore, the multicast message or the broadcast message sent by the first execution device also includes the identifier of the third conditional device.
  • 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 broadcast message contains the identifier of the third conditional device, and also sends the notification to the first execution device. Send the address of the third conditional device, so that the subsequent first execution device can send linkage-related messages to the third conditional device.
  • the first execution device also subscribes to the third condition device for the fourth event.
  • the fourth event is a trigger event corresponding to the third conditional device.
  • steps S407 to S409 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 and the fourth event, the first execution device sends a notification to the second condition
  • the device queries whether the second event occurs, and queries the third condition device whether the fourth event occurs.
  • the second condition device and the third condition device respectively return the query result to the first execution device, and the first execution device determines whether to execute the third event according to the query result.
  • the first execution device If the first execution device receives the notification messages of the first event and the second event, but does not receive the notification message of the fourth event, the first execution device queries the third condition device whether the fourth event occurs. The third condition device returns the query result to the first execution device, and the first execution device determines whether to execute the third event according to the query result.
  • the first execution device receives 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.
  • the IFTTT rule is: if the first event of the first condition device and the second event of the second condition device occur simultaneously, the first execution device executes the third event, and the second execution device executes the fifth event.
  • the fifth event is an execution event of the second execution device.
  • condition that triggers the first execution device to execute the third event is the same as the condition that triggers the second execution device to execute the fifth event. Therefore, when the first execution device determines to execute the third event, the second execution device may be notified to execute the fifth event. Then, the second execution device may not need to obtain the IFTTT rule from the electronic device 10 (electronic device A) or the server 11.
  • the linkage process of multiple electronic devices can still be executed according to the method in steps S401 to S409. The difference is:
  • the first execution device requests to send the first condition device, the second condition device, and the second execution device in the IFTTT rule according to the IFTTT rule.
  • the multicast message or the broadcast message sent by the first execution device further includes the identifier of the second execution device.
  • step S404 after receiving the multicast message or broadcast message sent by the first executing device, the second executing device determines that the multicast message or the broadcast message contains the identifier of the second executing device, and also sends it to the first executing device The address of the second execution device, so that the first execution device can send linkage-related messages to the second execution device subsequently.
  • step S409 when the first execution device determines to execute the third event according to the notification message of the first event and the query result of the second event, it sends an instruction 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.
  • the second execution device may obtain the IFTTT rules from the electronic device 10 (electronic device A) or the server 11.
  • the processing procedure after the second execution device obtains the IFTTT rules is the same as the processing after the first execution device obtains the IFTTT rules. The process is the same and will not be repeated here.
  • the conditional device obtains the IFTTT rule in advance, and discovers other electronic devices in the IFTTT rule, such as the execution device. After a trigger event occurs on a certain 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 rules are met, they instruct the executing device to execute the corresponding event to complete the linkage.
  • FIG. 4A can also be applied to linkage between two electronic devices.
  • FIG. 4B Two electronic devices in a local network provided in an embodiment of this application (Execution equipment and condition equipment) schematic diagram of the linkage method, the method specifically includes:
  • the execution device obtains IFTTT rules.
  • the IFTTT rule is that when the first event occurs on the conditional device, the execution device executes the corresponding execution event (such as the first function X
  • step S401 in FIG. 4A refers to the related description in step S401 in FIG. 4A.
  • the execution device checks the legality of the obtained IFTTT rules.
  • step S402 in FIG. 4A refers to the related description in step S402 in FIG. 4A.
  • the execution device request discovers the conditional device in the IFTTT rule.
  • step S403 in FIG. 4A refer to the related description in step S403 in FIG. 4A.
  • the conditional device returns its own address to the executing device.
  • step S404 in FIG. 4A refers to the related description in step S404 in FIG. 4A.
  • the execution device sends a subscription message for the first event to the condition device.
  • step S405 in FIG. 4A refers to the related description in step S405 in FIG. 4A.
  • conditional device When a first event occurs in the conditional device, the conditional device publishes a notification message of the first event to the execution device. For this step, refer to the related description in step S406 in FIG. 4A.
  • the execution device determines to execute a corresponding execution event according to the first event.
  • step S409 in FIG. 4A refers to the related description in step S409 in FIG. 4A.
  • FIG. 5A it is a schematic diagram of another method for linkage of multiple electronic devices in a local network provided in an embodiment of this application.
  • the conditional device may obtain the IFTTT rule, but the execution device may not obtain the IFTTT rule.
  • the method specifically includes:
  • the first conditional device and the second conditional device respectively obtain IFTTT rules.
  • This step specifically includes: the first conditional device obtains IFTTT rules (step S501a) and the second conditional device obtains IFTTT rules (step S501b X
  • the method for obtaining the IFTTT rule by the first conditional device and the second conditional device may refer to the obtaining of the IFTTT rule by the first executing device in step S401, which will not be repeated.
  • the first conditional device and the second conditional device respectively perform legality checks on the acquired IFTTT rules.
  • This step specifically includes: the first conditional device performs a legality check on the obtained IFTTT rule (step S502a), and the second conditional device performs a legality check on the obtained IFTTT rule (step S502b).
  • the first conditional device and the second conditional device respectively parse the acquired IFTTT rules to determine the completeness and correctness of the IFTTT rules to check to ensure that the conditional device and the Perform equipment linkage.
  • the first conditional device requests the discovery of the first execution device and the second conditional device according to the IFTTT rule; the second conditional device requests the discovery of the first execution device and the first conditional device according to the IFTTT rule.
  • This step specifically includes: the first conditional device requests the discovery of the first execution device and the second conditional device (step S503b), and the second conditional device requests the discovery of the first execution device and the first conditional device (S503a).
  • the first conditional device and the second conditional device respectively obtain the identifiers of related other devices from the IFTTT rule, and perform multicast or broadcast in the local network, requesting to discover other devices in the IFTTT rule. That is, the multicast or broadcast message in the local network may carry the identification of other devices in the IFTTT rule.
  • the IFTTT rule is: if the first event of the first condition device and the second event of the second condition device occur simultaneously, the first execution device executes the third event.
  • the first event is a trigger event of the first conditional device
  • the second event is a trigger event of the second conditional device.
  • the third event is an execution event of the first execution device.
  • the first execution The device may multicast or broadcast the identity of the first conditional device and the identity of the second conditional device.
  • the message that the first conditional device multicasts or broadcasts in the local network may carry the identities of the first execution device and the second conditional device.
  • the message that the second conditional device multicasts or broadcasts in the local network may carry the identifiers of the first execution device and the first conditional device.
  • the first execution device and the second condition device replies to their respective addresses to the first condition device; the first execution device and the first condition device replies to their respective addresses to the second condition device.
  • step S504a step S504b, step S504c, and step S504d are shown respectively.
  • S505 When the first event of the first condition device occurs, the first condition device publishes the first event to the second condition device. After the first event occurs in the first condition device, a notification message may be sent to the second condition device to notify the first condition device that the first event has occurred.
  • the notification message may be a message of a specific format or specific content, and after receiving the notification message, the second condition device may determine the first event according to the sender of the notification message (the first condition device) happened.
  • the notification message may also carry the identification of the first conditional device.
  • the second conditional device may determine that the first event has occurred according to the identification of the first conditional device.
  • the notification message may also carry the identifier of the first event or the content of the first event.
  • the second conditional device may use the identifier of the first event or the content of the first event. Make sure that the first event has occurred.
  • the specific form and content of the notification message are not limited in the embodiments of this application.
  • the second conditional device can determine whether the IFTTT rules are satisfied according to the received notification message of the first event, combined with the second event that occurred by itself, and if the IFTTT rules are satisfied, then The first execution device sends a command to execute the third event.
  • the notification message of the first event has timeliness. In other words, the notification message of the first event is valid within the preset time period. If it exceeds the preset time period, the notification message is invalid, that is, the notification message cannot be used to indicate that the first event has occurred. Then, when the second event occurs, the second condition device also needs to query the first condition device for the first condition. Whether an event occurs is not repeated in the embodiment of this application.
  • the first execution device executes the third event.
  • the third event is an execution event of the first execution device, and the execution event may be an action or a series of actions. That is, when the condition that triggers the first execution device to execute the third event is satisfied, the first execution device simultaneously executes or sequentially a series of actions in the third event.
  • the execution event may also set a delay, that is, when the condition that triggers the first execution device to execute the third event is satisfied, the first execution device may start to execute the third event after a preset delay time. This application embodiment does not limit this.
  • the second condition device will first publish the second event to the first condition device, and then when the first condition device occurs In the case of the first event, it may be determined whether the IFTTT rule is satisfied according to the notification message of the second event and the first event. If it is met, the first condition device instructs the first execution device to execute the third event.
  • the electronic device 10 (electronic device A) is a mobile phone
  • the first condition device is a smart door
  • the second condition device is a brightness sensor
  • the first execution device is a lamp.
  • the smart door and the brightness sensor respectively obtain an IFTTT rule from the mobile phone side. For example, if the smart door is unlocked and the brightness sensor detects darkness, the light is turned on. Then, when the smart door unlocks, the event will be posted to the brightness The brightness sensor detects whether the room brightness is dark, and if it is dark, the brightness sensor issues an event to the light. After the light receives the event issued by the brightness sensor, it turns on the light.
  • the conditional device obtains the IFTTT rule in advance, and discovers other electronic devices in the IFTTT rule. After a trigger event occurs on the conditional device in the IFTTT rule, it can directly notify other conditional devices through the local network. After each conditional device determines that the IFTTT rule is satisfied, the executing device is instructed to execute the corresponding event, which completes the linkage. It can be seen that the entire process from the occurrence of a trigger condition of a certain condition device to the execution of a corresponding event by the device is completed in the local network, which improves the efficiency of linkage and improves the security of user data.
  • conditional devices there are more than two conditional devices in an IFTTT rule, for example: there is a third conditional device, and the third conditional device corresponds to the fourth event, the process of multiple electronic device linkage is the same as the above steps S501 to S507 are similar. The difference is:
  • step S501 all conditional devices need to obtain the IFTTT rule from the server 11 or the electronic device 10 (electronic device A), that is, the third conditional device also needs to obtain the IFTTT rule.
  • step S502 the third-condition device also performs a legality check on the IFTTT rule.
  • the first condition device and the second condition device also need to discover the third condition device, that is, the multicast message or broadcast message sent by the first condition device and the second condition device also contains the identity of the third condition device .
  • the third conditional device must also send a multicast message or a broadcast message for discovering other electronic devices in the IFTTT rule, such as the first conditional device, the second conditional device, and the first execution device.
  • step S504 after receiving the multicast message or the broadcast message sent by the first condition device and the second condition device, the third condition device will also send the third condition device to the first condition device and the second condition device respectively.
  • the address of the device In the same way, the first conditional device, the second conditional device, and the first execution device will also reply their respective network addresses to the third conditional device after receiving the multicast message or broadcast message sent by the third conditional device.
  • the first condition device publishes the first event to the second condition device and the third condition device respectively. In this way, both the second condition device and the third condition device learn that the first event has occurred. After the second event occurs, the second condition device publishes the second event to the third condition device (it can also publish the second event to the first condition device at the same time). In this way, when the fourth event of the third condition device (the trigger event corresponding to the third condition device) occurs, the third condition device determines whether to instruct the first execution device to execute the third event according to the IFTTT rule.
  • the IFTTT rule is: if the first event of the first condition device and the second event of the second condition device occur simultaneously, the first execution device executes the third event, and the second execution device executes the fifth event.
  • the fifth event is an execution event of the second execution device.
  • steps S503 to S504 when the conditional device discovers other devices in the IFTTT rule, the second execution device also needs to be discovered.
  • the conditional device discovers other devices in the IFTTT rule
  • the second execution device also needs to be discovered.
  • step S506 when the second event of the second condition device occurs, the second condition device instructs the first execution device to execute the third event, and the second condition device instructs the second execution device to execute the fifth event.
  • the executing device and some conditional devices obtain the IFTTT rule in advance, and discover other electronic devices in the IFTTT rule, such as other conditional devices.
  • the trigger event of other condition devices can be queried, or the execution device can be notified, and the execution device condition device can query the trigger events of other condition devices.
  • the execution device executes the corresponding event, and the linkage is completed.
  • FIG. 6A it is a schematic diagram of another method for linkage of multiple electronic devices in a local network provided in an embodiment of this application.
  • the IFTTT rule can be obtained by the partial conditional device and the executing device, and the method specifically includes:
  • the first conditional device and the first execution device respectively obtain IFTTT rules.
  • This step specifically includes: the first conditional device obtains the IFTTT rule (step S601a), and the first execution device obtains the IFTTT rule (step S601b).
  • the method for obtaining the IFTTT rule by the first conditional device and the first execution device may refer to the first execution device obtaining the IFTTT rule in step S401, which will not be repeated.
  • the first condition device and the first execution device respectively perform legality checks on the acquired IFTTT rules.
  • This step specifically includes: the first condition device performs a legality check on the obtained IFTTT rule (step S602b), and the first execution device performs a legality check on the obtained IFTTT rule (S602a).
  • the first conditional device and the first execution device respectively parse the acquired IFTTT rules to determine the completeness and correctness of the IFTTT rules to check, so as to ensure that the conditional device and the execution device can be performed according to the acquired IFTTT rules. Perform equipment linkage.
  • the first conditional device requests discovery of the first conditional device and the second conditional device according to the IFTTT rule; the first conditional device requests discovery of the first conditional device and the second conditional device according to the IFTTT rule.
  • This step specifically includes: the first conditional device requests the discovery of the first conditional device and the second conditional device (step S603a), and the first conditional device requests the discovery of the first conditional device and the second conditional device (step S603b).
  • the first conditional device and the second conditional device respectively obtain the identifiers of related other devices from the IFTTT rule, and perform multicast or broadcast in the local network, requesting to discover other devices in the IFTTT rule. That is, the multicast or broadcast message in the local network may carry the identification of other devices in the IFTTT rule.
  • the first condition device since the first condition device does not need to send data to the second condition device, during this step, the first condition device may not find the second condition device. That is, the multicast message or broadcast message sent by the first conditional device does not carry the identifier of the second conditional device. In this way, after the second conditional device receives the multicast message or broadcast message, it does not need to reply to the first conditional device. Network address. Similarly, the first execution device does not need to send data to the first conditional device. Therefore, in this step, the first execution device may not discover the first conditional device. That is, the multicast message or broadcast message sent by the first execution device does not carry the identifier of the first conditional device.
  • the first execution device and the second condition device replies to their respective addresses to the first condition device; the first execution device and the first condition device item and the second condition device replies to their respective addresses.
  • step S604a step S604b, step S604c, and step S604d are shown respectively.
  • the first condition device publishes the first event to the first execution device. After the first event occurs in the first condition device, a notification message may be sent to the first execution device to notify the first condition device that the first event has occurred.
  • the first execution device queries the second condition device for the second event according to the IFTTT rule.
  • the second condition device returns the query result of the second event to the first execution device.
  • S608 The first execution device executes the third event.
  • the first execution device determines whether the IFTTT regulations are met according to the notification message of the first event and the query result at the second time. Then. If it is satisfied, the third event is executed. Otherwise, the third event is not executed.
  • the first conditional device after the first conditional device sends the first event, it may also query the second conditional device for the second event.
  • the first condition device determines whether the first event and the second event meet the IFTTT rule, and if they do, instruct the first execution device to execute the third event. That is, steps S605 to S607 can be replaced with steps S609 to S610, that is, the method of multi-device linkage provided in the embodiment of the present application includes: S601 to S604, S609 to S611, and step S608, as follows:
  • the first condition device queries the second condition device whether the second event occurs.
  • the second condition device returns the query result of the second time to the first condition device.
  • the first condition device determines whether the IFTTT rule is satisfied according to the query results of the first event and the second event, and if so, instructs the first execution device to execute the third event.
  • the electronic device adopts the process of steps S609 to S611, since the first execution device does not need to send data to the first condition device and the second condition device, in step S603 and In S604, the first execution device may not find the first condition device and the second condition device.
  • the execution device and the conditional device obtain the IFTTT rules, which can save the process of subscribing the execution device to the conditional device for the trigger event.
  • the status of the second event will be inquired. That is to say, when the second event of the second condition device frequently occurs, the second condition device does not need to publish the second event frequently, which is beneficial to saving resources.
  • the electronic device 10 is a mobile phone
  • the first condition device is a smart door
  • the second condition device is a brightness sensor (used to detect the brightness of an indoor environment)
  • the first execution device is Take the lamp as an example.
  • the smart door and the light obtain the IFTTT rules from the mobile phone, for example, if the smart door lock is unlocked and the indoor environment is in a dark state, the indoor light is automatically turned on. Then, when the smart door is unlocked, the smart door issues an unlock event to the light. The lamp then queries the brightness sensor to see if the room is dark. If it is dark, the light turns on automatically. It can be seen that in this application, only when the smart door lock is unlocked, which means that someone at home comes back, the detection result of the brightness sensor is checked. If the test result shows that the indoor environment is in a dark state, turn on the light. Considering that when no one is at home, the indoor environment may always be in a dark state. If the brightness sensor keeps reporting indoor dark events, it is meaningless and wastes resources.
  • conditional devices in an IFTTT rule there are more than two conditional devices in an IFTTT rule, for example: there is a third conditional device, and the third conditional device corresponds to the fourth event, the process of multiple electronic device linkage is the same as the above steps S601 to S608 are similar.
  • the third condition device may not acquire the IFTTT rule. Then, the difference from the method adopted in steps S601 to S608 above is:
  • step S606 when the first execution device queries the second condition device for the second event, it also queries the third condition device for the fourth event.
  • the fourth event is a trigger event corresponding to the third conditional device. Then, the third condition device returns the query result of the fourth event to the first execution device.
  • step S608 the first execution device determines whether the IFTTT rule is satisfied and whether to execute the third event according to the notification message of the first event, the query results of the second event, and the fourth event.
  • the third conditional device can obtain the IFTTT rule. Then, the method differs from the above-mentioned S601 to S604, S609 to S611, and step S608 in that:
  • the interaction between the first conditional device and the third conditional device that have both obtained the IFTTT rule can refer to the interaction between the first conditional device and the second conditional device in steps S501 to S507, and details are not described herein again.
  • the third conditional device can obtain the IFTTT rule. Then, the method differs from the above-mentioned S601 to S604, S609 to S611, and step S608 in that:
  • the interaction between the first conditional device and the third conditional device that have both acquired the IFTTT rule can refer to the interaction between the first conditional device and the second conditional device in the foregoing steps S501 to S507, and details are not described herein again.
  • conditional devices there are more than two conditional devices in an IFTTT rule, for example: there is also a third conditional device, the process of linkage of multiple electronic devices is the same as the aforementioned S601 to S604, S609 to S611, and steps S608, similar.
  • the third conditional device may not acquire the IFTTT rule. Then, the method differs from the foregoing S601 to S604, S609 to S611, and step S608 in that:
  • step S609 when the first event of the first condition device occurs, the second condition device is inquired about the second event, and the third condition device is also inquired about the fourth event. Then, the third condition device returns the query result of the fourth event to the first condition device.
  • step S611 the first conditional device determines whether to instruct the first execution device to execute the third event according to the query results of the first event, the second event, and the fourth event.
  • the third conditional device can obtain the IFTTT rule. Then, the method differs from the above-mentioned S601 to S604, S609 to S611, and step S608 in that:
  • the interaction between the first conditional device and the third conditional device that have both acquired the IFTTT rule can refer to the interaction between the first conditional device and the second conditional device in the foregoing steps S501 to S507, and details are not described herein again.
  • the IFTTT rule is: if the first event of the first condition device and the second event of the second condition device occur simultaneously, the first execution device executes the third event, and the second execution device executes the fifth event.
  • the fifth event is an execution event of the second execution device.
  • steps S601 to S608 or the method of steps S601 to S604, steps S609 to S611, and step S608 can still be used.
  • the difference is:
  • steps S603 to S604 the conditional device and the executing device also need to discover the second executing device during the process of discovering other devices in the IFTTT rule.
  • the conditional device and the executing device also need to discover the second executing device during the process of discovering other devices in the IFTTT rule.
  • step S608 when the first execution device determines to execute the third event, it also instructs the second execution device to execute the fifth event.
  • step S611 when the first conditional device instructs the first execution device to execute the third event, it also instructs the second execution device to execute the fifth event.
  • the aforementioned terminal and the like include hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Certain Whether each function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the embodiments of the present invention.
  • the embodiments of the present application may divide the above-mentioned terminal and the like into functional modules according to the above-mentioned method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiment of the present invention is illustrative, and is only a logical function division, and other division methods may be used in actual implementation. The following is an example of dividing each function module corresponding to each function:
  • Fig. 7 shows a schematic structural diagram of an apparatus involved in the foregoing embodiment, and the apparatus can realize the function of the electronic device in the method provided in the embodiment of the present application.
  • the device may be an electronic device or a device that can support the electronic device to realize the functions of the electronic device in the embodiments of the present application.
  • the device is a chip system applied to the electronic device.
  • the device includes: a processing unit 701 and a communication unit 702.
  • the processing unit 701 may be used to support the electronic device shown in FIG. 4A to perform steps S402 and S409 in the foregoing embodiment, or to support the electronic device shown in FIG. 4B to perform steps S411 and S416 in the foregoing embodiment, or It is used to support the electronic device shown in FIG.
  • the communication unit 702 is used to support the electronic device shown in FIG. 4A to perform steps S401, S403 to S408 in the foregoing embodiment, or to support the electronic device shown in FIG. 4B to perform steps S412 to S415 in the foregoing embodiment, or use It is used 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.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the communication unit in the embodiment 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.
  • the communication unit 702 may be an electronic device or a communication interface applied to a chip system in an electronic device.
  • the communication interface may be a transceiver circuit
  • the processing unit 701 may be an electronic device or a communication interface applied to the electronic device.
  • the processor of the chip system On the processor of the chip system.
  • FIG. 8 shows a schematic diagram of a possible logical structure of the device involved in the foregoing embodiment, and the device can realize the function of the electronic device in the method provided in the embodiment of the present application.
  • the device may be an electronic device or a chip system applied to the electronic device.
  • the device includes: a processing module 801 and a communication module 803.
  • the processing module 801 is used to control and manage the actions of the device shown in FIG. 7, for example, the processing module 801 is used to execute the steps of message or data processing on the device side shown in FIG. For example, it can be used to support the device shown in FIG.
  • the communication module 803 is used to support the device shown in FIG. 7 to perform steps S401, S403 to S408 in the foregoing embodiment, or to perform steps S412 to S415 in the foregoing embodiment, or to perform steps S501 and S503 in the foregoing embodiment.
  • steps S601, S603 to S607, and S609 to S611 in the foregoing embodiment may further include a storage module 802 for storing program codes and data of the device.
  • the processing module 801 may be a processor or a controller, for example, a central processing unit, a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, Hardware components or any combination thereof. It can implement or execute each of the descriptions in combination with the disclosure of the embodiments of the present application An exemplary logic block, module and circuit.
  • the processor may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on.
  • the communication module 803 may be a transceiver, a transceiver circuit, or a communication interface.
  • the storage module 802 may be a memory.
  • the processing module 801 is the processor 110
  • the communication module 803 is the mobile communication module 150 or the wireless communication module 160 or the USB interface 130
  • the storage module 802 is the internal memory 121, or the external memory connected to the external memory interface 120
  • the involved device may be the electronic device 100 shown in FIG. 2A.
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented by software, it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, a network device, a terminal, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, an SSD).
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.

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

L'invention concerne un procédé, un dispositif et un système de commande de liaison de plusieurs dispositifs intelligents, qui relèvent du domaine technique des communications et peuvent éliminer la dépendance à un dispositif de commande lors de la commande de liaison de plusieurs dispositifs intelligents, ce qui facilite la réduction du délai de liaison et améliore l'efficacité de liaison. Plus précisément, le procédé comprend les étapes suivantes : un premier dispositif électronique acquiert une première règle, la première règle indiquant que si un premier événement se produit sur un second dispositif électronique, le premier dispositif électronique exécute une première fonction ; le premier dispositif électronique envoie un message d'abonnement pour le premier événement au second dispositif électronique selon la première règle ; le premier dispositif électronique reçoit un message de notification du premier événement envoyé par le second dispositif électronique ; et en réponse au message reçu de notification du premier événement, le premier dispositif électronique exécute la première fonction selon la première règle.
PCT/CN2020/075982 2019-02-26 2020-02-20 Procédé, dispositif et système de commande de liaison de plusieurs dispositifs intelligents WO2020173375A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910142363.1A CN111614524A (zh) 2019-02-26 2019-02-26 一种多智能设备联动控制的方法、设备及系统
CN201910142363.1 2019-02-26

Publications (1)

Publication Number Publication Date
WO2020173375A1 true WO2020173375A1 (fr) 2020-09-03

Family

ID=72203003

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/075982 WO2020173375A1 (fr) 2019-02-26 2020-02-20 Procédé, dispositif et système de commande de liaison de plusieurs dispositifs intelligents

Country Status (2)

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

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363820A (zh) * 2020-09-29 2022-04-15 华为终端有限公司 一种电子设备的查找方法和电子设备
CN114584414B (zh) * 2020-12-01 2024-05-03 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备和计算机可读存储介质
CN112702428B (zh) * 2020-12-23 2023-04-18 上海商米科技集团股份有限公司 一种分布式物联网设备互操作方法及系统
CN115220372A (zh) * 2021-04-16 2022-10-21 华为技术有限公司 一种事件处理方法、设备及系统
CN115390462A (zh) * 2021-05-20 2022-11-25 深圳绿米联创科技有限公司 设备控制方法及装置、终端设备、网关及介质
CN113406891B (zh) * 2021-06-18 2023-04-21 杭州深渡科技有限公司 物联网设备联动控制方法、系统、装置及存储介质
CN115550090A (zh) * 2021-06-30 2022-12-30 华为技术有限公司 一种设备协同方法及电子设备
CN113452793B (zh) * 2021-06-30 2024-05-14 东软睿驰汽车技术(沈阳)有限公司 一种诊断服务处理方法、装置、车载终端及介质
CN116027692A (zh) * 2021-10-25 2023-04-28 华为技术有限公司 一种基于人体感知的自动控制方法、电子设备及系统
CN114157725B (zh) * 2021-11-11 2023-09-12 珠海格力电器股份有限公司 设备联动的方法、装置、服务器、电子设备以及存储介质
CN114167738A (zh) * 2021-11-26 2022-03-11 珠海格力电器股份有限公司 一种设备联动控制方法、装置、设备及存储介质
CN114143906B (zh) * 2022-01-30 2022-06-17 荣耀终端有限公司 一种电子设备连接方法及电子设备
CN114815642A (zh) * 2022-03-30 2022-07-29 青岛海尔科技有限公司 智能设备的控制方法和装置、存储介质及电子装置
CN117666453A (zh) * 2022-08-26 2024-03-08 华为技术有限公司 链路控制方法及电子设备
CN115412391A (zh) * 2022-11-02 2022-11-29 长沙朗源电子科技有限公司 多种小家电的智能场景搭建方法、系统和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440606A (zh) * 2013-08-02 2013-12-11 马祥龙 集成远程网络智能家居安防施救管理系统
US20150370272A1 (en) * 2014-06-23 2015-12-24 Google Inc. Intelligent configuration of a smart environment based on arrival time
CN204908704U (zh) * 2015-06-07 2015-12-30 何连婷 一种半导体制冷床垫电路
US9252967B2 (en) * 2011-09-01 2016-02-02 Sony Corporation Facilitated use of heterogeneous home-automation edge components
CN105913596A (zh) * 2016-06-23 2016-08-31 余新城 一种家居安防系统
CN106996621A (zh) * 2017-04-10 2017-08-01 盐城师范学院 基于红外探测的智能空调控制装置及控制方法
WO2018006203A1 (fr) * 2016-07-02 2018-01-11 李珂悦 Climatiseur intelligent

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216379B (zh) * 2014-09-09 2017-05-24 联想(北京)有限公司 一种信息处理方法及电子设备
CN104932456B (zh) * 2015-04-27 2019-02-19 小米科技有限责任公司 智能场景实现方法和装置、智能终端及控制设备
CN105549415A (zh) * 2016-03-04 2016-05-04 橙朴(上海)智能科技有限公司 一种去中心化的智能家居控制系统
CN205721123U (zh) * 2016-03-04 2016-11-23 橙朴(上海)智能科技有限公司 一种去中心化的智能家居控制系统
CN106054655B (zh) * 2016-07-25 2019-05-21 青岛海信电器股份有限公司 一种智能家居联动控制方法和装置
CN106227045B (zh) * 2016-07-25 2019-12-20 青岛海信电器股份有限公司 一种智能家居联动控制方法、装置和系统
CN107783781A (zh) * 2016-08-24 2018-03-09 北京京东尚科信息技术有限公司 基于 ifttt 的智能设备联动方法以及装置
CN108733005B (zh) * 2017-04-21 2021-05-25 北京京东尚科信息技术有限公司 一种控制智能设备联动的方法及装置
CN109302415B (zh) * 2018-11-09 2019-11-01 四川虹微技术有限公司 一种认证方法、区块链节点及存储介质

Patent Citations (7)

* 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
CN103440606A (zh) * 2013-08-02 2013-12-11 马祥龙 集成远程网络智能家居安防施救管理系统
US20150370272A1 (en) * 2014-06-23 2015-12-24 Google Inc. Intelligent configuration of a smart environment based on arrival time
CN204908704U (zh) * 2015-06-07 2015-12-30 何连婷 一种半导体制冷床垫电路
CN105913596A (zh) * 2016-06-23 2016-08-31 余新城 一种家居安防系统
WO2018006203A1 (fr) * 2016-07-02 2018-01-11 李珂悦 Climatiseur intelligent
CN106996621A (zh) * 2017-04-10 2017-08-01 盐城师范学院 基于红外探测的智能空调控制装置及控制方法

Also Published As

Publication number Publication date
CN111614524A (zh) 2020-09-01

Similar Documents

Publication Publication Date Title
WO2020173375A1 (fr) Procédé, dispositif et système de commande de liaison de plusieurs dispositifs intelligents
WO2020192714A1 (fr) Procédé d'affichage de page de commande de dispositif, appareil et système associés
WO2021000808A1 (fr) Procédé de commande de dispositif et dispositif
WO2020224486A1 (fr) Procédé, dispositif et système d'appel
WO2022257977A1 (fr) Procédé de projection d'écran pour dispositif électronique, et dispositif électronique
WO2020155014A1 (fr) Système et un procédé de partage de dispositif domestique intelligent, et dispositif électronique
EP4084486B1 (fr) Procédé de projection de contenu inter-dispositif et dispositif électronique
WO2021169847A1 (fr) Procédé de planification de service distribué et appareil associé
WO2021043045A1 (fr) Procédé et dispositif de configuration d'informations de configuration de réseau
CN111628916B (zh) 一种智能音箱与电子设备协作的方法及电子设备
WO2020224447A1 (fr) Procédé et système pour ajouter un dispositif de maison intelligente à des contacts
WO2021052204A1 (fr) Procédé de découverte de dispositif basé sur un carnet d'adresses, procédé de communication audio et vidéo, et dispositif électronique
WO2021000923A1 (fr) Procédé de configuration de routeur, terminal et routeur
WO2021253975A1 (fr) Procédé et appareil de gestion d'autorisation pour application, et dispositif électronique
WO2020216098A1 (fr) Procédé permettant de fournir un service de transfert à travers des appareils électroniques, appareil et système
WO2021103955A1 (fr) Procédé et appareil d'appel
WO2020133467A1 (fr) Procédé permettant à un appareil domestique intelligent d'accéder à un réseau et dispositif associé
WO2022042637A1 (fr) Procédé de transmission de données à base de bluetooth et appareil associé
WO2021179990A1 (fr) Procédé et terminal d'accès à un serveur d'application
CN116074143A (zh) 场景同步方法、装置、电子设备及可读存储介质
WO2022228180A1 (fr) Procédé de gestion d'application et dispositif électronique
WO2022052713A1 (fr) Procédé et appareil d'interaction, et dispositif électronique
CN114567871A (zh) 文件共享的方法、装置、电子设备以及可读存储介质
WO2022143273A1 (fr) Procédé de traitement d'informations et dispositif électronique
WO2024114274A1 (fr) Procédé de configuration de réseau de dispositif ido et appareil associé

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20762333

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20762333

Country of ref document: EP

Kind code of ref document: A1