Method and device for controlling household appliance, terminal and computer readable storage medium

The user's perception positioning and active control are achieved through the home appliance's own speakers and microphones, which solves the problems of high cost and passive execution in existing technologies and meets the perception needs of the intelligent stage of smart home decision-making.

CN120630772APending Publication Date: 2025-09-12QINGDAO HAIER AIR CONDITIONER GENERAL CORP LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410273193.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

Existing technology uses ultrasonic ranging devices combined with wearable devices to locate users in smart homes. This is costly and passively executes user commands, which does not conform to the development trend of the decision-making intelligence stage.

Method used

By using the home appliance's own speakers to emit ultrasonic waves and receiving reflected sound waves through the microphone, the user's distance and direction can be analyzed to actively control the home appliance.

Benefits of technology

It reduces the perception cost of smart home appliances, realizes active perception and control of users, and meets the needs of the intelligent stage of smart home decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120630772A_ABST
    Figure CN120630772A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent household electrical appliances, and discloses a method for controlling a household electrical appliance, which comprises the following steps: controlling a loudspeaker of a first household electrical appliance to emit ultrasonic waves, receiving reflected sound waves of the ultrasonic waves through a microphone of the first household electrical appliance, analyzing the reflected sound waves to obtain the distance and / or orientation of a user, and controlling the first household electrical appliance and other household electrical appliances except the first household electrical appliance according to the distance and / or orientation of the user. The ultrasonic waves are emitted through the loudspeaker of the household electrical appliance, and the reflected sound waves are received through the microphone of the household electrical appliance, so that the sensing positioning of a user is realized, the household electrical appliance is actively controlled, the sensing cost of the intelligent household electrical appliance is reduced, and the sensing requirement of the intelligent household decision-making intelligent stage is met. Therefore, the household appliances can better and actively provide services so as to accord with the development trend of the intelligent decision-making stage of the smart home. The invention further discloses a device for controlling the household appliance, a terminal and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart home appliances, for example, to a method and device, a terminal, and a computer-readable storage medium for controlling home appliances. Background Art

[0002] The smart home industry has evolved through the stages of single-product intelligence, collaborative intelligence, and decision-making intelligence. The decision-making intelligence stage requires devices to proactively perceive, learn, and make decisions, thereby providing proactive services. Perception is the beginning and a crucial step in the entire service process, directly impacting learning and decision-making capabilities. Currently, users have a strong demand for greater awareness of their home environment, necessitating the addition of intelligent sensing products that can utilize their sensing capabilities to obtain various user and environmental information, enabling proactive adjustments to home devices.

[0003] Related technology discloses a multi-home appliance control method based on wearable devices. The steps are as follows: obtaining three-dimensional spatial information of the user's room and the location of the home appliances; placing an ultrasonic ranging device in the room for positioning; obtaining sensor information from the wearable device; a training phase, extracting sensor data feature values ​​and establishing a feature database and classifier; and a control phase, obtaining and executing user commands based on the sensor information returned by the wearable device and auxiliary positioning equipment. By analyzing the inertial measurement unit and ultrasonic ranging information, the position and orientation of the wearable device can be calculated. Using a pre-established data table, the device selected by the user in a multi-home appliance scenario can be accurately determined.

[0004] During the implementation of the embodiments of the present disclosure, it was found that at least the following problems exist in the related art:

[0005] The use of related technologies, which combine ultrasonic ranging devices with wearable devices and auxiliary positioning devices to locate users, has, to a certain extent, met the perception needs of the intelligent decision-making stage of smart homes. However, in actual application, the use of related technologies requires the additional installation of ultrasonic ranging devices, which is costly. Moreover, these technologies passively execute user control commands, which is inconsistent with the development trend of the intelligent decision-making stage of smart homes.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field. Summary of the Invention

[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0008] The embodiments of the present disclosure provide a method and apparatus, a terminal, and a computer-readable storage medium for controlling home appliances to reduce the perception cost of smart home appliances and meet the perception needs of the intelligent stage of smart home decision-making, thereby enabling home appliances to better proactively provide services and conform to the development trend of the intelligent stage of smart home decision-making.

[0009] In some embodiments, the method includes: controlling a speaker of a first home appliance to emit ultrasonic waves, and receiving reflected sound waves of the ultrasonic waves through a microphone of the first home appliance; analyzing the reflected sound waves to obtain the distance and / or direction of the user; and controlling the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user.

[0010] Optionally, controlling the speaker of the first household appliance to emit ultrasonic waves and receiving the reflected sound waves of the ultrasonic waves through the microphone of the first household appliance includes: controlling the speaker of the air conditioner and / or television to emit ultrasonic waves; controlling the microphone of the air conditioner and / or television to receive the reflected sound waves of the ultrasonic waves.

[0011] Optionally, analyzing the reflected sound waves to obtain the distance of the user includes: obtaining the first time when the speaker emits the ultrasonic wave and the second time when the microphone receives the reflected sound wave; calculating the time difference between the first time and the second time; calculating S=V×T / 2; where S is the distance between the user and the first household appliance, V is the propagation speed of the ultrasonic frequency band in the air, and T is the time difference between the first time and the second time.

[0012] Optionally, analyzing the reflected sound waves to obtain the user's position includes: obtaining the signal strength and / or time of the reflected sound waves reaching different microphones; and determining the position of the microphone that receives the reflected sound wave with the largest signal strength and / or the earliest time as the user's position.

[0013] Optionally, the first household appliance and other household appliances other than the first household appliance are controlled according to the distance and / or direction of the user, including: when the user is detected to be approaching through the reflected sound waves of the TV at night, the lighting is controlled to be turned on; when the user is detected to be far away and cannot be detected through the reflected sound waves of the TV at night, the lighting and the TV are controlled to be turned off after a first period of time.

[0014] Optionally, controlling the first household appliance and other household appliances other than the first household appliance according to the distance and / or direction of the user also includes: when the reflected sound waves of the air conditioner are detected to have returned to the bedroom at night, controlling the air conditioner to adjust the angle of the air guide plate according to the direction of the user.

[0015] Optionally, controlling the first household appliance and other household appliances other than the first household appliance according to the distance and / or direction of the user also includes: when the reflected sound waves of the TV are detected during the day when the user goes out, turning off the TV and controlling the sweeper to clean.

[0016] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for controlling a home appliance when executing the program instructions.

[0017] In some embodiments, the terminal includes:

[0018] Terminal body;

[0019] The above-mentioned device for controlling home appliances is installed in the terminal body.

[0020] In some embodiments, the computer-readable storage medium stores program instructions, and when the program instructions are executed, the method for controlling a home appliance is executed.

[0021] The method and apparatus, terminal, and computer-readable storage medium for controlling home appliances provided by the embodiments of the present disclosure can achieve the following technical effects:

[0022] The speaker of the first home appliance is controlled to emit ultrasonic waves, and the microphone of the first home appliance receives the reflected sound waves of the ultrasonic waves. The reflected sound waves are analyzed to determine the distance and / or direction of the user, and the first home appliance and other home appliances outside the first home appliance are controlled based on the distance and / or direction of the user. By emitting ultrasonic waves through the home appliance's own speaker and receiving the reflected sound waves through the home appliance's built-in microphone, user perception and positioning are achieved, and the home appliance is actively controlled. This reduces the perception cost of smart home appliances and meets the perception requirements of the intelligent stage of smart home decision-making. This enables home appliances to better proactively provide services, in line with the development trend of the intelligent stage of smart home decision-making.

[0023] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] One or more embodiments are exemplarily described by corresponding drawings. These exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation. In addition,

[0025] Figure 1 is a schematic diagram of a method for controlling a home appliance provided by an embodiment of the present disclosure;

[0026] Figure 2 is a schematic diagram of another method for controlling a home appliance provided by an embodiment of the present disclosure;

[0027] Figure 3is a schematic diagram of another method for controlling a home appliance provided by an embodiment of the present disclosure;

[0028] Figure 4 is a schematic diagram of another method for controlling a home appliance provided by an embodiment of the present disclosure;

[0029] Figure 5 is a schematic diagram of a device for controlling home appliances provided by an embodiment of the present disclosure;

[0030] Figure 6 It is a schematic diagram of a terminal provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The accompanying drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the sake of convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0032] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.

[0033] Unless otherwise stated, the term "plurality" means two or more.

[0034] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0035] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0036] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0037] In the embodiments of the present disclosure, smart home appliances refer to home appliance products that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can realize remote control and management of smart home appliances by users by connecting to electronic devices.

[0038] In the disclosed embodiments, a terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, WiFi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example, smart watches, smart bracelets, pedometers, etc.

[0039] The smart home industry has evolved through the stages of single-product intelligence, collaborative intelligence, and decision-making intelligence. The decision-making intelligence stage requires devices to be able to actively perceive, learn, and make decisions, thereby providing proactive services. Perception is the beginning of the entire service process and a crucial step, directly impacting the level of learning and decision-making. Currently, users have a high demand for greater awareness of their home environment, necessitating the addition of intelligent sensing products that can utilize their perception capabilities to obtain various user and environmental information, thereby enabling proactive adjustments to home devices. Related technologies disclose a multi-home appliance control method based on a wearable device. The method comprises the following steps: obtaining three-dimensional spatial information about the user's room and the location of home appliances; placing an ultrasonic ranging device in the room for positioning; obtaining sensor information from the wearable device; a training phase to extract sensor data feature values ​​and establish a feature database and classifier; and a control phase to obtain and execute user commands based on the sensor information returned by the wearable device and auxiliary positioning equipment. By analyzing the inertial measurement unit and ultrasonic ranging information, the wearable device's position and orientation can be calculated. Using pre-established data tables, the method accurately determines the device selected by the user in a multi-home appliance scenario. The use of related technologies, which combine ultrasonic ranging devices with wearable devices and auxiliary positioning devices to locate users, has, to a certain extent, met the perception needs of the intelligent decision-making stage of smart homes. However, in actual application, the use of related technologies requires the additional installation of ultrasonic ranging devices, which is costly. Moreover, these technologies passively execute user control commands, which is inconsistent with the development trend of the intelligent decision-making stage of smart homes.

[0040] The present disclosure discloses a terminal that can be installed on any smart home appliance and communicate with each smart home appliance in the user's home. The terminal also includes a processor that is electrically connected to the above-mentioned electrical components and is used to control the operation of the above-mentioned electrical components.

[0041] Figures 1 to 4 This is a schematic diagram of a method for controlling a home appliance provided by an embodiment of the present disclosure. Any of the following methods can be executed in a terminal or in a server or other device that is communicatively connected to the terminal. In the embodiments of the present disclosure, the terminal is used as the execution subject to illustrate the solution.

[0042] Based on the above terminal structure, such as Figure 1 As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:

[0043] S01, the terminal controls the speaker of the first household appliance to emit ultrasonic waves, and receives the reflected sound waves of the ultrasonic waves through the microphone of the first household appliance.

[0044] S02: The terminal analyzes the reflected sound waves to obtain the distance and / or direction of the user.

[0045] S03: The terminal controls the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user.

[0046] The user's distance refers to the distance between the user and the first home appliance, and the user's position refers to the user's position relative to the first home appliance. The first home appliance can be any home appliance with a built-in speaker and microphone, for example, an air conditioner or a television. Other home appliances other than the first home appliance can be other home appliances other than the home appliance on which the terminal is installed, i.e., second home appliances, such as a lighting fixture or a robot vacuum.

[0047] Using the method for controlling home appliances provided by the embodiments of the present disclosure, the speaker of a first home appliance is controlled to emit ultrasonic waves, and the reflected sound waves of the ultrasonic waves are received through the microphone of the first home appliance. The reflected sound waves are analyzed to obtain the distance and / or direction of the user, and the first home appliance and other home appliances outside the first home appliance are controlled based on the distance and / or direction of the user. By emitting ultrasonic waves through the speaker of the home appliance itself and receiving the reflected sound waves through the microphone of the home appliance, the user's perception and positioning are achieved, and the home appliance is actively controlled, which reduces the perception cost of smart home appliances and meets the perception needs of the intelligent stage of smart home decision-making. This enables home appliances to better proactively provide services, in line with the development trend of the intelligent stage of smart home decision-making.

[0048] Based on the above terminal structure, such as Figure 2As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:

[0049] S21, the terminal controls the speakers of the air conditioner and / or TV to emit ultrasonic waves.

[0050] S22: The microphone of the terminal controlling the air conditioner and / or the television receives the reflected sound waves of the ultrasonic wave.

[0051] S02: The terminal analyzes the reflected sound waves to obtain the distance and / or direction of the user.

[0052] S03: The terminal controls the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user.

[0053] Using the method for controlling home appliances provided in the embodiments of the present disclosure, since current smart home appliances typically have voice assistance functions, air conditioners and televisions are typically equipped with speakers and microphones. The terminal controls the speakers of the air conditioner and / or television to emit ultrasonic waves and controls the microphones of the air conditioner and / or television to receive reflected sound waves from the ultrasonic waves. This enables the smart home appliance to transmit ultrasonic waves and receive reflected sound waves through its own speakers and microphones, reducing the cost of user perception and positioning.

[0054] Based on the above terminal structure, such as Figure 3 As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:

[0055] S01, the terminal controls the speaker of the first household appliance to emit ultrasonic waves, and receives the reflected sound waves of the ultrasonic waves through the microphone of the first household appliance.

[0056] S31, the terminal obtains the first time when the speaker emits ultrasonic waves and the second time when the microphone receives reflected sound waves.

[0057] S32: The terminal calculates the time difference between the first time and the second time.

[0058] S33, the terminal calculates S=V×T / 2.

[0059] In step S33 , S is the distance between the user and the first household appliance, V is the propagation speed of the ultrasonic frequency band in the air, and T is the time difference between the first time and the second time.

[0060] S03: The terminal controls the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user.

[0061] In addition to using the aforementioned beamforming technology to determine the user's position, the terminal can also employ array microphone technology. Microphones are installed at multiple locations on the first home appliance to form a microphone array. When an ultrasonic signal reflects from the user, the microphones at different locations receive the signal at slightly different times or with varying signal strengths. By analyzing these differences, the time or phase differences between the ultrasonic signals reaching the different microphones can be calculated. Using these time or phase differences, combined with the known microphone spacing and ultrasonic velocity, the user's direction relative to the microphone array can be calculated. Furthermore, the Doppler effect can be employed. If the user moves relative to the speaker and microphone of the first home appliance, the frequency of the reflected ultrasonic signal changes. This phenomenon is known as the Doppler effect. By analyzing the degree of the Doppler frequency shift in the reflected sound wave, the user's direction and speed can be determined.

[0062] Using the method for controlling a home appliance provided in an embodiment of the present disclosure, a terminal obtains the first time a speaker emits an ultrasonic wave and the second time a microphone receives the reflected sound wave. The terminal then calculates the time difference between the first and second times. Half of this time difference is the time it takes for the ultrasonic wave to travel one way between the first home appliance and the user. Since the speed of ultrasonic waves in air is a known parameter, the product of the speed of ultrasonic waves in air and the time it takes for the ultrasonic wave to travel one way between the first home appliance and the user is the distance between the first home appliance and the user.

[0063] Based on the above terminal structure, such as Figure 4 As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:

[0064] S01, the terminal controls the speaker of the first household appliance to emit ultrasonic waves, and receives the reflected sound waves of the ultrasonic waves through the microphone of the first household appliance.

[0065] S41: The terminal obtains the signal strength and / or time when the reflected sound wave reaches different microphones.

[0066] S42: The terminal determines the direction of the microphone that receives the reflected sound wave with the greatest signal strength and / or the earliest time as the direction of the user.

[0067] S03: The terminal controls the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user.

[0068] Using the method for controlling home appliances provided by the embodiments of the present disclosure, the terminal obtains the signal strength and / or time of the reflected sound waves reaching different microphones, and determines that the direction pointed by the microphone that receives the reflected sound wave with the largest signal strength and / or the earliest time is the user's direction. By controlling the emission direction of the speaker of the first home appliance, an ultrasonic beam pointing in different directions can be generated. Then, a microphone array is used to receive the reflected ultrasonic signal, that is, to receive the reflected sound wave. By analyzing which microphone receives the reflected sound wave with the largest signal strength or the earliest time, the user's direction can be determined.

[0069] Optionally, the terminal controls the first household appliance and other household appliances other than the first household appliance according to the distance and / or direction of the user, including: when the terminal detects that the user is approaching through the reflected sound waves of the TV at night, the terminal controls to turn on the lights; when the terminal detects that the user is away from the TV and cannot be detected through the reflected sound waves of the TV at night, after a first period of time, the terminal controls to turn off the lights and the TV.

[0070] Among them, the terminal can determine whether it is daytime or nighttime in any one or more ways. Specifically, some smart home appliances are usually equipped with light sensors, also called photoresistors or photodiodes. These sensors can detect the brightness level of the surrounding environment, so the terminal can determine whether it is daytime or nighttime through the light sensor of the smart home appliance. When the ambient light drops below the first light threshold, the terminal determines that it is nighttime; when the light intensity rises above the second light threshold, the terminal determines that it is daytime. The terminal can also determine whether it is daytime or nighttime based on the internal clock of the smart home appliance and the preset sunrise and sunset times. The terminal can also make a comprehensive judgment based on the above methods. For example, when the light sensor detects that the light is reduced, the terminal checks whether the current time is close to the preset sunset time, so as to more accurately determine whether it is nighttime.

[0071] Thus, when the reflected sound waves from the TV detect a user approaching at night, it determines that the user may be watching TV. Therefore, the terminal controls the lighting to turn on, illuminating the room for the user, making it easier for the user to turn on the TV or walk, and preventing the user from falling. When the reflected sound waves from the TV detect that the user is no longer detectable at night, it indicates that the user has left the room where the TV is located, and the user is determined to have finished watching TV. Therefore, after a first time period, the terminal controls the lighting and TV to turn off, reducing energy consumption.

[0072] Optionally, the terminal controls the first household appliance and other household appliances other than the first household appliance according to the distance and / or direction of the user, and also includes: when the reflected sound waves of the air conditioner are detected at night that the user returns to the bedroom, the terminal controls the air conditioner to adjust the angle of the air guide plate according to the user's direction.

[0073] In this way, when the reflected sound waves of the air conditioner detect that the user returns to the bedroom at night, the terminal controls the air conditioner to adjust the angle of the air deflector according to the user's orientation, so that the angle of the air deflector of the air conditioner matches the user's current distance and / or orientation, thereby avoiding the person from blowing the wind, or blowing the wind towards the person.

[0074] Optionally, the terminal controls the first household appliance and other household appliances other than the first household appliance according to the distance and / or direction of the user, and also includes: when the terminal detects that the user goes out through the reflected sound waves of the TV during the day, the terminal turns off the TV and controls the sweeper to clean.

[0075] In this way, when the reflected sound waves from the TV are detected during the day when the user is out, it is determined that the user is out. Therefore, the terminal turns off the TV to save energy and controls the sweeper to clean the room when the user is out, thereby reducing interference to the user.

[0076] Combine Figure 5 As shown, an embodiment of the present disclosure provides a device 800 for controlling a home appliance, comprising a processor 801 and a memory 802. Optionally, the device may further comprise a communication interface 803 and a bus 804. The processor 801, the communication interface 803, and the memory 802 may communicate with each other via the bus 804. The communication interface 803 may be used for information transmission. The processor 801 may call logic instructions in the memory 802 to execute the method for controlling a home appliance of the above embodiment.

[0077] In addition, the logic instructions in the memory 802 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0078] Memory 802, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. Processor 801 executes the program instructions / modules stored in memory 802 to execute functional applications and process data, thereby implementing the methods for controlling home appliances in the above-described embodiments.

[0079] The memory 802 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory 802 may include high-speed random access memory and non-volatile memory.

[0080] Combine Figure 6As shown, an embodiment of the present disclosure provides a terminal 900, comprising: a terminal body, and the above-mentioned device 800 for controlling home appliances. The device 800 for controlling home appliances is installed in the terminal body. The installation relationship described here is not limited to placement inside the terminal, but also includes installation connections with other components of the terminal, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device 800 for controlling home appliances can be adapted to a feasible terminal body, thereby realizing other feasible embodiments.

[0081] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for controlling a home appliance.

[0082] The technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or other media that can store program code.

[0083] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.

[0084] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0085] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, and can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown 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 to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0086] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for controlling a home appliance, characterized in that: include: Controlling a speaker of the first household appliance to emit ultrasonic waves, and receiving reflected sound waves of the ultrasonic waves through a microphone of the first household appliance; Analyze the reflected sound waves to obtain the user's distance and / or direction; The first home appliance and other home appliances other than the first home appliance are controlled according to the distance and / or direction of the user.

2. The method according to claim 1, characterized in that Controlling the speaker of the first household appliance to emit ultrasonic waves and receiving reflected sound waves of the ultrasonic waves through the microphone of the first household appliance includes: Speakers that control the air conditioner and / or TV emit ultrasonic waves; The microphones that control the air conditioner and / or TV receive the reflected sound waves of the ultrasonic waves.

3. The method according to claim 1, characterized in that Analyze the reflected sound waves to get the user's distance, including: Obtain the first time when the speaker emits ultrasonic waves and the second time when the microphone receives the reflected sound waves; Calculate the time difference between the first time and the second time; Calculate S = V × T / 2; Wherein, S is the distance between the user and the first household appliance, V is the propagation speed of the ultrasonic frequency band in the air, and T is the time difference between the first time and the second time.

4. The method according to claim 1, wherein Analyze the reflected sound waves to get the user's position, including: Obtaining the signal strength and / or time of the reflected sound waves reaching different microphones; The direction of the microphone that receives the reflected sound wave with the greatest signal strength and / or the earliest time is determined to be the direction of the user.

5. The method according to any one of claims 1 to 4, characterized in that Controlling the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user, including: When the reflected sound waves from the TV are detected at night, the lights are turned on; When the reflected sound waves of the TV are detected at night and the user moves away and cannot be detected, the lighting and the TV are controlled to be turned off after a first time period.

6. The method according to any one of claims 1 to 4, characterized in that Controlling the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user also includes: When the reflected sound waves from the air conditioner detect that the user has returned to the bedroom at night, the air conditioner is controlled to adjust the angle of the air guide plate according to the user's position.

7. The method according to any one of claims 1 to 4, characterized in that Controlling the first home appliance and other home appliances other than the first home appliance according to the distance and / or direction of the user also includes: When the reflected sound waves from the TV detect that the user is out during the day, the TV is turned off and the robot vacuum is controlled to clean.

8. A device for controlling a home appliance, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling a home appliance according to any one of claims 1 to 7 when running the program instructions.

9. A terminal, characterized in that: include: Terminal body; The device for controlling a home appliance according to claim 8 is installed in the terminal body.

10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is configured to execute the method for controlling a home appliance according to any one of claims 1 to 7.