Summary of the invention
It is set the purpose of the embodiment of the present invention is that providing a kind of control method of smart home device, intelligent gateway and intelligence
It is standby, it is easy to understand and operates smart home device.
To achieve the goals above, the embodiment of the present invention provides a kind of control method of smart home device, the method
It applies on the intelligent gateway in smart home system, the smart home system further includes at least one smart home device,
And the smart machine with handwriting input and hand-write recognition function, which comprises
Receive the machine instruction that smart machine is sent, the handwriting input phase that the machine instruction is obtained with the smart machine
It closes;
In locally default scene, the trigger event to match with the machine instruction is searched, is each wrapped in default scene
Include at least one trigger event and at least one execution event;
When finding matched trigger event, refer to supporting that the smart home device of corresponding execution event sends to execute
It enables, it is described to execute instruction to indicate that the smart home device executes corresponding operation.
The embodiment of the present invention also provides a kind of control method of smart home device, and the method is applied in smart home system
On smart machine in system, the smart machine has handwriting input and hand-write recognition function, and the smart home system is also wrapped
Include intelligent gateway and at least one smart home device, which comprises
The handwriting input that will acquire is identified as literal order;
The literal order is converted into machine instruction according to preset protocol;
The machine instruction is sent to the intelligent gateway, so that the intelligent gateway is in locally default scene, is looked into
The trigger event to match with the machine instruction is looked for, when finding matched trigger event, to the corresponding execution thing of support
The smart home device transmission of part executes instruction, and includes each at least one trigger event and at least one execution in default scene
Event, it is described to execute instruction to indicate that the smart home device executes corresponding operation.
Further, the handwriting input that will acquire is identified as literal order and includes:
It downloads and stores Text region packet;
Literal order is identified as by the handwriting input that the Text region packet will acquire.
Further, the handwriting input instruction identification that will acquire includes: for literal order
Literal order is identified as by the handwriting input that internet will acquire.
Further, described the literal order is converted into machine instruction according to preset protocol to include:
According to default semantic list, the corresponding semantic instructions of the literal order are searched, are wrapped in the default semantic list
Include semantic instructions and at least one literal order corresponding with the semantic instructions;
The semantic instructions are converted into machine instruction according to preset protocol.
The embodiment of the present invention also provides a kind of intelligent gateway, and the intelligent gateway is applied in smart home system, described
Smart home system further includes at least one smart home device, and the intelligence with handwriting input and hand-write recognition function is set
Standby, the intelligent gateway includes:
Receiving unit, for receiving the machine instruction of smart machine transmission, the machine instruction is obtained with the smart machine
The handwriting input taken is related;
Searching unit, for searching the trigger event to match with the machine instruction, each in locally default scene
It include at least one trigger event and at least one execution event in default scene;
Transmission unit, for when finding matched trigger event, to the smart home for supporting corresponding execution event
Equipment transmission executes instruction, described to execute instruction to indicate that the smart home device executes corresponding operation.
The embodiment of the present invention also provides a kind of smart machine, and the smart machine is applied in smart home system, described
Smart machine has handwriting input and hand-write recognition function, and the smart home system further includes intelligent gateway and at least one intelligence
Energy home equipment, the smart machine include:
Acquiring unit, for obtaining handwriting input;
Recognition unit, the handwriting input for obtaining the acquiring unit are identified as literal order;
Converting unit, for the literal order to be converted to machine instruction according to preset protocol;
Transmission unit, for the machine instruction to be sent to the intelligent gateway, so that the intelligent gateway is in local
In default scene, the trigger event to match with the machine instruction is searched, when finding matched trigger event, to support
The smart home device transmission of corresponding execution event executes instruction, each include in default scene at least one trigger event and
At least one executes event, described to execute instruction to indicate that the smart home device executes corresponding operation.
Further, the recognition unit includes:
Download storage module, for downloading and storing Text region packet;
Identification module, the handwriting input for will acquire by the Text region packet are identified as literal order.
Further, the recognition unit is also used to be identified as literal order by the handwriting input that internet will acquire.
Further, the converting unit includes:
Searching module, it is described default for searching the corresponding semantic instructions of the literal order according to default semantic list
It include semantic instructions and at least one literal order corresponding with the semantic instructions in semantic list;
Conversion module, for the semantic instructions to be converted to machine instruction according to preset protocol.
Through the above technical solutions, by handwriting input to obtain machine instruction relevant to the handwriting input, and
In locally default scene, the trigger event to match with the machine instruction is searched, then to the corresponding execution event of support
Smart home device transmission execute instruction, solve and be not easy present in the control method for smart home in the prior art
The problem of operating smart home device, extends application range and the crowd of smart home device, easily facilitates understanding and operation.
The other feature and advantage of the embodiment of the present invention will the following detailed description will be given in the detailed implementation section.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the embodiment of the present invention.It should be understood that this
Locate described specific embodiment and be merely to illustrate and explain the present invention embodiment, is not intended to restrict the invention embodiment.
IFTTT is the abbreviation of " If This Then That ", if the meaning is exactly to trigger something, executes setting
Another good thing.So-called " thing " refers to the chain reaction that can be carried out between various applications, service.The objective of IFTTT
It is to allow internet for your service.User can set the condition of any one your needs in IFTTT, when condition reaches, just
Next movement specified can be triggered.
Intelligent gateway: intelligent gateway is the core of home intelligence, and the smart home device below intelligent gateway is connected
To intelligent gateway, by each smart home device of intelligent gateway control, and IFTTT is executed.
Exactly this thinking of IFTTT is utilized in the embodiment of the present invention, by with handwriting input and hand-write recognition function
The handwriting input that smart machine is got to obtain the trigger event in default scene, and controls support and trigger event pair
The smart home device for the execution event answered executes corresponding operation, extends application range and the crowd of smart home.
The embodiment of the present invention provides a kind of control method of smart home device, and the method is applied as shown in Figure 1
On intelligent gateway 11 in smart home system, the smart home system further includes at least one smart home device 12, with
And the smart machine 13 with handwriting input and hand-write recognition function, Fig. 2 are a kind of smart homes provided in an embodiment of the present invention
The flow chart of the control method of equipment, described method includes following steps:
201, the machine instruction that smart machine is sent is received, the machine instruction obtains hand-written defeated with the smart machine
Enter correlation.
202, in locally default scene, the trigger event to match with the machine instruction is searched, each presets scene
In include at least one trigger event and at least one execute event;
203, it when finding matched trigger event, is held to supporting the smart home device of corresponding execution event to send
Row instruction, it is described to execute instruction to indicate that the smart home device executes corresponding operation.
It wherein, include trigger event and the corresponding relationship list for executing event, a triggering in locally default scene
Event may correspond to multiple execution events, and an execution event may also correspond to multiple trigger events, i.e., each preset scene packet
At least one trigger event and at least one execution event are included, it is related with setting of the user for scene specific corresponding to relationship.
For example, the machine instruction received corresponds to trigger event " close kitchen lamp ", then intelligent gateway is to supporting execution event " kitchen lamp
The kitchen lamp switch transmission of closing " executes instruction, and instruction kitchen lamp switch closes kitchen lamp.
In addition, each trigger event can have corresponding machine instruction corresponding, e.g. one section of command field or one
Section code, no matter how machine instruction is arranged, as long as guaranteeing that intelligent gateway is readable and uniquely corresponding with trigger event.
Through the above technical solutions, by handwriting input to obtain machine instruction relevant to the handwriting input, and
In locally default scene, the trigger event to match with the machine instruction is searched, then to the corresponding execution event of support
Smart home device transmission execute instruction, solve and be not easy present in the control method for smart home in the prior art
The problem of operating smart home device, extends application range and the crowd of smart home device, easily facilitates understanding and operation.
Correspondingly, the embodiment of the present invention also provides a kind of control method of smart home device, and the method is applied such as
On smart machine 13 in smart home system shown in FIG. 1, the smart machine has handwriting input and hand-write recognition function,
The smart home system further includes intelligent gateway 11 and at least one smart home device 12.Wherein, the smart machine band
There is zigbee module, can be added in intelligent gateway, thus interacted by intelligent gateway and other smart home devices,
Since described smart machine itself is used as the sub- equipment in smart home to be added in intelligent gateway, then the smart machine can
IF condition as IFTTT is set.Fig. 3 is a kind of control method of smart home device provided in an embodiment of the present invention
Flow chart, described method includes following steps:
301, the handwriting input that will acquire is identified as literal order.
Wherein it is possible to carry out Text region to handwriting input by the online or offline mode of network, obtain corresponding
Literal order:
If being then identified as literal order by the handwriting input that internet will acquire by the online mode of network;
If then downloading and storing Text region packet by offline mode, will acquire by the Text region packet
Handwriting input is identified as literal order.
In addition, due to being artificial handwriting input, it is also possible to exist and input lack of standardization, unrecognized situation, then when can not
When identifying handwriting input, it can prompt to re-enter.
302, the literal order is converted into machine instruction according to preset protocol.
Wherein, the preset protocol is the agreement that the smart machine and the intelligent gateway are made an appointment, by described
The literal order can be converted to the readable machine instruction of the intelligent gateway by preset protocol.
In addition, there is a possibility that two kinds for the literal order, one is the accurate texts of the direct handwriting input of user
Instruction, another kind are that the literal order of user's handwriting input may be fuzzy, for example, there may be literal name differences still
Semantic identical situation, such as " toilet " and " lavatory " mean that the identical meaning, or in handwriting input, " closing kitchen lamp "
" closing kitchen lamp ", although having write one " closing " less, expressed semanteme is identical.Therefore in one kind of the invention
In embodiment, according to default semantic list, the corresponding semantic instructions of the literal order are searched, in the default semantic list
Including semantic instructions and at least one literal order corresponding with the semantic instructions;Then according to preset protocol by institute's predicate
Justice instruction is converted to machine instruction.Different for literal order in this way but semantic identical handwriting input, also can be obtained identical
Machine instruction, for user provide more arbitrarily handwriting input experience.
In addition, when the literal order is converted to machine instruction according to preset protocol, if the literal order of input
When not having corresponding machine instruction, input error can also be prompted.
In addition, when in the corresponding semantic instructions of the lookup literal order, if not finding, or according to default association
When semantic instructions can not be converted to machine instruction by view, input error can also be prompted.
303, the machine instruction is sent to the intelligent gateway, so that the intelligent gateway is in locally default scene
In, the trigger event to match with the machine instruction is searched, when finding matched trigger event, is held to support is corresponding
The smart home device transmission for acting part executes instruction, and includes each at least one trigger event and at least one in default scene
Execution event, it is described to execute instruction to indicate that the smart home device executes corresponding operation.
By the way that the machine instruction is sent to the intelligent gateway, searched and the machine instruction by the intelligent gateway
The trigger event to match, and to supporting the smart home device transmission of corresponding execution event to execute instruction, it solves existing
Present in the technology of control method in to(for) smart home not smart home device easy to operate the problem of, extend smart home
The application range of equipment and crowd, easily facilitate understanding and operation.
The Application Scenarios-Example of several embodiment of the present invention is provided below in embodiment to facilitate the understanding of the present invention:
Example one, 12 points of the late into the night, Zhang San is also handling official business, he has found to forget the lamp pass toilet when visiting the restroom just now
, and this when, his wife fell asleep, and his mobile phone is placed on next room charging.In order to leave his wife in peace
Son, at the same mobile phone also not at one's side in the case where, Zhang San picks up the smart machine, and input " closes toilet lamp ", the intelligence
After energy equipment identification, recognition result is sent to intelligent gateway, intelligent gateway is by comparing the triggering thing in default IFTTT scene
After part, finds the corresponding execution event of trigger event and the smart home device of the execution event, i.e. toilet lamp is supported to open
Close the operation for executing and closing lamp.Wherein, due to there is default semantic list, Zhang San can also input " closing toilet light ",
Texts, obtained implementing results such as " closing toilet lamp " are the same.
Example two when Li Si can not find mobile phone, inputs " finding mobile phone " by the smart machine, due in default scene
There are the corresponding relationships of trigger event " finding mobile phone " and execution event " mobile phone jingle bell ", therefore, when the smart machine " will be looked for
To mobile phone " it is converted to after machine instruction is sent to intelligent gateway, the intelligent gateway searches matched trigger event and corresponding
Execution event, to then find mobile phone to supporting the mobile phone of the execution data to issue the instruction of execution jingle bell.
Above-mentioned example is only used for understanding the embodiment of the present invention, can not limit the embodiment of the present invention.
Correspondingly, the embodiment of the present invention also provides a kind of intelligent gateway, the intelligent gateway is applied in intelligence as shown in Figure 1
Can be in house system, the smart home system further includes at least one smart home device 12, and with handwriting input and
The smart machine 13 of hand-write recognition function, as shown in figure 4, the intelligent gateway 11 includes:
Receiving unit 41, for receiving the machine instruction of smart machine transmission, the machine instruction and the smart machine
The handwriting input of acquisition is related;
Searching unit 42, for searching the trigger event to match with the machine instruction, often in locally default scene
It include at least one trigger event and at least one execution event in a default scene;
Transmission unit 43, for when finding matched trigger event, to the intelligent family for supporting corresponding execution event
Equipment transmission is occupied to execute instruction, it is described to execute instruction to indicate that the smart home device executes corresponding operation.
By the intelligent gateway, using handwriting input to obtain machine instruction relevant to the handwriting input, and
In locally default scene, the trigger event to match with the machine instruction is searched, then to the corresponding execution event of support
Smart home device transmission execute instruction, solve and be not easy present in the control method for smart home in the prior art
The problem of operating smart home device, extends application range and the crowd of smart home device, easily facilitates understanding and operation.
Correspondingly, the embodiment of the present invention also provides a kind of smart machine, the smart machine is applied in intelligence as shown in Figure 1
In energy house system, the smart machine 13 has handwriting input and hand-write recognition function, wherein the smart machine has
Zigbee module can be added in intelligent gateway, thus interacted by intelligent gateway and other smart home devices, by
It is used as the sub- equipment in smart home to be added in intelligent gateway in described smart machine itself, then the smart machine can be made
It is set for the IF condition of IFTTT.The smart home system further includes that intelligent gateway 11 and at least one smart home are set
Standby 12, as shown in figure 5, the smart machine 13 includes:
Acquiring unit 51, for obtaining handwriting input;
Recognition unit 52, the handwriting input for obtaining the acquiring unit are identified as literal order;
Converting unit 53, for the literal order to be converted to machine instruction according to preset protocol;
Transmission unit 54, for the machine instruction to be sent to the intelligent gateway, so that the intelligent gateway is at this
Ground is preset in scene, the trigger event to match with the machine instruction is searched, when finding matched trigger event, to branch
The smart home device transmission for holding corresponding execution event executes instruction, and includes each at least one trigger event in default scene
Event is executed at least one, it is described to execute instruction to indicate that the smart home device executes corresponding operation.
Further, as shown in fig. 6, the recognition unit 52 includes:
Download storage module 61, for downloading and storing Text region packet;
Identification module 62, the handwriting input for will acquire by the Text region packet are identified as literal order.
Further, the recognition unit is also used to be identified as literal order by the handwriting input that internet will acquire.
Further, as shown in fig. 7, the converting unit 53 includes:
Searching module 71, it is described pre- for searching the corresponding semantic instructions of the literal order according to default semantic list
If including semantic instructions and at least one literal order corresponding with the semantic instructions in semantic list;
Conversion module 72, for the semantic instructions to be converted to machine instruction according to preset protocol.
The smart machine pattern is similar to one piece of handwriting pad, it by with hand or hard object (such as pen, finger) on it
It can be left a trace by pressing, similar to the handwriting pad effect of our usually computer externals.
By will have handwriting input and hand-write recognition function smart machine be added smart home in, and with other intelligence
Home equipment generates linkage, solves intelligent family not easy to operate present in the control method for smart home in the prior art
The problem of occupying equipment extends application range and the crowd of smart home device, easily facilitates understanding and operation.
The optional embodiment of the embodiment of the present invention is described in detail in conjunction with attached drawing above, still, the embodiment of the present invention is simultaneously
The detail being not limited in above embodiment can be to of the invention real in the range of the technology design of the embodiment of the present invention
The technical solution for applying example carries out a variety of simple variants, these simple variants belong to the protection scope of the embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the embodiment of the present invention pair
No further explanation will be given for various combinations of possible ways.
It will be appreciated by those skilled in the art that implementing the method for the above embodiments is that can pass through
Program is completed to instruct relevant hardware, which is stored in a storage medium, including some instructions are used so that single
Piece machine, chip or processor (processor) execute all or part of the steps of each embodiment the method for the application.And it is preceding
The storage medium stated includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk.
In addition, any combination can also be carried out between a variety of different embodiments of the embodiment of the present invention, as long as it is not
The thought of the embodiment of the present invention is violated, equally should be considered as disclosure of that of the embodiment of the present invention.