CN107783781A - Smart machine interlock method and device based on IFTTT - Google Patents

Smart machine interlock method and device based on IFTTT Download PDF

Info

Publication number
CN107783781A
CN107783781A CN201610711089.1A CN201610711089A CN107783781A CN 107783781 A CN107783781 A CN 107783781A CN 201610711089 A CN201610711089 A CN 201610711089A CN 107783781 A CN107783781 A CN 107783781A
Authority
CN
China
Prior art keywords
smart machine
ifttt
event
action
logical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610711089.1A
Other languages
Chinese (zh)
Inventor
陈宇
孙敏刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610711089.1A priority Critical patent/CN107783781A/en
Publication of CN107783781A publication Critical patent/CN107783781A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3005Arrangements for executing specific machine instructions to perform operations for flow control
    • G06F9/30058Conditional branch instructions

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present invention provides a kind of convenient easy-to-use smart machine interlock method and device based on IFTTT.The smart machine interlock method based on IFTTT of the present invention includes:The IFTTT scripts received are parsed, obtain event set, logical set and behavior aggregate;The parameter information of Event origin smart machine is monitored or obtained according to event set;Logical process is carried out to the parameter information of smart machine according to logical set, obtains logical process result;According to behavior aggregate for the default response signal of logical process result output, preset response signal and perform smart machine for control action.

Description

Smart machine interlock method and device based on IFTTT
Technical field
The present invention relates to computer and its software technology field, a kind of particularly smart machine connection based on IFTTT Dynamic method and device.
Background technology
IFTTT (can be write as again " ifttt ") is that " if this then that " abbreviation, its objective are " Put the Internet to work for you " (allow internet to be serviced for you).IFTTT is intended to the opening for helping people to utilize each website Interface, each website such as Facebook, Twitter or application are connected, complete task, make that " everyone can turn into whole Internet does not have to the programmer of programming ".IFTTT is got up various message linkages by flow, then concentrates the letter that you are wanted again Breath is presented to you.Solve the lengthy and jumbled of information, the problem of collecting or pay close attention to important information.
Application field current IFTTT is mainly internet, it is necessary to get through the interface between various the Internet, applications, and Its resource consumption is high, is not suitable for smart machine.
The content of the invention
In view of this, the present invention provides a kind of convenient easy-to-use smart machine interlock method and device based on IFTTT.
To achieve the above object, according to an aspect of the invention, there is provided a kind of smart machine linkage based on IFTTT Method.
The smart machine interlock method based on IFTTT of the present invention includes:The IFTTT scripts received are parsed, obtain thing Part collection, logical set and behavior aggregate;The parameter information of Event origin smart machine is monitored or obtained according to the event set;According to institute State logical set and logical process is carried out to the parameter information of the smart machine, obtain logical process result;According to the behavior aggregate Default response signal is exported for the logical process result, the default response signal is used for control action and performs intelligent set It is standby.
Alternatively, before the step of IFTTT scripts that the parsing receives, in addition to:Check the IFTTT scripts Correctness and integrality;Check the Event origin smart machine and the action executing intelligence that the IFTTT scripts need The availability of equipment.
Alternatively, the event behavior in the event set includes:Signal that the Event origin smart machine directly transmits, The property value of the Event origin smart machine, the function result on the Event origin smart machine, or local data.
Alternatively, the action behavior in the behavior aggregate includes:Change the attribute of the action executing smart machine, or The action executing smart machine is called to provide service.
According to another aspect of the present invention, there is provided a kind of smart machine linkage based on IFTTT.
The smart machine linkage based on IFTTT of the present invention includes:Script resolution unit, for parsing what is received IFTTT scripts, obtain event set, logical set and behavior aggregate;Action listener unit, for being monitored or being obtained according to the event set The parameter information of Event origin smart machine;Logic analysis unit, for the ginseng according to the logical set to the smart machine Number information carries out logical process, obtains logical process result;Action execution unit, for being patrolled according to the behavior aggregate for described The default response signal of result output is collected, the default response signal is used for control action and performs smart machine.
Alternatively, the script resolution unit is additionally operable to:Check the correctness and integrality of the IFTTT scripts;Check The availability of the Event origin smart machine and action executing smart machine that the IFTTT scripts need.
Alternatively, the event behavior in the event set includes:Signal that the Event origin smart machine directly transmits, The property value of the Event origin smart machine, the function result on the Event origin smart machine, or local data.
Alternatively, the action behavior in the behavior aggregate includes:Change the attribute of the action executing smart machine, or The action executing smart machine is called to provide service.
IFTTT strategies are applied in smart machine by technique according to the invention scheme, an IFTTT script by event, Logic, the description of action are completed, and overall structure is clear, powerful, and extension is convenient.User only needs to implement smart machine group Shirtsleeve operation, you can construct the Action logic of complexity, allow smart machine group to realize complicated customization function.
Brief description of the drawings
Accompanying drawing is used to more fully understand the present invention, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is the signal according to the key step of the smart machine interlock method based on IFTTT of embodiment of the present invention Figure;
Fig. 2 is the signal according to the main modular of the smart machine linkage based on IFTTT of embodiment of the present invention Figure;
Fig. 3 is the course of work schematic diagram according to the smart machine linkage based on IFTTT of embodiment of the present invention.
Embodiment
The exemplary embodiment of the present invention is explained below in conjunction with accompanying drawing, including embodiment of the present invention Various details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize Know, various changes and modifications can be made to embodiment described herein, without departing from scope and spirit of the present invention. Equally, for clarity and conciseness, the description to known function and structure is eliminated in following description.
Fig. 1 is the signal according to the key step of the smart machine interlock method based on IFTTT of embodiment of the present invention Figure.As shown in figure 1, the smart machine interlock method based on IFTTT of embodiment of the present invention can mainly include following step Rapid A to step D.
Step A:The IFTTT scripts received are parsed, obtain event set, logical set and behavior aggregate.Wherein IFTTT scripts are By mechanism syntactic definition.
Alternatively, before the step of IFTTT scripts that parsing receives, in addition to:Check the correctness of IFTTT scripts And integrality;Check the Event origin smart machine of IFTTT scripts needs and the availability of action executing smart machine.
Step B:The parameter information of Event origin smart machine is monitored or obtained according to event set.
Wherein, the event behavior in event set can include following four class:(1) Event origin smart machine directly transmits Signal.Such as:Intelligent lamp is opened.(2) property value of Event origin smart machine.Such as:The temperature value of temperature sensor.(3) Function result on Event origin smart machine.Such as:The service of some smart machine is constantly called, checks that it calls knot Whether fruit meets preparatory condition.(4) local data.Such as:Local zone time.
Step C:Logical process is carried out to the parameter information of smart machine according to logical set, obtains logical process result.
During logical process, there can be following features:(1) logical AND operation and logic or operation are supported.User Multiple events can be carried out with various logic operator freely forming event expression, only when event expression is set up When, it can just trigger and perform action.(2) shaky time section can be set.Judging the establishment of event expression must tremble at this In dynamic time interval, once outside section, the event that linkage engine will be considered in the expression formula is expired state.If user Wish that the interval that occurs between each event is as far as possible short, this section can be set it is small, if user is between each event Every insensitive, then this section can be set greatly.(3) more logics are supported, and the sequencing between each logic can be controlled.
Step D:It is used to control for the default response signal of logical process result output, default response signal according to behavior aggregate Action executing smart machine.
Wherein, the action behavior in behavior aggregate can include following two class:(1) category of action executing smart machine is changed Property.Such as:The state of intelligent lamp is become to close by opening.(2) call action performs smart machine and provides service.Such as:Control Intelligent TV set processed pays a return visit the night news of yesterday.
During execution acts, there can be following features:(1) delay can be set.User can be held with control action The capable triggered time, it means that control event expression is set up more trigger actions long afterwards and performed.(2) more set of actions are supported. User can define multiple actions, when event expression is set up, while perform all a series of actions in behavior aggregate.
Fig. 2 is the signal according to the main modular of the smart machine linkage based on IFTTT of embodiment of the present invention Figure.As shown in Fig. 2 the smart machine linkage 20 based on IFTTT of embodiment of the present invention can mainly include:Script solution Analyse unit 21, action listener unit 22, logic analysis unit 23 and action execution unit 24.
Script resolution unit 21 is used to parse the IFTTT scripts received, obtains event set, logical set and behavior aggregate.Tool Body, script resolution unit 21 can parse the IFTTT scripts by mechanism syntactic definition, and event set is transferred to action listener list Member 22;Logical set is handed over logic analysis unit 23;Behavior aggregate is transferred to action execution unit 24.
Action listener unit 22 is used for the parameter information that Event origin smart machine is monitored or obtained according to event set.Event The effect of monitoring unit 22 is to monitor or obtain information according to the event set of configuration, when these information meet to impose a condition then generation The table event is satisfied, and at this moment action listener unit should send event id to logic analysis unit 23.It should be noted that thing The event behavior that part is concentrated can include following four class:The signal that Event origin smart machine directly transmits;Event origin intelligence The property value of equipment;Function result on Event origin smart machine;Local data.
Logic analysis unit 23 is used to carry out logical process to the parameter information of smart machine according to logical set, obtains logic Result.Logic analysis unit 23 is responsible for comprehensive various input information, is then made decisions according to input information.Such as:Patrol Collect analytic unit 23 and analyze whether event condition is consistent with the execution condition of script resolution unit 21, and unanimously then hair execution message is given Action execution unit 24.
Action execution unit 24 is used to preset response for the default response signal of logical process result output according to behavior aggregate Signal is used for control action and performs smart machine.Specifically, the behavior aggregate configured for script resolution unit 21, is taken in advance The action invocation method of business, and establish local agent and call corresponding method when having and performing message.It should be noted that action The action behavior of concentration can include following two class:Change the attribute of action executing smart machine;Call action performs intelligence and set Standby offer service.
IFTTT strategies are applied in smart machine by technique according to the invention scheme, an IFTTT script by event, Logic, the description of action are completed, and overall structure is clear, powerful, and extension is convenient.User only needs to implement smart machine group Shirtsleeve operation, you can construct the Action logic of complexity, allow smart machine group to realize complicated customization function.
To make those skilled in the art more fully understand present disclosure, make to retouch in detail with reference to specific embodiment State.
Fig. 3 is the course of work schematic diagram according to the smart machine linkage based on IFTTT of embodiment of the present invention. Detailed process is as follows.
First, analysis result, is then sent respectively to action listener by the IFTTT scripts that the parsing of script resolver receives Unit, logic analysis unit and action execution unit.There is a unique script ID in the IFTTT scripts.Each IFTTT scripts In ID in the script of event, action and logic it is unique.Once IFTTT scripts are parsed by script resolver, then respectively Data Transmission Content between individual module is just only left ID, and this reduces the resource consumption of linkage.Then, event is supervised Unit is listened according to event set monitor event a, event b and the event c received.Then, logic analysis unit is according to receiving Logical set, as long as three occurs simultaneously, just performs to above-mentioned event a, event b and event c execution logics and operation to activity Unit sends execute instruction.Finally, action execution unit is received after execute instruction while performed according to the behavior aggregate received Act a, action b and action c.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (8)

  1. A kind of 1. smart machine interlock method based on IFTTT, it is characterised in that including:
    The IFTTT scripts received are parsed, obtain event set, logical set and behavior aggregate;
    The parameter information of Event origin smart machine is monitored or obtained according to the event set;
    Logical process is carried out to the parameter information of the smart machine according to the logical set, obtains logical process result;
    It is used to control for the default response signal of logical process result output, the default response signal according to the behavior aggregate Action executing smart machine processed.
  2. 2. the smart machine interlock method according to claim 1 based on IFTTT, it is characterised in that connect in the parsing Before the step of IFTTT scripts received, in addition to:
    Check the correctness and integrality of the IFTTT scripts;
    Check the availability of the Event origin smart machine and action executing smart machine that the IFTTT scripts need.
  3. 3. the smart machine interlock method according to claim 1 based on IFTTT, it is characterised in that in the event set Event behavior include:Signal that the Event origin smart machine directly transmits, the attribute of the Event origin smart machine Value, the function result on the Event origin smart machine, or local data.
  4. 4. the smart machine interlock method according to claim 1 based on IFTTT, it is characterised in that in the behavior aggregate Action behavior include:Change the attribute of the action executing smart machine, or call the action executing smart machine to carry For service.
  5. A kind of 5. smart machine linkage based on IFTTT, it is characterised in that including:
    Script resolution unit, for parsing the IFTTT scripts received, obtain event set, logical set and behavior aggregate;
    Action listener unit, for the parameter information of Event origin smart machine to be monitored or obtained according to the event set;
    Logic analysis unit, for carrying out logical process to the parameter information of the smart machine according to the logical set, obtain Logical process result;
    Action execution unit, it is described for presetting response signal for logical process result output according to the behavior aggregate Default response signal is used for control action and performs smart machine.
  6. 6. the smart machine linkage according to claim 5 based on IFTTT, it is characterised in that the script parsing Unit is additionally operable to:
    Check the correctness and integrality of the IFTTT scripts;
    Check the availability of the Event origin smart machine and action executing smart machine that the IFTTT scripts need.
  7. 7. the smart machine linkage according to claim 5 based on IFTTT, it is characterised in that in the event set Event behavior include:Signal that the Event origin smart machine directly transmits, the attribute of the Event origin smart machine Value, the function result on the Event origin smart machine, or local data.
  8. 8. the smart machine linkage according to claim 5 based on IFTTT, it is characterised in that in the behavior aggregate Action behavior include:Change the attribute of the action executing smart machine, or call the action executing smart machine to carry For service.
CN201610711089.1A 2016-08-24 2016-08-24 Smart machine interlock method and device based on IFTTT Pending CN107783781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610711089.1A CN107783781A (en) 2016-08-24 2016-08-24 Smart machine interlock method and device based on IFTTT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610711089.1A CN107783781A (en) 2016-08-24 2016-08-24 Smart machine interlock method and device based on IFTTT

Publications (1)

Publication Number Publication Date
CN107783781A true CN107783781A (en) 2018-03-09

Family

ID=61387860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610711089.1A Pending CN107783781A (en) 2016-08-24 2016-08-24 Smart machine interlock method and device based on IFTTT

Country Status (1)

Country Link
CN (1) CN107783781A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209061A (en) * 2019-05-28 2019-09-06 九阳股份有限公司 Event report process method and control device in a kind of intelligence control system
CN111614524A (en) * 2019-02-26 2020-09-01 华为技术有限公司 Multi-intelligent-device linkage control method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660498A (en) * 2015-03-17 2015-05-27 联想(北京)有限公司 Gateway equipment and information processing method
CN104932451A (en) * 2015-04-17 2015-09-23 王玉娇 Multi-device cooperative control method and multi-device cooperative control device
US20150314454A1 (en) * 2013-03-15 2015-11-05 JIBO, Inc. Apparatus and methods for providing a persistent companion device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150314454A1 (en) * 2013-03-15 2015-11-05 JIBO, Inc. Apparatus and methods for providing a persistent companion device
CN104660498A (en) * 2015-03-17 2015-05-27 联想(北京)有限公司 Gateway equipment and information processing method
CN104932451A (en) * 2015-04-17 2015-09-23 王玉娇 Multi-device cooperative control method and multi-device cooperative control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张云帆: "IFTTT平台的设计与实现", 《新应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614524A (en) * 2019-02-26 2020-09-01 华为技术有限公司 Multi-intelligent-device linkage control method, device and system
CN110209061A (en) * 2019-05-28 2019-09-06 九阳股份有限公司 Event report process method and control device in a kind of intelligence control system

Similar Documents

Publication Publication Date Title
CN108845798A (en) A kind of visualization big data task cradle and processing method
CN102421028B (en) Control method for intelligent television (TV), intelligent TV, remote control device and intelligent TV control system
CN105005471A (en) Method, device, server and system for modifying configuration parameters of BIOS
CN102087577A (en) Location independent execution of user interface operations
CN111966465B (en) Method, system, equipment and medium for modifying host configuration parameters in real time
CN108255585A (en) SDK exception controls and application program operation method, device and its equipment
CN103607303B (en) Signaling flow analysis system and signaling flow analysis method
CN107783781A (en) Smart machine interlock method and device based on IFTTT
CN112464620A (en) Implementation method and implementation system of financial rule engine
CN102946345A (en) Method, browser client and system for outputting instant messaging interface structure
EP4392865A1 (en) Collaborative runbook execution
CN103514026A (en) Method for directly calling java api through javascript
CN105808422B (en) A kind of network-based method for testing software, client and equipment to be tested
CN107301057A (en) A kind of big data batch processing method and device
CN106383869A (en) User behavior information acquisition method and device
WO2006114880A1 (en) Information linkage window system
CN102905300A (en) Long term evolution (LTE) simulation test flow automatic generation method based on network data
CN110275701A (en) Data processing method, device, medium and calculating equipment
CN105700894A (en) Method and device for modifying HTTP response data
WO2018197755A1 (en) System and method for real-time decisioning and triggering of actions in a communication network
CN107103058B (en) Big data service combination method and composite service combination method based on Artifact
CN111522599B (en) Method and device for transmitting information
CN112698829A (en) Abnormal resource positioning method and device, storage medium and electronic equipment
CN103135986B (en) A kind of operation acquisition method and system
CN111949326A (en) Micro-service workflow method based on Activiti

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180309