Summary of the invention
It is an object of the invention to propose a kind of smart home device response arbitration system for the defects of background techniqueWith method, equipment is realized with the form of sequential encoding by way of broadcast message and makes arbitration to equipment response.
To achieve this purpose, the present invention adopts the following technical scheme:
A kind of smart home device response arbitration system, including multiple smart home devices, each smart home device are equalIt is provided with receiving module, broadcast module and comparison module;
The broadcast message that the receiving module is used to receive interactive instruction and the broadcast module is sent;
The broadcast module is used to send broadcast message and preemption information to other smart home devices;
The comparison module is used to compare the broadcast message and other smart homes that itself smart home device to be sentThe content of broadcast message transmitted by equipment judges whether itself smart home device responds interactive instruction according to comparison result.
Preferably, the broadcast message includes the unique of timestamp, the operation content of interactive instruction and the interactive instructionFeature coding;
The timestamp has recorded the time that the smart home device receives the interactive instruction.
Preferably, the preemption information has declared that equipment of itself responds the interactive instruction to other smart home devices.
Preferably, the receiving module and the broadcast module are interconnected, and the receiving module is for receiving the friendshipMutually instruction, and record and receive time of the interactive instruction and form the timestamp, it is sent to the broadcast module;
The receiving module is encoded according to the unique features that the interactive instruction forms the interactive instruction, and will be uniqueThe broadcast module is issued in feature coding and interactive instruction.
Preferably, the broadcast module integrates the interactive instruction, timestamp and unique features and encodes to form the broadcastInformation is sent to other smart home devices, receives for the receiving module of other smart home devices.
Preferably, the receiving module receives the broadcast module and is transmitted to the comparison module, the comparison moduleBroadcast message is received, and the broadcast message is disassembled, the interactive instruction, timestamp and unique features is obtained and compilesCode;
The comparison module unique features coding, determines whether interactive instruction to be dealt with is identical, ifUnique features coding is identical, then the then timestamp, judges that itself smart home device receives the interactive instructionWhether the time is earliest.
Preferably, the comparison module judge itself smart home device receive the interactive instruction time it is earliest,The broadcast module is then triggered, the broadcast module sends the preemption information to other smart home devices;If not then protectingHold silence.
Preferably, the interactive instruction includes interactive voice instruction and gesture interaction instruction.
A kind of smart home device response referee method, including multiple smart home devices, each smart home device are equalIt is provided with receiving module, broadcast module and comparison module, the specific steps are as follows:
Step 1: user issues interactive voice instruction or gesture interaction instruction, each smart home device connectIt receives module and receives the interactive instruction;
Step 2: after the receiving module receives interactive instruction, the broadcast module is sent out to other smart home devicesBroadcast message out, the broadcast message include the operation content for having recorded the timestamp, interactive instruction that receive interactive instructionIt is encoded with the unique features of interactive instruction;
Step 3: while the broadcast module sends out broadcast message, the receiving module receives other smart homesThe broadcast message that equipment sends over, the comparison module parsing and the broadcast message, certainly according to broadcast message judgementWhether body smart home device receives the interactive instruction earliest, if so, the broadcast module is set to other smart homesPreparation send preemption information, and responds the interactive instruction, if it is not, then itself smart home device keeps silent.
Preferably, in step 3, comparison module parsing and specific step is as follows for the broadcast message:
Step A: the comparison module parses the broadcast message and obtains the interactive instruction, unique features coding and timeStamp;
Step B: the comparison module compare itself unique features coding whether one with other smart home devicesCause, if unanimously, then represent it is to be dealt with for same interactive instruction, then compare itself with other smart home devices whenBetween stab, if the timestamp of itself smart home device recorded reception interactive instruction time it is earliest, the broadcast moduleSend a preemption information;
Step C: if the time for the reception interactive instruction that the timestamp of itself smart home device is recorded is not earliestTime then keeps silent.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
A kind of smart home device of the present embodiment responds arbitration system, including multiple smart home devices, each intelligenceHome equipment is provided with receiving module, broadcast module and comparison module;
The broadcast message that the receiving module is used to receive interactive instruction and the broadcast module is sent;
The broadcast module is used to send broadcast message and preemption information to other smart home devices;
The comparison module is used to compare the broadcast message and other smart homes that itself smart home device to be sentThe content of broadcast message transmitted by equipment judges whether itself smart home device responds interactive instruction according to comparison result.
In practice, the single interactive instruction that user issues, if in the environment of multiple smart home devices, it shouldThere is the case where may being responded by multiple smart home devices in interactive instruction, cause the experience sense of user to be deteriorated, therefore eachIt is mounted with receiving module, broadcast module and comparison module in smart home device, using the receive capabilities of receiving module, including connectsReceiving the interactive instruction that user issues, there are also broadcast message of the reception from other equipment, and are compared using comparison module, rootJudging whether to respond the interactive instruction according to comparison result, a respondent is arbitrated out in realization between multiple smart home devices,It solves the problems, such as more smart home devices while responding same interactive instruction.
Preferably, the broadcast message includes the unique of timestamp, the operation content of interactive instruction and the interactive instructionFeature coding;
The timestamp has recorded the time that the smart home device receives the interactive instruction.
The timestamp is the emphasis more whether comparison module responds interactive instruction, and the operation content of interactive instruction is thenIt is whether identical in order to verify the unique features coding.
Preferably, the preemption information has declared that equipment of itself responds the interactive instruction to other smart home devices.
When a certain smart home device judges itself to be to belong to respondent, the broadcast module of the smart home deviceA preemption information will be sent to other smart home devices, declare the identity of respondent, other smart home devices receiveAfter preemption information, it will keep silent.
Preferably, the receiving module and the broadcast module are interconnected, and the receiving module is for receiving the friendshipMutually instruction, and record and receive time of the interactive instruction and form the timestamp, it is sent to the broadcast module;
The receiving module is encoded according to the unique features that the interactive instruction forms the interactive instruction, and will be uniqueThe broadcast module is issued in feature coding and interactive instruction.
Preferably, the broadcast module integrates the interactive instruction, timestamp and unique features and encodes to form the broadcastInformation is sent to other smart home devices, receives for the receiving module of other smart home devices.
Data information can not be sent to other smart home devices since the receiving module can only receive, receivedInteractive instruction, timestamp and unique features coding are sent to broadcast module by module, are sent to other intelligence by the broadcast moduleIt can home equipment.
Preferably, the receiving module receives the broadcast module and is transmitted to the comparison module, the comparison moduleBroadcast message is received, and the broadcast message is disassembled, the interactive instruction, timestamp and unique features is obtained and compilesCode;
The comparison module unique features coding, determines whether interactive instruction to be dealt with is identical, ifUnique features coding is identical, then the then timestamp, judges that itself smart home device receives the interactive instructionWhether the time is earliest.
Preferably, the comparison module judge itself smart home device receive the interactive instruction time it is earliest,The broadcast module is then triggered, the broadcast module sends the preemption information to other smart home devices;If not then protectingHold silence.
What the comparison module compared first is unique features coding, judges two intelligence by comparing unique features codingWhether next content that home equipment is compared belongs to the same interactive instruction of processing, if unique features coding is inconsistent, thenRepresenting not is the same interactive instruction of processing, naturally also just without comparing timestamp, if unique features coding is consistent, is then representedProcessing is with an interactive instruction, and next relatively timestamp, receives friendship since timestamp has recorded the receiving moduleThe time mutually instructed receives the smart home of interactive instruction by judging to receive time of interactive instruction come decision earliest outEquipment.
Preferably, the interactive instruction includes interactive voice instruction and gesture interaction instruction.
A kind of smart home device response referee method, including multiple smart home devices, each smart home device are equalIt is provided with receiving module, broadcast module and comparison module, as shown in Figure 1, the specific steps are as follows:
Step 1: user issues interactive voice instruction or gesture interaction instruction, each smart home device connectIt receives module and receives the interactive instruction;
Step 2: after the receiving module receives interactive instruction, the broadcast module is sent out to other smart home devicesBroadcast message out, the broadcast message include the operation content for having recorded the timestamp, interactive instruction that receive interactive instructionIt is encoded with the unique features of interactive instruction;
Step 3: while the broadcast module sends out broadcast message, the receiving module receives other smart homesThe broadcast message that equipment sends over, the comparison module parsing and the broadcast message, certainly according to broadcast message judgementWhether body smart home device receives the interactive instruction earliest, if so, the broadcast module is set to other smart homesPreparation send preemption information, and responds the interactive instruction, if it is not, then itself smart home device keeps silent.
Preferably, in step 3, comparison module parsing and specific step is as follows for the broadcast message:
Step A: the comparison module parses the broadcast message and obtains the interactive instruction, unique features coding and timeStamp;
Step B: the comparison module compare itself unique features coding whether one with other smart home devicesCause, if unanimously, then represent it is to be dealt with for same interactive instruction, then compare itself with other smart home devices whenBetween stab, if the timestamp of itself smart home device recorded reception interactive instruction time it is earliest, the broadcast moduleSend a preemption information;
Step C: if the time for the reception interactive instruction that the timestamp of itself smart home device is recorded is not earliestTime then keeps silent.
The technical principle of the invention is described above in combination with a specific embodiment.These descriptions are intended merely to explain of the inventionPrinciple, and shall not be construed in any way as a limitation of the scope of protection of the invention.Based on the explanation herein, the technology of this fieldPersonnel can associate with other specific embodiments of the invention without creative labor, these modes are fallen withinWithin protection scope of the present invention.