Home equipment linkage control method and device, home controller and storage medium
Technical Field
The invention relates to the technical field of linkage control, in particular to a linkage control method and device for household equipment, a household controller and a storage medium.
Background
For the current intelligent home system, a user generally realizes equipment linkage in the intelligent home system through voice control or mobile phone APP operation control. However, the mode of realizing the equipment linkage through voice control is easy to generate voice recognition errors, so that the problem of equipment linkage errors is caused; through the mode that cell-phone APP operation control realized the equipment linkage, need the user to log in the APP and carry out manual setting on the APP interface, this kind of mode needs user manual operation, complex operation, and to old person user operation difficulty.
Disclosure of Invention
The invention mainly provides a linkage control method for household equipment, which can solve the problems of easy occurrence of linkage errors and complex operation in the existing voice linkage control mode and mobile phone APP linkage control mode.
In order to solve the technical problems, the invention adopts a technical scheme that: the method for linkage control of the household equipment is applied to a household controller and comprises the following steps:
receiving a home equipment linkage request sent by an intelligent terminal, wherein the home equipment linkage request is generated based on a shaking event of the intelligent terminal;
acquiring a corresponding linkage scene according to the household equipment linkage request, and acquiring a corresponding household equipment control instruction according to the linkage scene;
and sending corresponding sub-control instructions to a plurality of household equipment according to the household equipment control instructions so that the plurality of household equipment execute corresponding operations according to the sub-control instructions respectively.
Preferably, the smart terminal has an acceleration measurement module therein, and the generation of the household device linkage request based on the shaking event of the smart terminal specifically includes:
the intelligent terminal acquires multi-axis acceleration values measured by the acceleration measuring module in real time, calculates a comprehensive acceleration value according to the multi-axis acceleration values, and judges whether a shaking event occurs according to the comprehensive acceleration value;
and if the shaking event occurs, generating a home equipment linkage request containing the comprehensive acceleration value.
Preferably, the step of obtaining the corresponding linkage scene according to the home equipment linkage request specifically includes:
acquiring a comprehensive acceleration value contained in the home equipment according to the home equipment linkage request;
and judging the interval range to which the comprehensive acceleration value belongs, and acquiring the corresponding linkage scene according to the corresponding relation table of the interval range and the linkage scene.
Preferably, the step of sending corresponding sub-control instructions to a plurality of home devices according to the home device control instructions so that the plurality of home devices respectively execute corresponding operations according to the sub-control instructions further includes the following steps:
and receiving operation completion messages respectively sent by the plurality of household devices.
Preferably, the step of receiving operation completion messages respectively sent by the plurality of home devices further includes the following steps:
judging whether a plurality of operation completion messages sent by a plurality of household devices are received or not;
and if so, sending a linkage completion message to the intelligent terminal.
Preferably, the sub-control instructions include a closing instruction, an opening instruction and an operation parameter adjusting instruction.
Preferably, the linkage scene obtained according to the household equipment linkage request is a sleeping scene; the linkage control method of the household equipment comprises the following steps:
acquiring a household equipment control instruction according to the sleeping scene, wherein the household equipment control instruction comprises the steps of adjusting the temperature of an air conditioner to a preset temperature, turning off an illuminating lamp, turning off a television and turning off a curtain;
sending a temperature adjusting instruction to the air conditioner, and sending a closing instruction to the illuminating lamp, the television and the curtain;
the air conditioner executes temperature adjusting operation according to the temperature adjusting instruction, and the illuminating lamp, the television and the curtain execute closing operation according to the closing instruction.
In order to solve the technical problem, the invention adopts another technical scheme that: the utility model provides a home equipment coordinated control device, home equipment coordinated control device includes:
the system comprises a request receiving module, a data processing module and a data processing module, wherein the request receiving module is used for receiving a home equipment linkage request sent by an intelligent terminal, and the home equipment linkage request is generated based on a shaking event of the intelligent terminal;
the instruction acquisition module is used for acquiring a corresponding linkage scene according to the household equipment linkage request and acquiring a corresponding household equipment control instruction according to the linkage scene;
and the equipment control module is used for sending corresponding sub-control instructions to the plurality of household equipment according to the household equipment control instructions so that the plurality of household equipment execute corresponding operations according to the sub-control instructions respectively.
In order to solve the technical problem, the invention adopts another technical scheme that: the household controller comprises a processor and a memory, wherein the processor is coupled with the memory and executes instructions during working so as to realize the household equipment linkage control method.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a storage medium having stored thereon a computer program to be executed by a processor to implement the above-described home appliance linkage control method.
The invention has the beneficial effects that: different from the situation of the prior art, the home controller receives a home device linkage request sent by the intelligent terminal, and the home device linkage request is generated based on a shaking event of the intelligent terminal; acquiring a corresponding linkage scene according to the linkage request of the household equipment, and acquiring a corresponding household equipment control instruction according to the linkage scene; and sending corresponding sub-control instructions to the plurality of home equipment according to the home equipment control instructions so that the plurality of home equipment execute corresponding operations according to the sub-control instructions respectively. The method and the system can be triggered and realize linkage of the household equipment through shaking of the intelligent terminal, are simple to operate, and can avoid the problem of linkage error caused by voice recognition error in a voice linkage control mode.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a flowchart of a linkage control method for home devices according to an embodiment of the present invention;
fig. 2 is a flowchart of a linkage control method for home devices according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a linkage control device for household equipment according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a home controller according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a storage medium according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart of a home device linkage control method according to an embodiment of the present invention, where the home device linkage control method is used to implement linkage of smart home devices in a home, and implement control of the smart home devices through a home controller, where the smart home devices include smart air conditioners, televisions, surveillance cameras, smart curtains, and other home devices. The linkage control method of the household equipment comprises the steps of S100, S200 and S300.
Step S100: and receiving a household equipment linkage request sent by the intelligent terminal, wherein the household equipment linkage request is generated based on a shaking event of the intelligent terminal.
Specifically, the intelligent terminal is provided with an acceleration measuring module, acquires multi-axis acceleration values measured by the acceleration measuring module in real time, calculates a comprehensive acceleration value according to the multi-axis acceleration values, and judges whether a shaking event occurs according to the comprehensive acceleration value; and if the shaking event occurs, generating a home equipment linkage request containing the comprehensive acceleration value, and sending the home equipment linkage request to the home controller. The intelligent terminal can be a mobile phone or other mobile terminal equipment, and the acceleration measuring module can be an acceleration sensor in the intelligent terminal.
Further specifically, the intelligent terminal acquires an X-axis acceleration value, a Y-axis acceleration value and a Z-axis acceleration value measured by the acceleration measuring module in real time; according to a calculation formula
Calculating a comprehensive acceleration value; wherein X is an X-axis acceleration value, Y is a Y-axis acceleration value, and Z is a Z-axis acceleration value; and judging whether the comprehensive acceleration value is larger than a preset threshold value or not, and if so, confirming that a shaking event occurs. A preset threshold value for judging whether a shaking event occurs is preset in the intelligent terminal, and when the comprehensive acceleration value of the intelligent terminal is larger than the preset threshold value, the shaking event is confirmed to occur.
Step S200: and acquiring a corresponding linkage scene according to the linkage request of the household equipment, and acquiring a corresponding control instruction of the household equipment according to the linkage scene.
Specifically, the home device linkage request includes a comprehensive acceleration value of the intelligent terminal, and a corresponding relation table of a comprehensive acceleration value interval range and a linkage scene is prestored in the home controller. And (3) synthesizing the corresponding relation between the range of the acceleration value interval and the linkage scene, for example: the range of the acceleration value interval is 10-20, and the corresponding linkage scene is an away scene; the range of the acceleration value interval is 20-30, and the corresponding linkage scene is a sleeping scene. Different linkage scenes are realized according to different shaking accelerations of the intelligent terminal, the diversification of the linkage scenes realized by the shaking of the intelligent terminal is increased, and the user experience is improved.
Further specifically, the home controller acquires a comprehensive acceleration value contained in the home equipment linkage request according to the home equipment linkage request; and the home controller judges the interval range to which the comprehensive acceleration value belongs, and acquires the corresponding linkage scene according to the corresponding relation table of the interval range and the linkage scene. And then acquiring the household equipment control instruction corresponding to the linkage scene according to the corresponding relation table of the linkage scene and the household equipment control instruction.
Step S300: and sending corresponding sub-control instructions to the plurality of home equipment according to the home equipment control instructions so that the plurality of home equipment execute corresponding operations according to the sub-control instructions respectively.
Specifically, the home equipment control instruction corresponding to a certain linkage scene includes: and sub-control instructions corresponding to the plurality of home equipment linked in the linkage scene respectively. And the home controller respectively sends corresponding sub-control instructions to the linked home devices.
Specifically, the plurality of household devices execute corresponding operations according to corresponding sub-control instructions, wherein the sub-control instructions comprise closing instructions, opening instructions, operation parameter adjusting instructions and the like.
Further specifically, if the linkage scene acquired by the home controller according to the home device linkage request is an away scene; the linkage control method of the household equipment comprises the following steps:
acquiring a household equipment control instruction according to an away scene, wherein the household equipment control instruction comprises air conditioner closing, television closing and monitoring camera opening; and sending a closing instruction to the air conditioner and the television, and sending an opening instruction to the monitoring camera so as to enable the air conditioner and the television to execute a closing operation according to the closing instruction, and enable the monitoring camera to execute an opening operation according to the opening instruction.
If the linkage scene acquired by the home controller according to the home equipment linkage request is a sleeping scene; the linkage control method of the household equipment comprises the following steps:
acquiring a household equipment control instruction according to a sleeping scene, wherein the household equipment control instruction comprises the steps of adjusting the temperature of an air conditioner to a preset temperature, turning off an illuminating lamp, turning off a television and turning off a curtain; and sending a temperature adjusting instruction to the air conditioner, sending a closing instruction to the illuminating lamp, the television and the curtain so as to enable the air conditioner to execute temperature adjusting operation according to the temperature adjusting instruction, and enabling the illuminating lamp, the television and the curtain to execute closing operation according to the closing instruction.
In the embodiment of the invention, the linkage of the household equipment can be realized by shaking the intelligent terminal, the operation is simple, and the problem of linkage error caused by voice recognition error in a voice linkage control mode can be avoided. In addition, still can realize different linkage scenes according to intelligent terminal's the difference of shaking the acceleration, increased intelligent terminal and shaken the diversification that realizes the linkage scene, promote user experience.
Example two
Fig. 2 is a flowchart of a home device linkage control method according to another embodiment of the present invention, where the home device linkage control method further includes step S400, step S500, and step S600 after the step S100 to the step S300.
Step S400: and receiving operation completion messages respectively sent by the plurality of household devices.
Specifically, after each household device linked in a certain linkage scene completes corresponding operation, an operation completion message is sent to the household controller.
Step S500: and judging whether a plurality of operation completion messages sent by a plurality of household devices are received.
Specifically, the home controller determines whether operation completion messages sent by all the linked home devices are received.
Step S600: and if so, sending a linkage completion message to the intelligent terminal.
Specifically, if the home controller receives operation completion messages sent by all the linked home devices, the realization of the linked scene is confirmed, and the linkage completion messages are sent to the intelligent terminal, so that the user is informed of the realization of the linked scene.
In the embodiment of the invention, when the home controller judges that all home devices execute corresponding operations (namely, after corresponding linkage scenes are realized) according to the operation completion messages fed back by the home devices, the linkage completion messages are fed back to the intelligent terminal so as to inform the user that the linkage scenes are realized, and the interaction between the home controller and the user is realized.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a home device linkage control apparatus according to another embodiment of the present invention, where the home device linkage control apparatus includes a request receiving module 100, an instruction obtaining module 200, and a device control module 300.
The request receiving module 100 is configured to receive a home device linkage request sent by an intelligent terminal, where the home device linkage request is generated based on a shaking event of the intelligent terminal;
the instruction obtaining module 200 is configured to obtain a corresponding linkage scene according to the home device linkage request, and obtain a corresponding home device control instruction according to the linkage scene;
the device control module 300 is configured to send corresponding sub-control instructions to the multiple pieces of home equipment according to the home equipment control instructions, so that the multiple pieces of home equipment execute corresponding operations according to the sub-control instructions.
The intelligent terminal can be a mobile phone or other mobile terminal equipment, the home controller realizes control over home equipment, the home equipment comprises intelligent air conditioners, televisions, monitoring cameras, intelligent curtains and other intelligent home equipment, and the sub-control instructions comprise closing instructions, opening instructions and operation parameter adjusting instructions.
The specific implementation of the home equipment linkage control device provided by the embodiment of the present invention is the same as the specific implementation of the home equipment linkage control method, and the specific implementation of the home equipment linkage control device may refer to the description of the first embodiment and the second embodiment, which is not described herein again.
Example four
Fig. 4 is a schematic structural diagram of a home controller according to another embodiment of the present invention, where the home controller includes a processor 400 and a memory 500, the processor 400 is coupled to the memory 500, and the processor 400 executes instructions during operation to implement the home device linkage control method in any of the embodiments.
The processor 400 may also be referred to as a CPU (Central Processing Unit). Processor 400 may be an integrated circuit chip having signal processing capabilities. Processor 400 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor, but is not limited thereto.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic diagram of a storage medium according to another embodiment of the present invention, in which a computer program 600 is stored in the computer readable storage medium according to this embodiment, and the computer program 600 can be executed by the processor 400 to implement the home device linkage control method according to any of the embodiments.
Alternatively, the readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a terminal device such as a computer, a server, a mobile phone, or a tablet.
The method comprises the steps that a home controller receives a home equipment linkage request sent by an intelligent terminal, and the home equipment linkage request is generated based on a shaking event of the intelligent terminal; acquiring a corresponding linkage scene according to the linkage request of the household equipment, and acquiring a corresponding household equipment control instruction according to the linkage scene; and sending corresponding sub-control instructions to the plurality of home equipment according to the home equipment control instructions so that the plurality of home equipment execute corresponding operations according to the sub-control instructions respectively. The method and the system can be triggered and realize linkage of the household equipment through shaking of the intelligent terminal, are simple to operate, and can avoid the problem of linkage error caused by voice recognition error in a voice linkage control mode.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.